Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherminh committed Dec 1, 2023
1 parent 0efc89d commit 79c5ce0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion 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.9.2",
"version": "10.9.3",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/iab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ export const NonTcfVendor = t.intersection([
/** The vendor name */
name: t.string,
/** The transcend purposes associated with each vendor */
purposes: t.array(t.string)
purposes: t.array(t.string),
}),
t.partial({
/** The vendor description */
description: t.string
})
description: t.string,
}),
]);

/**
Expand Down
38 changes: 19 additions & 19 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const TCFBundledDataConfig = t.partial({
/** These TCF purposes cannot be processed on the basis of legitimate interests */
restrictLegitimateInterestPurposes: t.array(t.number),
/** Vendors that Transcend Consent regulates because they haven't registered with IAB TCF */
nonTcfVendors: t.array(NonTcfVendor)
nonTcfVendors: t.array(NonTcfVendor),
});

/** Type override */
Expand All @@ -255,21 +255,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 79c5ce0

Please sign in to comment.