Skip to content

Commit

Permalink
Fix autofocus values (#150)
Browse files Browse the repository at this point in the history
* update autofocus values

* lint + updated to BooleanString

* fix import
  • Loading branch information
linh-transcend authored Dec 6, 2024
1 parent b9e0156 commit 8cd647c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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": "12.6.0",
"version": "12.7.0",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down
10 changes: 7 additions & 3 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 8cd647c

Please sign in to comment.