Skip to content

Commit

Permalink
Add setting for GCM integration with TCF
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherminh committed May 1, 2024
1 parent 6970526 commit caf982b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/airgap.js-types",
"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "10.12.2",
"version": "10.12.3",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,4 +48,4 @@
"typescript": "^5.3.2"
},
"packageManager": "[email protected]"
}
}
41 changes: 23 additions & 18 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ export const TCFBundledDataConfig = t.partial({
languages: t.string,
/** Default locale to use for the UI internationalization */
locale: t.string,
/**
* Whether or not to enable integration between Google Consent Mode and TCF:
* https://developers.google.com/tag-platform/security/guides/implement-TCF-strings#cmp-api
*/
enableAdvertiserConsentMode: t.boolean
});

/** Type override */
Expand All @@ -255,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 caf982b

Please sign in to comment.