@adobe/alloy 2.21.1 → 2.22.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.cjs +0 -1
- package/libEs5/baseCode/index.js +3 -2
- package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +23 -20
- package/libEs5/components/ActivityCollector/configValidators.js +2 -2
- package/libEs5/components/ActivityCollector/createClickActivityStorage.js +11 -9
- package/libEs5/components/ActivityCollector/createClickedElementProperties.js +39 -32
- package/libEs5/components/ActivityCollector/createGetClickedElementProperties.js +28 -20
- package/libEs5/components/ActivityCollector/createInjectClickedElementProperties.js +24 -21
- package/libEs5/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +10 -8
- package/libEs5/components/ActivityCollector/createStorePageViewProperties.js +6 -4
- package/libEs5/components/ActivityCollector/getLinkName.js +19 -18
- package/libEs5/components/ActivityCollector/getLinkRegion.js +10 -9
- package/libEs5/components/ActivityCollector/index.js +61 -45
- package/libEs5/components/ActivityCollector/utils/activityMapExtensionEnabled.js +3 -5
- package/libEs5/components/ActivityCollector/utils/createTransientStorage.js +7 -6
- package/libEs5/components/ActivityCollector/utils/determineLinkType.js +4 -3
- package/libEs5/components/ActivityCollector/utils/dom/elementHasClickHandler.js +3 -2
- package/libEs5/components/ActivityCollector/utils/dom/extractDomain.js +5 -4
- package/libEs5/components/ActivityCollector/utils/dom/findClickableElement.js +4 -3
- package/libEs5/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +11 -8
- package/libEs5/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +3 -2
- package/libEs5/components/ActivityCollector/utils/dom/isDownloadLink.js +6 -5
- package/libEs5/components/ActivityCollector/utils/dom/isExitLink.js +6 -5
- package/libEs5/components/ActivityCollector/utils/dom/isInputSubmitElement.js +4 -3
- package/libEs5/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +3 -2
- package/libEs5/components/ActivityCollector/utils/dom/isSupportedTextNode.js +4 -3
- package/libEs5/components/ActivityCollector/utils/hasPageName.js +4 -3
- package/libEs5/components/ActivityCollector/utils/isDifferentDomains.js +5 -4
- package/libEs5/components/ActivityCollector/utils/trimQueryFromUrl.js +5 -4
- package/libEs5/components/ActivityCollector/utils/truncateWhiteSpace.js +3 -2
- package/libEs5/components/ActivityCollector/utils/urlStartsWithScheme.js +3 -2
- package/libEs5/components/Audiences/index.js +13 -12
- package/libEs5/components/Audiences/injectProcessDestinations.js +32 -35
- package/libEs5/components/Audiences/injectProcessResponse.js +19 -16
- package/libEs5/components/Context/createComponent.js +10 -13
- package/libEs5/components/Context/implementationDetails.js +5 -4
- package/libEs5/components/Context/index.js +24 -28
- package/libEs5/components/Context/injectDevice.js +23 -15
- package/libEs5/components/Context/injectEnvironment.js +17 -12
- package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +12 -21
- package/libEs5/components/Context/injectPlaceContext.js +8 -7
- package/libEs5/components/Context/injectTimestamp.js +6 -5
- package/libEs5/components/Context/injectWeb.js +6 -5
- package/libEs5/components/DataCollector/index.js +37 -38
- package/libEs5/components/DataCollector/validateApplyResponse.js +6 -4
- package/libEs5/components/DataCollector/validateUserEventOptions.js +6 -4
- package/libEs5/components/DecisioningEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +11 -8
- package/libEs5/components/DecisioningEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +10 -7
- package/libEs5/components/DecisioningEngine/constants.js +3 -3
- package/libEs5/components/DecisioningEngine/createApplyResponse.js +15 -15
- package/libEs5/components/DecisioningEngine/createConsequenceAdapter.js +17 -13
- package/libEs5/components/DecisioningEngine/createContextProvider.js +48 -44
- package/libEs5/components/DecisioningEngine/createDecisionHistory.js +7 -5
- package/libEs5/components/DecisioningEngine/createDecisionProvider.js +16 -21
- package/libEs5/components/DecisioningEngine/createEvaluableRulesetPayload.js +39 -37
- package/libEs5/components/DecisioningEngine/createEvaluateRulesetsCommand.js +21 -19
- package/libEs5/components/DecisioningEngine/createEventRegistry.js +63 -67
- package/libEs5/components/DecisioningEngine/createOnResponseHandler.js +23 -22
- package/libEs5/components/DecisioningEngine/createSubscribeRulesetItems.js +100 -55
- package/libEs5/components/DecisioningEngine/index.js +83 -54
- package/libEs5/components/DecisioningEngine/utils.js +43 -38
- package/libEs5/components/EventMerge/createComponent.js +5 -3
- package/libEs5/components/EventMerge/createEventMergeId.js +3 -2
- package/libEs5/components/EventMerge/index.js +1 -1
- package/libEs5/components/Identity/addEcidQueryToPayload.js +3 -2
- package/libEs5/components/Identity/addEcidToPayload.js +3 -2
- package/libEs5/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +13 -23
- package/libEs5/components/Identity/configValidators.js +1 -1
- package/libEs5/components/Identity/constants/authState.js +3 -3
- package/libEs5/components/Identity/createComponent.js +39 -33
- package/libEs5/components/Identity/createLegacyIdentity.js +29 -29
- package/libEs5/components/Identity/getEcidFromResponse.js +5 -7
- package/libEs5/components/Identity/getIdentity/createGetIdentity.js +17 -15
- package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +10 -8
- package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +5 -4
- package/libEs5/components/Identity/index.js +61 -62
- package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +8 -6
- package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +46 -52
- package/libEs5/components/Identity/injectAwaitIdentityCookie.js +14 -11
- package/libEs5/components/Identity/injectEnsureSingleIdentity.js +25 -24
- package/libEs5/components/Identity/injectHandleResponseForIdSyncs.js +6 -4
- package/libEs5/components/Identity/injectProcessIdSyncs.js +20 -22
- package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +7 -5
- package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +8 -6
- package/libEs5/components/Identity/visitorService/getVisitor.js +4 -3
- package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +15 -13
- package/libEs5/components/LegacyMediaAnalytics/constants/constants.js +9 -9
- package/libEs5/components/LegacyMediaAnalytics/constants/mediaKeysToXdmConverter.js +2 -2
- package/libEs5/components/LegacyMediaAnalytics/createGetInstance.js +61 -63
- package/libEs5/components/LegacyMediaAnalytics/createLegacyMediaComponent.js +38 -37
- package/libEs5/components/LegacyMediaAnalytics/createMediaHelper.js +54 -52
- package/libEs5/components/LegacyMediaAnalytics/index.js +32 -33
- package/libEs5/components/LibraryInfo/index.js +23 -30
- package/libEs5/components/MachineLearning/index.js +1 -1
- package/libEs5/components/MachineLearning/processResponse.js +5 -3
- package/libEs5/components/Personalization/constants/loggerMessage.js +2 -2
- package/libEs5/components/Personalization/constants/scopeType.js +3 -3
- package/libEs5/components/Personalization/constants/surface.js +4 -4
- package/libEs5/components/Personalization/createActionsProvider.js +37 -32
- package/libEs5/components/Personalization/createApplyPropositions.js +71 -81
- package/libEs5/components/Personalization/createClickStorage.js +30 -32
- package/libEs5/components/Personalization/createComponent.js +65 -74
- package/libEs5/components/Personalization/createFetchDataHandler.js +83 -52
- package/libEs5/components/Personalization/createGetPageLocation.js +6 -6
- package/libEs5/components/Personalization/createHandleConsentFlicker.js +15 -14
- package/libEs5/components/Personalization/createInteractionStorage.js +25 -39
- package/libEs5/components/Personalization/createNotificationHandler.js +9 -10
- package/libEs5/components/Personalization/createOnClickHandler.js +29 -25
- package/libEs5/components/Personalization/createOnDecisionHandler.js +23 -21
- package/libEs5/components/Personalization/createPersonalizationDetails.js +39 -45
- package/libEs5/components/Personalization/createPreprocessors.js +7 -7
- package/libEs5/components/Personalization/createSetTargetMigration.js +6 -4
- package/libEs5/components/Personalization/createViewCacheManager.js +29 -32
- package/libEs5/components/Personalization/createViewChangeHandler.js +35 -20
- package/libEs5/components/Personalization/dom-actions/action.js +24 -25
- package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +12 -13
- package/libEs5/components/Personalization/dom-actions/appendHtml.js +8 -7
- package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +28 -33
- package/libEs5/components/Personalization/dom-actions/clicks/collectInteractions.js +37 -40
- package/libEs5/components/Personalization/dom-actions/collectInteractions.js +3 -2
- package/libEs5/components/Personalization/dom-actions/createPreprocess.js +10 -11
- package/libEs5/components/Personalization/dom-actions/createRedirect.js +11 -13
- package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/getAttribute.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +6 -3
- package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +6 -3
- package/libEs5/components/Personalization/dom-actions/dom/getElementById.js +3 -3
- package/libEs5/components/Personalization/dom-actions/dom/getFirstChild.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/getNextSibling.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/getNonce.js +7 -6
- package/libEs5/components/Personalization/dom-actions/dom/getParent.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +7 -7
- package/libEs5/components/Personalization/dom-actions/dom/index.js +14 -14
- package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +4 -3
- package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +4 -3
- package/libEs5/components/Personalization/dom-actions/dom/isDomElement.js +2 -3
- package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +6 -5
- package/libEs5/components/Personalization/dom-actions/dom/removeAttribute.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +39 -38
- package/libEs5/components/Personalization/dom-actions/dom/setAttribute.js +3 -2
- package/libEs5/components/Personalization/dom-actions/dom/setStyle.js +4 -3
- package/libEs5/components/Personalization/dom-actions/images.js +10 -9
- package/libEs5/components/Personalization/dom-actions/index.js +1 -1
- package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +40 -25
- package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +9 -8
- package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +8 -7
- package/libEs5/components/Personalization/dom-actions/prependHtml.js +13 -10
- package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +9 -7
- package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +14 -9
- package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +16 -14
- package/libEs5/components/Personalization/dom-actions/replaceHtml.js +4 -3
- package/libEs5/components/Personalization/dom-actions/scripts.js +58 -38
- package/libEs5/components/Personalization/dom-actions/setAttributes.js +4 -3
- package/libEs5/components/Personalization/dom-actions/setHtml.js +5 -4
- package/libEs5/components/Personalization/dom-actions/setStyles.js +8 -8
- package/libEs5/components/Personalization/dom-actions/setText.js +3 -2
- package/libEs5/components/Personalization/dom-actions/swapImage.js +3 -2
- package/libEs5/components/Personalization/flicker/index.js +66 -49
- package/libEs5/components/Personalization/handlers/createDecorateProposition.js +16 -13
- package/libEs5/components/Personalization/handlers/createProcessDomAction.js +45 -50
- package/libEs5/components/Personalization/handlers/createProcessHtmlContent.js +30 -29
- package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +35 -31
- package/libEs5/components/Personalization/handlers/createProcessPropositions.js +109 -105
- package/libEs5/components/Personalization/handlers/createProcessRedirect.js +38 -28
- package/libEs5/components/Personalization/handlers/injectCreateProposition.js +59 -67
- package/libEs5/components/Personalization/handlers/processDefaultContent.js +3 -2
- package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +140 -121
- package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +4 -5
- package/libEs5/components/Personalization/in-app-message-actions/utils.js +23 -19
- package/libEs5/components/Personalization/index.js +120 -103
- package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +10 -10
- package/libEs5/components/Personalization/utils/createAsyncArray.js +10 -9
- package/libEs5/components/Personalization/utils/isAuthoringModeEnabled.js +3 -3
- package/libEs5/components/Personalization/utils/metaUtils.js +14 -19
- package/libEs5/components/Personalization/utils/surfaceUtils.js +27 -46
- package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +8 -6
- package/libEs5/components/Privacy/computeConsentHash.js +9 -9
- package/libEs5/components/Privacy/createComponent.js +32 -32
- package/libEs5/components/Privacy/createConsentHashStore.js +27 -24
- package/libEs5/components/Privacy/createConsentRequest.js +10 -8
- package/libEs5/components/Privacy/createConsentRequestPayload.js +9 -8
- package/libEs5/components/Privacy/createStoredConsent.js +11 -9
- package/libEs5/components/Privacy/index.js +26 -23
- package/libEs5/components/Privacy/injectSendSetConsentRequest.js +30 -29
- package/libEs5/components/Privacy/parseConsentCookie.js +6 -14
- package/libEs5/components/StreamingMedia/createMediaEventManager.js +59 -45
- package/libEs5/components/StreamingMedia/createMediaRequest.js +8 -6
- package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +22 -17
- package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +22 -18
- package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +30 -29
- package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +41 -36
- package/libEs5/components/StreamingMedia/createTrackMediaSession.js +25 -22
- package/libEs5/components/StreamingMedia/index.js +33 -34
- package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +9 -12
- package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +6 -4
- package/libEs5/constants/browser.js +7 -7
- package/libEs5/constants/consentPurpose.js +1 -1
- package/libEs5/constants/consentStatus.js +3 -3
- package/libEs5/constants/contentType.js +2 -2
- package/libEs5/constants/cookieNameKey.js +3 -3
- package/libEs5/constants/coreCommands.js +2 -2
- package/libEs5/constants/decisionProvider.js +4 -3
- package/libEs5/constants/domain.js +2 -2
- package/libEs5/constants/elementAttribute.js +1 -1
- package/libEs5/constants/eventType.js +5 -5
- package/libEs5/constants/handle.js +1 -1
- package/libEs5/constants/httpHeaderNames.js +2 -2
- package/libEs5/constants/httpStatusCode.js +5 -5
- package/libEs5/constants/identityMapAuthenticatedState.js +3 -3
- package/libEs5/constants/legacyCookies.js +3 -3
- package/libEs5/constants/libraryVersion.js +1 -1
- package/libEs5/constants/propositionEventType.js +18 -12
- package/libEs5/constants/propositionInteractionType.js +4 -4
- package/libEs5/constants/schema.js +11 -11
- package/libEs5/constants/sessionDataKeys.js +1 -1
- package/libEs5/constants/tagName.js +7 -7
- package/libEs5/core/buildAndValidateConfig.js +55 -69
- package/libEs5/core/componentCreators.js +70 -41
- package/libEs5/core/config/createConfig.js +4 -3
- package/libEs5/core/config/createCoreConfigs.js +11 -12
- package/libEs5/core/consent/createConsent.js +16 -14
- package/libEs5/core/consent/createConsentStateMachine.js +27 -35
- package/libEs5/core/createComponentRegistry.js +28 -27
- package/libEs5/core/createCookieTransfer.js +18 -18
- package/libEs5/core/createEvent.js +39 -44
- package/libEs5/core/createEventManager.js +64 -69
- package/libEs5/core/createInstanceFunction.js +4 -11
- package/libEs5/core/createLifecycle.js +14 -19
- package/libEs5/core/createLogController.js +30 -29
- package/libEs5/core/createLogger.js +41 -27
- package/libEs5/core/edgeNetwork/handleRequestFailure.js +6 -5
- package/libEs5/core/edgeNetwork/injectApplyResponse.js +29 -32
- package/libEs5/core/edgeNetwork/injectExtractEdgeInfo.js +19 -25
- package/libEs5/core/edgeNetwork/injectGetLocationHint.js +11 -11
- package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +20 -16
- package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +42 -38
- package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +8 -12
- package/libEs5/core/index.js +137 -133
- package/libEs5/core/initializeComponents.js +17 -15
- package/libEs5/core/injectCreateResponse.js +47 -53
- package/libEs5/core/injectExecuteCommand.js +39 -40
- package/libEs5/core/injectHandleError.js +19 -19
- package/libEs5/core/injectShouldTransferCookie.js +12 -12
- package/libEs5/core/network/getRequestRetryDelay.js +20 -18
- package/libEs5/core/network/injectSendNetworkRequest.js +46 -49
- package/libEs5/core/network/isRequestRetryable.js +9 -8
- package/libEs5/core/network/requestMethods/injectSendBeaconRequest.js +10 -8
- package/libEs5/core/network/requestMethods/injectSendFetchRequest.js +18 -19
- package/libEs5/core/requiredComponentCreators.js +23 -0
- package/libEs5/core/validateCommandOptions.js +14 -11
- package/libEs5/index.js +43 -22
- package/libEs5/standalone.js +6 -1
- package/libEs5/utils/areThirdPartyCookiesSupportedByDefault.js +3 -5
- package/libEs5/utils/assignConcatArrayValues.js +9 -18
- package/libEs5/utils/clone.js +2 -3
- package/libEs5/utils/cookieJar.js +4 -4
- package/libEs5/utils/crc32.js +8 -8
- package/libEs5/utils/createCallbackAggregator.js +7 -11
- package/libEs5/utils/createCollect.js +52 -0
- package/libEs5/utils/createLoggingCookieJar.js +14 -16
- package/libEs5/utils/createMerger.js +9 -10
- package/libEs5/utils/createSubscription.js +48 -48
- package/libEs5/utils/createTaskQueue.js +8 -7
- package/libEs5/utils/deduplicateArray.js +7 -11
- package/libEs5/utils/deepAssign.js +7 -11
- package/libEs5/utils/defer.js +5 -4
- package/libEs5/utils/dom/appendNode.js +3 -2
- package/libEs5/utils/dom/awaitSelector.js +36 -34
- package/libEs5/utils/dom/createNode.js +10 -15
- package/libEs5/utils/dom/index.js +8 -8
- package/libEs5/utils/dom/isShadowSelector.js +2 -3
- package/libEs5/utils/dom/matchesSelector.js +3 -2
- package/libEs5/utils/dom/querySelectorAll.js +5 -13
- package/libEs5/utils/dom/removeNode.js +4 -3
- package/libEs5/utils/dom/selectNodes.js +3 -3
- package/libEs5/utils/dom/selectNodesWithShadow.js +14 -23
- package/libEs5/utils/event.js +49 -0
- package/libEs5/utils/filterObject.js +14 -12
- package/libEs5/utils/fireImage.js +10 -9
- package/libEs5/utils/flattenArray.js +4 -11
- package/libEs5/utils/flattenObject.js +8 -18
- package/libEs5/utils/getApexDomain.js +7 -6
- package/libEs5/utils/getBrowser.js +45 -12
- package/libEs5/utils/getLastArrayItems.js +2 -3
- package/libEs5/utils/getNamespacedCookieName.js +2 -3
- package/libEs5/utils/groupBy.js +6 -5
- package/libEs5/utils/index.js +50 -113
- package/libEs5/utils/injectDoesIdentityCookieExist.js +7 -7
- package/libEs5/utils/injectFireReferrerHideableImage.js +28 -34
- package/libEs5/utils/injectStorage.js +13 -15
- package/libEs5/utils/intersection.js +2 -6
- 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 +4 -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 -4
- package/libEs5/utils/isObject.js +3 -4
- package/libEs5/utils/isString.js +2 -3
- package/libEs5/utils/isUnique.js +6 -5
- package/libEs5/utils/isValidRegExp.js +3 -2
- package/libEs5/utils/memoize.js +7 -6
- package/libEs5/utils/noop.js +2 -1
- package/libEs5/utils/parseUrl.js +19 -25
- package/libEs5/utils/prepareConfigOverridesForEdge.js +6 -5
- package/libEs5/utils/request/createAddIdentity.js +4 -3
- package/libEs5/utils/request/createDataCollectionRequest.js +15 -11
- package/libEs5/utils/request/createDataCollectionRequestPayload.js +9 -10
- package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +17 -15
- package/libEs5/utils/request/createHasIdentity.js +4 -5
- package/libEs5/utils/request/createRequest.js +26 -23
- package/libEs5/utils/request/createRequestParams.js +13 -13
- package/libEs5/utils/request/createRequestPayload.js +13 -12
- package/libEs5/utils/request/index.js +8 -8
- package/libEs5/utils/sanitizeOrgIdForCookieName.js +2 -3
- package/libEs5/utils/stackError.js +8 -6
- package/libEs5/utils/stringToBoolean.js +3 -2
- package/libEs5/utils/toArray.js +3 -2
- package/libEs5/utils/toError.js +3 -2
- package/libEs5/utils/toISOStringLocal.js +29 -14
- package/libEs5/utils/toInteger.js +5 -5
- package/libEs5/utils/updateErrorMessage.js +6 -4
- package/libEs5/utils/validation/booleanValidator.js +3 -2
- package/libEs5/utils/validation/callbackValidator.js +3 -2
- package/libEs5/utils/validation/createAnyOfValidator.js +14 -17
- package/libEs5/utils/validation/createArrayOfValidator.js +16 -18
- package/libEs5/utils/validation/createDefaultValidator.js +7 -8
- package/libEs5/utils/validation/createDeprecatedValidator.js +12 -14
- package/libEs5/utils/validation/createLiteralValidator.js +5 -6
- package/libEs5/utils/validation/createMapOfValuesValidator.js +20 -22
- package/libEs5/utils/validation/createMaximumValidator.js +5 -6
- package/libEs5/utils/validation/createMinimumValidator.js +5 -6
- package/libEs5/utils/validation/createNoUnknownFieldsValidator.js +13 -14
- package/libEs5/utils/validation/createNonEmptyValidator.js +9 -10
- package/libEs5/utils/validation/createObjectOfValidator.js +27 -29
- package/libEs5/utils/validation/createRenamedValidator.js +24 -27
- package/libEs5/utils/validation/createUniqueItemsValidator.js +4 -3
- package/libEs5/utils/validation/createUniqueValidator.js +5 -4
- package/libEs5/utils/validation/domainValidator.js +4 -3
- package/libEs5/utils/validation/index.js +66 -72
- package/libEs5/utils/validation/integerValidator.js +3 -2
- package/libEs5/utils/validation/matchesRegexpValidator.js +5 -6
- package/libEs5/utils/validation/numberValidator.js +3 -2
- package/libEs5/utils/validation/regexpValidator.js +3 -2
- package/libEs5/utils/validation/requiredValidator.js +3 -2
- package/libEs5/utils/validation/stringValidator.js +3 -2
- package/libEs5/utils/validation/utils.js +29 -35
- package/libEs6/components/ActivityCollector/index.js +18 -8
- package/libEs6/components/Context/createComponent.js +1 -3
- package/libEs6/components/DecisioningEngine/createApplyResponse.js +1 -1
- package/libEs6/components/DecisioningEngine/createSubscribeRulesetItems.js +78 -28
- package/libEs6/components/DecisioningEngine/index.js +22 -2
- package/libEs6/components/DecisioningEngine/utils.js +2 -9
- package/libEs6/components/Identity/createComponent.js +4 -2
- package/libEs6/components/Identity/getEcidFromResponse.js +1 -3
- package/libEs6/components/LegacyMediaAnalytics/createGetInstance.js +2 -2
- package/libEs6/components/LibraryInfo/index.js +4 -5
- package/libEs6/components/Personalization/createActionsProvider.js +4 -2
- package/libEs6/components/Personalization/createComponent.js +2 -2
- package/libEs6/components/Personalization/createFetchDataHandler.js +35 -1
- package/libEs6/components/Personalization/createPersonalizationDetails.js +6 -6
- package/libEs6/components/Personalization/createViewCacheManager.js +5 -2
- package/libEs6/components/Personalization/createViewChangeHandler.js +11 -1
- package/libEs6/components/Personalization/dom-actions/createPreprocess.js +5 -2
- package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +1 -3
- package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +6 -4
- package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +3 -2
- package/libEs6/components/Personalization/dom-actions/scripts.js +18 -2
- package/libEs6/components/Personalization/flicker/index.js +44 -30
- package/libEs6/components/Personalization/handlers/createDecorateProposition.js +2 -2
- package/libEs6/components/Personalization/handlers/createProcessPropositions.js +29 -9
- package/libEs6/components/Personalization/handlers/createProcessRedirect.js +9 -0
- package/libEs6/components/Personalization/handlers/injectCreateProposition.js +0 -3
- package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +8 -5
- package/libEs6/components/Personalization/in-app-message-actions/utils.js +2 -2
- package/libEs6/components/Personalization/index.js +9 -5
- package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +4 -4
- package/libEs6/components/Personalization/utils/surfaceUtils.js +3 -3
- package/libEs6/constants/decisionProvider.js +1 -0
- package/libEs6/constants/libraryVersion.js +1 -1
- package/libEs6/constants/schema.js +1 -1
- package/libEs6/core/buildAndValidateConfig.js +8 -5
- package/libEs6/core/componentCreators.js +14 -43
- package/libEs6/core/config/createConfig.js +3 -2
- package/libEs6/core/createCookieTransfer.js +1 -3
- package/libEs6/core/createInstanceFunction.js +1 -9
- package/libEs6/core/createLogger.js +17 -2
- package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +1 -7
- package/libEs6/core/index.js +11 -10
- package/libEs6/core/injectCreateResponse.js +1 -3
- package/libEs6/core/network/isRequestRetryable.js +1 -2
- package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +1 -2
- package/libEs6/{utils/assignIf.js → core/requiredComponentCreators.js} +4 -8
- package/libEs6/index.js +26 -6
- package/libEs6/standalone.js +7 -1
- package/libEs6/utils/areThirdPartyCookiesSupportedByDefault.js +1 -2
- package/libEs6/utils/assignConcatArrayValues.js +1 -2
- package/libEs6/utils/cookieJar.js +4 -4
- package/libEs6/{components/Personalization → utils}/createCollect.js +3 -3
- package/libEs6/utils/createSubscription.js +20 -3
- package/libEs6/utils/dom/querySelectorAll.js +1 -10
- package/libEs6/utils/dom/selectNodesWithShadow.js +2 -12
- package/libEs6/{components/Personalization → utils}/event.js +1 -1
- package/libEs6/utils/index.js +1 -10
- package/libEs6/utils/injectStorage.js +1 -2
- package/libEs6/utils/intersection.js +1 -4
- package/libEs6/utils/isNumber.js +1 -2
- package/libEs6/utils/toISOStringLocal.js +14 -1
- package/libEs6/utils/toInteger.js +1 -2
- package/libEs6/utils/validation/createAnyOfValidator.js +1 -2
- package/libEs6/utils/validation/utils.js +3 -6
- package/package.json +35 -37
- package/rollup.config.js +115 -7
- package/scripts/alloyBuilder.js +89 -55
- package/scripts/helpers/entryPointGeneratorBabelPlugin.js +39 -0
- package/libEs5/components/Personalization/createCollect.js +0 -53
- package/libEs5/components/Personalization/event.js +0 -49
- package/libEs5/core/network/requestMethods/injectSendXhrRequest.js +0 -50
- package/libEs5/utils/assign.js +0 -16
- package/libEs5/utils/assignIf.js +0 -21
- package/libEs5/utils/endsWith.js +0 -23
- package/libEs5/utils/find.js +0 -30
- package/libEs5/utils/flatMap.js +0 -17
- package/libEs5/utils/includes.js +0 -23
- package/libEs5/utils/padStart.js +0 -27
- package/libEs5/utils/startsWith.js +0 -23
- package/libEs5/utils/values.js +0 -25
- package/libEs6/core/network/requestMethods/injectSendXhrRequest.js +0 -49
- package/libEs6/utils/assign.js +0 -14
- package/libEs6/utils/endsWith.js +0 -19
- package/libEs6/utils/find.js +0 -28
- package/libEs6/utils/flatMap.js +0 -14
- package/libEs6/utils/includes.js +0 -21
- package/libEs6/utils/padStart.js +0 -25
- package/libEs6/utils/startsWith.js +0 -19
- package/libEs6/utils/values.js +0 -21
- package/scripts/helpers/alloyComponents.js +0 -63
- package/scripts/helpers/conditionalBuildBabelPlugin.js +0 -57
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.default = void 0;
|
|
4
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
5
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
7
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
8
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
9
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10
|
-
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); }
|
|
11
4
|
/*
|
|
12
5
|
Copyright 2023 Adobe. All rights reserved.
|
|
13
6
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
@@ -19,24 +12,21 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
19
12
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
20
13
|
governing permissions and limitations under the License.
|
|
21
14
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var flattenObject = function flattenObject(obj) {
|
|
26
|
-
var result = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27
|
-
var keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
28
|
-
Object.keys(obj).forEach(function (key) {
|
|
15
|
+
const isPlainObject = obj => obj !== null && typeof obj === "object" && Object.getPrototypeOf(obj) === Object.prototype;
|
|
16
|
+
const flattenObject = (obj, result = {}, keys = []) => {
|
|
17
|
+
Object.keys(obj).forEach(key => {
|
|
29
18
|
if (isPlainObject(obj[key]) || Array.isArray(obj[key])) {
|
|
30
|
-
flattenObject(obj[key], result, [
|
|
19
|
+
flattenObject(obj[key], result, [...keys, key]);
|
|
31
20
|
} else {
|
|
32
|
-
result[[
|
|
21
|
+
result[[...keys, key].join(".")] = obj[key];
|
|
33
22
|
}
|
|
34
23
|
});
|
|
35
24
|
return result;
|
|
36
25
|
};
|
|
37
|
-
var _default =
|
|
26
|
+
var _default = obj => {
|
|
38
27
|
if (!isPlainObject(obj)) {
|
|
39
28
|
return obj;
|
|
40
29
|
}
|
|
41
30
|
return flattenObject(obj);
|
|
42
|
-
};
|
|
31
|
+
};
|
|
32
|
+
exports.default = _default;
|
|
@@ -15,7 +15,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
15
15
|
governing permissions and limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const cookieName = _namespace.default + "getTld";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Of the current web page's hostname, this is the top-most domain that is
|
|
@@ -25,12 +25,12 @@ var cookieName = _namespace.default + "getTld";
|
|
|
25
25
|
* @param {Object} cookieJar
|
|
26
26
|
* @returns {string}
|
|
27
27
|
*/
|
|
28
|
-
var _default =
|
|
29
|
-
|
|
28
|
+
var _default = (window, cookieJar) => {
|
|
29
|
+
let topLevelCookieDomain = "";
|
|
30
30
|
|
|
31
31
|
// If hostParts.length === 1, we may be on localhost.
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const hostParts = window.location.hostname.toLowerCase().split(".");
|
|
33
|
+
let i = 1;
|
|
34
34
|
while (i < hostParts.length && !cookieJar.get(cookieName)) {
|
|
35
35
|
i += 1;
|
|
36
36
|
topLevelCookieDomain = (0, _getLastArrayItems.default)(hostParts, i).join(".");
|
|
@@ -42,4 +42,5 @@ var _default = exports.default = function _default(window, cookieJar) {
|
|
|
42
42
|
domain: topLevelCookieDomain
|
|
43
43
|
});
|
|
44
44
|
return topLevelCookieDomain;
|
|
45
|
-
};
|
|
45
|
+
};
|
|
46
|
+
exports.default = _default;
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
exports.default = void 0;
|
|
4
4
|
var _memoize = require("./memoize.js");
|
|
5
5
|
var _browser = require("../constants/browser.js");
|
|
6
|
-
|
|
7
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
|
|
6
|
+
/*
|
|
10
7
|
Copyright 2019 Adobe. All rights reserved.
|
|
11
8
|
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
12
9
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
@@ -17,12 +14,13 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
17
14
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
18
15
|
governing permissions and limitations under the License.
|
|
19
16
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
|
|
18
|
+
const matchUserAgent = regexs => {
|
|
19
|
+
return userAgent => {
|
|
20
|
+
const keys = Object.keys(regexs);
|
|
21
|
+
for (let i = 0; i < keys.length; i += 1) {
|
|
22
|
+
const key = keys[i];
|
|
23
|
+
const regex = regexs[key];
|
|
26
24
|
if (regex.test(userAgent)) {
|
|
27
25
|
return key;
|
|
28
26
|
}
|
|
@@ -30,6 +28,41 @@ var matchUserAgent = function matchUserAgent(regexs) {
|
|
|
30
28
|
return _browser.UNKNOWN;
|
|
31
29
|
};
|
|
32
30
|
};
|
|
33
|
-
var _default = exports.default = (0, _memoize.default)(
|
|
34
|
-
return matchUserAgent(
|
|
31
|
+
var _default = exports.default = (0, _memoize.default)(window => {
|
|
32
|
+
return matchUserAgent({
|
|
33
|
+
/*
|
|
34
|
+
The MIT License (MIT)
|
|
35
|
+
Copyright (c) 2019 Damon Oehlman damon.oehlman@gmail.com
|
|
36
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
37
|
+
of this software and associated documentation files (the "Software"), to
|
|
38
|
+
deal in the Software without restriction, including without limitation the
|
|
39
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
40
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
41
|
+
furnished to do so, subject to the following conditions:
|
|
42
|
+
The above copyright notice and this permission notice shall be included in
|
|
43
|
+
all copies or substantial portions of the Software.
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
45
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
46
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
47
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
48
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
49
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
50
|
+
DEALINGS IN THE SOFTWARE.
|
|
51
|
+
*/
|
|
52
|
+
// Regular expression patterns were copied from
|
|
53
|
+
// https://github.com/DamonOehlman/detect-browser
|
|
54
|
+
// These are only the browsers that Alloy officially supports.
|
|
55
|
+
/* eslint-disable */
|
|
56
|
+
[_browser.EDGE]: /Edge\/([0-9\._]+)/,
|
|
57
|
+
// Edge Chromium can dynamically change its user agent string based
|
|
58
|
+
// on the host site:
|
|
59
|
+
// https://winaero.com/blog/microsoft-edge-chromium-dynamically-changes-its-user-agent/
|
|
60
|
+
[_browser.EDGE_CHROMIUM]: /Edg\/([0-9\.]+)/,
|
|
61
|
+
[_browser.CHROME]: /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/,
|
|
62
|
+
[_browser.FIREFOX]: /Firefox\/([0-9\.]+)(?:\s|$)/,
|
|
63
|
+
// This only covers version 11 of IE, but that's all we support.
|
|
64
|
+
[_browser.IE]: /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/,
|
|
65
|
+
[_browser.SAFARI]: /Version\/([0-9\._]+).*Safari/
|
|
66
|
+
/* eslint-enable */
|
|
67
|
+
})(window.navigator.userAgent);
|
|
35
68
|
});
|
|
@@ -18,6 +18,5 @@ governing permissions and limitations under the License.
|
|
|
18
18
|
* @param {number} itemCount
|
|
19
19
|
* @returns {Array}
|
|
20
20
|
*/
|
|
21
|
-
var _default =
|
|
22
|
-
|
|
23
|
-
};
|
|
21
|
+
var _default = (arr, itemCount) => arr.slice(-itemCount);
|
|
22
|
+
exports.default = _default;
|
|
@@ -14,6 +14,5 @@ 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 =
|
|
18
|
-
|
|
19
|
-
};
|
|
17
|
+
var _default = (orgId, key) => _cookieNamePrefix.default + "_" + (0, _sanitizeOrgIdForCookieName.default)(orgId) + "_" + key;
|
|
18
|
+
exports.default = _default;
|
package/libEs5/utils/groupBy.js
CHANGED
|
@@ -18,14 +18,15 @@ governing permissions and limitations under the License.
|
|
|
18
18
|
* @param {Function} keyGetter The key getter by which to group.
|
|
19
19
|
* @returns {Object}
|
|
20
20
|
*/
|
|
21
|
-
var _default =
|
|
22
|
-
|
|
23
|
-
arr.forEach(
|
|
24
|
-
|
|
21
|
+
var _default = (arr, keyGetter) => {
|
|
22
|
+
const result = {};
|
|
23
|
+
arr.forEach(item => {
|
|
24
|
+
const key = keyGetter(item);
|
|
25
25
|
if (!result[key]) {
|
|
26
26
|
result[key] = [];
|
|
27
27
|
}
|
|
28
28
|
result[key].push(item);
|
|
29
29
|
});
|
|
30
30
|
return result;
|
|
31
|
-
};
|
|
31
|
+
};
|
|
32
|
+
exports.default = _default;
|
package/libEs5/utils/index.js
CHANGED
|
@@ -2,356 +2,300 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "areThirdPartyCookiesSupportedByDefault", {
|
|
4
4
|
enumerable: true,
|
|
5
|
-
get: function
|
|
5
|
+
get: function () {
|
|
6
6
|
return _areThirdPartyCookiesSupportedByDefault.default;
|
|
7
7
|
}
|
|
8
8
|
});
|
|
9
|
-
Object.defineProperty(exports, "assign", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function get() {
|
|
12
|
-
return _assign.default;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
9
|
Object.defineProperty(exports, "assignConcatArrayValues", {
|
|
16
10
|
enumerable: true,
|
|
17
|
-
get: function
|
|
11
|
+
get: function () {
|
|
18
12
|
return _assignConcatArrayValues.default;
|
|
19
13
|
}
|
|
20
14
|
});
|
|
21
|
-
Object.defineProperty(exports, "assignIf", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function get() {
|
|
24
|
-
return _assignIf.default;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
15
|
Object.defineProperty(exports, "clone", {
|
|
28
16
|
enumerable: true,
|
|
29
|
-
get: function
|
|
17
|
+
get: function () {
|
|
30
18
|
return _clone.default;
|
|
31
19
|
}
|
|
32
20
|
});
|
|
33
21
|
Object.defineProperty(exports, "cookieJar", {
|
|
34
22
|
enumerable: true,
|
|
35
|
-
get: function
|
|
23
|
+
get: function () {
|
|
36
24
|
return _cookieJar.default;
|
|
37
25
|
}
|
|
38
26
|
});
|
|
39
27
|
Object.defineProperty(exports, "crc32", {
|
|
40
28
|
enumerable: true,
|
|
41
|
-
get: function
|
|
29
|
+
get: function () {
|
|
42
30
|
return _crc.default;
|
|
43
31
|
}
|
|
44
32
|
});
|
|
45
33
|
Object.defineProperty(exports, "createCallbackAggregator", {
|
|
46
34
|
enumerable: true,
|
|
47
|
-
get: function
|
|
35
|
+
get: function () {
|
|
48
36
|
return _createCallbackAggregator.default;
|
|
49
37
|
}
|
|
50
38
|
});
|
|
51
39
|
Object.defineProperty(exports, "createLoggingCookieJar", {
|
|
52
40
|
enumerable: true,
|
|
53
|
-
get: function
|
|
41
|
+
get: function () {
|
|
54
42
|
return _createLoggingCookieJar.default;
|
|
55
43
|
}
|
|
56
44
|
});
|
|
57
45
|
Object.defineProperty(exports, "createMerger", {
|
|
58
46
|
enumerable: true,
|
|
59
|
-
get: function
|
|
47
|
+
get: function () {
|
|
60
48
|
return _createMerger.default;
|
|
61
49
|
}
|
|
62
50
|
});
|
|
63
51
|
Object.defineProperty(exports, "createTaskQueue", {
|
|
64
52
|
enumerable: true,
|
|
65
|
-
get: function
|
|
53
|
+
get: function () {
|
|
66
54
|
return _createTaskQueue.default;
|
|
67
55
|
}
|
|
68
56
|
});
|
|
69
57
|
Object.defineProperty(exports, "deduplicateArray", {
|
|
70
58
|
enumerable: true,
|
|
71
|
-
get: function
|
|
59
|
+
get: function () {
|
|
72
60
|
return _deduplicateArray.default;
|
|
73
61
|
}
|
|
74
62
|
});
|
|
75
63
|
Object.defineProperty(exports, "deepAssign", {
|
|
76
64
|
enumerable: true,
|
|
77
|
-
get: function
|
|
65
|
+
get: function () {
|
|
78
66
|
return _deepAssign.default;
|
|
79
67
|
}
|
|
80
68
|
});
|
|
81
69
|
Object.defineProperty(exports, "defer", {
|
|
82
70
|
enumerable: true,
|
|
83
|
-
get: function
|
|
71
|
+
get: function () {
|
|
84
72
|
return _defer.default;
|
|
85
73
|
}
|
|
86
74
|
});
|
|
87
|
-
Object.defineProperty(exports, "endsWith", {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function get() {
|
|
90
|
-
return _endsWith.default;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
75
|
Object.defineProperty(exports, "filterObject", {
|
|
94
76
|
enumerable: true,
|
|
95
|
-
get: function
|
|
77
|
+
get: function () {
|
|
96
78
|
return _filterObject.default;
|
|
97
79
|
}
|
|
98
80
|
});
|
|
99
|
-
Object.defineProperty(exports, "find", {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function get() {
|
|
102
|
-
return _find.default;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
81
|
Object.defineProperty(exports, "fireImage", {
|
|
106
82
|
enumerable: true,
|
|
107
|
-
get: function
|
|
83
|
+
get: function () {
|
|
108
84
|
return _fireImage.default;
|
|
109
85
|
}
|
|
110
86
|
});
|
|
111
|
-
Object.defineProperty(exports, "flatMap", {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
get: function get() {
|
|
114
|
-
return _flatMap.default;
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
87
|
Object.defineProperty(exports, "getApexDomain", {
|
|
118
88
|
enumerable: true,
|
|
119
|
-
get: function
|
|
89
|
+
get: function () {
|
|
120
90
|
return _getApexDomain.default;
|
|
121
91
|
}
|
|
122
92
|
});
|
|
123
93
|
Object.defineProperty(exports, "getLastArrayItems", {
|
|
124
94
|
enumerable: true,
|
|
125
|
-
get: function
|
|
95
|
+
get: function () {
|
|
126
96
|
return _getLastArrayItems.default;
|
|
127
97
|
}
|
|
128
98
|
});
|
|
129
99
|
Object.defineProperty(exports, "getNamespacedCookieName", {
|
|
130
100
|
enumerable: true,
|
|
131
|
-
get: function
|
|
101
|
+
get: function () {
|
|
132
102
|
return _getNamespacedCookieName.default;
|
|
133
103
|
}
|
|
134
104
|
});
|
|
135
105
|
Object.defineProperty(exports, "groupBy", {
|
|
136
106
|
enumerable: true,
|
|
137
|
-
get: function
|
|
107
|
+
get: function () {
|
|
138
108
|
return _groupBy.default;
|
|
139
109
|
}
|
|
140
110
|
});
|
|
141
|
-
Object.defineProperty(exports, "includes", {
|
|
142
|
-
enumerable: true,
|
|
143
|
-
get: function get() {
|
|
144
|
-
return _includes.default;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
111
|
Object.defineProperty(exports, "injectDoesIdentityCookieExist", {
|
|
148
112
|
enumerable: true,
|
|
149
|
-
get: function
|
|
113
|
+
get: function () {
|
|
150
114
|
return _injectDoesIdentityCookieExist.default;
|
|
151
115
|
}
|
|
152
116
|
});
|
|
153
117
|
Object.defineProperty(exports, "injectFireReferrerHideableImage", {
|
|
154
118
|
enumerable: true,
|
|
155
|
-
get: function
|
|
119
|
+
get: function () {
|
|
156
120
|
return _injectFireReferrerHideableImage.default;
|
|
157
121
|
}
|
|
158
122
|
});
|
|
159
123
|
Object.defineProperty(exports, "injectStorage", {
|
|
160
124
|
enumerable: true,
|
|
161
|
-
get: function
|
|
125
|
+
get: function () {
|
|
162
126
|
return _injectStorage.default;
|
|
163
127
|
}
|
|
164
128
|
});
|
|
165
129
|
Object.defineProperty(exports, "intersection", {
|
|
166
130
|
enumerable: true,
|
|
167
|
-
get: function
|
|
131
|
+
get: function () {
|
|
168
132
|
return _intersection.default;
|
|
169
133
|
}
|
|
170
134
|
});
|
|
171
135
|
Object.defineProperty(exports, "isBoolean", {
|
|
172
136
|
enumerable: true,
|
|
173
|
-
get: function
|
|
137
|
+
get: function () {
|
|
174
138
|
return _isBoolean.default;
|
|
175
139
|
}
|
|
176
140
|
});
|
|
177
141
|
Object.defineProperty(exports, "isEmptyObject", {
|
|
178
142
|
enumerable: true,
|
|
179
|
-
get: function
|
|
143
|
+
get: function () {
|
|
180
144
|
return _isEmptyObject.default;
|
|
181
145
|
}
|
|
182
146
|
});
|
|
183
147
|
Object.defineProperty(exports, "isFunction", {
|
|
184
148
|
enumerable: true,
|
|
185
|
-
get: function
|
|
149
|
+
get: function () {
|
|
186
150
|
return _isFunction.default;
|
|
187
151
|
}
|
|
188
152
|
});
|
|
189
153
|
Object.defineProperty(exports, "isInteger", {
|
|
190
154
|
enumerable: true,
|
|
191
|
-
get: function
|
|
155
|
+
get: function () {
|
|
192
156
|
return _isInteger.default;
|
|
193
157
|
}
|
|
194
158
|
});
|
|
195
159
|
Object.defineProperty(exports, "isNamespacedCookieName", {
|
|
196
160
|
enumerable: true,
|
|
197
|
-
get: function
|
|
161
|
+
get: function () {
|
|
198
162
|
return _isNamespacedCookieName.default;
|
|
199
163
|
}
|
|
200
164
|
});
|
|
201
165
|
Object.defineProperty(exports, "isNil", {
|
|
202
166
|
enumerable: true,
|
|
203
|
-
get: function
|
|
167
|
+
get: function () {
|
|
204
168
|
return _isNil.default;
|
|
205
169
|
}
|
|
206
170
|
});
|
|
207
171
|
Object.defineProperty(exports, "isNonEmptyArray", {
|
|
208
172
|
enumerable: true,
|
|
209
|
-
get: function
|
|
173
|
+
get: function () {
|
|
210
174
|
return _isNonEmptyArray.default;
|
|
211
175
|
}
|
|
212
176
|
});
|
|
213
177
|
Object.defineProperty(exports, "isNonEmptyString", {
|
|
214
178
|
enumerable: true,
|
|
215
|
-
get: function
|
|
179
|
+
get: function () {
|
|
216
180
|
return _isNonEmptyString.default;
|
|
217
181
|
}
|
|
218
182
|
});
|
|
219
183
|
Object.defineProperty(exports, "isNumber", {
|
|
220
184
|
enumerable: true,
|
|
221
|
-
get: function
|
|
185
|
+
get: function () {
|
|
222
186
|
return _isNumber.default;
|
|
223
187
|
}
|
|
224
188
|
});
|
|
225
189
|
Object.defineProperty(exports, "isObject", {
|
|
226
190
|
enumerable: true,
|
|
227
|
-
get: function
|
|
191
|
+
get: function () {
|
|
228
192
|
return _isObject.default;
|
|
229
193
|
}
|
|
230
194
|
});
|
|
231
195
|
Object.defineProperty(exports, "isString", {
|
|
232
196
|
enumerable: true,
|
|
233
|
-
get: function
|
|
197
|
+
get: function () {
|
|
234
198
|
return _isString.default;
|
|
235
199
|
}
|
|
236
200
|
});
|
|
237
201
|
Object.defineProperty(exports, "memoize", {
|
|
238
202
|
enumerable: true,
|
|
239
|
-
get: function
|
|
203
|
+
get: function () {
|
|
240
204
|
return _memoize.default;
|
|
241
205
|
}
|
|
242
206
|
});
|
|
243
207
|
Object.defineProperty(exports, "noop", {
|
|
244
208
|
enumerable: true,
|
|
245
|
-
get: function
|
|
209
|
+
get: function () {
|
|
246
210
|
return _noop.default;
|
|
247
211
|
}
|
|
248
212
|
});
|
|
249
|
-
Object.defineProperty(exports, "padStart", {
|
|
250
|
-
enumerable: true,
|
|
251
|
-
get: function get() {
|
|
252
|
-
return _padStart.default;
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
213
|
Object.defineProperty(exports, "parseUrl", {
|
|
256
214
|
enumerable: true,
|
|
257
|
-
get: function
|
|
215
|
+
get: function () {
|
|
258
216
|
return _parseUrl.default;
|
|
259
217
|
}
|
|
260
218
|
});
|
|
261
219
|
Object.defineProperty(exports, "prepareConfigOverridesForEdge", {
|
|
262
220
|
enumerable: true,
|
|
263
|
-
get: function
|
|
221
|
+
get: function () {
|
|
264
222
|
return _prepareConfigOverridesForEdge.default;
|
|
265
223
|
}
|
|
266
224
|
});
|
|
267
225
|
Object.defineProperty(exports, "queryString", {
|
|
268
226
|
enumerable: true,
|
|
269
|
-
get: function
|
|
227
|
+
get: function () {
|
|
270
228
|
return _querystring.default;
|
|
271
229
|
}
|
|
272
230
|
});
|
|
273
231
|
Object.defineProperty(exports, "sanitizeOrgIdForCookieName", {
|
|
274
232
|
enumerable: true,
|
|
275
|
-
get: function
|
|
233
|
+
get: function () {
|
|
276
234
|
return _sanitizeOrgIdForCookieName.default;
|
|
277
235
|
}
|
|
278
236
|
});
|
|
279
237
|
Object.defineProperty(exports, "stackError", {
|
|
280
238
|
enumerable: true,
|
|
281
|
-
get: function
|
|
239
|
+
get: function () {
|
|
282
240
|
return _stackError.default;
|
|
283
241
|
}
|
|
284
242
|
});
|
|
285
|
-
Object.defineProperty(exports, "startsWith", {
|
|
286
|
-
enumerable: true,
|
|
287
|
-
get: function get() {
|
|
288
|
-
return _startsWith.default;
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
243
|
Object.defineProperty(exports, "stringToBoolean", {
|
|
292
244
|
enumerable: true,
|
|
293
|
-
get: function
|
|
245
|
+
get: function () {
|
|
294
246
|
return _stringToBoolean.default;
|
|
295
247
|
}
|
|
296
248
|
});
|
|
297
249
|
Object.defineProperty(exports, "toArray", {
|
|
298
250
|
enumerable: true,
|
|
299
|
-
get: function
|
|
251
|
+
get: function () {
|
|
300
252
|
return _toArray.default;
|
|
301
253
|
}
|
|
302
254
|
});
|
|
303
255
|
Object.defineProperty(exports, "toError", {
|
|
304
256
|
enumerable: true,
|
|
305
|
-
get: function
|
|
257
|
+
get: function () {
|
|
306
258
|
return _toError.default;
|
|
307
259
|
}
|
|
308
260
|
});
|
|
309
261
|
Object.defineProperty(exports, "toISOStringLocal", {
|
|
310
262
|
enumerable: true,
|
|
311
|
-
get: function
|
|
263
|
+
get: function () {
|
|
312
264
|
return _toISOStringLocal.default;
|
|
313
265
|
}
|
|
314
266
|
});
|
|
315
267
|
Object.defineProperty(exports, "toInteger", {
|
|
316
268
|
enumerable: true,
|
|
317
|
-
get: function
|
|
269
|
+
get: function () {
|
|
318
270
|
return _toInteger.default;
|
|
319
271
|
}
|
|
320
272
|
});
|
|
321
273
|
Object.defineProperty(exports, "updateErrorMessage", {
|
|
322
274
|
enumerable: true,
|
|
323
|
-
get: function
|
|
275
|
+
get: function () {
|
|
324
276
|
return _updateErrorMessage.default;
|
|
325
277
|
}
|
|
326
278
|
});
|
|
327
279
|
Object.defineProperty(exports, "uuid", {
|
|
328
280
|
enumerable: true,
|
|
329
|
-
get: function
|
|
281
|
+
get: function () {
|
|
330
282
|
return _uuid.default;
|
|
331
283
|
}
|
|
332
284
|
});
|
|
333
285
|
Object.defineProperty(exports, "validateConfigOverride", {
|
|
334
286
|
enumerable: true,
|
|
335
|
-
get: function
|
|
287
|
+
get: function () {
|
|
336
288
|
return _validateConfigOverride.default;
|
|
337
289
|
}
|
|
338
290
|
});
|
|
339
291
|
Object.defineProperty(exports, "validateIdentityMap", {
|
|
340
292
|
enumerable: true,
|
|
341
|
-
get: function
|
|
293
|
+
get: function () {
|
|
342
294
|
return _validateIdentityMap.default;
|
|
343
295
|
}
|
|
344
296
|
});
|
|
345
|
-
Object.defineProperty(exports, "values", {
|
|
346
|
-
enumerable: true,
|
|
347
|
-
get: function get() {
|
|
348
|
-
return _values.default;
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
297
|
var _areThirdPartyCookiesSupportedByDefault = require("./areThirdPartyCookiesSupportedByDefault.js");
|
|
352
|
-
var _assign = require("./assign.js");
|
|
353
298
|
var _assignConcatArrayValues = require("./assignConcatArrayValues.js");
|
|
354
|
-
var _assignIf = require("./assignIf.js");
|
|
355
299
|
var _clone = require("./clone.js");
|
|
356
300
|
var _cookieJar = require("./cookieJar.js");
|
|
357
301
|
var _createMerger = require("./createMerger.js");
|
|
@@ -362,17 +306,13 @@ var _crc = require("./crc32.js");
|
|
|
362
306
|
var _defer = require("./defer.js");
|
|
363
307
|
var _deduplicateArray = require("./deduplicateArray.js");
|
|
364
308
|
var _deepAssign = require("./deepAssign.js");
|
|
365
|
-
var _endsWith = require("./endsWith.js");
|
|
366
|
-
var _find = require("./find.js");
|
|
367
309
|
var _fireImage = require("./fireImage.js");
|
|
368
310
|
var _injectFireReferrerHideableImage = require("./injectFireReferrerHideableImage.js");
|
|
369
311
|
var _filterObject = require("./filterObject.js");
|
|
370
|
-
var _flatMap = require("./flatMap.js");
|
|
371
312
|
var _getApexDomain = require("./getApexDomain.js");
|
|
372
313
|
var _getLastArrayItems = require("./getLastArrayItems.js");
|
|
373
314
|
var _getNamespacedCookieName = require("./getNamespacedCookieName.js");
|
|
374
315
|
var _groupBy = require("./groupBy.js");
|
|
375
|
-
var _includes = require("./includes.js");
|
|
376
316
|
var _injectDoesIdentityCookieExist = require("./injectDoesIdentityCookieExist.js");
|
|
377
317
|
var _injectStorage = require("./injectStorage.js");
|
|
378
318
|
var _intersection = require("./intersection.js");
|
|
@@ -389,13 +329,11 @@ var _isObject = require("./isObject.js");
|
|
|
389
329
|
var _isString = require("./isString.js");
|
|
390
330
|
var _memoize = require("./memoize.js");
|
|
391
331
|
var _noop = require("./noop.js");
|
|
392
|
-
var _padStart = require("./padStart.js");
|
|
393
332
|
var _parseUrl = require("./parseUrl.js");
|
|
394
333
|
var _prepareConfigOverridesForEdge = require("./prepareConfigOverridesForEdge.js");
|
|
395
334
|
var _querystring = require("./querystring.js");
|
|
396
335
|
var _sanitizeOrgIdForCookieName = require("./sanitizeOrgIdForCookieName.js");
|
|
397
336
|
var _stackError = require("./stackError.js");
|
|
398
|
-
var _startsWith = require("./startsWith.js");
|
|
399
337
|
var _stringToBoolean = require("./stringToBoolean.js");
|
|
400
338
|
var _toArray = require("./toArray.js");
|
|
401
339
|
var _toError = require("./toError.js");
|
|
@@ -404,5 +342,4 @@ var _toISOStringLocal = require("./toISOStringLocal.js");
|
|
|
404
342
|
var _uuid = require("./uuid.js");
|
|
405
343
|
var _updateErrorMessage = require("./updateErrorMessage.js");
|
|
406
344
|
var _validateIdentityMap = require("./validateIdentityMap.js");
|
|
407
|
-
var _validateConfigOverride = require("./validateConfigOverride.js");
|
|
408
|
-
var _values = require("./values.js");
|
|
345
|
+
var _validateConfigOverride = require("./validateConfigOverride.js");
|
|
@@ -15,13 +15,13 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
|
|
|
15
15
|
OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
16
|
governing permissions and limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
var _default =
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
var _default = ({
|
|
19
|
+
orgId
|
|
20
|
+
}) => {
|
|
21
|
+
const identityCookieName = (0, _getNamespacedCookieName.default)(orgId, _cookieNameKey.IDENTITY);
|
|
21
22
|
/**
|
|
22
23
|
* Returns whether the identity cookie exists.
|
|
23
24
|
*/
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
25
|
+
return () => Boolean(_cookieJar.default.get(identityCookieName));
|
|
26
|
+
};
|
|
27
|
+
exports.default = _default;
|