Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
41 changes: 35 additions & 6 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<QuillEditor, keyof QuillEditorAttributes> & { [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<QuillView, keyof QuillViewAttributes> & { [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<QuillViewHtml, keyof QuillViewHtmlAttributes> & { [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<HTMLQuillEditorElement>;
"quill-view": LocalJSX.QuillView & JSXBase.HTMLAttributes<HTMLQuillViewElement>;
"quill-view-html": LocalJSX.QuillViewHtml & JSXBase.HTMLAttributes<HTMLQuillViewHtmlElement>;
"quill-editor": LocalJSX.IntrinsicElements["quill-editor"] & JSXBase.HTMLAttributes<HTMLQuillEditorElement>;
"quill-view": LocalJSX.IntrinsicElements["quill-view"] & JSXBase.HTMLAttributes<HTMLQuillViewElement>;
"quill-view-html": LocalJSX.IntrinsicElements["quill-view-html"] & JSXBase.HTMLAttributes<HTMLQuillViewHtmlElement>;
}
}
}
Loading