@htmlplus/element 2.9.6 → 2.9.8

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.
@@ -0,0 +1,191 @@
1
+ import 'react';
2
+
3
+ type WithPart<K> = React.JSX.IntrinsicElements[K] & { part?: string };
4
+
5
+ declare namespace JSX {
6
+ interface IntrinsicElements {
7
+ host: WithPart<'div'> & { [key: string]: any };
8
+
9
+ a: WithPart<'a'>;
10
+ abbr: WithPart<'abbr'>;
11
+ address: WithPart<'address'>;
12
+ area: WithPart<'area'>;
13
+ article: WithPart<'article'>;
14
+ aside: WithPart<'aside'>;
15
+ audio: WithPart<'audio'>;
16
+ b: WithPart<'b'>;
17
+ base: WithPart<'base'>;
18
+ bdi: WithPart<'bdi'>;
19
+ bdo: WithPart<'bdo'>;
20
+ big: WithPart<'big'>;
21
+ blockquote: WithPart<'blockquote'>;
22
+ body: WithPart<'body'>;
23
+ br: WithPart<'br'>;
24
+ button: WithPart<'button'>;
25
+ canvas: WithPart<'canvas'>;
26
+ caption: WithPart<'caption'>;
27
+ center: WithPart<'center'>;
28
+ cite: WithPart<'cite'>;
29
+ code: WithPart<'code'>;
30
+ col: WithPart<'col'>;
31
+ colgroup: WithPart<'colgroup'>;
32
+ data: WithPart<'data'>;
33
+ datalist: WithPart<'datalist'>;
34
+ dd: WithPart<'dd'>;
35
+ del: WithPart<'del'>;
36
+ details: WithPart<'details'>;
37
+ dfn: WithPart<'dfn'>;
38
+ dialog: WithPart<'dialog'>;
39
+ div: WithPart<'div'>;
40
+ dl: WithPart<'dl'>;
41
+ dt: WithPart<'dt'>;
42
+ em: WithPart<'em'>;
43
+ embed: WithPart<'embed'>;
44
+ fieldset: WithPart<'fieldset'>;
45
+ figcaption: WithPart<'figcaption'>;
46
+ figure: WithPart<'figure'>;
47
+ footer: WithPart<'footer'>;
48
+ form: WithPart<'form'>;
49
+ h1: WithPart<'h1'>;
50
+ h2: WithPart<'h2'>;
51
+ h3: WithPart<'h3'>;
52
+ h4: WithPart<'h4'>;
53
+ h5: WithPart<'h5'>;
54
+ h6: WithPart<'h6'>;
55
+ head: WithPart<'head'>;
56
+ header: WithPart<'header'>;
57
+ hgroup: WithPart<'hgroup'>;
58
+ hr: WithPart<'hr'>;
59
+ html: WithPart<'html'>;
60
+ i: WithPart<'i'>;
61
+ iframe: WithPart<'iframe'>;
62
+ img: WithPart<'img'>;
63
+ input: WithPart<'input'>;
64
+ ins: WithPart<'ins'>;
65
+ kbd: WithPart<'kbd'>;
66
+ keygen: WithPart<'keygen'>;
67
+ label: WithPart<'label'>;
68
+ legend: WithPart<'legend'>;
69
+ li: WithPart<'li'>;
70
+ link: WithPart<'link'>;
71
+ main: WithPart<'main'>;
72
+ map: WithPart<'map'>;
73
+ mark: WithPart<'mark'>;
74
+ menu: WithPart<'menu'>;
75
+ menuitem: WithPart<'menuitem'>;
76
+ meta: WithPart<'meta'>;
77
+ meter: WithPart<'meter'>;
78
+ nav: WithPart<'nav'>;
79
+ noindex: WithPart<'noindex'>;
80
+ noscript: WithPart<'noscript'>;
81
+ object: WithPart<'object'>;
82
+ ol: WithPart<'ol'>;
83
+ optgroup: WithPart<'optgroup'>;
84
+ option: WithPart<'option'>;
85
+ output: WithPart<'output'>;
86
+ p: WithPart<'p'>;
87
+ param: WithPart<'param'>;
88
+ picture: WithPart<'picture'>;
89
+ pre: WithPart<'pre'>;
90
+ progress: WithPart<'progress'>;
91
+ q: WithPart<'q'>;
92
+ rp: WithPart<'rp'>;
93
+ rt: WithPart<'rt'>;
94
+ ruby: WithPart<'ruby'>;
95
+ s: WithPart<'s'>;
96
+ samp: WithPart<'samp'>;
97
+ search: WithPart<'search'>;
98
+ slot: WithPart<'slot'>;
99
+ script: WithPart<'script'>;
100
+ section: WithPart<'section'>;
101
+ select: WithPart<'select'>;
102
+ small: WithPart<'small'>;
103
+ source: WithPart<'source'>;
104
+ span: WithPart<'span'>;
105
+ strong: WithPart<'strong'>;
106
+ style: WithPart<'style'>;
107
+ sub: WithPart<'sub'>;
108
+ summary: WithPart<'summary'>;
109
+ sup: WithPart<'sup'>;
110
+ table: WithPart<'table'>;
111
+ template: WithPart<'template'>;
112
+ tbody: WithPart<'tbody'>;
113
+ td: WithPart<'td'>;
114
+ textarea: WithPart<'textarea'>;
115
+ tfoot: WithPart<'tfoot'>;
116
+ th: WithPart<'th'>;
117
+ thead: WithPart<'thead'>;
118
+ time: WithPart<'time'>;
119
+ title: WithPart<'title'>;
120
+ tr: WithPart<'tr'>;
121
+ track: WithPart<'track'>;
122
+ u: WithPart<'u'>;
123
+ ul: WithPart<'ul'>;
124
+ var: WithPart<'var'>;
125
+ video: WithPart<'video'>;
126
+ wbr: WithPart<'wbr'>;
127
+ webview: WithPart<'webview'>;
128
+
129
+ // SVG
130
+ svg: WithPart<'svg'>;
131
+
132
+ animate: WithPart<'animate'>;
133
+ animateMotion: WithPart<'animateMotion'>;
134
+ animateTransform: WithPart<'animateTransform'>;
135
+ circle: WithPart<'circle'>;
136
+ clipPath: WithPart<'clipPath'>;
137
+ defs: WithPart<'defs'>;
138
+ desc: WithPart<'desc'>;
139
+ ellipse: WithPart<'ellipse'>;
140
+ feBlend: WithPart<'feBlend'>;
141
+ feColorMatrix: WithPart<'feColorMatrix'>;
142
+ feComponentTransfer: WithPart<'feComponentTransfer'>;
143
+ feComposite: WithPart<'feComposite'>;
144
+ feConvolveMatrix: WithPart<'feConvolveMatrix'>;
145
+ feDiffuseLighting: WithPart<'feDiffuseLighting'>;
146
+ feDisplacementMap: WithPart<'feDisplacementMap'>;
147
+ feDistantLight: WithPart<'feDistantLight'>;
148
+ feDropShadow: WithPart<'feDropShadow'>;
149
+ feFlood: WithPart<'feFlood'>;
150
+ feFuncA: WithPart<'feFuncA'>;
151
+ feFuncB: WithPart<'feFuncB'>;
152
+ feFuncG: WithPart<'feFuncG'>;
153
+ feFuncR: WithPart<'feFuncR'>;
154
+ feGaussianBlur: WithPart<'feGaussianBlur'>;
155
+ feImage: WithPart<'feImage'>;
156
+ feMerge: WithPart<'feMerge'>;
157
+ feMergeNode: WithPart<'feMergeNode'>;
158
+ feMorphology: WithPart<'feMorphology'>;
159
+ feOffset: WithPart<'feOffset'>;
160
+ fePointLight: WithPart<'fePointLight'>;
161
+ feSpecularLighting: WithPart<'feSpecularLighting'>;
162
+ feSpotLight: WithPart<'feSpotLight'>;
163
+ feTile: WithPart<'feTile'>;
164
+ feTurbulence: WithPart<'feTurbulence'>;
165
+ filter: WithPart<'filter'>;
166
+ foreignObject: WithPart<'foreignObject'>;
167
+ g: WithPart<'g'>;
168
+ image: WithPart<'image'>;
169
+ line: WithPart<'line'>;
170
+ linearGradient: WithPart<'linearGradient'>;
171
+ marker: WithPart<'marker'>;
172
+ mask: WithPart<'mask'>;
173
+ metadata: WithPart<'metadata'>;
174
+ mpath: WithPart<'mpath'>;
175
+ path: WithPart<'path'>;
176
+ pattern: WithPart<'pattern'>;
177
+ polygon: WithPart<'polygon'>;
178
+ polyline: WithPart<'polyline'>;
179
+ radialGradient: WithPart<'radialGradient'>;
180
+ rect: WithPart<'rect'>;
181
+ set: WithPart<'set'>;
182
+ stop: WithPart<'stop'>;
183
+ switch: WithPart<'switch'>;
184
+ symbol: WithPart<'symbol'>;
185
+ text: WithPart<'text'>;
186
+ textPath: WithPart<'textPath'>;
187
+ tspan: WithPart<'tspan'>;
188
+ use: WithPart<'use'>;
189
+ view: WithPart<'view'>;
190
+ }
191
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlplus/element",
3
- "version": "2.9.6",
3
+ "version": "2.9.8",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "author": "Masood Abdolian <m.abdolian@gmail.com>",
@@ -38,6 +38,7 @@
38
38
  "@babel/traverse": "^7.24.8",
39
39
  "@babel/types": "^7.24.9",
40
40
  "@types/node": "^20.14.10",
41
+ "@types/react": "^18.3.3",
41
42
  "change-case": "^5.4.4",
42
43
  "fs-extra": "^11.2.0",
43
44
  "glob": "^11.0.0",
@@ -327,6 +327,8 @@ export const customElement = (options) => {
327
327
  });
328
328
  // prettier-ignore
329
329
  const ast = template.default.ast(`
330
+ // THE FOLLOWING TYPES HAVE BEEN ADDED AUTOMATICALLY
331
+
330
332
  export interface ${context.className}Attributes {
331
333
  ${attributes.map(print).join('')}
332
334
  }