From a951756115ddf503aa3f9b3ffe7ed77837656814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bengt=20Wei=C3=9Fe?= Date: Thu, 12 Feb 2026 12:28:39 +0100 Subject: [PATCH] chore: update stencil -> hidden slot error --- package-lock.json | 8 ++++---- package.json | 2 +- src/components.d.ts | 41 +++++++++++++++++++++++++++++++++++------ 3 files changed, 40 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1cd02ec..a7f222c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "11.0.1", "license": "MIT", "devDependencies": { - "@stencil/core": "~4.40.1", + "@stencil/core": "~4.42.1", "@types/jest": "^29.5.14", "canvas": "^3.2.1", "gh-pages": "^6.3.0", @@ -1347,9 +1347,9 @@ } }, "node_modules/@stencil/core": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.40.1.tgz", - "integrity": "sha512-cTHBvYFLf4h61TVHLibZoJcomYAoC+TNW3oi1VHcZMpWQyp/h/pHG1XQeEpzuSscQc/SJJwOYb5IvQ8vVeeCNg==", + "version": "4.42.1", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.42.1.tgz", + "integrity": "sha512-KsjkaWnJmjMcsLjTK77FJV/8OK9qZ4f83/sXzYsjkUF21pqpNrDUkY6/+rnVFWnVfoYMpNdjWfGyJem4VlcMXw==", "dev": true, "license": "MIT", "bin": { diff --git a/package.json b/package.json index 4f8deac..2dccd9f 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "quill": "^2.0.0" }, "devDependencies": { - "@stencil/core": "~4.40.1", + "@stencil/core": "~4.42.1", "@types/jest": "^29.5.14", "canvas": "^3.2.1", "gh-pages": "^6.3.0", diff --git a/src/components.d.ts b/src/components.d.ts index 9e85994..8cbfa9f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -271,19 +271,48 @@ declare namespace LocalJSX { */ "theme"?: string; } + + interface QuillEditorAttributes { + "format": 'html' | 'text' | 'json'; + "bounds": HTMLElement | string; + "content": string; + "debug": string; + "modules": string; + "placeholder": string; + "readOnly": boolean; + "styles": string; + "theme": string; + "customToolbarPosition": 'top' | 'bottom'; + "defaultEmptyValue": string; + } + interface QuillViewAttributes { + "format": 'html' | 'text' | 'json'; + "content": string; + "debug": string; + "modules": string; + "strict": boolean; + "styles": string; + "theme": string; + "defaultEmptyValue": string; + } + interface QuillViewHtmlAttributes { + "content": string; + "theme": string; + } + interface IntrinsicElements { - "quill-editor": QuillEditor; - "quill-view": QuillView; - "quill-view-html": QuillViewHtml; + "quill-editor": Omit & { [K in keyof QuillEditor & keyof QuillEditorAttributes]?: QuillEditor[K] } & { [K in keyof QuillEditor & keyof QuillEditorAttributes as `attr:${K}`]?: QuillEditorAttributes[K] } & { [K in keyof QuillEditor & keyof QuillEditorAttributes as `prop:${K}`]?: QuillEditor[K] }; + "quill-view": Omit & { [K in keyof QuillView & keyof QuillViewAttributes]?: QuillView[K] } & { [K in keyof QuillView & keyof QuillViewAttributes as `attr:${K}`]?: QuillViewAttributes[K] } & { [K in keyof QuillView & keyof QuillViewAttributes as `prop:${K}`]?: QuillView[K] }; + "quill-view-html": Omit & { [K in keyof QuillViewHtml & keyof QuillViewHtmlAttributes]?: QuillViewHtml[K] } & { [K in keyof QuillViewHtml & keyof QuillViewHtmlAttributes as `attr:${K}`]?: QuillViewHtmlAttributes[K] } & { [K in keyof QuillViewHtml & keyof QuillViewHtmlAttributes as `prop:${K}`]?: QuillViewHtml[K] }; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { - "quill-editor": LocalJSX.QuillEditor & JSXBase.HTMLAttributes; - "quill-view": LocalJSX.QuillView & JSXBase.HTMLAttributes; - "quill-view-html": LocalJSX.QuillViewHtml & JSXBase.HTMLAttributes; + "quill-editor": LocalJSX.IntrinsicElements["quill-editor"] & JSXBase.HTMLAttributes; + "quill-view": LocalJSX.IntrinsicElements["quill-view"] & JSXBase.HTMLAttributes; + "quill-view-html": LocalJSX.IntrinsicElements["quill-view-html"] & JSXBase.HTMLAttributes; } } }