Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherminh committed May 1, 2024
1 parent 10f44e0 commit 2a46094
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"typescript": "^5.3.2"
},
"packageManager": "[email protected]"
}
}
2 changes: 1 addition & 1 deletion src/enums/browserLanguage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,4 @@ export const BrowserLanguage = makeEnum({

/** Overrides type */
export type BrowserLanguage =
typeof BrowserLanguage[keyof typeof BrowserLanguage];
(typeof BrowserLanguage)[keyof typeof BrowserLanguage];
2 changes: 1 addition & 1 deletion src/enums/consentExpiry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export const OnConsentExpiry = makeEnum({
});
/** Override type */
export type OnConsentExpiry =
typeof OnConsentExpiry[keyof typeof OnConsentExpiry];
(typeof OnConsentExpiry)[keyof typeof OnConsentExpiry];
2 changes: 1 addition & 1 deletion src/enums/experience.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export const RegionsOperator = makeEnum({
});
/** Override type */
export type RegionsOperator =
typeof RegionsOperator[keyof typeof RegionsOperator];
(typeof RegionsOperator)[keyof typeof RegionsOperator];
8 changes: 4 additions & 4 deletions src/enums/purpose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const SpecialTrackingPurpose = makeEnum({

/** Type override */
export type SpecialTrackingPurpose =
typeof SpecialTrackingPurpose[keyof typeof SpecialTrackingPurpose];
(typeof SpecialTrackingPurpose)[keyof typeof SpecialTrackingPurpose];

/**
* Possible values for the default consent that can be given to a tracking purpose
Expand All @@ -30,7 +30,7 @@ export const DefaultConsentValue = makeEnum({

/** Type override */
export type DefaultConsentValue =
typeof DefaultConsentValue[keyof typeof DefaultConsentValue];
(typeof DefaultConsentValue)[keyof typeof DefaultConsentValue];

/**
* Purposes that can be configured
Expand All @@ -48,7 +48,7 @@ export const ConfigurablePurpose = makeEnum({

/** Type override */
export type ConfigurablePurpose =
typeof ConfigurablePurpose[keyof typeof ConfigurablePurpose];
(typeof ConfigurablePurpose)[keyof typeof ConfigurablePurpose];

/**
* Purposes used by the purpose map
Expand All @@ -59,4 +59,4 @@ export const Purpose = makeEnum({
});

/** Type override */
export type Purpose = typeof Purpose[keyof typeof Purpose];
export type Purpose = (typeof Purpose)[keyof typeof Purpose];
12 changes: 6 additions & 6 deletions src/enums/viewState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const InitialTranscendViewState = makeEnum({
* Type override
*/
export type InitialTranscendViewState =
typeof InitialTranscendViewState[keyof typeof InitialTranscendViewState];
(typeof InitialTranscendViewState)[keyof typeof InitialTranscendViewState];

/**
* Consent Manager view states that can be used at launch
Expand All @@ -72,7 +72,7 @@ export const InitialViewState = makeEnum({
* Type override
*/
export type InitialViewState =
typeof InitialViewState[keyof typeof InitialViewState];
(typeof InitialViewState)[keyof typeof InitialViewState];

/**
* View states that are displayed in response to a user request (e.g. transcend.doNotSell() or )
Expand All @@ -88,7 +88,7 @@ export const ResponseViewState = makeEnum({
* Type override
*/
export type ResponseViewState =
typeof ResponseViewState[keyof typeof ResponseViewState];
(typeof ResponseViewState)[keyof typeof ResponseViewState];

/**
* Consent Manager view states that can be navigated to after initial view state
Expand All @@ -101,7 +101,7 @@ export const DeepViewState = makeEnum({
/**
* Type override
*/
export type DeepViewState = typeof DeepViewState[keyof typeof DeepViewState];
export type DeepViewState = (typeof DeepViewState)[keyof typeof DeepViewState];

/**
* Consent Manager view states after it's been dismissed
Expand All @@ -117,7 +117,7 @@ export const DismissedViewState = makeEnum({
* Type override
*/
export type DismissedViewState =
typeof DismissedViewState[keyof typeof DismissedViewState];
(typeof DismissedViewState)[keyof typeof DismissedViewState];

/**
* All possible view states of the Consent Manager
Expand All @@ -132,4 +132,4 @@ export const ViewState = makeEnum({
/**
* Type override
*/
export type ViewState = typeof ViewState[keyof typeof ViewState];
export type ViewState = (typeof ViewState)[keyof typeof ViewState];
38 changes: 19 additions & 19 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const TCFBundledDataConfig = t.partial({
* Whether or not to enable integration between Google Consent Mode and TCF.
* More docs here https://developers.google.com/tag-platform/security/guides/implement-TCF-strings#cmp-api
*/
enableAdvertiserConsentMode: t.boolean
enableAdvertiserConsentMode: t.boolean,
});

/** Type override */
Expand All @@ -260,21 +260,21 @@ export type TranscendView = Window & {
};

export const DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME: ExperienceToInitialViewState =
{
// EU
GDPR: InitialViewState.QuickOptions,
// Brazil
LGPD: InitialViewState.QuickOptions,
// Switzerland
nFADP: InitialViewState.QuickOptions,
// US: California
CPRA: InitialViewState.Hidden,
// US: Virginia
CDPA: InitialViewState.Hidden,
// US: Colorado
CPA: InitialViewState.Hidden,
// US: Nevada
NEVADA_SB220: InitialViewState.Hidden,
// Other
Unknown: InitialViewState.Hidden,
};
{
// EU
GDPR: InitialViewState.QuickOptions,
// Brazil
LGPD: InitialViewState.QuickOptions,
// Switzerland
nFADP: InitialViewState.QuickOptions,
// US: California
CPRA: InitialViewState.Hidden,
// US: Virginia
CDPA: InitialViewState.Hidden,
// US: Colorado
CPA: InitialViewState.Hidden,
// US: Nevada
NEVADA_SB220: InitialViewState.Hidden,
// Other
Unknown: InitialViewState.Hidden,
};

0 comments on commit 2a46094

Please sign in to comment.