From 6c401c82d20bde4ff2963c81568bc4ca62b6077b Mon Sep 17 00:00:00 2001 From: Shane Brunson Date: Wed, 17 Apr 2024 14:50:03 -0500 Subject: [PATCH] add shopper session; export data attribute constant (#148) --- src/params.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/params.js b/src/params.js index 5ac39587..c5a5e3e4 100644 --- a/src/params.js +++ b/src/params.js @@ -19,12 +19,17 @@ export const SDK_SETTINGS = { SDK_INTEGRATION_SOURCE: ("data-sdk-integration-source": "data-sdk-integration-source"), SDK_TOKEN: ("data-sdk-client-token": "data-sdk-client-token"), + SHOPPER_SESSION_ID: ("data-shopper-session-id": "data-shopper-session-id"), STAGE_HOST: ("data-stage-host": "data-stage-host"), USER_EXPERIENCE_FLOW: ("data-user-experience-flow": "data-user-experience-flow"), USER_ID_TOKEN: ("data-user-id-token": "data-user-id-token"), }; +// Why do we call these settings instead of what they are, data attributes? +// all other constants in this file are named after what they are +export const SDK_DATA_ATTRIBUTES = SDK_SETTINGS; + export const SDK_QUERY_KEYS = { COMPONENTS: ("components": "components"),