nerdagent-chat-widget 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +257 -0
  2. package/dist/angular/index.d.ts +38 -0
  3. package/dist/angular/index.js +5 -0
  4. package/dist/angular/index.js.map +1 -0
  5. package/dist/angular/nerd-chat-widget.d.ts +11 -0
  6. package/dist/angular/nerd-chat-widget.js +289 -0
  7. package/dist/angular/nerd-chat-widget.js.map +1 -0
  8. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  9. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  10. package/dist/cjs/index-CURqjGGU.js +1471 -0
  11. package/dist/cjs/index-CURqjGGU.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +235 -0
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +14 -0
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/nerd-chat-widget.cjs.entry.js +9 -0
  17. package/dist/cjs/nerd-chat-widget.entry.cjs.js.map +1 -0
  18. package/dist/cjs/nerdagent-chat-widget.cjs.js +26 -0
  19. package/dist/cjs/nerdagent-chat-widget.cjs.js.map +1 -0
  20. package/dist/collection/collection-manifest.json +12 -0
  21. package/dist/collection/components/chat-widget/chat-widget.js +808 -0
  22. package/dist/collection/components/chat-widget/chat-widget.js.map +1 -0
  23. package/dist/collection/components/chat-widget/chat-widget.scss +420 -0
  24. package/dist/collection/index.js +2 -0
  25. package/dist/collection/index.js.map +1 -0
  26. package/dist/collection/script.js +323 -0
  27. package/dist/components/index.d.ts +33 -0
  28. package/dist/components/index.js +1514 -0
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/components/nerd-chat-widget.d.ts +11 -0
  31. package/dist/components/nerd-chat-widget.js +9 -0
  32. package/dist/components/nerd-chat-widget.js.map +1 -0
  33. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  34. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  35. package/dist/esm/index-Dlv_7oUh.js +1444 -0
  36. package/dist/esm/index-Dlv_7oUh.js.map +1 -0
  37. package/dist/esm/index.js +233 -0
  38. package/dist/esm/index.js.map +1 -0
  39. package/dist/esm/loader.js +12 -0
  40. package/dist/esm/loader.js.map +1 -0
  41. package/dist/esm/nerd-chat-widget.entry.js +3 -0
  42. package/dist/esm/nerd-chat-widget.entry.js.map +1 -0
  43. package/dist/esm/nerdagent-chat-widget.js +22 -0
  44. package/dist/esm/nerdagent-chat-widget.js.map +1 -0
  45. package/dist/index.cjs.js +1 -0
  46. package/dist/index.js +1 -0
  47. package/dist/nerdagent-chat-widget/index.esm.js +2 -0
  48. package/dist/nerdagent-chat-widget/index.esm.js.map +1 -0
  49. package/dist/nerdagent-chat-widget/loader.esm.js.map +1 -0
  50. package/dist/nerdagent-chat-widget/nerd-chat-widget.entry.esm.js.map +1 -0
  51. package/dist/nerdagent-chat-widget/nerdagent-chat-widget.esm.js +2 -0
  52. package/dist/nerdagent-chat-widget/nerdagent-chat-widget.esm.js.map +1 -0
  53. package/dist/nerdagent-chat-widget/p-395fe7e7.entry.js +2 -0
  54. package/dist/nerdagent-chat-widget/p-395fe7e7.entry.js.map +1 -0
  55. package/dist/nerdagent-chat-widget/p-DQuL1Twl.js +2 -0
  56. package/dist/nerdagent-chat-widget/p-DQuL1Twl.js.map +1 -0
  57. package/dist/nerdagent-chat-widget/p-Dlv_7oUh.js +3 -0
  58. package/dist/nerdagent-chat-widget/p-Dlv_7oUh.js.map +1 -0
  59. package/dist/react/index.d.ts +38 -0
  60. package/dist/react/index.js +5 -0
  61. package/dist/react/index.js.map +1 -0
  62. package/dist/react/nerd-chat-widget.d.ts +11 -0
  63. package/dist/react/nerd-chat-widget.js +289 -0
  64. package/dist/react/nerd-chat-widget.js.map +1 -0
  65. package/dist/types/components/chat-widget/chat-widget.d.ts +95 -0
  66. package/dist/types/components.d.ts +251 -0
  67. package/dist/types/index.d.ts +2 -0
  68. package/dist/types/stencil-public-runtime.d.ts +1730 -0
  69. package/dist/vue/index.d.ts +38 -0
  70. package/dist/vue/index.js +5 -0
  71. package/dist/vue/index.js.map +1 -0
  72. package/dist/vue/nerd-chat-widget.d.ts +11 -0
  73. package/dist/vue/nerd-chat-widget.js +289 -0
  74. package/dist/vue/nerd-chat-widget.js.map +1 -0
  75. package/loader/cdn.js +1 -0
  76. package/loader/index.cjs.js +1 -0
  77. package/loader/index.d.ts +24 -0
  78. package/loader/index.es2017.js +1 -0
  79. package/loader/index.js +2 -0
  80. package/package.json +76 -0
