From 4ce8d0a68227e7c9350791ba0392b4bfb28d4bc7 Mon Sep 17 00:00:00 2001 From: Linh Chau <94718676+linh-transcend@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:17:30 +0000 Subject: [PATCH] update autofocus values --- package.json | 2 +- src/ui.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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..a7e1b7c 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -241,8 +241,11 @@ 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) and 'off' + * */ + autofocus: t.string, }); /** type overload */