From f73aa149f06dd3014bfbc2ab7223f8363b859b41 Mon Sep 17 00:00:00 2001 From: Tanner Reits <47483144+tanner-reits@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:22:46 -0500 Subject: [PATCH] feat(declarations): add popover attributes to JSX declarations (#5064) * feat(declarations): add popover attributes * align types with lib.dom.ts types * add comment --- src/declarations/stencil-public-runtime.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/declarations/stencil-public-runtime.ts b/src/declarations/stencil-public-runtime.ts index 3d9378a71f0..259604397b9 100644 --- a/src/declarations/stencil-public-runtime.ts +++ b/src/declarations/stencil-public-runtime.ts @@ -899,6 +899,11 @@ export namespace JSXBase { name?: string; type?: string; value?: string | string[] | number; + + // popover + popoverTargetAction?: string; + popoverTargetElement?: Element | null; + popoverTarget?: string; } export interface CanvasHTMLAttributes extends HTMLAttributes { @@ -1074,6 +1079,11 @@ export namespace JSXBase { webkitdirectory?: boolean; webkitEntries?: any; width?: number | string; + + // popover + popoverTargetAction?: string; + popoverTargetElement?: Element | null; + popoverTarget?: string; } export interface KeygenHTMLAttributes extends HTMLAttributes { @@ -1365,6 +1375,11 @@ export namespace JSXBase { tabIndex?: number; tabindex?: number | string; title?: string; + // These types don't allow you to use popover as a boolean attribute + // so you can't write HTML like `
` and get the default value. + // Developer must explicitly specify one of the valid popover values or it will fallback + // to `manual` (following the HTML spec). + popover?: string | null; // Unknown inputMode?: string;