@@ -0,0 +1,1730 @@
1
+ declare type CustomMethodDecorator<T> = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
2
+ type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
3
+ type MixinFactory = <TBase extends abstract new (...args: any[]) => any>(base: TBase) => abstract new (...args: ConstructorParameters<TBase>) => any;
4
+ export interface ComponentDecorator {
5
+ (opts?: ComponentOptions): ClassDecorator;
6
+ }
7
+ export interface ComponentOptions {
8
+ /**
9
+ * When set to `true` this component will be form-associated. See
10
+ * https://stenciljs.com/docs/next/form-associated documentation on how to
11
+ * build form-associated Stencil components that integrate into forms like
12
+ * native browser elements such as `<input>` and `<textarea>`.
13
+ *
14
+ * The {@link AttachInternals} decorator allows for access to the
15
+ * `ElementInternals` object to modify the associated form.
16
+ */
17
+ formAssociated?: boolean;
18
+ /**
19
+ * Tag name of the web component. Ideally, the tag name must be globally unique,
20
+ * so it's recommended to choose an unique prefix for all your components within the same collection.
21
+ *
22
+ * In addition, tag name must contain a '-'
23
+ */
24
+ tag: string;
25
+ /**
26
+ * If `true`, the component will use scoped stylesheets. Similar to shadow-dom,
27
+ * but without native isolation. Defaults to `false`.
28
+ */
29
+ scoped?: boolean;
30
+ /**
31
+ * If `true`, the component will use native shadow-dom encapsulation, it will fallback to
32
+ * `scoped` if the browser does not support shadow-dom natively. Defaults to `false`.
33
+ * Additionally, `shadow` can also be given options when attaching the shadow root.
34
+ */
35
+ shadow?: boolean | ShadowRootOptions;
36
+ /**
37
+ * Relative URL to some external stylesheet file. It should be a `.css` file unless some
38
+ * external plugin is installed like `@stencil/sass`.
39
+ */
40
+ styleUrl?: string;
41
+ /**
42
+ * Similar as `styleUrl` but allows to specify different stylesheets for different modes.
43
+ */
44
+ styleUrls?: string[] | ModeStyles;
45
+ /**
46
+ * String that contains inlined CSS instead of using an external stylesheet.
47
+ * The performance characteristics of this feature are the same as using an external stylesheet.
48
+ *
49
+ * Notice, you can't use sass, or less, only `css` is allowed using `styles`, use `styleUrl` is you need more advanced features.
50
+ */
51
+ styles?: string | {
52
+ [modeName: string]: any;
53
+ };
54
+ /**
55
+ * Array of relative links to folders of assets required by the component.
56
+ */
57
+ assetsDirs?: string[];
58
+ }
59
+ export interface ShadowRootOptions {
60
+ /**
61
+ * When set to `true`, specifies behavior that mitigates custom element issues
62
+ * around focusability. When a non-focusable part of the shadow DOM is clicked, the first
63
+ * focusable part is given focus, and the shadow host is given any available `:focus` styling.
64
+ */
65
+ delegatesFocus?: boolean;
66
+ }
67
+ export interface ModeStyles {
68
+ [modeName: string]: string | string[];
69
+ }
70
+ export interface PropDecorator {
71
+ (opts?: PropOptions): PropertyDecorator;
72
+ }
73
+ export interface PropOptions {
74
+ /**
75
+ * The name of the associated DOM attribute.
76
+ * Stencil uses different heuristics to determine the default name of the attribute,
77
+ * but using this property, you can override the default behavior.
78
+ */
79
+ attribute?: string | null;
80
+ /**
81
+ * A Prop is _by default_ immutable from inside the component logic.
82
+ * Once a value is set by a user, the component cannot update it internally.
83
+ * However, it's possible to explicitly allow a Prop to be mutated from inside the component,
84
+ * by setting this `mutable` option to `true`.
85
+ */
86
+ mutable?: boolean;
87
+ /**
88
+ * In some cases it may be useful to keep a Prop in sync with an attribute.
89
+ * In this case you can set the `reflect` option to `true`, since it defaults to `false`:
90
+ */
91
+ reflect?: boolean;
92
+ }
93
+ export interface MethodDecorator {
94
+ (opts?: MethodOptions): CustomMethodDecorator<any>;
95
+ }
96
+ export interface MethodOptions {
97
+ }
98
+ export interface ElementDecorator {
99
+ (): PropertyDecorator;
100
+ }
101
+ export interface EventDecorator {
102
+ (opts?: EventOptions): PropertyDecorator;
103
+ }
104
+ export interface EventOptions {
105
+ /**
106
+ * A string custom event name to override the default.
107
+ */
108
+ eventName?: string;
109
+ /**
110
+ * A Boolean indicating whether the event bubbles up through the DOM or not.
111
+ */
112
+ bubbles?: boolean;
113
+ /**
114
+ * A Boolean indicating whether the event is cancelable.
115
+ */
116
+ cancelable?: boolean;
117
+ /**
118
+ * A Boolean value indicating whether or not the event can bubble across the boundary between the shadow DOM and the regular DOM.
119
+ */
120
+ composed?: boolean;
121
+ }
122
+ export interface AttachInternalsDecorator {
123
+ (): PropertyDecorator;
124
+ }
125
+ export interface ListenDecorator {
126
+ (eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
127
+ }
128
+ export interface ListenOptions {
129
+ /**
130
+ * Handlers can also be registered for an event other than the host itself.
131
+ * The `target` option can be used to change where the event listener is attached,
132
+ * this is useful for listening to application-wide events.
133
+ */
134
+ target?: ListenTargetOptions;
135
+ /**
136
+ * Event listener attached with `@Listen` does not "capture" by default,
137
+ * When a event listener is set to "capture", means the event will be dispatched
138
+ * during the "capture phase". Please see
139
+ * https://www.quirksmode.org/js/events_order.html for further information.
140
+ */
141
+ capture?: boolean;
142
+ /**
143
+ * By default, Stencil uses several heuristics to determine if
144
+ * it must attach a `passive` event listener or not.
145
+ *
146
+ * Using the `passive` option can be used to change the default behavior.
147
+ * Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
148
+ */
149
+ passive?: boolean;
150
+ }
151
+ export type ListenTargetOptions = 'body' | 'document' | 'window';
152
+ export interface StateDecorator {
153
+ (): PropertyDecorator;
154
+ }
155
+ export interface WatchDecorator {
156
+ (propName: string): CustomMethodDecorator<any>;
157
+ }
158
+ export interface UserBuildConditionals {
159
+ isDev: boolean;
160
+ isBrowser: boolean;
161
+ isServer: boolean;
162
+ isTesting: boolean;
163
+ }
164
+ /**
165
+ * The `Build` object provides many build conditionals that can be used to
166
+ * include or exclude code depending on the build.
167
+ */
168
+ export declare const Build: UserBuildConditionals;
169
+ /**
170
+ * The `Env` object provides access to the "env" object declared in the project's `stencil.config.ts`.
171
+ */
172
+ export declare const Env: {
173
+ [prop: string]: string | undefined;
174
+ };
175
+ /**
176
+ * The `@Component()` decorator is used to provide metadata about the component class.
177
+ * https://stenciljs.com/docs/component
178
+ */
179
+ export declare const Component: ComponentDecorator;
180
+ /**
181
+ * The `@Element()` decorator is a reference to the actual host element
182
+ * once it has rendered.
183
+ */
184
+ export declare const Element: ElementDecorator;
185
+ /**
186
+ * Components can emit data and events using the Event Emitter decorator.
187
+ * To dispatch Custom DOM events for other components to handle, use the
188
+ * `@Event()` decorator. The Event decorator also makes it easier for Stencil
189
+ * to automatically build types and documentation for the event data.
190
+ * https://stenciljs.com/docs/events
191
+ */
192
+ export declare const Event: EventDecorator;
193
+ /**
194
+ * If the `formAssociated` option is set in options passed to the
195
+ * `@Component()` decorator then this decorator may be used to get access to the
196
+ * `ElementInternals` instance associated with the component.
197
+ */
198
+ export declare const AttachInternals: AttachInternalsDecorator;
199
+ /**
200
+ * The `Listen()` decorator is for listening DOM events, including the ones
201
+ * dispatched from `@Events()`.
202
+ * https://stenciljs.com/docs/events#listen-decorator
203
+ */
204
+ export declare const Listen: ListenDecorator;
205
+ /**
206
+ * The `@Method()` decorator is used to expose methods on the public API.
207
+ * Class methods decorated with the @Method() decorator can be called directly
208
+ * from the element, meaning they are intended to be callable from the outside.
209
+ * https://stenciljs.com/docs/methods
210
+ */
211
+ export declare const Method: MethodDecorator;
212
+ /**
213
+ * Props are custom attribute/properties exposed publicly on the element
214
+ * that developers can provide values for. Children components do not need to
215
+ * know about or reference parent components, so Props can be used to pass
216
+ * data down from the parent to the child. Components need to explicitly
217
+ * declare the Props they expect to receive using the `@Prop()` decorator.
218
+ * Any value changes to a Prop will cause a re-render.
219
+ * https://stenciljs.com/docs/properties
220
+ */
221
+ export declare const Prop: PropDecorator;
222
+ /**
223
+ * The `@State()` decorator can be used to manage internal data for a component.
224
+ * This means that a user cannot modify this data from outside the component,
225
+ * but the component can modify it however it sees fit. Any value changes to a
226
+ * `@State()` property will cause the components render function to be called again.
227
+ * https://stenciljs.com/docs/state
228
+ */
229
+ export declare const State: StateDecorator;
230
+ /**
231
+ * When a property's value has changed, a method decorated with `@Watch()` will be
232
+ * called and passed the new value of the prop along with the old value. Watch is
233
+ * useful for validating props or handling side effects. Watch decorator does not
234
+ * fire when a component initially loads.
235
+ * https://stenciljs.com/docs/reactive-data#watch-decorator
236
+ */
237
+ export declare const Watch: WatchDecorator;
238
+ export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
239
+ export type ErrorHandler = (err: any, element?: HTMLElement) => void;
240
+ /**
241
+ * `setMode()` is used for libraries which provide multiple "modes" for styles.
242
+ */
243
+ export declare const setMode: (handler: ResolutionHandler) => void;
244
+ /**
245
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
246
+ * @param ref a reference to the node to get styles for
247
+ * @returns the current mode or undefined, if not found
248
+ */
249
+ export declare function getMode<T = string | undefined>(ref: any): T;
250
+ export declare function setPlatformHelpers(helpers: {
251
+ jmp?: (c: any) => any;
252
+ raf?: (c: any) => number;
253
+ ael?: (el: any, eventName: string, listener: any, options: any) => void;
254
+ rel?: (el: any, eventName: string, listener: any, options: any) => void;
255
+ ce?: (eventName: string, opts?: any) => any;
256
+ }): void;
257
+ /**
258
+ * Get the base path to where the assets can be found. Use `setAssetPath(path)`
259
+ * if the path needs to be customized.
260
+ * @param path the path to use in calculating the asset path. this value will be
261
+ * used in conjunction with the base asset path
262
+ * @returns the base path
263
+ */
264
+ export declare function getAssetPath(path: string): string;
265
+ /**
266
+ * Method to render a virtual DOM tree to a container element.
267
+ *
268
+ * @example
269
+ * ```tsx
270
+ * import { render } from '@stencil/core';
271
+ *
272
+ * const vnode = (
273
+ * <div>
274
+ * <h1>Hello, world!</h1>
275
+ * </div>
276
+ * );
277
+ * render(vnode, document.body);
278
+ * ```
279
+ *
280
+ * @param vnode - The virtual DOM tree to render
281
+ * @param container - The container element to render the virtual DOM tree to
282
+ */
283
+ export declare function render(vnode: VNode, container: Element): void;
284
+ /**
285
+ * Used to manually set the base path where assets can be found. For lazy-loaded
286
+ * builds the asset path is automatically set and assets copied to the correct
287
+ * build directory. However, for custom elements builds, the `setAssetPath(path)` could
288
+ * be used to customize the asset path depending on how the script file is consumed.
289
+ * If the script is used as "module", it's recommended to use "import.meta.url", such
290
+ * as `setAssetPath(import.meta.url)`. Other options include
291
+ * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
292
+ * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
293
+ * But do note that this configuration depends on how your script is bundled, or lack of
294
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
295
+ * will have to ensure the static assets are copied to its build directory.
296
+ * @param path the asset path to set
297
+ * @returns the set path
298
+ */
299
+ export declare function setAssetPath(path: string): string;
300
+ /**
301
+ * Used to specify a nonce value that corresponds with an application's
302
+ * [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
303
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
304
+ * Alternatively, the nonce value can be set on a `meta` tag in the DOM head
305
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
306
+ * @param nonce The value to be used for the nonce attribute.
307
+ */
308
+ export declare function setNonce(nonce: string): void;
309
+ /**
310
+ * Retrieve a Stencil element for a given reference
311
+ * @param ref the ref to get the Stencil element for
312
+ * @returns a reference to the element
313
+ */
314
+ export declare function getElement(ref: any): HTMLStencilElement;
315
+ /**
316
+ * Schedules a new render of the given instance or element even if no state changed.
317
+ *
318
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
319
+ *
320
+ * @param ref the node/element to force the re-render of
321
+ */
322
+ export declare function forceUpdate(ref: any): void;
323
+ /**
324
+ * getRenderingRef
325
+ * @returns the rendering ref
326
+ */
327
+ export declare function getRenderingRef(): any;
328
+ export interface HTMLStencilElement extends HTMLElement {
329
+ componentOnReady(): Promise<this>;
330
+ }
331
+ /**
332
+ * Schedules a DOM-write task. The provided callback will be executed
333
+ * in the best moment to perform DOM mutation without causing layout thrashing.
334
+ *
335
+ * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
336
+ *
337
+ * @param task the DOM-write to schedule
338
+ */
339
+ export declare function writeTask(task: RafCallback): void;
340
+ /**
341
+ * Schedules a DOM-read task. The provided callback will be executed
342
+ * in the best moment to perform DOM reads without causing layout thrashing.
343
+ *
344
+ * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
345
+ *
346
+ * @param task the DOM-read to schedule
347
+ */
348
+ export declare function readTask(task: RafCallback): void;
349
+ /**
350
+ * `setErrorHandler()` can be used to inject a custom global error handler.
351
+ * Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
352
+ */
353
+ export declare const setErrorHandler: (handler: ErrorHandler) => void;
354
+ /**
355
+ * Compose multiple mixin classes into a single constructor.
356
+ * The resulting class has the combined instance types of all mixed-in classes.
357
+ *
358
+ * Example:
359
+ * ```
360
+ * const AWrap = (Base) => {class A extends Base { propA = A }; return A;}
361
+ * const BWrap = (Base) => {class B extends Base { propB = B }; return B;}
362
+ * const CWrap = (Base) => {class C extends Base { propC = C }; return C;}
363
+ *
364
+ * class X extends Mixin(AWrap, BWrap, CWrap) {
365
+ * render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
366
+ * }
367
+ * ```
368
+ *
369
+ * @param mixinFactories mixin factory functions that return a class which extends from the provided class.
370
+ * @returns a class that that is composed from extending each of the provided classes in the order they were provided.
371
+ */
372
+ export declare function Mixin<TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<InstanceType<ReturnType<TMixins[number]>>>;
373
+ /**
374
+ * This file gets copied to all distributions of stencil component collections.
375
+ * - no imports
376
+ */
377
+ export interface ComponentWillLoad {
378
+ /**
379
+ * The component is about to load and it has not
380
+ * rendered yet.
381
+ *
382
+ * This is the best place to make any data updates
383
+ * before the first render.
384
+ *
385
+ * componentWillLoad will only be called once.
386
+ */
387
+ componentWillLoad(): Promise<void> | void;
388
+ }
389
+ export interface ComponentDidLoad {
390
+ /**
391
+ * The component has loaded and has already rendered.
392
+ *
393
+ * Updating data in this method will cause the
394
+ * component to re-render.
395
+ *
396
+ * componentDidLoad will only be called once.
397
+ */
398
+ componentDidLoad(): void;
399
+ }
400
+ export interface ComponentWillUpdate {
401
+ /**
402
+ * The component is about to update and re-render.
403
+ *
404
+ * Called multiple times throughout the life of
405
+ * the component as it updates.
406
+ *
407
+ * componentWillUpdate is not called on the first render.
408
+ */
409
+ componentWillUpdate(): Promise<void> | void;
410
+ }
411
+ export interface ComponentDidUpdate {
412
+ /**
413
+ * The component has just re-rendered.
414
+ *
415
+ * Called multiple times throughout the life of
416
+ * the component as it updates.
417
+ *
418
+ * componentWillUpdate is not called on the
419
+ * first render.
420
+ */
421
+ componentDidUpdate(): void;
422
+ }
423
+ export interface ComponentInterface {
424
+ connectedCallback?(): void;
425
+ disconnectedCallback?(): void;
426
+ componentWillRender?(): Promise<void> | void;
427
+ componentDidRender?(): void;
428
+ /**
429
+ * The component is about to load and it has not
430
+ * rendered yet.
431
+ *
432
+ * This is the best place to make any data updates
433
+ * before the first render.
434
+ *
435
+ * componentWillLoad will only be called once.
436
+ */
437
+ componentWillLoad?(): Promise<void> | void;
438
+ /**
439
+ * The component has loaded and has already rendered.
440
+ *
441
+ * Updating data in this method will cause the
442
+ * component to re-render.
443
+ *
444
+ * componentDidLoad will only be called once.
445
+ */
446
+ componentDidLoad?(): void;
447
+ /**
448
+ * A `@Prop` or `@State` property changed and a rerender is about to be requested.
449
+ *
450
+ * Called multiple times throughout the life of
451
+ * the component as its properties change.
452
+ *
453
+ * componentShouldUpdate is not called on the first render.
454
+ */
455
+ componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
456
+ /**
457
+ * The component is about to update and re-render.
458
+ *
459
+ * Called multiple times throughout the life of
460
+ * the component as it updates.
461
+ *
462
+ * componentWillUpdate is not called on the first render.
463
+ */
464
+ componentWillUpdate?(): Promise<void> | void;
465
+ /**
466
+ * The component has just re-rendered.
467
+ *
468
+ * Called multiple times throughout the life of
469
+ * the component as it updates.
470
+ *
471
+ * componentWillUpdate is not called on the
472
+ * first render.
473
+ */
474
+ componentDidUpdate?(): void;
475
+ render?(): any;
476
+ [memberName: string]: any;
477
+ }
478
+ export interface EventEmitter<T = any> {
479
+ emit: (data?: T) => CustomEvent<T>;
480
+ }
481
+ export interface RafCallback {
482
+ (timeStamp: number): void;
483
+ }
484
+ export interface QueueApi {
485
+ tick: (cb: RafCallback) => void;
486
+ read: (cb: RafCallback) => void;
487
+ write: (cb: RafCallback) => void;
488
+ clear?: () => void;
489
+ flush?: (cb?: () => void) => void;
490
+ }
491
+ /**
492
+ * Host
493
+ */
494
+ export interface HostAttributes {
495
+ class?: string | {
496
+ [className: string]: boolean;
497
+ };
498
+ style?: {
499
+ [key: string]: string | undefined;
500
+ };
501
+ ref?: (el: HTMLElement | null) => void;
502
+ [prop: string]: any;
503
+ }
504
+ /**
505
+ * Utilities for working with functional Stencil components. An object
506
+ * conforming to this interface is passed by the Stencil runtime as the third
507
+ * argument to a functional component, allowing component authors to work with
508
+ * features like children.
509
+ *
510
+ * The children of a functional component will be passed as the second
511
+ * argument, so a functional component which uses these utils to transform its
512
+ * children might look like the following:
513
+ *
514
+ * ```ts
515
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
516
+ * utils.map(children, child => ({
517
+ * ...child,
518
+ * vattrs: {
519
+ * ...child.vattrs,
520
+ * class: `${child.vattrs.class} add-class`
521
+ * }
522
+ * }))
523
+ * );
524
+ * ```
525
+ *
526
+ * For more see the Stencil documentation, here:
527
+ * https://stenciljs.com/docs/functional-components
528
+ */
529
+ export interface FunctionalUtilities {
530
+ /**
531
+ * Utility for reading the children of a functional component at runtime.
532
+ * Since the Stencil runtime uses a different interface for children it is
533
+ * not recommended to read the children directly, and is preferable to use
534
+ * this utility to, for instance, perform a side effect for each child.
535
+ */
536
+ forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
537
+ /**
538
+ * Utility for transforming the children of a functional component. Given an
539
+ * array of children and a callback this will return a list of the results of
540
+ * passing each child to the supplied callback.
541
+ */
542
+ map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
543
+ }
544
+ export interface FunctionalComponent<T = {}> {
545
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
546
+ }
547
+ /**
548
+ * A Child VDOM node
549
+ *
550
+ * This has most of the same properties as {@link VNode} but friendlier names
551
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
552
+ * order to provide a friendlier public interface for users of the
553
+ * {@link FunctionalUtilities}).
554
+ */
555
+ export interface ChildNode {
556
+ vtag?: string | number | Function;
557
+ vkey?: string | number;
558
+ vtext?: string;
559
+ vchildren?: VNode[];
560
+ vattrs?: any;
561
+ vname?: string;
562
+ }
563
+ /**
564
+ * Host is a functional component can be used at the root of the render function
565
+ * to set attributes and event listeners to the host element itself.
566
+ *
567
+ * For further information: https://stenciljs.com/docs/host-element
568
+ */
569
+ export declare const Host: FunctionalComponent<HostAttributes>;
570
+ /**
571
+ * Fragment
572
+ */
573
+ export declare const Fragment: FunctionalComponent<{}>;
574
+ /**
575
+ * The "h" namespace is used to import JSX types for elements and attributes.
576
+ * It is imported in order to avoid conflicting global JSX issues.
577
+ */
578
+ export declare namespace h {
579
+ function h(sel: any): VNode;
580
+ function h(sel: Node, data: VNodeData | null): VNode;
581
+ function h(sel: any, data: VNodeData | null): VNode;
582
+ function h(sel: any, text: string): VNode;
583
+ function h(sel: any, children: Array<VNode | undefined | null>): VNode;
584
+ function h(sel: any, data: VNodeData | null, text: string): VNode;
585
+ function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
586
+ function h(sel: any, data: VNodeData | null, children: VNode): VNode;
587
+ namespace JSX {
588
+ interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
589
+ [tagName: string]: any;
590
+ }
591
+ }
592
+ }
593
+ export declare function h(sel: any): VNode;
594
+ export declare function h(sel: Node, data: VNodeData | null): VNode;
595
+ export declare function h(sel: any, data: VNodeData | null): VNode;
596
+ export declare function h(sel: any, text: string): VNode;
597
+ export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
598
+ export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
599
+ export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
600
+ export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
601
+ /**
602
+ * A virtual DOM node
603
+ */
604
+ export interface VNode {
605
+ $flags$: number;
606
+ $tag$: string | number | Function;
607
+ $elm$: any;
608
+ $text$: string;
609
+ $children$: VNode[];
610
+ $attrs$?: any;
611
+ $name$?: string;
612
+ $key$?: string | number;
613
+ }
614
+ export interface VNodeData {
615
+ class?: {
616
+ [className: string]: boolean;
617
+ };
618
+ style?: any;
619
+ [attrName: string]: any;
620
+ }
621
+ declare namespace LocalJSX {
622
+ interface Element {
623
+ }
624
+ interface IntrinsicElements {
625
+ }
626
+ }
627
+ export { LocalJSX as JSX };
628
+ export declare namespace JSXBase {
629
+ interface IntrinsicElements {
630
+ slot: JSXBase.SlotAttributes;
631
+ a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
632
+ abbr: JSXBase.HTMLAttributes;
633
+ address: JSXBase.HTMLAttributes;
634
+ area: JSXBase.AreaHTMLAttributes<HTMLAreaElement>;
635
+ article: JSXBase.HTMLAttributes;
636
+ aside: JSXBase.HTMLAttributes;
637
+ audio: JSXBase.AudioHTMLAttributes<HTMLAudioElement>;
638
+ b: JSXBase.HTMLAttributes;
639
+ base: JSXBase.BaseHTMLAttributes<HTMLBaseElement>;
640
+ bdi: JSXBase.HTMLAttributes;
641
+ bdo: JSXBase.HTMLAttributes;
642
+ big: JSXBase.HTMLAttributes;
643
+ blockquote: JSXBase.BlockquoteHTMLAttributes<HTMLQuoteElement>;
644
+ body: JSXBase.HTMLAttributes<HTMLBodyElement>;
645
+ br: JSXBase.HTMLAttributes<HTMLBRElement>;
646
+ button: JSXBase.ButtonHTMLAttributes<HTMLButtonElement>;
647
+ canvas: JSXBase.CanvasHTMLAttributes<HTMLCanvasElement>;
648
+ caption: JSXBase.HTMLAttributes<HTMLTableCaptionElement>;
649
+ cite: JSXBase.HTMLAttributes;
650
+ code: JSXBase.HTMLAttributes;
651
+ col: JSXBase.ColHTMLAttributes<HTMLTableColElement>;
652
+ colgroup: JSXBase.ColgroupHTMLAttributes<HTMLTableColElement>;
653
+ data: JSXBase.HTMLAttributes<HTMLDataElement>;
654
+ datalist: JSXBase.HTMLAttributes<HTMLDataListElement>;
655
+ dd: JSXBase.HTMLAttributes;
656
+ del: JSXBase.DelHTMLAttributes<HTMLModElement>;
657
+ details: JSXBase.DetailsHTMLAttributes<HTMLElement>;
658
+ dfn: JSXBase.HTMLAttributes;
659
+ dialog: JSXBase.DialogHTMLAttributes<HTMLDialogElement>;
660
+ div: JSXBase.HTMLAttributes<HTMLDivElement>;
661
+ dl: JSXBase.HTMLAttributes<HTMLDListElement>;
662
+ dt: JSXBase.HTMLAttributes;
663
+ em: JSXBase.HTMLAttributes;
664
+ embed: JSXBase.EmbedHTMLAttributes<HTMLEmbedElement>;
665
+ fieldset: JSXBase.FieldsetHTMLAttributes<HTMLFieldSetElement>;
666
+ figcaption: JSXBase.HTMLAttributes;
667
+ figure: JSXBase.HTMLAttributes;
668
+ footer: JSXBase.HTMLAttributes;
669
+ form: JSXBase.FormHTMLAttributes<HTMLFormElement>;
670
+ h1: JSXBase.HTMLAttributes<HTMLHeadingElement>;
671
+ h2: JSXBase.HTMLAttributes<HTMLHeadingElement>;
672
+ h3: JSXBase.HTMLAttributes<HTMLHeadingElement>;
673
+ h4: JSXBase.HTMLAttributes<HTMLHeadingElement>;
674
+ h5: JSXBase.HTMLAttributes<HTMLHeadingElement>;
675
+ h6: JSXBase.HTMLAttributes<HTMLHeadingElement>;
676
+ head: JSXBase.HTMLAttributes<HTMLHeadElement>;
677
+ header: JSXBase.HTMLAttributes;
678
+ hgroup: JSXBase.HTMLAttributes;
679
+ hr: JSXBase.HTMLAttributes<HTMLHRElement>;
680
+ html: JSXBase.HTMLAttributes<HTMLHtmlElement>;
681
+ i: JSXBase.HTMLAttributes;
682
+ iframe: JSXBase.IframeHTMLAttributes<HTMLIFrameElement>;
683
+ img: JSXBase.ImgHTMLAttributes<HTMLImageElement>;
684
+ input: JSXBase.InputHTMLAttributes<HTMLInputElement>;
685
+ ins: JSXBase.InsHTMLAttributes<HTMLModElement>;
686
+ kbd: JSXBase.HTMLAttributes;
687
+ keygen: JSXBase.KeygenHTMLAttributes<HTMLElement>;
688
+ label: JSXBase.LabelHTMLAttributes<HTMLLabelElement>;
689
+ legend: JSXBase.HTMLAttributes<HTMLLegendElement>;
690
+ li: JSXBase.LiHTMLAttributes<HTMLLIElement>;
691
+ link: JSXBase.LinkHTMLAttributes<HTMLLinkElement>;
692
+ main: JSXBase.HTMLAttributes;
693
+ map: JSXBase.MapHTMLAttributes<HTMLMapElement>;
694
+ mark: JSXBase.HTMLAttributes;
695
+ menu: JSXBase.MenuHTMLAttributes<HTMLMenuElement>;
696
+ menuitem: JSXBase.HTMLAttributes;
697
+ meta: JSXBase.MetaHTMLAttributes<HTMLMetaElement>;
698
+ meter: JSXBase.MeterHTMLAttributes<HTMLMeterElement>;
699
+ nav: JSXBase.HTMLAttributes;
700
+ noscript: JSXBase.HTMLAttributes;
701
+ object: JSXBase.ObjectHTMLAttributes<HTMLObjectElement>;
702
+ ol: JSXBase.OlHTMLAttributes<HTMLOListElement>;
703
+ optgroup: JSXBase.OptgroupHTMLAttributes<HTMLOptGroupElement>;
704
+ option: JSXBase.OptionHTMLAttributes<HTMLOptionElement>;
705
+ output: JSXBase.OutputHTMLAttributes<HTMLOutputElement>;
706
+ p: JSXBase.HTMLAttributes<HTMLParagraphElement>;
707
+ param: JSXBase.ParamHTMLAttributes<HTMLParamElement>;
708
+ picture: JSXBase.HTMLAttributes<HTMLPictureElement>;
709
+ pre: JSXBase.HTMLAttributes<HTMLPreElement>;
710
+ progress: JSXBase.ProgressHTMLAttributes<HTMLProgressElement>;
711
+ q: JSXBase.QuoteHTMLAttributes<HTMLQuoteElement>;
712
+ rp: JSXBase.HTMLAttributes;
713
+ rt: JSXBase.HTMLAttributes;
714
+ ruby: JSXBase.HTMLAttributes;
715
+ s: JSXBase.HTMLAttributes;
716
+ samp: JSXBase.HTMLAttributes;
717
+ script: JSXBase.ScriptHTMLAttributes<HTMLScriptElement>;
718
+ section: JSXBase.HTMLAttributes;
719
+ select: JSXBase.SelectHTMLAttributes<HTMLSelectElement>;
720
+ small: JSXBase.HTMLAttributes;
721
+ source: JSXBase.SourceHTMLAttributes<HTMLSourceElement>;
722
+ span: JSXBase.HTMLAttributes<HTMLSpanElement>;
723
+ strong: JSXBase.HTMLAttributes;
724
+ style: JSXBase.StyleHTMLAttributes<HTMLStyleElement>;
725
+ sub: JSXBase.HTMLAttributes;
726
+ summary: JSXBase.HTMLAttributes;
727
+ sup: JSXBase.HTMLAttributes;
728
+ table: JSXBase.TableHTMLAttributes<HTMLTableElement>;
729
+ tbody: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
730
+ td: JSXBase.TdHTMLAttributes<HTMLTableDataCellElement>;
731
+ textarea: JSXBase.TextareaHTMLAttributes<HTMLTextAreaElement>;
732
+ tfoot: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
733
+ th: JSXBase.ThHTMLAttributes<HTMLTableHeaderCellElement>;
734
+ thead: JSXBase.HTMLAttributes<HTMLTableSectionElement>;
735
+ time: JSXBase.TimeHTMLAttributes<HTMLTimeElement>;
736
+ title: JSXBase.HTMLAttributes<HTMLTitleElement>;
737
+ tr: JSXBase.HTMLAttributes<HTMLTableRowElement>;
738
+ track: JSXBase.TrackHTMLAttributes<HTMLTrackElement>;
739
+ u: JSXBase.HTMLAttributes;
740
+ ul: JSXBase.HTMLAttributes<HTMLUListElement>;
741
+ var: JSXBase.HTMLAttributes;
742
+ video: JSXBase.VideoHTMLAttributes<HTMLVideoElement>;
743
+ wbr: JSXBase.HTMLAttributes;
744
+ animate: JSXBase.SVGAttributes;
745
+ circle: JSXBase.SVGAttributes;
746
+ clipPath: JSXBase.SVGAttributes;
747
+ defs: JSXBase.SVGAttributes;
748
+ desc: JSXBase.SVGAttributes;
749
+ ellipse: JSXBase.SVGAttributes;
750
+ feBlend: JSXBase.SVGAttributes;
751
+ feColorMatrix: JSXBase.SVGAttributes;
752
+ feComponentTransfer: JSXBase.SVGAttributes;
753
+ feComposite: JSXBase.SVGAttributes;
754
+ feConvolveMatrix: JSXBase.SVGAttributes;
755
+ feDiffuseLighting: JSXBase.SVGAttributes;
756
+ feDisplacementMap: JSXBase.SVGAttributes;
757
+ feDistantLight: JSXBase.SVGAttributes;
758
+ feDropShadow: JSXBase.SVGAttributes;
759
+ feFlood: JSXBase.SVGAttributes;
760
+ feFuncA: JSXBase.SVGAttributes;
761
+ feFuncB: JSXBase.SVGAttributes;
762
+ feFuncG: JSXBase.SVGAttributes;
763
+ feFuncR: JSXBase.SVGAttributes;
764
+ feGaussianBlur: JSXBase.SVGAttributes;
765
+ feImage: JSXBase.SVGAttributes;
766
+ feMerge: JSXBase.SVGAttributes;
767
+ feMergeNode: JSXBase.SVGAttributes;
768
+ feMorphology: JSXBase.SVGAttributes;
769
+ feOffset: JSXBase.SVGAttributes;
770
+ fePointLight: JSXBase.SVGAttributes;
771
+ feSpecularLighting: JSXBase.SVGAttributes;
772
+ feSpotLight: JSXBase.SVGAttributes;
773
+ feTile: JSXBase.SVGAttributes;
774
+ feTurbulence: JSXBase.SVGAttributes;
775
+ filter: JSXBase.SVGAttributes;
776
+ foreignObject: JSXBase.SVGAttributes;
777
+ g: JSXBase.SVGAttributes;
778
+ image: JSXBase.SVGAttributes;
779
+ line: JSXBase.SVGAttributes;
780
+ linearGradient: JSXBase.SVGAttributes;
781
+ marker: JSXBase.SVGAttributes;
782
+ mask: JSXBase.SVGAttributes;
783
+ metadata: JSXBase.SVGAttributes;
784
+ path: JSXBase.SVGAttributes;
785
+ pattern: JSXBase.SVGAttributes;
786
+ polygon: JSXBase.SVGAttributes;
787
+ polyline: JSXBase.SVGAttributes;
788
+ radialGradient: JSXBase.SVGAttributes;
789
+ rect: JSXBase.SVGAttributes;
790
+ stop: JSXBase.SVGAttributes;
791
+ svg: JSXBase.SVGAttributes;
792
+ switch: JSXBase.SVGAttributes;
793
+ symbol: JSXBase.SVGAttributes;
794
+ text: JSXBase.SVGAttributes;
795
+ textPath: JSXBase.SVGAttributes;
796
+ tspan: JSXBase.SVGAttributes;
797
+ use: JSXBase.SVGAttributes;
798
+ view: JSXBase.SVGAttributes;
799
+ }
800
+ interface SlotAttributes extends JSXAttributes {
801
+ name?: string;
802
+ slot?: string;
803
+ onSlotchange?: (event: Event) => void;
804
+ }
805
+ interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
806
+ download?: any;
807
+ href?: string;
808
+ hrefLang?: string;
809
+ hreflang?: string;
810
+ media?: string;
811
+ ping?: string;
812
+ rel?: string;
813
+ target?: string;
814
+ referrerPolicy?: ReferrerPolicy;
815
+ }
816
+ interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
817
+ }
818
+ interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
819
+ alt?: string;
820
+ coords?: string;
821
+ download?: any;
822
+ href?: string;
823
+ hrefLang?: string;
824
+ hreflang?: string;
825
+ media?: string;
826
+ rel?: string;
827
+ shape?: string;
828
+ target?: string;
829
+ }
830
+ interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
831
+ href?: string;
832
+ target?: string;
833
+ }
834
+ interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
835
+ cite?: string;
836
+ }
837
+ interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
838
+ disabled?: boolean;
839
+ form?: string;
840
+ formAction?: string;
841
+ formaction?: string;
842
+ formEncType?: string;
843
+ formenctype?: string;
844
+ formMethod?: string;
845
+ formmethod?: string;
846
+ formNoValidate?: boolean;
847
+ formnovalidate?: boolean;
848
+ formTarget?: string;
849
+ formtarget?: string;
850
+ name?: string;
851
+ type?: string;
852
+ value?: string | string[] | number;
853
+ popoverTargetAction?: string;
854
+ popoverTargetElement?: Element | null;
855
+ popoverTarget?: string;
856
+ }
857
+ interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
858
+ height?: number | string;
859
+ width?: number | string;
860
+ }
861
+ interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
862
+ span?: number;
863
+ }
864
+ interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
865
+ span?: number;
866
+ }
867
+ interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
868
+ open?: boolean;
869
+ name?: string;
870
+ onToggle?: (event: ToggleEvent) => void;
871
+ }
872
+ interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
873
+ cite?: string;
874
+ dateTime?: string;
875
+ datetime?: string;
876
+ }
877
+ interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
878
+ onCancel?: (event: Event) => void;
879
+ onClose?: (event: Event) => void;
880
+ open?: boolean;
881
+ returnValue?: string;
882
+ }
883
+ interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
884
+ height?: number | string;
885
+ src?: string;
886
+ type?: string;
887
+ width?: number | string;
888
+ }
889
+ interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
890
+ disabled?: boolean;
891
+ form?: string;
892
+ name?: string;
893
+ }
894
+ interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
895
+ acceptCharset?: string;
896
+ acceptcharset?: string;
897
+ action?: string;
898
+ autoComplete?: string;
899
+ autocomplete?: string;
900
+ encType?: string;
901
+ enctype?: string;
902
+ method?: string;
903
+ name?: string;
904
+ noValidate?: boolean;
905
+ novalidate?: boolean | string;
906
+ target?: string;
907
+ }
908
+ interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
909
+ manifest?: string;
910
+ }
911
+ interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
912
+ allow?: string;
913
+ allowFullScreen?: boolean;
914
+ allowfullScreen?: string | boolean;
915
+ allowTransparency?: boolean;
916
+ allowtransparency?: string | boolean;
917
+ frameBorder?: number | string;
918
+ frameborder?: number | string;
919
+ importance?: 'low' | 'auto' | 'high';
920
+ height?: number | string;
921
+ loading?: 'lazy' | 'auto' | 'eager';
922
+ marginHeight?: number;
923
+ marginheight?: string | number;
924
+ marginWidth?: number;
925
+ marginwidth?: string | number;
926
+ name?: string;
927
+ referrerPolicy?: ReferrerPolicy;
928
+ sandbox?: string;
929
+ scrolling?: string;
930
+ seamless?: boolean;
931
+ src?: string;
932
+ srcDoc?: string;
933
+ srcdoc?: string;
934
+ width?: number | string;
935
+ }
936
+ interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
937
+ alt?: string;
938
+ crossOrigin?: string;
939
+ crossorigin?: string;
940
+ decoding?: 'async' | 'auto' | 'sync';
941
+ importance?: 'low' | 'auto' | 'high';
942
+ height?: number | string;
943
+ loading?: 'lazy' | 'auto' | 'eager';
944
+ sizes?: string;
945
+ src?: string;
946
+ srcSet?: string;
947
+ srcset?: string;
948
+ useMap?: string;
949
+ usemap?: string;
950
+ width?: number | string;
951
+ }
952
+ interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
953
+ cite?: string;
954
+ dateTime?: string;
955
+ datetime?: string;
956
+ }
957
+ interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
958
+ accept?: string;
959
+ allowdirs?: boolean;
960
+ alt?: string;
961
+ autoCapitalize?: string;
962
+ autocapitalize?: string;
963
+ autoComplete?: string;
964
+ autocomplete?: string;
965
+ capture?: string;
966
+ checked?: boolean;
967
+ crossOrigin?: string;
968
+ crossorigin?: string;
969
+ defaultChecked?: boolean;
970
+ defaultValue?: string;
971
+ dirName?: string;
972
+ disabled?: boolean;
973
+ files?: any;
974
+ form?: string;
975
+ formAction?: string;
976
+ formaction?: string;
977
+ formEncType?: string;
978
+ formenctype?: string;
979
+ formMethod?: string;
980
+ formmethod?: string;
981
+ formNoValidate?: boolean;
982
+ formnovalidate?: boolean;
983
+ formTarget?: string;
984
+ formtarget?: string;
985
+ height?: number | string;
986
+ indeterminate?: boolean;
987
+ list?: string;
988
+ max?: number | string;
989
+ maxLength?: number;
990
+ maxlength?: number | string;
991
+ min?: number | string;
992
+ minLength?: number;
993
+ minlength?: number | string;
994
+ multiple?: boolean;
995
+ name?: string;
996
+ onSelect?: (event: Event) => void;
997
+ onselect?: (event: Event) => void;
998
+ pattern?: string;
999
+ placeholder?: string;
1000
+ readOnly?: boolean;
1001
+ readonly?: boolean | string;
1002
+ required?: boolean;
1003
+ selectionStart?: number | string;
1004
+ selectionEnd?: number | string;
1005
+ selectionDirection?: string;
1006
+ size?: number;
1007
+ src?: string;
1008
+ step?: number | string;
1009
+ type?: string;
1010
+ value?: string | string[] | number;
1011
+ valueAsDate?: any;
1012
+ valueAsNumber?: any;
1013
+ webkitdirectory?: boolean;
1014
+ webkitEntries?: any;
1015
+ width?: number | string;
1016
+ popoverTargetAction?: string;
1017
+ popoverTargetElement?: Element | null;
1018
+ popoverTarget?: string;
1019
+ }
1020
+ interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
1021
+ challenge?: string;
1022
+ disabled?: boolean;
1023
+ form?: string;
1024
+ keyType?: string;
1025
+ keytype?: string;
1026
+ keyParams?: string;
1027
+ keyparams?: string;
1028
+ name?: string;
1029
+ }
1030
+ interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
1031
+ form?: string;
1032
+ htmlFor?: string;
1033
+ }
1034
+ interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
1035
+ value?: string | string[] | number;
1036
+ }
1037
+ interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
1038
+ as?: string;
1039
+ href?: string;
1040
+ hrefLang?: string;
1041
+ hreflang?: string;
1042
+ importance?: 'low' | 'auto' | 'high';
1043
+ integrity?: string;
1044
+ media?: string;
1045
+ rel?: string;
1046
+ sizes?: string;
1047
+ type?: string;
1048
+ }
1049
+ interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
1050
+ name?: string;
1051
+ }
1052
+ interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
1053
+ type?: string;
1054
+ }
1055
+ interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
1056
+ autoPlay?: boolean;
1057
+ autoplay?: boolean | string;
1058
+ controls?: boolean;
1059
+ controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1060
+ controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1061
+ crossOrigin?: string;
1062
+ crossorigin?: string;
1063
+ loop?: boolean;
1064
+ mediaGroup?: string;
1065
+ mediagroup?: string;
1066
+ muted?: boolean;
1067
+ preload?: string;
1068
+ src?: string;
1069
+ onAbort?: (event: Event) => void;
1070
+ onCanPlay?: (event: Event) => void;
1071
+ onCanPlayThrough?: (event: Event) => void;
1072
+ onDurationChange?: (event: Event) => void;
1073
+ onEmptied?: (event: Event) => void;
1074
+ onEnded?: (event: Event) => void;
1075
+ onError?: (event: Event) => void;
1076
+ onInterruptBegin?: (event: Event) => void;
1077
+ onInterruptEnd?: (event: Event) => void;
1078
+ onLoadedData?: (event: Event) => void;
1079
+ onLoadedMetaData?: (event: Event) => void;
1080
+ onLoadStart?: (event: Event) => void;
1081
+ onMozAudioAvailable?: (event: Event) => void;
1082
+ onPause?: (event: Event) => void;
1083
+ onPlay?: (event: Event) => void;
1084
+ onPlaying?: (event: Event) => void;
1085
+ onProgress?: (event: Event) => void;
1086
+ onRateChange?: (event: Event) => void;
1087
+ onSeeked?: (event: Event) => void;
1088
+ onSeeking?: (event: Event) => void;
1089
+ onStalled?: (event: Event) => void;
1090
+ onSuspend?: (event: Event) => void;
1091
+ onTimeUpdate?: (event: Event) => void;
1092
+ onVolumeChange?: (event: Event) => void;
1093
+ onWaiting?: (event: Event) => void;
1094
+ }
1095
+ interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
1096
+ charSet?: string;
1097
+ charset?: string;
1098
+ content?: string;
1099
+ httpEquiv?: string;
1100
+ httpequiv?: string;
1101
+ name?: string;
1102
+ }
1103
+ interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
1104
+ form?: string;
1105
+ high?: number;
1106
+ low?: number;
1107
+ max?: number | string;
1108
+ min?: number | string;
1109
+ optimum?: number;
1110
+ value?: string | string[] | number;
1111
+ }
1112
+ interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
1113
+ cite?: string;
1114
+ }
1115
+ interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
1116
+ classID?: string;
1117
+ classid?: string;
1118
+ data?: string;
1119
+ form?: string;
1120
+ height?: number | string;
1121
+ name?: string;
1122
+ type?: string;
1123
+ useMap?: string;
1124
+ usemap?: string;
1125
+ width?: number | string;
1126
+ wmode?: string;
1127
+ }
1128
+ interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
1129
+ reversed?: boolean;
1130
+ start?: number;
1131
+ }
1132
+ interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
1133
+ disabled?: boolean;
1134
+ label?: string;
1135
+ }
1136
+ interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
1137
+ disabled?: boolean;
1138
+ label?: string;
1139
+ selected?: boolean;
1140
+ value?: string | string[] | number;
1141
+ }
1142
+ interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
1143
+ form?: string;
1144
+ htmlFor?: string;
1145
+ name?: string;
1146
+ }
1147
+ interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
1148
+ name?: string;
1149
+ value?: string | string[] | number;
1150
+ }
1151
+ interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
1152
+ max?: number | string;
1153
+ value?: string | string[] | number;
1154
+ }
1155
+ interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
1156
+ async?: boolean;
1157
+ charSet?: string;
1158
+ charset?: string;
1159
+ crossOrigin?: string;
1160
+ crossorigin?: string;
1161
+ defer?: boolean;
1162
+ importance?: 'low' | 'auto' | 'high';
1163
+ integrity?: string;
1164
+ nonce?: string;
1165
+ src?: string;
1166
+ type?: string;
1167
+ }
1168
+ interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1169
+ disabled?: boolean;
1170
+ form?: string;
1171
+ multiple?: boolean;
1172
+ name?: string;
1173
+ required?: boolean;
1174
+ size?: number;
1175
+ autoComplete?: string;
1176
+ autocomplete?: string;
1177
+ }
1178
+ interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
1179
+ height?: number;
1180
+ media?: string;
1181
+ sizes?: string;
1182
+ src?: string;
1183
+ srcSet?: string;
1184
+ type?: string;
1185
+ width?: number;
1186
+ }
1187
+ interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
1188
+ media?: string;
1189
+ nonce?: string;
1190
+ scoped?: boolean;
1191
+ type?: string;
1192
+ }
1193
+ interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
1194
+ cellPadding?: number | string;
1195
+ cellpadding?: number | string;
1196
+ cellSpacing?: number | string;
1197
+ cellspacing?: number | string;
1198
+ summary?: string;
1199
+ }
1200
+ interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1201
+ autoComplete?: string;
1202
+ autocomplete?: string;
1203
+ cols?: number;
1204
+ disabled?: boolean;
1205
+ form?: string;
1206
+ maxLength?: number;
1207
+ maxlength?: number | string;
1208
+ minLength?: number;
1209
+ minlength?: number | string;
1210
+ name?: string;
1211
+ onSelect?: (event: Event) => void;
1212
+ onselect?: (event: Event) => void;
1213
+ placeholder?: string;
1214
+ readOnly?: boolean;
1215
+ readonly?: boolean | string;
1216
+ required?: boolean;
1217
+ rows?: number;
1218
+ value?: string | string[] | number;
1219
+ wrap?: string;
1220
+ }
1221
+ interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
1222
+ colSpan?: number;
1223
+ headers?: string;
1224
+ rowSpan?: number;
1225
+ }
1226
+ interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
1227
+ abbr?: string;
1228
+ colSpan?: number;
1229
+ headers?: string;
1230
+ rowSpan?: number;
1231
+ rowspan?: number | string;
1232
+ scope?: string;
1233
+ }
1234
+ interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
1235
+ dateTime?: string;
1236
+ }
1237
+ interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
1238
+ default?: boolean;
1239
+ kind?: string;
1240
+ label?: string;
1241
+ src?: string;
1242
+ srcLang?: string;
1243
+ srclang?: string;
1244
+ }
1245
+ interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
1246
+ height?: number | string;
1247
+ playsInline?: boolean;
1248
+ playsinline?: boolean | string;
1249
+ poster?: string;
1250
+ width?: number | string;
1251
+ }
1252
+ interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1253
+ innerHTML?: string;
1254
+ accessKey?: string;
1255
+ autoFocus?: boolean;
1256
+ autofocus?: boolean | string;
1257
+ class?: string | {
1258
+ [className: string]: boolean;
1259
+ };
1260
+ contentEditable?: boolean | string;
1261
+ contenteditable?: boolean | string;
1262
+ contextMenu?: string;
1263
+ contextmenu?: string;
1264
+ dir?: string;
1265
+ draggable?: boolean;
1266
+ hidden?: boolean;
1267
+ id?: string;
1268
+ inert?: boolean;
1269
+ lang?: string;
1270
+ spellcheck?: 'true' | 'false' | any;
1271
+ style?: {
1272
+ [key: string]: string | undefined;
1273
+ };
1274
+ tabIndex?: number;
1275
+ tabindex?: number | string;
1276
+ title?: string;
1277
+ popover?: string | null;
1278
+ inputMode?: string;
1279
+ inputmode?: string;
1280
+ enterKeyHint?: string;
1281
+ enterkeyhint?: string;
1282
+ is?: string;
1283
+ radioGroup?: string;
1284
+ radiogroup?: string;
1285
+ role?: string;
1286
+ about?: string;
1287
+ datatype?: string;
1288
+ inlist?: any;
1289
+ prefix?: string;
1290
+ property?: string;
1291
+ resource?: string;
1292
+ typeof?: string;
1293
+ vocab?: string;
1294
+ autoCapitalize?: string;
1295
+ autocapitalize?: string;
1296
+ autoCorrect?: string;
1297
+ autocorrect?: string;
1298
+ autoSave?: string;
1299
+ autosave?: string;
1300
+ color?: string;
1301
+ itemProp?: string;
1302
+ itemprop?: string;
1303
+ itemScope?: boolean;
1304
+ itemscope?: boolean;
1305
+ itemType?: string;
1306
+ itemtype?: string;
1307
+ itemID?: string;
1308
+ itemid?: string;
1309
+ itemRef?: string;
1310
+ itemref?: string;
1311
+ results?: number;
1312
+ security?: string;
1313
+ unselectable?: boolean;
1314
+ }
1315
+ interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1316
+ class?: string | {
1317
+ [className: string]: boolean;
1318
+ };
1319
+ color?: string;
1320
+ height?: number | string;
1321
+ id?: string;
1322
+ lang?: string;
1323
+ max?: number | string;
1324
+ media?: string;
1325
+ method?: string;
1326
+ min?: number | string;
1327
+ name?: string;
1328
+ style?: {
1329
+ [key: string]: string | undefined;
1330
+ };
1331
+ target?: string;
1332
+ type?: string;
1333
+ width?: number | string;
1334
+ role?: string;
1335
+ tabindex?: number;
1336
+ 'accent-height'?: number | string;
1337
+ accumulate?: 'none' | 'sum';
1338
+ additive?: 'replace' | 'sum';
1339
+ 'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
1340
+ allowReorder?: 'no' | 'yes';
1341
+ alphabetic?: number | string;
1342
+ amplitude?: number | string;
1343
+ 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated';
1344
+ ascent?: number | string;
1345
+ attributeName?: string;
1346
+ attributeType?: string;
1347
+ autoReverse?: number | string;
1348
+ azimuth?: number | string;
1349
+ baseFrequency?: number | string;
1350
+ 'baseline-shift'?: number | string;
1351
+ baseProfile?: number | string;
1352
+ bbox?: number | string;
1353
+ begin?: number | string;
1354
+ bias?: number | string;
1355
+ by?: number | string;
1356
+ calcMode?: number | string;
1357
+ 'cap-height'?: number | string;
1358
+ clip?: number | string;
1359
+ 'clip-path'?: string;
1360
+ clipPathUnits?: number | string;
1361
+ 'clip-rule'?: number | string;
1362
+ 'color-interpolation'?: number | string;
1363
+ 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
1364
+ 'color-profile'?: number | string;
1365
+ 'color-rendering'?: number | string;
1366
+ contentScriptType?: number | string;
1367
+ contentStyleType?: number | string;
1368
+ cursor?: number | string;
1369
+ cx?: number | string;
1370
+ cy?: number | string;
1371
+ d?: string;
1372
+ decelerate?: number | string;
1373
+ descent?: number | string;
1374
+ diffuseConstant?: number | string;
1375
+ direction?: number | string;
1376
+ display?: number | string;
1377
+ divisor?: number | string;
1378
+ 'dominant-baseline'?: number | string;
1379
+ dur?: number | string;
1380
+ dx?: number | string;
1381
+ dy?: number | string;
1382
+ 'edge-mode'?: number | string;
1383
+ elevation?: number | string;
1384
+ 'enable-background'?: number | string;
1385
+ end?: number | string;
1386
+ exponent?: number | string;
1387
+ externalResourcesRequired?: number | string;
1388
+ fill?: string;
1389
+ 'fill-opacity'?: number | string;
1390
+ 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
1391
+ filter?: string;
1392
+ filterRes?: number | string;
1393
+ filterUnits?: number | string;
1394
+ 'flood-color'?: number | string;
1395
+ 'flood-opacity'?: number | string;
1396
+ focusable?: number | string;
1397
+ 'font-family'?: string;
1398
+ 'font-size'?: number | string;
1399
+ 'font-size-adjust'?: number | string;
1400
+ 'font-stretch'?: number | string;
1401
+ 'font-style'?: number | string;
1402
+ 'font-variant'?: number | string;
1403
+ 'font-weight'?: number | string;
1404
+ format?: number | string;
1405
+ from?: number | string;
1406
+ fx?: number | string;
1407
+ fy?: number | string;
1408
+ g1?: number | string;
1409
+ g2?: number | string;
1410
+ 'glyph-name'?: number | string;
1411
+ 'glyph-orientation-horizontal'?: number | string;
1412
+ 'glyph-orientation-vertical'?: number | string;
1413
+ glyphRef?: number | string;
1414
+ gradientTransform?: string;
1415
+ gradientUnits?: string;
1416
+ hanging?: number | string;
1417
+ 'horiz-adv-x'?: number | string;
1418
+ 'horiz-origin-x'?: number | string;
1419
+ href?: string;
1420
+ ideographic?: number | string;
1421
+ 'image-rendering'?: number | string;
1422
+ in2?: number | string;
1423
+ in?: string;
1424
+ intercept?: number | string;
1425
+ k1?: number | string;
1426
+ k2?: number | string;
1427
+ k3?: number | string;
1428
+ k4?: number | string;
1429
+ k?: number | string;
1430
+ kernelMatrix?: number | string;
1431
+ kernelUnitLength?: number | string;
1432
+ kerning?: number | string;
1433
+ keyPoints?: number | string;
1434
+ keySplines?: number | string;
1435
+ keyTimes?: number | string;
1436
+ lengthAdjust?: number | string;
1437
+ 'letter-spacing'?: number | string;
1438
+ 'lighting-color'?: number | string;
1439
+ limitingConeAngle?: number | string;
1440
+ local?: number | string;
1441
+ 'marker-end'?: string;
1442
+ markerHeight?: number | string;
1443
+ 'marker-mid'?: string;
1444
+ 'marker-start'?: string;
1445
+ markerUnits?: number | string;
1446
+ markerWidth?: number | string;
1447
+ mask?: string;
1448
+ maskContentUnits?: number | string;
1449
+ maskUnits?: number | string;
1450
+ mathematical?: number | string;
1451
+ mode?: number | string;
1452
+ numOctaves?: number | string;
1453
+ offset?: number | string;
1454
+ opacity?: number | string;
1455
+ operator?: number | string;
1456
+ order?: number | string;
1457
+ orient?: number | string;
1458
+ orientation?: number | string;
1459
+ origin?: number | string;
1460
+ overflow?: number | string;
1461
+ 'overline-position'?: number | string;
1462
+ 'overline-thickness'?: number | string;
1463
+ 'paint-order'?: number | string;
1464
+ panose1?: number | string;
1465
+ pathLength?: number | string;
1466
+ patternContentUnits?: string;
1467
+ patternTransform?: number | string;
1468
+ patternUnits?: string;
1469
+ 'pointer-events'?: number | string;
1470
+ points?: string;
1471
+ pointsAtX?: number | string;
1472
+ pointsAtY?: number | string;
1473
+ pointsAtZ?: number | string;
1474
+ preserveAlpha?: number | string;
1475
+ preserveAspectRatio?: string;
1476
+ primitiveUnits?: number | string;
1477
+ r?: number | string;
1478
+ radius?: number | string;
1479
+ refX?: number | string;
1480
+ refY?: number | string;
1481
+ 'rendering-intent'?: number | string;
1482
+ repeatCount?: number | string;
1483
+ repeatDur?: number | string;
1484
+ requiredextensions?: number | string;
1485
+ requiredFeatures?: number | string;
1486
+ restart?: number | string;
1487
+ result?: string;
1488
+ rotate?: number | string;
1489
+ rx?: number | string;
1490
+ ry?: number | string;
1491
+ scale?: number | string;
1492
+ seed?: number | string;
1493
+ 'shape-rendering'?: number | string;
1494
+ slope?: number | string;
1495
+ spacing?: number | string;
1496
+ specularConstant?: number | string;
1497
+ specularExponent?: number | string;
1498
+ speed?: number | string;
1499
+ spreadMethod?: string;
1500
+ startOffset?: number | string;
1501
+ stdDeviation?: number | string;
1502
+ stemh?: number | string;
1503
+ stemv?: number | string;
1504
+ stitchTiles?: number | string;
1505
+ 'stop-color'?: string;
1506
+ 'stop-opacity'?: number | string;
1507
+ 'strikethrough-position'?: number | string;
1508
+ 'strikethrough-thickness'?: number | string;
1509
+ string?: number | string;
1510
+ stroke?: string;
1511
+ 'stroke-dasharray'?: string | number;
1512
+ 'stroke-dashoffset'?: string | number;
1513
+ 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
1514
+ 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit';
1515
+ 'stroke-miterlimit'?: string;
1516
+ 'stroke-opacity'?: number | string;
1517
+ 'stroke-width'?: number | string;
1518
+ surfaceScale?: number | string;
1519
+ systemLanguage?: number | string;
1520
+ tableValues?: number | string;
1521
+ targetX?: number | string;
1522
+ targetY?: number | string;
1523
+ 'text-anchor'?: string;
1524
+ 'text-decoration'?: number | string;
1525
+ textLength?: number | string;
1526
+ 'text-rendering'?: number | string;
1527
+ to?: number | string;
1528
+ transform?: string;
1529
+ u1?: number | string;
1530
+ u2?: number | string;
1531
+ 'underline-position'?: number | string;
1532
+ 'underline-thickness'?: number | string;
1533
+ unicode?: number | string;
1534
+ 'unicode-bidi'?: number | string;
1535
+ 'unicode-range'?: number | string;
1536
+ 'units-per-em'?: number | string;
1537
+ 'v-alphabetic'?: number | string;
1538
+ values?: string;
1539
+ 'vector-effect'?: number | string;
1540
+ version?: string;
1541
+ 'vert-adv-y'?: number | string;
1542
+ 'vert-origin-x'?: number | string;
1543
+ 'vert-origin-y'?: number | string;
1544
+ 'v-hanging'?: number | string;
1545
+ 'v-ideographic'?: number | string;
1546
+ viewBox?: string;
1547
+ viewTarget?: number | string;
1548
+ visibility?: number | string;
1549
+ 'v-mathematical'?: number | string;
1550
+ widths?: number | string;
1551
+ 'word-spacing'?: number | string;
1552
+ 'writing-mode'?: number | string;
1553
+ x1?: number | string;
1554
+ x2?: number | string;
1555
+ x?: number | string;
1556
+ 'x-channel-selector'?: string;
1557
+ 'x-height'?: number | string;
1558
+ xlinkActuate?: string;
1559
+ xlinkArcrole?: string;
1560
+ xlinkHref?: string;
1561
+ xlinkRole?: string;
1562
+ xlinkShow?: string;
1563
+ xlinkTitle?: string;
1564
+ xlinkType?: string;
1565
+ xmlBase?: string;
1566
+ xmlLang?: string;
1567
+ xmlns?: string;
1568
+ xmlSpace?: string;
1569
+ y1?: number | string;
1570
+ y2?: number | string;
1571
+ y?: number | string;
1572
+ yChannelSelector?: string;
1573
+ z?: number | string;
1574
+ zoomAndPan?: string;
1575
+ }
1576
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1577
+ interface ToggleEvent extends Event {
1578
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
1579
+ readonly newState: string;
1580
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
1581
+ readonly oldState: string;
1582
+ }
1583
+ interface DOMAttributes<T> extends JSXAttributes<T> {
1584
+ slot?: string;
1585
+ part?: string;
1586
+ exportparts?: string;
1587
+ onCopy?: (event: ClipboardEvent) => void;
1588
+ onCopyCapture?: (event: ClipboardEvent) => void;
1589
+ onCut?: (event: ClipboardEvent) => void;
1590
+ onCutCapture?: (event: ClipboardEvent) => void;
1591
+ onPaste?: (event: ClipboardEvent) => void;
1592
+ onPasteCapture?: (event: ClipboardEvent) => void;
1593
+ onCompositionend?: (event: CompositionEvent) => void;
1594
+ onCompositionendCapture?: (event: CompositionEvent) => void;
1595
+ onCompositionstart?: (event: CompositionEvent) => void;
1596
+ onCompositionstartCapture?: (event: CompositionEvent) => void;
1597
+ onCompositionupdate?: (event: CompositionEvent) => void;
1598
+ onCompositionupdateCapture?: (event: CompositionEvent) => void;
1599
+ onBeforeToggle?: (event: ToggleEvent) => void;
1600
+ onBeforeToggleCapture?: (event: ToggleEvent) => void;
1601
+ onToggle?: (event: ToggleEvent) => void;
1602
+ onToggleCapture?: (event: ToggleEvent) => void;
1603
+ onFocus?: (event: FocusEvent) => void;
1604
+ onFocusCapture?: (event: FocusEvent) => void;
1605
+ onFocusin?: (event: FocusEvent) => void;
1606
+ onFocusinCapture?: (event: FocusEvent) => void;
1607
+ onFocusout?: (event: FocusEvent) => void;
1608
+ onFocusoutCapture?: (event: FocusEvent) => void;
1609
+ onBlur?: (event: FocusEvent) => void;
1610
+ onBlurCapture?: (event: FocusEvent) => void;
1611
+ onChange?: (event: Event) => void;
1612
+ onChangeCapture?: (event: Event) => void;
1613
+ onInput?: (event: InputEvent) => void;
1614
+ onInputCapture?: (event: InputEvent) => void;
1615
+ onReset?: (event: Event) => void;
1616
+ onResetCapture?: (event: Event) => void;
1617
+ onSubmit?: (event: Event) => void;
1618
+ onSubmitCapture?: (event: Event) => void;
1619
+ onInvalid?: (event: Event) => void;
1620
+ onInvalidCapture?: (event: Event) => void;
1621
+ onLoad?: (event: Event) => void;
1622
+ onLoadCapture?: (event: Event) => void;
1623
+ onError?: (event: Event) => void;
1624
+ onErrorCapture?: (event: Event) => void;
1625
+ onKeyDown?: (event: KeyboardEvent) => void;
1626
+ onKeyDownCapture?: (event: KeyboardEvent) => void;
1627
+ onKeyPress?: (event: KeyboardEvent) => void;
1628
+ onKeyPressCapture?: (event: KeyboardEvent) => void;
1629
+ onKeyUp?: (event: KeyboardEvent) => void;
1630
+ onKeyUpCapture?: (event: KeyboardEvent) => void;
1631
+ onAuxClick?: (event: MouseEvent) => void;
1632
+ onClick?: (event: PointerEvent) => void;
1633
+ onClickCapture?: (event: MouseEvent) => void;
1634
+ onContextMenu?: (event: MouseEvent) => void;
1635
+ onContextMenuCapture?: (event: MouseEvent) => void;
1636
+ onDblClick?: (event: MouseEvent) => void;
1637
+ onDblClickCapture?: (event: MouseEvent) => void;
1638
+ onDrag?: (event: DragEvent) => void;
1639
+ onDragCapture?: (event: DragEvent) => void;
1640
+ onDragEnd?: (event: DragEvent) => void;
1641
+ onDragEndCapture?: (event: DragEvent) => void;
1642
+ onDragEnter?: (event: DragEvent) => void;
1643
+ onDragEnterCapture?: (event: DragEvent) => void;
1644
+ onDragExit?: (event: DragEvent) => void;
1645
+ onDragExitCapture?: (event: DragEvent) => void;
1646
+ onDragLeave?: (event: DragEvent) => void;
1647
+ onDragLeaveCapture?: (event: DragEvent) => void;
1648
+ onDragOver?: (event: DragEvent) => void;
1649
+ onDragOverCapture?: (event: DragEvent) => void;
1650
+ onDragStart?: (event: DragEvent) => void;
1651
+ onDragStartCapture?: (event: DragEvent) => void;
1652
+ onDrop?: (event: DragEvent) => void;
1653
+ onDropCapture?: (event: DragEvent) => void;
1654
+ onMouseDown?: (event: MouseEvent) => void;
1655
+ onMouseDownCapture?: (event: MouseEvent) => void;
1656
+ onMouseEnter?: (event: MouseEvent) => void;
1657
+ onMouseLeave?: (event: MouseEvent) => void;
1658
+ onMouseMove?: (event: MouseEvent) => void;
1659
+ onMouseMoveCapture?: (event: MouseEvent) => void;
1660
+ onMouseOut?: (event: MouseEvent) => void;
1661
+ onMouseOutCapture?: (event: MouseEvent) => void;
1662
+ onMouseOver?: (event: MouseEvent) => void;
1663
+ onMouseOverCapture?: (event: MouseEvent) => void;
1664
+ onMouseUp?: (event: MouseEvent) => void;
1665
+ onMouseUpCapture?: (event: MouseEvent) => void;
1666
+ onTouchCancel?: (event: TouchEvent) => void;
1667
+ onTouchCancelCapture?: (event: TouchEvent) => void;
1668
+ onTouchEnd?: (event: TouchEvent) => void;
1669
+ onTouchEndCapture?: (event: TouchEvent) => void;
1670
+ onTouchMove?: (event: TouchEvent) => void;
1671
+ onTouchMoveCapture?: (event: TouchEvent) => void;
1672
+ onTouchStart?: (event: TouchEvent) => void;
1673
+ onTouchStartCapture?: (event: TouchEvent) => void;
1674
+ onPointerDown?: (event: PointerEvent) => void;
1675
+ onPointerDownCapture?: (event: PointerEvent) => void;
1676
+ onPointerMove?: (event: PointerEvent) => void;
1677
+ onPointerMoveCapture?: (event: PointerEvent) => void;
1678
+ onPointerUp?: (event: PointerEvent) => void;
1679
+ onPointerUpCapture?: (event: PointerEvent) => void;
1680
+ onPointerCancel?: (event: PointerEvent) => void;
1681
+ onPointerCancelCapture?: (event: PointerEvent) => void;
1682
+ onPointerEnter?: (event: PointerEvent) => void;
1683
+ onPointerEnterCapture?: (event: PointerEvent) => void;
1684
+ onPointerLeave?: (event: PointerEvent) => void;
1685
+ onPointerLeaveCapture?: (event: PointerEvent) => void;
1686
+ onPointerOver?: (event: PointerEvent) => void;
1687
+ onPointerOverCapture?: (event: PointerEvent) => void;
1688
+ onPointerOut?: (event: PointerEvent) => void;
1689
+ onPointerOutCapture?: (event: PointerEvent) => void;
1690
+ onGotPointerCapture?: (event: PointerEvent) => void;
1691
+ onGotPointerCaptureCapture?: (event: PointerEvent) => void;
1692
+ onLostPointerCapture?: (event: PointerEvent) => void;
1693
+ onLostPointerCaptureCapture?: (event: PointerEvent) => void;
1694
+ onScroll?: (event: UIEvent) => void;
1695
+ onScrollCapture?: (event: UIEvent) => void;
1696
+ onWheel?: (event: WheelEvent) => void;
1697
+ onWheelCapture?: (event: WheelEvent) => void;
1698
+ onAnimationStart?: (event: AnimationEvent) => void;
1699
+ onAnimationStartCapture?: (event: AnimationEvent) => void;
1700
+ onAnimationEnd?: (event: AnimationEvent) => void;
1701
+ onAnimationEndCapture?: (event: AnimationEvent) => void;
1702
+ onAnimationIteration?: (event: AnimationEvent) => void;
1703
+ onAnimationIterationCapture?: (event: AnimationEvent) => void;
1704
+ onTransitionCancel?: (event: TransitionEvent) => void;
1705
+ onTransitionCancelCapture?: (event: TransitionEvent) => void;
1706
+ onTransitionEnd?: (event: TransitionEvent) => void;
1707
+ onTransitionEndCapture?: (event: TransitionEvent) => void;
1708
+ onTransitionRun?: (event: TransitionEvent) => void;
1709
+ onTransitionRunCapture?: (event: TransitionEvent) => void;
1710
+ onTransitionStart?: (event: TransitionEvent) => void;
1711
+ onTransitionStartCapture?: (event: TransitionEvent) => void;
1712
+ [key: `aria-${string}`]: string | boolean | undefined;
1713
+ [key: `aria${string}`]: string | boolean | undefined;
1714
+ }
1715
+ }
1716
+ export interface JSXAttributes<T = Element> {
1717
+ key?: string | number;
1718
+ ref?: (elm?: T) => void;
1719
+ }
1720
+ export interface CustomElementsDefineOptions {
1721
+ exclude?: string[];
1722
+ resourcesUrl?: string;
1723
+ syncQueue?: boolean;
1724
+ transformTagName?: (tagName: string) => string;
1725
+ jmp?: (c: Function) => any;
1726
+ raf?: (c: FrameRequestCallback) => number;
1727
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1728
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
1729
+ ce?: (eventName: string, opts?: any) => CustomEvent;
1730
+ }