diff --git a/package.json b/package.json index b98ad15..48b3024 100644 --- a/package.json +++ b/package.json @@ -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": "12.6.0", + "version": "12.7.0", "homepage": "https://github.com/transcend-io/airgap.js-types", "repository": { "type": "git", diff --git a/src/ui.ts b/src/ui.ts index 96d071f..12eb5f0 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -16,7 +16,7 @@ import { PrivacyRegimeEnum, DismissedViewState, } from './enums'; -import { AirgapAuth, AirgapAuthMap } from './core'; +import { AirgapAuth, AirgapAuthMap, BooleanString } from './core'; import { NonTcfVendor } from './iab'; /** Transcend Smart Quarantine API (window.transcend) */ @@ -241,8 +241,12 @@ export const OptionalConsentManagerConfig = t.partial({ * Potential values: 'closed' (default) and 'open' */ uiShadowRoot: t.string, - /** The override value for whether to focus on the first descendant of the root arg w/data-initialFocus attribute */ - autofocus: t.boolean, + /** + * The override value for whether to focus on the first descendant of the root arg w/data-initialFocus attribute + * Potential values: `'on'` (default) or `'off'` + * + */ + autofocus: BooleanString, }); /** type overload */