From b9e01562a0e088b05325a29b81e2bd47c508499d Mon Sep 17 00:00:00 2001 From: Linh Chau <94718676+linh-transcend@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:53:00 -0500 Subject: [PATCH] add autofocus (#149) --- package.json | 2 +- src/ui.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f1cbff4..b98ad15 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.5.0", + "version": "12.6.0", "homepage": "https://github.com/transcend-io/airgap.js-types", "repository": { "type": "git", diff --git a/src/ui.ts b/src/ui.ts index a964a38..96d071f 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -241,6 +241,8 @@ 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, }); /** type overload */