diff --git a/.changeset/rich-shirts-thank.md b/.changeset/rich-shirts-thank.md new file mode 100644 index 00000000000..51f3cd948e1 --- /dev/null +++ b/.changeset/rich-shirts-thank.md @@ -0,0 +1,5 @@ +--- +'@qwik.dev/core': patch +--- + +FIX: add HTMLElementAttrs and SVGProps types to exports diff --git a/packages/docs/src/routes/api/qwik/api.json b/packages/docs/src/routes/api/qwik/api.json index c18d9821854..d6aac412781 100644 --- a/packages/docs/src/routes/api/qwik/api.json +++ b/packages/docs/src/routes/api/qwik/api.json @@ -686,6 +686,20 @@ "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/jsx-runtime.ts", "mdFile": "core.h.md" }, + { + "name": "HTMLElementAttrs", + "id": "htmlelementattrs", + "hierarchy": [ + { + "name": "HTMLElementAttrs", + "id": "htmlelementattrs" + } + ], + "kind": "Interface", + "content": "```typescript\nexport interface HTMLElementAttrs extends HTMLAttributesBase, FilterBase \n```\n**Extends:** HTMLAttributesBase, FilterBase<HTMLElement>", + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts", + "mdFile": "core.htmlelementattrs.md" + }, { "name": "implicit$FirstArg", "id": "implicit_firstarg", @@ -1318,7 +1332,7 @@ } ], "kind": "TypeAlias", - "content": "The DOM props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikHTMLElements = {\n [tag in keyof HTMLElementTagNameMap]: Augmented & HTMLElementAttrs & QwikAttributes;\n};\n```\n**References:** [QwikAttributes](#qwikattributes)", + "content": "The DOM props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikHTMLElements = {\n [tag in keyof HTMLElementTagNameMap]: Augmented & HTMLElementAttrs & QwikAttributes;\n};\n```\n**References:** [HTMLElementAttrs](#htmlelementattrs), [QwikAttributes](#qwikattributes)", "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts", "mdFile": "core.qwikhtmlelements.md" }, @@ -1458,7 +1472,7 @@ } ], "kind": "TypeAlias", - "content": "The SVG props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikSVGElements = {\n [K in keyof Omit]: SVGProps;\n};\n```", + "content": "The SVG props without plain handlers, for use inside functions\n\n\n```typescript\nexport type QwikSVGElements = {\n [K in keyof Omit]: SVGProps;\n};\n```\n**References:** [SVGProps](#svgprops)", "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts", "mdFile": "core.qwiksvgelements.md" }, @@ -2008,6 +2022,20 @@ "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts", "mdFile": "core.svgattributes.md" }, + { + "name": "SVGProps", + "id": "svgprops", + "hierarchy": [ + { + "name": "SVGProps", + "id": "svgprops" + } + ], + "kind": "Interface", + "content": "```typescript\nexport interface SVGProps extends SVGAttributes, QwikAttributes \n```\n**Extends:** [SVGAttributes](#svgattributes), [QwikAttributes](#qwikattributes)<T>", + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts", + "mdFile": "core.svgprops.md" + }, { "name": "sync$", "id": "sync_", diff --git a/packages/docs/src/routes/api/qwik/index.md b/packages/docs/src/routes/api/qwik/index.md index 01b2978510b..561a028aef1 100644 --- a/packages/docs/src/routes/api/qwik/index.md +++ b/packages/docs/src/routes/api/qwik/index.md @@ -1344,6 +1344,16 @@ any[] [Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/jsx-runtime.ts) +## HTMLElementAttrs + +```typescript +export interface HTMLElementAttrs extends HTMLAttributesBase, FilterBase +``` + +**Extends:** HTMLAttributesBase, FilterBase<HTMLElement> + +[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts) + ## implicit$FirstArg Create a `____$(...)` convenience method from `___(...)`. @@ -2593,7 +2603,7 @@ export type QwikHTMLElements = { }; ``` -**References:** [QwikAttributes](#qwikattributes) +**References:** [HTMLElementAttrs](#htmlelementattrs), [QwikAttributes](#qwikattributes) [Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts) @@ -2791,6 +2801,8 @@ export type QwikSVGElements = { }; ``` +**References:** [SVGProps](#svgprops) + [Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts) ## QwikSymbolEvent @@ -8126,6 +8138,16 @@ _(Optional)_ [Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts) +## SVGProps + +```typescript +export interface SVGProps extends SVGAttributes, QwikAttributes +``` + +**Extends:** [SVGAttributes](#svgattributes), [QwikAttributes](#qwikattributes)<T> + +[Edit this section](https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/jsx/types/jsx-generated.ts) + ## sync$ Extract function into a synchronously loadable QRL. diff --git a/packages/qwik/public.d.ts b/packages/qwik/public.d.ts index 55008e659ce..f212731c4d9 100644 --- a/packages/qwik/public.d.ts +++ b/packages/qwik/public.d.ts @@ -78,4 +78,6 @@ export { version, withLocale, SVGAttributes, + HTMLElementAttrs, + SVGProps, } from './dist/core-internal'; diff --git a/packages/qwik/src/core/core.api.md b/packages/qwik/src/core/core.api.md index 653f60e4afd..4858bc0c53a 100644 --- a/packages/qwik/src/core/core.api.md +++ b/packages/qwik/src/core/core.api.md @@ -336,6 +336,13 @@ function h, PROPS extends {} = {} export { h as createElement } export { h } +// Warning: (ae-forgotten-export) The symbol "HTMLAttributesBase" needs to be exported by the entry point index.d.ts +// Warning: (ae-forgotten-export) The symbol "FilterBase" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface HTMLElementAttrs extends HTMLAttributesBase, FilterBase { +} + // @internal @deprecated (undocumented) export const _IMMUTABLE: unique symbol; @@ -625,7 +632,6 @@ export type QwikFocusEvent = NativeFocusEvent; // Warning: (ae-forgotten-export) The symbol "Augmented" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "SpecialAttrs" needs to be exported by the entry point index.d.ts -// Warning: (ae-forgotten-export) The symbol "HTMLElementAttrs" needs to be exported by the entry point index.d.ts // // @public export type QwikHTMLElements = { @@ -682,8 +688,6 @@ export type QwikPointerEvent = NativePointerEvent; // @public @deprecated (undocumented) export type QwikSubmitEvent = SubmitEvent; -// Warning: (ae-forgotten-export) The symbol "SVGProps" needs to be exported by the entry point index.d.ts -// // @public export type QwikSVGElements = { [K in keyof Omit]: SVGProps; @@ -1550,6 +1554,10 @@ export interface SVGAttributes extends AriaAttribut zoomAndPan?: string | undefined; } +// @public (undocumented) +export interface SVGProps extends SVGAttributes, QwikAttributes { +} + // @public export const sync$: (fn: T) => SyncQRL; diff --git a/packages/qwik/src/core/index.ts b/packages/qwik/src/core/index.ts index 5b8ddbe7bc1..51a9565ea71 100644 --- a/packages/qwik/src/core/index.ts +++ b/packages/qwik/src/core/index.ts @@ -85,6 +85,8 @@ export type { QwikHTMLElements, QwikSVGElements, SVGAttributes, + HTMLElementAttrs, + SVGProps, } from './shared/jsx/types/jsx-generated'; export { render } from './client/dom-render'; export { getDomContainer, _getQContainerElement } from './client/dom-container';