Skip to content

Commit

Permalink
add shopper session; export data attribute constant (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsbrunson authored Apr 17, 2024
1 parent 286ac94 commit 6c401c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/params.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),

Expand Down

0 comments on commit 6c401c8

Please sign in to comment.