@htmlplus/element 2.9.5 → 2.9.7
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.
- package/client/utils/direction.d.ts +1 -1
- package/client/utils/event.d.ts +1 -1
- package/client/utils/request.d.ts +1 -1
- package/client/utils/uhtml.js +2 -2
- package/jsx-runtime.d.ts +191 -0
- package/package.json +13 -12
|
@@ -3,4 +3,4 @@ import { HTMLPlusElement } from '../../types/index.js';
|
|
|
3
3
|
* Indicates whether the [Direction](https://mdn.io/css-direction)
|
|
4
4
|
* of the element is `Right-To-Left` or `Left-To-Right`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const direction: (target: HTMLElement | HTMLPlusElement) =>
|
|
6
|
+
export declare const direction: (target: HTMLElement | HTMLPlusElement) => "ltr" | "rtl";
|
package/client/utils/event.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { HTMLPlusElement } from '../../types/index.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* TODO
|
|
4
4
|
*/
|
|
5
|
-
export declare const dispatch: <T = any>(target: HTMLElement | HTMLPlusElement, type: string, eventInitDict?: CustomEventInit<T>
|
|
5
|
+
export declare const dispatch: <T = any>(target: HTMLElement | HTMLPlusElement, type: string, eventInitDict?: CustomEventInit<T>) => CustomEvent<T>;
|
|
6
6
|
/**
|
|
7
7
|
* TODO
|
|
8
8
|
*/
|
|
@@ -6,4 +6,4 @@ import { HTMLPlusElement } from '../../types/index.js';
|
|
|
6
6
|
* @param previous The previous value of Property/State.
|
|
7
7
|
* @param callback Invoked when the rendering phase is completed.
|
|
8
8
|
*/
|
|
9
|
-
export declare const request: (target: HTMLPlusElement, name?: string, previous?: any, callback?: (
|
|
9
|
+
export declare const request: (target: HTMLPlusElement, name?: string, previous?: any, callback?: (skipped: boolean) => void) => void;
|
package/client/utils/uhtml.js
CHANGED
|
@@ -490,8 +490,8 @@ const cache$1 = new WeakMapSet();
|
|
|
490
490
|
// a RegExp that helps checking nodes that cannot contain comments
|
|
491
491
|
const textOnly = /^(?:textarea|script|style|title|plaintext|xmp)$/;
|
|
492
492
|
const createCache = () => ({
|
|
493
|
-
stack: [],
|
|
494
|
-
entry: null,
|
|
493
|
+
stack: [], // each template gets a stack for each interpolation "hole"
|
|
494
|
+
entry: null, // each entry contains details, such as:
|
|
495
495
|
// * the template that is representing
|
|
496
496
|
// * the type of node it represents (html or svg)
|
|
497
497
|
// * the content fragment with all nodes
|
package/jsx-runtime.d.ts
ADDED
|
@@ -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.
|
|
3
|
+
"version": "2.9.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"author": "Masood Abdolian <m.abdolian@gmail.com>",
|
|
@@ -32,31 +32,32 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/htmlplus/element#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/generator": "^7.24.
|
|
36
|
-
"@babel/parser": "^7.24.
|
|
35
|
+
"@babel/generator": "^7.24.10",
|
|
36
|
+
"@babel/parser": "^7.24.8",
|
|
37
37
|
"@babel/template": "^7.24.7",
|
|
38
|
-
"@babel/traverse": "^7.24.
|
|
39
|
-
"@babel/types": "^7.24.
|
|
40
|
-
"@types/node": "^20.14.
|
|
38
|
+
"@babel/traverse": "^7.24.8",
|
|
39
|
+
"@babel/types": "^7.24.9",
|
|
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
|
-
"glob": "^
|
|
44
|
+
"glob": "^11.0.0",
|
|
44
45
|
"ora": "^8.0.1",
|
|
45
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^5.5.3"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@semantic-release/changelog": "^6.0.3",
|
|
49
50
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
50
51
|
"@semantic-release/git": "^10.0.1",
|
|
51
|
-
"@semantic-release/github": "^10.0
|
|
52
|
+
"@semantic-release/github": "^10.1.0",
|
|
52
53
|
"@semantic-release/npm": "^12.0.1",
|
|
53
54
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
54
55
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
55
56
|
"cpy": "^11.0.1",
|
|
56
|
-
"prettier": "^3.3.
|
|
57
|
-
"rimraf": "^
|
|
57
|
+
"prettier": "^3.3.3",
|
|
58
|
+
"rimraf": "^6.0.1",
|
|
58
59
|
"semantic-release": "^24.0.0",
|
|
59
60
|
"tsx": "^4.16.2",
|
|
60
|
-
"vite": "^5.3.
|
|
61
|
+
"vite": "^5.3.4"
|
|
61
62
|
}
|
|
62
63
|
}
|