@adobe/alloy 2.20.0-beta.0 → 2.20.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +2 -2
- package/libEs5/components/ActivityCollector/configValidators.js +5 -5
- package/libEs5/components/ActivityCollector/getLinkName.js +1 -1
- package/libEs5/components/ActivityCollector/getLinkRegion.js +3 -3
- package/libEs5/components/ActivityCollector/index.js +7 -7
- package/libEs5/components/Audiences/index.js +5 -5
- package/libEs5/components/Audiences/injectProcessDestinations.js +2 -2
- package/libEs5/components/Context/createComponent.js +2 -2
- package/libEs5/components/Context/implementationDetails.js +4 -4
- package/libEs5/components/Context/index.js +11 -11
- package/libEs5/components/Context/injectDevice.js +5 -5
- package/libEs5/components/Context/injectEnvironment.js +4 -4
- package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +5 -5
- package/libEs5/components/Context/injectPlaceContext.js +4 -4
- package/libEs5/components/Context/injectTimestamp.js +2 -2
- package/libEs5/components/Context/injectWeb.js +2 -2
- package/libEs5/components/DataCollector/index.js +5 -5
- package/libEs5/components/DataCollector/validateApplyResponse.js +11 -11
- package/libEs5/components/DataCollector/validateUserEventOptions.js +22 -22
- package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
- package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
- package/libEs5/components/DecisioningEngine/createContextProvider.js +4 -4
- package/libEs5/components/DecisioningEngine/createDecisionHistory.js +1 -1
- package/libEs5/components/DecisioningEngine/createDecisionProvider.js +3 -3
- package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
- package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +5 -5
- package/libEs5/components/DecisioningEngine/createEventRegistry.js +3 -3
- package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +2 -2
- package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +9 -9
- package/libEs5/components/DecisioningEngine/index.js +18 -18
- package/libEs5/components/EventMerge/createEventMergeId.js +2 -2
- package/libEs5/components/EventMerge/index.js +2 -2
- package/libEs5/components/Identity/addEcidQueryToPayload.js +1 -1
- package/libEs5/components/Identity/addEcidToPayload.js +1 -1
- package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +5 -5
- package/libEs5/components/Identity/configValidators.js +4 -4
- package/libEs5/components/Identity/createComponent.js +4 -4
- package/libEs5/components/Identity/getEcidFromResponse.js +3 -3
- package/libEs5/components/Identity/getIdentity/createGetIdentity.js +2 -2
- package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +2 -2
- package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +4 -4
- package/libEs5/components/Identity/getIdentity/getIdentityOptionsValidator.js +5 -5
- package/libEs5/components/Identity/index.js +24 -24
- package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +4 -4
- package/libEs5/components/Identity/injectProcessIdSyncs.js +2 -2
- package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
- package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +2 -2
- package/libEs5/components/Identity/visitorService/getVisitor.js +2 -2
- package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
- package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +16 -17
- package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +4 -4
- package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +28 -28
- package/libEs5/components/LegacyMediaAnalytics/index.js +9 -9
- package/libEs5/components/LibraryInfo/index.js +2 -2
- package/libEs5/components/MachineLearning/index.js +1 -1
- package/libEs5/components/Personalization/createActionsProvider.js +3 -3
- package/libEs5/components/Personalization/createApplyPropositions.js +7 -7
- package/libEs5/components/Personalization/createCollect.js +4 -4
- package/libEs5/components/Personalization/createComponent.js +9 -9
- package/libEs5/components/Personalization/createFetchDataHandler.js +2 -2
- package/libEs5/components/Personalization/createHandleConsentFlicker.js +1 -1
- package/libEs5/components/Personalization/createNotificationHandler.js +2 -2
- package/libEs5/components/Personalization/createOnClickHandler.js +5 -5
- package/libEs5/components/Personalization/createPersonalizationDetails.js +11 -11
- package/libEs5/components/Personalization/createPreprocessors.js +3 -3
- package/libEs5/components/Personalization/createSetTargetMigration.js +2 -2
- package/libEs5/components/Personalization/createViewCacheManager.js +6 -6
- package/libEs5/components/Personalization/dom-actions/action.js +18 -18
- package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +7 -7
- package/libEs5/components/Personalization/dom-actions/appendHtml.js +8 -8
- package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +3 -3
- package/libEs5/components/Personalization/dom-actions/createPreprocess.js +2 -2
- package/libEs5/components/Personalization/dom-actions/createRedirect.js +1 -3
- package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +3 -3
- package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/index.js +14 -14
- package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
- package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
- package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +4 -4
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +4 -4
- package/libEs5/components/Personalization/dom-actions/images.js +7 -7
- package/libEs5/components/Personalization/dom-actions/index.js +1 -1
- package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +3 -3
- package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +7 -7
- package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +7 -7
- package/libEs5/components/Personalization/dom-actions/prependHtml.js +10 -10
- package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +4 -4
- package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +2 -2
- package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +10 -10
- package/libEs5/components/Personalization/dom-actions/replaceHtml.js +3 -3
- package/libEs5/components/Personalization/dom-actions/scripts.js +11 -11
- package/libEs5/components/Personalization/dom-actions/setAttributes.js +2 -2
- package/libEs5/components/Personalization/dom-actions/setHtml.js +5 -5
- package/libEs5/components/Personalization/dom-actions/setStyles.js +3 -3
- package/libEs5/components/Personalization/dom-actions/swapImage.js +5 -5
- package/libEs5/components/Personalization/event.js +1 -1
- package/libEs5/components/Personalization/flicker/index.js +13 -13
- package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
- package/libEs5/components/Personalization/handlers/injectCreateProposition.js +2 -2
- package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +23 -21
- package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
- package/libEs5/components/Personalization/in-app-message-actions/utils.js +7 -7
- package/libEs5/components/Personalization/index.js +43 -43
- package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +2 -2
- package/libEs5/components/Personalization/utils/surfaceUtils.js +11 -9
- package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +5 -5
- package/libEs5/components/Privacy/computeConsentHash.js +2 -2
- package/libEs5/components/Privacy/createComponent.js +1 -1
- package/libEs5/components/Privacy/createConsentHashStore.js +2 -2
- package/libEs5/components/Privacy/createConsentRequest.js +2 -2
- package/libEs5/components/Privacy/createConsentRequestPayload.js +2 -2
- package/libEs5/components/Privacy/createStoredConsent.js +3 -3
- package/libEs5/components/Privacy/index.js +13 -13
- package/libEs5/components/Privacy/injectSendSetConsentRequest.js +4 -4
- package/libEs5/components/Privacy/validateSetConsentOptions.js +6 -6
- package/libEs5/components/StreamingMedia/configValidators.js +8 -8
- package/libEs5/components/StreamingMedia/createMediaEventManager.js +6 -6
- package/libEs5/components/StreamingMedia/createMediaRequest.js +2 -2
- package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +5 -5
- package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
- package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +4 -4
- package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +1 -1
- package/libEs5/components/StreamingMedia/createTrackMediaSession.js +1 -1
- package/libEs5/components/StreamingMedia/index.js +8 -8
- package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +13 -13
- package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +12 -12
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/constants/propositionEventType.js +1 -1
- package/libEs5/core/buildAndValidateConfig.js +2 -2
- package/libEs5/core/componentCreators.js +14 -14
- package/libEs5/core/config/createConfig.js +2 -2
- package/libEs5/core/config/createCoreConfigs.js +15 -15
- package/libEs5/core/consent/createConsent.js +3 -3
- package/libEs5/core/consent/createConsentStateMachine.js +2 -2
- package/libEs5/core/createComponentRegistry.js +4 -4
- package/libEs5/core/createCookieTransfer.js +2 -2
- package/libEs5/core/createEvent.js +12 -12
- package/libEs5/core/createEventManager.js +9 -9
- package/libEs5/core/createLogController.js +4 -4
- package/libEs5/core/createLogger.js +2 -2
- package/libEs5/core/edgeNetwork/injectApplyResponse.js +7 -7
- package/libEs5/core/edgeNetwork/injectGetLocationHint.js +4 -4
- package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
- package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +9 -9
- package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +2 -2
- package/libEs5/core/index.js +44 -44
- package/libEs5/core/initializeComponents.js +2 -2
- package/libEs5/core/injectCreateResponse.js +3 -3
- package/libEs5/core/injectExecuteCommand.js +4 -4
- package/libEs5/core/injectHandleError.js +4 -4
- package/libEs5/core/injectShouldTransferCookie.js +3 -3
- package/libEs5/core/network/getRequestRetryDelay.js +3 -3
- package/libEs5/core/network/injectSendNetworkRequest.js +2 -2
- package/libEs5/core/network/isRequestRetryable.js +3 -3
- package/libEs5/index.js +10 -10
- package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
- package/libEs5/utils/assignConcatArrayValues.js +2 -2
- package/libEs5/utils/assignIf.js +1 -1
- package/libEs5/utils/createMerger.js +1 -1
- package/libEs5/utils/createSubscription.js +1 -1
- package/libEs5/utils/deepAssign.js +2 -2
- package/libEs5/utils/dom/awaitSelector.js +3 -3
- package/libEs5/utils/dom/createNode.js +2 -2
- package/libEs5/utils/dom/index.js +8 -8
- package/libEs5/utils/dom/isShadowSelector.js +1 -1
- package/libEs5/utils/dom/querySelectorAll.js +1 -1
- package/libEs5/utils/dom/selectNodes.js +3 -3
- package/libEs5/utils/dom/selectNodesWithShadow.js +3 -3
- package/libEs5/utils/filterObject.js +3 -3
- package/libEs5/utils/fireImage.js +2 -2
- package/libEs5/utils/getApexDomain.js +2 -2
- package/libEs5/utils/getBrowser.js +2 -2
- package/libEs5/utils/getNamespacedCookieName.js +2 -2
- package/libEs5/utils/index.js +58 -58
- package/libEs5/utils/injectDoesIdentityCookieExist.js +3 -3
- package/libEs5/utils/injectFireReferrerHideableImage.js +6 -6
- package/libEs5/utils/injectStorage.js +2 -2
- package/libEs5/utils/intersection.js +1 -1
- package/libEs5/utils/isBlankString.js +1 -1
- package/libEs5/utils/isEmptyObject.js +1 -1
- package/libEs5/utils/isInteger.js +1 -1
- package/libEs5/utils/isNamespacedCookieName.js +2 -2
- package/libEs5/utils/isNonEmptyString.js +1 -1
- package/libEs5/utils/isObject.js +1 -1
- package/libEs5/utils/isValidRegExp.js +1 -1
- package/libEs5/utils/parseUrl.js +1 -1
- package/libEs5/utils/prepareConfigOverridesForEdge.js +7 -7
- package/libEs5/utils/request/createDataCollectionRequest.js +1 -1
- package/libEs5/utils/request/createDataCollectionRequestPayload.js +3 -3
- package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
- package/libEs5/utils/request/createRequest.js +2 -2
- package/libEs5/utils/request/createRequestParams.js +1 -1
- package/libEs5/utils/request/createRequestPayload.js +6 -6
- package/libEs5/utils/request/index.js +8 -8
- package/libEs5/utils/stackError.js +2 -2
- package/libEs5/utils/stringToBoolean.js +1 -1
- package/libEs5/utils/toISOStringLocal.js +2 -2
- package/libEs5/utils/toInteger.js +2 -2
- package/libEs5/utils/uuid.js +2 -2
- package/libEs5/utils/validateConfigOverride.js +2 -2
- package/libEs5/utils/validateIdentityMap.js +2 -2
- package/libEs5/utils/validation/booleanValidator.js +2 -2
- package/libEs5/utils/validation/callbackValidator.js +2 -2
- package/libEs5/utils/validation/createAnyOfValidator.js +2 -2
- package/libEs5/utils/validation/createArrayOfValidator.js +1 -1
- package/libEs5/utils/validation/createDeprecatedValidator.js +3 -3
- package/libEs5/utils/validation/createLiteralValidator.js +1 -1
- package/libEs5/utils/validation/createMapOfValuesValidator.js +2 -2
- package/libEs5/utils/validation/createMaximumValidator.js +1 -1
- package/libEs5/utils/validation/createMinimumValidator.js +1 -1
- package/libEs5/utils/validation/createNonEmptyValidator.js +3 -3
- package/libEs5/utils/validation/createObjectOfValidator.js +2 -2
- package/libEs5/utils/validation/createUniqueItemsValidator.js +2 -2
- package/libEs5/utils/validation/createUniqueValidator.js +1 -1
- package/libEs5/utils/validation/domainValidator.js +1 -1
- package/libEs5/utils/validation/index.js +23 -23
- package/libEs5/utils/validation/integerValidator.js +2 -2
- package/libEs5/utils/validation/matchesRegexpValidator.js +1 -1
- package/libEs5/utils/validation/numberValidator.js +2 -2
- package/libEs5/utils/validation/regexpValidator.js +2 -2
- package/libEs5/utils/validation/stringValidator.js +2 -2
- package/libEs5/utils/validation/utils.js +1 -1
- package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +1 -1
- package/libEs6/components/ActivityCollector/configValidators.js +1 -1
- package/libEs6/components/ActivityCollector/getLinkName.js +1 -1
- package/libEs6/components/ActivityCollector/getLinkRegion.js +2 -2
- package/libEs6/components/ActivityCollector/index.js +7 -7
- package/libEs6/components/Audiences/index.js +3 -3
- package/libEs6/components/Audiences/injectProcessDestinations.js +1 -1
- package/libEs6/components/Context/createComponent.js +1 -1
- package/libEs6/components/Context/implementationDetails.js +3 -3
- package/libEs6/components/Context/index.js +9 -9
- package/libEs6/components/Context/injectDevice.js +1 -1
- package/libEs6/components/Context/injectEnvironment.js +1 -1
- package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +2 -2
- package/libEs6/components/Context/injectPlaceContext.js +1 -1
- package/libEs6/components/Context/injectTimestamp.js +1 -1
- package/libEs6/components/Context/injectWeb.js +1 -1
- package/libEs6/components/DataCollector/index.js +3 -3
- package/libEs6/components/DataCollector/validateApplyResponse.js +1 -1
- package/libEs6/components/DataCollector/validateUserEventOptions.js +2 -2
- package/libEs6/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +2 -2
- package/libEs6/components/DecisioningEngine/createConsequenceAdapter.js +2 -2
- package/libEs6/components/DecisioningEngine/createContextProvider.js +4 -4
- package/libEs6/components/DecisioningEngine/createDecisionHistory.js +1 -1
- package/libEs6/components/DecisioningEngine/createDecisionProvider.js +3 -3
- package/libEs6/components/DecisioningEngine/createEvaluableRulesetPayload.js +5 -5
- package/libEs6/components/DecisioningEngine/createEvaluateRulesetsCommand.js +1 -1
- package/libEs6/components/DecisioningEngine/createEventRegistry.js +3 -3
- package/libEs6/components/DecisioningEngine/createOnResponseHandler.js +2 -2
- package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +3 -3
- package/libEs6/components/DecisioningEngine/index.js +11 -11
- package/libEs6/components/EventMerge/createEventMergeId.js +1 -1
- package/libEs6/components/EventMerge/index.js +2 -2
- package/libEs6/components/Identity/addEcidQueryToPayload.js +1 -1
- package/libEs6/components/Identity/addEcidToPayload.js +1 -1
- package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +2 -2
- package/libEs6/components/Identity/configValidators.js +1 -1
- package/libEs6/components/Identity/createComponent.js +3 -3
- package/libEs6/components/Identity/getEcidFromResponse.js +2 -2
- package/libEs6/components/Identity/getIdentity/createGetIdentity.js +1 -1
- package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +1 -1
- package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +1 -1
- package/libEs6/components/Identity/getIdentity/getIdentityOptionsValidator.js +2 -2
- package/libEs6/components/Identity/index.js +20 -20
- package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +1 -1
- package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +3 -3
- package/libEs6/components/Identity/injectProcessIdSyncs.js +1 -1
- package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +1 -1
- package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +1 -1
- package/libEs6/components/Identity/visitorService/getVisitor.js +1 -1
- package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +1 -1
- package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +12 -13
- package/libEs6/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +2 -2
- package/libEs6/components/LegacyMediaAnalytics/createMediaHelper.js +2 -2
- package/libEs6/components/LegacyMediaAnalytics/index.js +9 -9
- package/libEs6/components/LibraryInfo/index.js +2 -2
- package/libEs6/components/MachineLearning/index.js +1 -1
- package/libEs6/components/Personalization/createActionsProvider.js +2 -2
- package/libEs6/components/Personalization/createApplyPropositions.js +3 -3
- package/libEs6/components/Personalization/createCollect.js +3 -3
- package/libEs6/components/Personalization/createComponent.js +5 -5
- package/libEs6/components/Personalization/createFetchDataHandler.js +1 -1
- package/libEs6/components/Personalization/createHandleConsentFlicker.js +1 -1
- package/libEs6/components/Personalization/createNotificationHandler.js +1 -1
- package/libEs6/components/Personalization/createOnClickHandler.js +3 -3
- package/libEs6/components/Personalization/createPersonalizationDetails.js +4 -4
- package/libEs6/components/Personalization/createPreprocessors.js +3 -3
- package/libEs6/components/Personalization/createSetTargetMigration.js +1 -1
- package/libEs6/components/Personalization/createViewCacheManager.js +4 -4
- package/libEs6/components/Personalization/dom-actions/action.js +14 -14
- package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +4 -4
- package/libEs6/components/Personalization/dom-actions/appendHtml.js +5 -5
- package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +2 -2
- package/libEs6/components/Personalization/dom-actions/createPreprocess.js +1 -1
- package/libEs6/components/Personalization/dom-actions/createRedirect.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/index.js +14 -14
- package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +2 -2
- package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +1 -1
- package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +3 -3
- package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +2 -2
- package/libEs6/components/Personalization/dom-actions/images.js +4 -4
- package/libEs6/components/Personalization/dom-actions/index.js +1 -1
- package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +2 -2
- package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +4 -4
- package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +4 -4
- package/libEs6/components/Personalization/dom-actions/prependHtml.js +5 -5
- package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +1 -1
- package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +1 -1
- package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +6 -6
- package/libEs6/components/Personalization/dom-actions/replaceHtml.js +2 -2
- package/libEs6/components/Personalization/dom-actions/scripts.js +4 -4
- package/libEs6/components/Personalization/dom-actions/setAttributes.js +1 -1
- package/libEs6/components/Personalization/dom-actions/setHtml.js +3 -3
- package/libEs6/components/Personalization/dom-actions/setStyles.js +1 -1
- package/libEs6/components/Personalization/dom-actions/swapImage.js +3 -3
- package/libEs6/components/Personalization/event.js +1 -1
- package/libEs6/components/Personalization/flicker/index.js +3 -3
- package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +1 -1
- package/libEs6/components/Personalization/handlers/injectCreateProposition.js +2 -2
- package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +11 -9
- package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +1 -1
- package/libEs6/components/Personalization/in-app-message-actions/utils.js +2 -2
- package/libEs6/components/Personalization/index.js +35 -35
- package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +1 -1
- package/libEs6/components/Personalization/utils/surfaceUtils.js +4 -2
- package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +1 -1
- package/libEs6/components/Privacy/computeConsentHash.js +1 -1
- package/libEs6/components/Privacy/createComponent.js +1 -1
- package/libEs6/components/Privacy/createConsentHashStore.js +1 -1
- package/libEs6/components/Privacy/createConsentRequest.js +1 -1
- package/libEs6/components/Privacy/createConsentRequestPayload.js +1 -1
- package/libEs6/components/Privacy/createStoredConsent.js +2 -2
- package/libEs6/components/Privacy/index.js +9 -9
- package/libEs6/components/Privacy/injectSendSetConsentRequest.js +2 -2
- package/libEs6/components/Privacy/validateSetConsentOptions.js +2 -2
- package/libEs6/components/StreamingMedia/configValidators.js +1 -1
- package/libEs6/components/StreamingMedia/createMediaEventManager.js +4 -4
- package/libEs6/components/StreamingMedia/createMediaRequest.js +1 -1
- package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +4 -4
- package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +1 -1
- package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +3 -3
- package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +1 -1
- package/libEs6/components/StreamingMedia/createTrackMediaSession.js +1 -1
- package/libEs6/components/StreamingMedia/index.js +8 -8
- package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +2 -2
- package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +1 -1
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/constants/propositionEventType.js +1 -1
- package/libEs6/core/buildAndValidateConfig.js +1 -1
- package/libEs6/core/componentCreators.js +13 -13
- package/libEs6/core/config/createConfig.js +1 -1
- package/libEs6/core/config/createCoreConfigs.js +5 -5
- package/libEs6/core/consent/createConsent.js +3 -3
- package/libEs6/core/consent/createConsentStateMachine.js +1 -1
- package/libEs6/core/createComponentRegistry.js +1 -1
- package/libEs6/core/createCookieTransfer.js +1 -1
- package/libEs6/core/createEvent.js +1 -1
- package/libEs6/core/createEventManager.js +3 -3
- package/libEs6/core/createLogController.js +2 -2
- package/libEs6/core/createLogger.js +1 -1
- package/libEs6/core/edgeNetwork/injectApplyResponse.js +3 -3
- package/libEs6/core/edgeNetwork/injectGetLocationHint.js +3 -3
- package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +1 -1
- package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +5 -5
- package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +1 -1
- package/libEs6/core/index.js +33 -33
- package/libEs6/core/initializeComponents.js +1 -1
- package/libEs6/core/injectCreateResponse.js +2 -2
- package/libEs6/core/injectExecuteCommand.js +2 -2
- package/libEs6/core/injectHandleError.js +2 -2
- package/libEs6/core/injectShouldTransferCookie.js +2 -2
- package/libEs6/core/network/getRequestRetryDelay.js +2 -2
- package/libEs6/core/network/injectSendNetworkRequest.js +1 -1
- package/libEs6/core/network/isRequestRetryable.js +2 -2
- package/libEs6/index.js +5 -5
- package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +2 -2
- package/libEs6/utils/assignConcatArrayValues.js +2 -2
- package/libEs6/utils/assignIf.js +1 -1
- package/libEs6/utils/createMerger.js +1 -1
- package/libEs6/utils/createSubscription.js +1 -1
- package/libEs6/utils/deepAssign.js +2 -2
- package/libEs6/utils/dom/awaitSelector.js +3 -3
- package/libEs6/utils/dom/createNode.js +2 -2
- package/libEs6/utils/dom/index.js +8 -8
- package/libEs6/utils/dom/isShadowSelector.js +1 -1
- package/libEs6/utils/dom/querySelectorAll.js +1 -1
- package/libEs6/utils/dom/selectNodes.js +3 -3
- package/libEs6/utils/dom/selectNodesWithShadow.js +3 -3
- package/libEs6/utils/filterObject.js +3 -3
- package/libEs6/utils/fireImage.js +2 -2
- package/libEs6/utils/getApexDomain.js +2 -2
- package/libEs6/utils/getBrowser.js +2 -2
- package/libEs6/utils/getNamespacedCookieName.js +2 -2
- package/libEs6/utils/index.js +58 -58
- package/libEs6/utils/injectDoesIdentityCookieExist.js +3 -3
- package/libEs6/utils/injectFireReferrerHideableImage.js +3 -3
- package/libEs6/utils/injectStorage.js +2 -2
- package/libEs6/utils/intersection.js +1 -1
- package/libEs6/utils/isBlankString.js +1 -1
- package/libEs6/utils/isEmptyObject.js +1 -1
- package/libEs6/utils/isInteger.js +1 -1
- package/libEs6/utils/isNamespacedCookieName.js +2 -2
- package/libEs6/utils/isNonEmptyString.js +1 -1
- package/libEs6/utils/isObject.js +1 -1
- package/libEs6/utils/isValidRegExp.js +1 -1
- package/libEs6/utils/parseUrl.js +1 -1
- package/libEs6/utils/prepareConfigOverridesForEdge.js +7 -7
- package/libEs6/utils/request/createDataCollectionRequest.js +1 -1
- package/libEs6/utils/request/createDataCollectionRequestPayload.js +3 -3
- package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +1 -1
- package/libEs6/utils/request/createRequest.js +1 -1
- package/libEs6/utils/request/createRequestPayload.js +1 -1
- package/libEs6/utils/request/index.js +8 -8
- package/libEs6/utils/stackError.js +2 -2
- package/libEs6/utils/stringToBoolean.js +1 -1
- package/libEs6/utils/toISOStringLocal.js +2 -2
- package/libEs6/utils/toInteger.js +2 -2
- package/libEs6/utils/uuid.js +2 -2
- package/libEs6/utils/validateConfigOverride.js +1 -1
- package/libEs6/utils/validateIdentityMap.js +2 -2
- package/libEs6/utils/validation/booleanValidator.js +2 -2
- package/libEs6/utils/validation/callbackValidator.js +2 -2
- package/libEs6/utils/validation/createAnyOfValidator.js +2 -2
- package/libEs6/utils/validation/createArrayOfValidator.js +1 -1
- package/libEs6/utils/validation/createDeprecatedValidator.js +2 -2
- package/libEs6/utils/validation/createLiteralValidator.js +1 -1
- package/libEs6/utils/validation/createMapOfValuesValidator.js +2 -2
- package/libEs6/utils/validation/createMaximumValidator.js +1 -1
- package/libEs6/utils/validation/createMinimumValidator.js +1 -1
- package/libEs6/utils/validation/createNonEmptyValidator.js +3 -3
- package/libEs6/utils/validation/createObjectOfValidator.js +2 -2
- package/libEs6/utils/validation/createUniqueItemsValidator.js +2 -2
- package/libEs6/utils/validation/createUniqueValidator.js +1 -1
- package/libEs6/utils/validation/domainValidator.js +1 -1
- package/libEs6/utils/validation/index.js +23 -23
- package/libEs6/utils/validation/integerValidator.js +2 -2
- package/libEs6/utils/validation/matchesRegexpValidator.js +1 -1
- package/libEs6/utils/validation/numberValidator.js +2 -2
- package/libEs6/utils/validation/regexpValidator.js +2 -2
- package/libEs6/utils/validation/stringValidator.js +2 -2
- package/libEs6/utils/validation/utils.js +1 -1
- package/package.json +68 -65
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { isNamespacedCookieName } from "../utils";
|
|
14
|
-
import { AT_QA_MODE, MBOX } from "../constants/legacyCookies";
|
|
13
|
+
import { isNamespacedCookieName } from "../utils/index.js";
|
|
14
|
+
import { AT_QA_MODE, MBOX } from "../constants/legacyCookies.js";
|
|
15
15
|
export default (({
|
|
16
16
|
orgId,
|
|
17
17
|
targetMigrationEnabled
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { RETRY_AFTER } from "../../constants/httpHeaderNames";
|
|
14
|
-
import { isInteger } from "../../utils";
|
|
13
|
+
import { RETRY_AFTER } from "../../constants/httpHeaderNames.js";
|
|
14
|
+
import { isInteger } from "../../utils/index.js";
|
|
15
15
|
|
|
16
16
|
// The retry gets incrementally (but not exponentially) longer for each retry.
|
|
17
17
|
const FIRST_DELAY_MILLIS = 1000;
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { stackError } from "../../utils";
|
|
13
|
+
import { stackError } from "../../utils/index.js";
|
|
14
14
|
export default (({
|
|
15
15
|
logger,
|
|
16
16
|
sendFetchRequest,
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE, BAD_GATEWAY, GATEWAY_TIMEOUT } from "../../constants/httpStatusCode";
|
|
14
|
-
import { includes } from "../../utils";
|
|
13
|
+
import { TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE, BAD_GATEWAY, GATEWAY_TIMEOUT } from "../../constants/httpStatusCode.js";
|
|
14
|
+
import { includes } from "../../utils/index.js";
|
|
15
15
|
const MAX_RETRIES = 3;
|
|
16
16
|
const RETRYABLE_STATUS_CODES = [TOO_MANY_REQUESTS, SERVICE_UNAVAILABLE, BAD_GATEWAY, GATEWAY_TIMEOUT];
|
|
17
17
|
|
package/libEs6/index.js
CHANGED
|
@@ -14,11 +14,11 @@ governing permissions and limitations under the License.
|
|
|
14
14
|
// like the launch extension. Everything that is exported here can be used independently by other
|
|
15
15
|
// npm projects.
|
|
16
16
|
|
|
17
|
-
import { createExecuteCommand } from "./core";
|
|
18
|
-
import createLogger from "./core/createLogger";
|
|
19
|
-
import createLogController from "./core/createLogController";
|
|
20
|
-
import { injectStorage } from "./utils";
|
|
21
|
-
import { arrayOf, objectOf, string } from "./utils/validation";
|
|
17
|
+
import { createExecuteCommand } from "./core/index.js";
|
|
18
|
+
import createLogger from "./core/createLogger.js";
|
|
19
|
+
import createLogController from "./core/createLogController.js";
|
|
20
|
+
import { injectStorage } from "./utils/index.js";
|
|
21
|
+
import { arrayOf, objectOf, string } from "./utils/validation/index.js";
|
|
22
22
|
const {
|
|
23
23
|
console
|
|
24
24
|
} = window;
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { CHROME, EDGE, EDGE_CHROMIUM, IE, UNKNOWN } from "../constants/browser";
|
|
14
|
-
import includes from "./includes";
|
|
13
|
+
import { CHROME, EDGE, EDGE_CHROMIUM, IE, UNKNOWN } from "../constants/browser.js";
|
|
14
|
+
import includes from "./includes.js";
|
|
15
15
|
|
|
16
16
|
// Users could have also disabled third-party cookies within these browsers, but
|
|
17
17
|
// we don't know. We also assume "unknown" browsers support third-party cookies,
|
|
@@ -9,8 +9,8 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import assign from "./assign";
|
|
13
|
-
import isObject from "./isObject";
|
|
12
|
+
import assign from "./assign.js";
|
|
13
|
+
import isObject from "./isObject.js";
|
|
14
14
|
export default ((...values) => {
|
|
15
15
|
if (values.length < 2) {
|
|
16
16
|
// if the number of args is 0 or 1, just use the default behavior from Object.assign
|
package/libEs6/utils/assignIf.js
CHANGED
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import assign from "./assign";
|
|
13
|
+
import assign from "./assign.js";
|
|
14
14
|
export default ((target, source, predicate) => {
|
|
15
15
|
if (predicate()) {
|
|
16
16
|
assign(target, source);
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import deepAssign from "./deepAssign";
|
|
13
|
+
import deepAssign from "./deepAssign.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Creates a function that, when passed an object of updates, will merge
|
|
@@ -9,7 +9,7 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { values } from "./index";
|
|
12
|
+
import { values } from "./index.js";
|
|
13
13
|
const defaultPreprocessor = (params, ...args) => {
|
|
14
14
|
return args;
|
|
15
15
|
};
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isNil from "./isNil";
|
|
14
|
-
import isObject from "./isObject";
|
|
13
|
+
import isNil from "./isNil.js";
|
|
14
|
+
import isObject from "./isObject.js";
|
|
15
15
|
const deepAssignObject = (target, source) => {
|
|
16
16
|
Object.keys(source).forEach(key => {
|
|
17
17
|
if (isObject(target[key]) && isObject(source[key])) {
|
|
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isFunction from "../isFunction";
|
|
14
|
-
import isNonEmptyArray from "../isNonEmptyArray";
|
|
15
|
-
import selectNodes from "./selectNodes";
|
|
13
|
+
import isFunction from "../isFunction.js";
|
|
14
|
+
import isNonEmptyArray from "../isNonEmptyArray.js";
|
|
15
|
+
import selectNodes from "./selectNodes.js";
|
|
16
16
|
const MUTATION_OBSERVER = "MutationObserver";
|
|
17
17
|
const RAF = "requestAnimationFrame";
|
|
18
18
|
const MUTATION_OBSERVER_CONFIG = {
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import appendNode from "./appendNode";
|
|
14
|
-
import isObject from "../isObject";
|
|
13
|
+
import appendNode from "./appendNode.js";
|
|
14
|
+
import isObject from "../isObject.js";
|
|
15
15
|
const populateElementProperties = (element, props) => {
|
|
16
16
|
Object.keys(props).forEach(key => {
|
|
17
17
|
// The following is to support setting style properties to avoid CSP errors.
|
|
@@ -10,11 +10,11 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
export { default as awaitSelector } from "./awaitSelector";
|
|
14
|
-
export { default as appendNode } from "./appendNode";
|
|
15
|
-
export { default as createNode } from "./createNode";
|
|
16
|
-
export { default as matchesSelector } from "./matchesSelector";
|
|
17
|
-
export { default as querySelectorAll } from "./querySelectorAll";
|
|
18
|
-
export { default as removeNode } from "./removeNode";
|
|
19
|
-
export { default as selectNodes } from "./selectNodes";
|
|
20
|
-
export { default as selectNodesWithShadow } from "./selectNodesWithShadow";
|
|
13
|
+
export { default as awaitSelector } from "./awaitSelector.js";
|
|
14
|
+
export { default as appendNode } from "./appendNode.js";
|
|
15
|
+
export { default as createNode } from "./createNode.js";
|
|
16
|
+
export { default as matchesSelector } from "./matchesSelector.js";
|
|
17
|
+
export { default as querySelectorAll } from "./querySelectorAll.js";
|
|
18
|
+
export { default as removeNode } from "./removeNode.js";
|
|
19
|
+
export { default as selectNodes } from "./selectNodes.js";
|
|
20
|
+
export { default as selectNodesWithShadow } from "./selectNodesWithShadow.js";
|
|
@@ -10,5 +10,5 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import SHADOW_SEPARATOR from "../../constants/shadowSeparator";
|
|
13
|
+
import SHADOW_SEPARATOR from "../../constants/shadowSeparator.js";
|
|
14
14
|
export default (str => str.indexOf(SHADOW_SEPARATOR) !== -1);
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import toArray from "../toArray";
|
|
13
|
+
import toArray from "../toArray.js";
|
|
14
14
|
const SIBLING_PATTERN = /^\s*>/;
|
|
15
15
|
export default ((context, selector) => {
|
|
16
16
|
if (!SIBLING_PATTERN.test(selector)) {
|
|
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import querySelectorAll from "./querySelectorAll";
|
|
14
|
-
import selectNodesWithShadow from "./selectNodesWithShadow";
|
|
15
|
-
import isShadowSelector from "./isShadowSelector";
|
|
13
|
+
import querySelectorAll from "./querySelectorAll.js";
|
|
14
|
+
import selectNodesWithShadow from "./selectNodesWithShadow.js";
|
|
15
|
+
import isShadowSelector from "./isShadowSelector.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Returns an array of matched DOM nodes.
|
|
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import querySelectorAll from "./querySelectorAll";
|
|
14
|
-
import startsWith from "../startsWith";
|
|
15
|
-
import SHADOW_SEPARATOR from "../../constants/shadowSeparator";
|
|
13
|
+
import querySelectorAll from "./querySelectorAll.js";
|
|
14
|
+
import startsWith from "../startsWith.js";
|
|
15
|
+
import SHADOW_SEPARATOR from "../../constants/shadowSeparator.js";
|
|
16
16
|
const splitWithShadow = selector => {
|
|
17
17
|
return selector.split(SHADOW_SEPARATOR);
|
|
18
18
|
};
|
|
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isEmptyObject from "./isEmptyObject";
|
|
14
|
-
import isNil from "./isNil";
|
|
15
|
-
import isObject from "./isObject";
|
|
13
|
+
import isEmptyObject from "./isEmptyObject.js";
|
|
14
|
+
import isNil from "./isNil.js";
|
|
15
|
+
import isObject from "./isObject.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Given an object and a function that takes a value and returns a predicate, filter out
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import createNode from "./dom/createNode";
|
|
14
|
-
import { IMG } from "../constants/tagName";
|
|
13
|
+
import createNode from "./dom/createNode.js";
|
|
14
|
+
import { IMG } from "../constants/tagName.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Fires an image pixel from the current document's window.
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import namespace from "../constants/namespace";
|
|
14
|
-
import getLastArrayItems from "./getLastArrayItems";
|
|
13
|
+
import namespace from "../constants/namespace.js";
|
|
14
|
+
import getLastArrayItems from "./getLastArrayItems.js";
|
|
15
15
|
const cookieName = `${namespace}getTld`;
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import memoize from "./memoize";
|
|
14
|
-
import { EDGE, EDGE_CHROMIUM, CHROME, FIREFOX, IE, SAFARI, UNKNOWN } from "../constants/browser";
|
|
13
|
+
import memoize from "./memoize.js";
|
|
14
|
+
import { EDGE, EDGE_CHROMIUM, CHROME, FIREFOX, IE, SAFARI, UNKNOWN } from "../constants/browser.js";
|
|
15
15
|
const matchUserAgent = regexs => {
|
|
16
16
|
return userAgent => {
|
|
17
17
|
const keys = Object.keys(regexs);
|
|
@@ -10,6 +10,6 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import COOKIE_NAME_PREFIX from "../constants/cookieNamePrefix";
|
|
14
|
-
import sanitizeOrgIdForCookieName from "./sanitizeOrgIdForCookieName";
|
|
13
|
+
import COOKIE_NAME_PREFIX from "../constants/cookieNamePrefix.js";
|
|
14
|
+
import sanitizeOrgIdForCookieName from "./sanitizeOrgIdForCookieName.js";
|
|
15
15
|
export default ((orgId, key) => `${COOKIE_NAME_PREFIX}_${sanitizeOrgIdForCookieName(orgId)}_${key}`);
|
package/libEs6/utils/index.js
CHANGED
|
@@ -11,61 +11,61 @@ governing permissions and limitations under the License.
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
// Please keep in alphabetical order.
|
|
14
|
-
export { default as areThirdPartyCookiesSupportedByDefault } from "./areThirdPartyCookiesSupportedByDefault";
|
|
15
|
-
export { default as assign } from "./assign";
|
|
16
|
-
export { default as assignConcatArrayValues } from "./assignConcatArrayValues";
|
|
17
|
-
export { default as assignIf } from "./assignIf";
|
|
18
|
-
export { default as clone } from "./clone";
|
|
19
|
-
export { default as cookieJar } from "./cookieJar";
|
|
20
|
-
export { default as createMerger } from "./createMerger";
|
|
21
|
-
export { default as createCallbackAggregator } from "./createCallbackAggregator";
|
|
22
|
-
export { default as createLoggingCookieJar } from "./createLoggingCookieJar";
|
|
23
|
-
export { default as createTaskQueue } from "./createTaskQueue";
|
|
24
|
-
export { default as crc32 } from "./crc32";
|
|
25
|
-
export { default as defer } from "./defer";
|
|
26
|
-
export { default as deduplicateArray } from "./deduplicateArray";
|
|
27
|
-
export { default as deepAssign } from "./deepAssign";
|
|
28
|
-
export { default as endsWith } from "./endsWith";
|
|
29
|
-
export { default as find } from "./find";
|
|
30
|
-
export { default as fireImage } from "./fireImage";
|
|
31
|
-
export { default as injectFireReferrerHideableImage } from "./injectFireReferrerHideableImage";
|
|
32
|
-
export { default as filterObject } from "./filterObject";
|
|
33
|
-
export { default as flatMap } from "./flatMap";
|
|
34
|
-
export { default as getApexDomain } from "./getApexDomain";
|
|
35
|
-
export { default as getLastArrayItems } from "./getLastArrayItems";
|
|
36
|
-
export { default as getNamespacedCookieName } from "./getNamespacedCookieName";
|
|
37
|
-
export { default as groupBy } from "./groupBy";
|
|
38
|
-
export { default as includes } from "./includes";
|
|
39
|
-
export { default as injectDoesIdentityCookieExist } from "./injectDoesIdentityCookieExist";
|
|
40
|
-
export { default as injectStorage } from "./injectStorage";
|
|
41
|
-
export { default as intersection } from "./intersection";
|
|
42
|
-
export { default as isBoolean } from "./isBoolean";
|
|
43
|
-
export { default as isEmptyObject } from "./isEmptyObject";
|
|
44
|
-
export { default as isFunction } from "./isFunction";
|
|
45
|
-
export { default as isInteger } from "./isInteger";
|
|
46
|
-
export { default as isNamespacedCookieName } from "./isNamespacedCookieName";
|
|
47
|
-
export { default as isNonEmptyArray } from "./isNonEmptyArray";
|
|
48
|
-
export { default as isNonEmptyString } from "./isNonEmptyString";
|
|
49
|
-
export { default as isNil } from "./isNil";
|
|
50
|
-
export { default as isNumber } from "./isNumber";
|
|
51
|
-
export { default as isObject } from "./isObject";
|
|
52
|
-
export { default as isString } from "./isString";
|
|
53
|
-
export { default as memoize } from "./memoize";
|
|
54
|
-
export { default as noop } from "./noop";
|
|
55
|
-
export { default as padStart } from "./padStart";
|
|
56
|
-
export { default as parseUrl } from "./parseUrl";
|
|
57
|
-
export { default as prepareConfigOverridesForEdge } from "./prepareConfigOverridesForEdge";
|
|
58
|
-
export { default as queryString } from "./querystring";
|
|
59
|
-
export { default as sanitizeOrgIdForCookieName } from "./sanitizeOrgIdForCookieName";
|
|
60
|
-
export { default as stackError } from "./stackError";
|
|
61
|
-
export { default as startsWith } from "./startsWith";
|
|
62
|
-
export { default as stringToBoolean } from "./stringToBoolean";
|
|
63
|
-
export { default as toArray } from "./toArray";
|
|
64
|
-
export { default as toError } from "./toError";
|
|
65
|
-
export { default as toInteger } from "./toInteger";
|
|
66
|
-
export { default as toISOStringLocal } from "./toISOStringLocal";
|
|
67
|
-
export { default as uuid } from "./uuid";
|
|
68
|
-
export { default as updateErrorMessage } from "./updateErrorMessage";
|
|
69
|
-
export { default as validateIdentityMap } from "./validateIdentityMap";
|
|
70
|
-
export { default as validateConfigOverride } from "./validateConfigOverride";
|
|
71
|
-
export { default as values } from "./values";
|
|
14
|
+
export { default as areThirdPartyCookiesSupportedByDefault } from "./areThirdPartyCookiesSupportedByDefault.js";
|
|
15
|
+
export { default as assign } from "./assign.js";
|
|
16
|
+
export { default as assignConcatArrayValues } from "./assignConcatArrayValues.js";
|
|
17
|
+
export { default as assignIf } from "./assignIf.js";
|
|
18
|
+
export { default as clone } from "./clone.js";
|
|
19
|
+
export { default as cookieJar } from "./cookieJar.js";
|
|
20
|
+
export { default as createMerger } from "./createMerger.js";
|
|
21
|
+
export { default as createCallbackAggregator } from "./createCallbackAggregator.js";
|
|
22
|
+
export { default as createLoggingCookieJar } from "./createLoggingCookieJar.js";
|
|
23
|
+
export { default as createTaskQueue } from "./createTaskQueue.js";
|
|
24
|
+
export { default as crc32 } from "./crc32.js";
|
|
25
|
+
export { default as defer } from "./defer.js";
|
|
26
|
+
export { default as deduplicateArray } from "./deduplicateArray.js";
|
|
27
|
+
export { default as deepAssign } from "./deepAssign.js";
|
|
28
|
+
export { default as endsWith } from "./endsWith.js";
|
|
29
|
+
export { default as find } from "./find.js";
|
|
30
|
+
export { default as fireImage } from "./fireImage.js";
|
|
31
|
+
export { default as injectFireReferrerHideableImage } from "./injectFireReferrerHideableImage.js";
|
|
32
|
+
export { default as filterObject } from "./filterObject.js";
|
|
33
|
+
export { default as flatMap } from "./flatMap.js";
|
|
34
|
+
export { default as getApexDomain } from "./getApexDomain.js";
|
|
35
|
+
export { default as getLastArrayItems } from "./getLastArrayItems.js";
|
|
36
|
+
export { default as getNamespacedCookieName } from "./getNamespacedCookieName.js";
|
|
37
|
+
export { default as groupBy } from "./groupBy.js";
|
|
38
|
+
export { default as includes } from "./includes.js";
|
|
39
|
+
export { default as injectDoesIdentityCookieExist } from "./injectDoesIdentityCookieExist.js";
|
|
40
|
+
export { default as injectStorage } from "./injectStorage.js";
|
|
41
|
+
export { default as intersection } from "./intersection.js";
|
|
42
|
+
export { default as isBoolean } from "./isBoolean.js";
|
|
43
|
+
export { default as isEmptyObject } from "./isEmptyObject.js";
|
|
44
|
+
export { default as isFunction } from "./isFunction.js";
|
|
45
|
+
export { default as isInteger } from "./isInteger.js";
|
|
46
|
+
export { default as isNamespacedCookieName } from "./isNamespacedCookieName.js";
|
|
47
|
+
export { default as isNonEmptyArray } from "./isNonEmptyArray.js";
|
|
48
|
+
export { default as isNonEmptyString } from "./isNonEmptyString.js";
|
|
49
|
+
export { default as isNil } from "./isNil.js";
|
|
50
|
+
export { default as isNumber } from "./isNumber.js";
|
|
51
|
+
export { default as isObject } from "./isObject.js";
|
|
52
|
+
export { default as isString } from "./isString.js";
|
|
53
|
+
export { default as memoize } from "./memoize.js";
|
|
54
|
+
export { default as noop } from "./noop.js";
|
|
55
|
+
export { default as padStart } from "./padStart.js";
|
|
56
|
+
export { default as parseUrl } from "./parseUrl.js";
|
|
57
|
+
export { default as prepareConfigOverridesForEdge } from "./prepareConfigOverridesForEdge.js";
|
|
58
|
+
export { default as queryString } from "./querystring.js";
|
|
59
|
+
export { default as sanitizeOrgIdForCookieName } from "./sanitizeOrgIdForCookieName.js";
|
|
60
|
+
export { default as stackError } from "./stackError.js";
|
|
61
|
+
export { default as startsWith } from "./startsWith.js";
|
|
62
|
+
export { default as stringToBoolean } from "./stringToBoolean.js";
|
|
63
|
+
export { default as toArray } from "./toArray.js";
|
|
64
|
+
export { default as toError } from "./toError.js";
|
|
65
|
+
export { default as toInteger } from "./toInteger.js";
|
|
66
|
+
export { default as toISOStringLocal } from "./toISOStringLocal.js";
|
|
67
|
+
export { default as uuid } from "./uuid.js";
|
|
68
|
+
export { default as updateErrorMessage } from "./updateErrorMessage.js";
|
|
69
|
+
export { default as validateIdentityMap } from "./validateIdentityMap.js";
|
|
70
|
+
export { default as validateConfigOverride } from "./validateConfigOverride.js";
|
|
71
|
+
export { default as values } from "./values.js";
|
|
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import cookieJar from "./cookieJar";
|
|
14
|
-
import getNamespacedCookieName from "./getNamespacedCookieName";
|
|
15
|
-
import { IDENTITY } from "../constants/cookieNameKey";
|
|
13
|
+
import cookieJar from "./cookieJar.js";
|
|
14
|
+
import getNamespacedCookieName from "./getNamespacedCookieName.js";
|
|
15
|
+
import { IDENTITY } from "../constants/cookieNameKey.js";
|
|
16
16
|
export default (({
|
|
17
17
|
orgId
|
|
18
18
|
}) => {
|
|
@@ -10,9 +10,9 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import fireImageInDocument from "./fireImage";
|
|
14
|
-
import { appendNode as appendNodeToDocument, awaitSelector as awaitSelectorInDocument, createNode as createNodeInDocument } from "./dom";
|
|
15
|
-
import { BODY, IFRAME } from "../constants/tagName";
|
|
13
|
+
import fireImageInDocument from "./fireImage.js";
|
|
14
|
+
import { appendNode as appendNodeToDocument, awaitSelector as awaitSelectorInDocument, createNode as createNodeInDocument } from "./dom/index.js";
|
|
15
|
+
import { BODY, IFRAME } from "../constants/tagName.js";
|
|
16
16
|
const IFRAME_ATTRS = {
|
|
17
17
|
name: "Adobe Alloy"
|
|
18
18
|
};
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import baseNamespace from "../constants/namespace";
|
|
14
|
-
import startsWith from "./startsWith";
|
|
13
|
+
import baseNamespace from "../constants/namespace.js";
|
|
14
|
+
import startsWith from "./startsWith.js";
|
|
15
15
|
const getStorageByType = (context, storageType, namespace) => {
|
|
16
16
|
// When storage is disabled on Safari, the mere act of referencing
|
|
17
17
|
// window.localStorage or window.sessionStorage throws an error.
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import includes from "./includes";
|
|
13
|
+
import includes from "./includes.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns items that are found within both arrays.
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isString from "./isString";
|
|
13
|
+
import isString from "./isString.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether a string value is blank. Also returns true if the value is not a string.
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isObject from "./isObject";
|
|
13
|
+
import isObject from "./isObject.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether the value is an empty object.
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isNumber from "./isNumber";
|
|
13
|
+
import isNumber from "./isNumber.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether the value is an integer.
|
|
@@ -10,8 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import COOKIE_NAME_PREFIX from "../constants/cookieNamePrefix";
|
|
14
|
-
import sanitizeOrgIdForCookieName from "./sanitizeOrgIdForCookieName";
|
|
13
|
+
import COOKIE_NAME_PREFIX from "../constants/cookieNamePrefix.js";
|
|
14
|
+
import sanitizeOrgIdForCookieName from "./sanitizeOrgIdForCookieName.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Determines whether a cookie name is namespaced according to the contract
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isString from "./isString";
|
|
13
|
+
import isString from "./isString.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether the value is a populated string.
|
package/libEs6/utils/isObject.js
CHANGED
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import isNil from "./isNil";
|
|
13
|
+
import isNil from "./isNil.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Returns whether the value is an object.
|
package/libEs6/utils/parseUrl.js
CHANGED
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import parseUri from "parse-uri";
|
|
13
|
-
import isString from "./isString";
|
|
13
|
+
import isString from "./isString.js";
|
|
14
14
|
const parseDomainBasic = host => {
|
|
15
15
|
const result = {};
|
|
16
16
|
const domainParts = host.split(".");
|
|
@@ -9,13 +9,13 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import isNil from "./isNil";
|
|
13
|
-
import filterObject from "./filterObject";
|
|
14
|
-
import isEmptyObject from "./isEmptyObject";
|
|
15
|
-
import isNonEmptyArray from "./isNonEmptyArray";
|
|
16
|
-
import isNonEmptyString from "./isNonEmptyString";
|
|
17
|
-
import isNumber from "./isNumber";
|
|
18
|
-
import isBoolean from "./isBoolean";
|
|
12
|
+
import isNil from "./isNil.js";
|
|
13
|
+
import filterObject from "./filterObject.js";
|
|
14
|
+
import isEmptyObject from "./isEmptyObject.js";
|
|
15
|
+
import isNonEmptyArray from "./isNonEmptyArray.js";
|
|
16
|
+
import isNonEmptyString from "./isNonEmptyString.js";
|
|
17
|
+
import isNumber from "./isNumber.js";
|
|
18
|
+
import isBoolean from "./isBoolean.js";
|
|
19
19
|
|
|
20
20
|
// We want to avoid mapping between specific keys because we want Konductor
|
|
21
21
|
// to be able to add overrides in the future without us needing to make
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import createRequest from "./createRequest";
|
|
13
|
+
import createRequest from "./createRequest.js";
|
|
14
14
|
export default (({
|
|
15
15
|
payload: dataCollectionRequestPayload,
|
|
16
16
|
datastreamIdOverride
|
|
@@ -9,9 +9,9 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
9
9
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import createRequestPayload from "./createRequestPayload";
|
|
13
|
-
import createAddIdentity from "./createAddIdentity";
|
|
14
|
-
import createHasIdentity from "./createHasIdentity";
|
|
12
|
+
import createRequestPayload from "./createRequestPayload.js";
|
|
13
|
+
import createAddIdentity from "./createAddIdentity.js";
|
|
14
|
+
import createHasIdentity from "./createHasIdentity.js";
|
|
15
15
|
export default (() => {
|
|
16
16
|
const content = {};
|
|
17
17
|
const payload = createRequestPayload({
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { uuid, queryString } from "../index";
|
|
13
|
+
import { uuid, queryString } from "../index.js";
|
|
14
14
|
const ASSURANCE_VALIDATION_SESSION_URL_PARAM = "adb_validation_sessionid";
|
|
15
15
|
const ASSURANCE_VALIDATION_NAMESPACE = "validation.";
|
|
16
16
|
const CLIENT_ID = "clientId";
|
|
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
10
|
governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { uuid } from "
|
|
13
|
+
import { uuid } from "../index.js";
|
|
14
14
|
|
|
15
15
|
// This provides the base functionality that all types of requests share.
|
|
16
16
|
export default (options => {
|