@barefootjs/client 0.18.2 → 0.18.4
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/dist/runtime/index.js +60 -0
- package/dist/runtime/standalone.js +60 -0
- package/package.json +2 -2
package/dist/runtime/index.js
CHANGED
|
@@ -241,6 +241,63 @@ var SVG_CAMEL_TO_KEBAB = {
|
|
|
241
241
|
markerMid: "marker-mid",
|
|
242
242
|
markerEnd: "marker-end"
|
|
243
243
|
};
|
|
244
|
+
var HTML_CAMEL_ALIASES = {
|
|
245
|
+
acceptCharset: "accept-charset",
|
|
246
|
+
accessKey: "accesskey",
|
|
247
|
+
allowFullScreen: "allowfullscreen",
|
|
248
|
+
autoCapitalize: "autocapitalize",
|
|
249
|
+
autoComplete: "autocomplete",
|
|
250
|
+
autoCorrect: "autocorrect",
|
|
251
|
+
autoFocus: "autofocus",
|
|
252
|
+
autoPlay: "autoplay",
|
|
253
|
+
cellPadding: "cellpadding",
|
|
254
|
+
cellSpacing: "cellspacing",
|
|
255
|
+
charSet: "charset",
|
|
256
|
+
colSpan: "colspan",
|
|
257
|
+
contentEditable: "contenteditable",
|
|
258
|
+
controlsList: "controlslist",
|
|
259
|
+
crossOrigin: "crossorigin",
|
|
260
|
+
dateTime: "datetime",
|
|
261
|
+
dirName: "dirname",
|
|
262
|
+
encType: "enctype",
|
|
263
|
+
enterKeyHint: "enterkeyhint",
|
|
264
|
+
fetchPriority: "fetchpriority",
|
|
265
|
+
formAction: "formaction",
|
|
266
|
+
formEncType: "formenctype",
|
|
267
|
+
formMethod: "formmethod",
|
|
268
|
+
formNoValidate: "formnovalidate",
|
|
269
|
+
formTarget: "formtarget",
|
|
270
|
+
frameBorder: "frameborder",
|
|
271
|
+
hrefLang: "hreflang",
|
|
272
|
+
httpEquiv: "http-equiv",
|
|
273
|
+
imageSizes: "imagesizes",
|
|
274
|
+
imageSrcSet: "imagesrcset",
|
|
275
|
+
inputMode: "inputmode",
|
|
276
|
+
itemID: "itemid",
|
|
277
|
+
itemProp: "itemprop",
|
|
278
|
+
itemRef: "itemref",
|
|
279
|
+
itemScope: "itemscope",
|
|
280
|
+
itemType: "itemtype",
|
|
281
|
+
marginHeight: "marginheight",
|
|
282
|
+
marginWidth: "marginwidth",
|
|
283
|
+
maxLength: "maxlength",
|
|
284
|
+
minLength: "minlength",
|
|
285
|
+
noModule: "nomodule",
|
|
286
|
+
noValidate: "novalidate",
|
|
287
|
+
playsInline: "playsinline",
|
|
288
|
+
popoverTarget: "popovertarget",
|
|
289
|
+
popoverTargetAction: "popovertargetaction",
|
|
290
|
+
radioGroup: "radiogroup",
|
|
291
|
+
readOnly: "readonly",
|
|
292
|
+
referrerPolicy: "referrerpolicy",
|
|
293
|
+
rowSpan: "rowspan",
|
|
294
|
+
spellCheck: "spellcheck",
|
|
295
|
+
srcDoc: "srcdoc",
|
|
296
|
+
srcLang: "srclang",
|
|
297
|
+
srcSet: "srcset",
|
|
298
|
+
tabIndex: "tabindex",
|
|
299
|
+
useMap: "usemap"
|
|
300
|
+
};
|
|
244
301
|
var SVG_XML_CAMEL_ATTRS = new Set([
|
|
245
302
|
"allowReorder",
|
|
246
303
|
"attributeName",
|
|
@@ -335,6 +392,9 @@ function toHTMLAttrNameRuntime(key) {
|
|
|
335
392
|
return "class";
|
|
336
393
|
if (key === "htmlFor")
|
|
337
394
|
return "for";
|
|
395
|
+
const htmlAlias = HTML_CAMEL_ALIASES[key];
|
|
396
|
+
if (htmlAlias !== undefined)
|
|
397
|
+
return htmlAlias;
|
|
338
398
|
const svgKebab = SVG_CAMEL_TO_KEBAB[key];
|
|
339
399
|
if (svgKebab !== undefined)
|
|
340
400
|
return svgKebab;
|
|
@@ -80,6 +80,63 @@ var SVG_CAMEL_TO_KEBAB = {
|
|
|
80
80
|
markerMid: "marker-mid",
|
|
81
81
|
markerEnd: "marker-end"
|
|
82
82
|
};
|
|
83
|
+
var HTML_CAMEL_ALIASES = {
|
|
84
|
+
acceptCharset: "accept-charset",
|
|
85
|
+
accessKey: "accesskey",
|
|
86
|
+
allowFullScreen: "allowfullscreen",
|
|
87
|
+
autoCapitalize: "autocapitalize",
|
|
88
|
+
autoComplete: "autocomplete",
|
|
89
|
+
autoCorrect: "autocorrect",
|
|
90
|
+
autoFocus: "autofocus",
|
|
91
|
+
autoPlay: "autoplay",
|
|
92
|
+
cellPadding: "cellpadding",
|
|
93
|
+
cellSpacing: "cellspacing",
|
|
94
|
+
charSet: "charset",
|
|
95
|
+
colSpan: "colspan",
|
|
96
|
+
contentEditable: "contenteditable",
|
|
97
|
+
controlsList: "controlslist",
|
|
98
|
+
crossOrigin: "crossorigin",
|
|
99
|
+
dateTime: "datetime",
|
|
100
|
+
dirName: "dirname",
|
|
101
|
+
encType: "enctype",
|
|
102
|
+
enterKeyHint: "enterkeyhint",
|
|
103
|
+
fetchPriority: "fetchpriority",
|
|
104
|
+
formAction: "formaction",
|
|
105
|
+
formEncType: "formenctype",
|
|
106
|
+
formMethod: "formmethod",
|
|
107
|
+
formNoValidate: "formnovalidate",
|
|
108
|
+
formTarget: "formtarget",
|
|
109
|
+
frameBorder: "frameborder",
|
|
110
|
+
hrefLang: "hreflang",
|
|
111
|
+
httpEquiv: "http-equiv",
|
|
112
|
+
imageSizes: "imagesizes",
|
|
113
|
+
imageSrcSet: "imagesrcset",
|
|
114
|
+
inputMode: "inputmode",
|
|
115
|
+
itemID: "itemid",
|
|
116
|
+
itemProp: "itemprop",
|
|
117
|
+
itemRef: "itemref",
|
|
118
|
+
itemScope: "itemscope",
|
|
119
|
+
itemType: "itemtype",
|
|
120
|
+
marginHeight: "marginheight",
|
|
121
|
+
marginWidth: "marginwidth",
|
|
122
|
+
maxLength: "maxlength",
|
|
123
|
+
minLength: "minlength",
|
|
124
|
+
noModule: "nomodule",
|
|
125
|
+
noValidate: "novalidate",
|
|
126
|
+
playsInline: "playsinline",
|
|
127
|
+
popoverTarget: "popovertarget",
|
|
128
|
+
popoverTargetAction: "popovertargetaction",
|
|
129
|
+
radioGroup: "radiogroup",
|
|
130
|
+
readOnly: "readonly",
|
|
131
|
+
referrerPolicy: "referrerpolicy",
|
|
132
|
+
rowSpan: "rowspan",
|
|
133
|
+
spellCheck: "spellcheck",
|
|
134
|
+
srcDoc: "srcdoc",
|
|
135
|
+
srcLang: "srclang",
|
|
136
|
+
srcSet: "srcset",
|
|
137
|
+
tabIndex: "tabindex",
|
|
138
|
+
useMap: "usemap"
|
|
139
|
+
};
|
|
83
140
|
var SVG_XML_CAMEL_ATTRS = new Set([
|
|
84
141
|
"allowReorder",
|
|
85
142
|
"attributeName",
|
|
@@ -174,6 +231,9 @@ function toHTMLAttrNameRuntime(key) {
|
|
|
174
231
|
return "class";
|
|
175
232
|
if (key === "htmlFor")
|
|
176
233
|
return "for";
|
|
234
|
+
const htmlAlias = HTML_CAMEL_ALIASES[key];
|
|
235
|
+
if (htmlAlias !== undefined)
|
|
236
|
+
return htmlAlias;
|
|
177
237
|
const svgKebab = SVG_CAMEL_TO_KEBAB[key];
|
|
178
238
|
if (svgKebab !== undefined)
|
|
179
239
|
return svgKebab;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/client",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"description": "BarefootJS client package: reactive primitives (SSR-safe) plus browser runtime under the `/runtime` subpath (compiler target)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"directory": "packages/client"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@barefootjs/shared": "0.18.
|
|
58
|
+
"@barefootjs/shared": "0.18.4"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@barefootjs/jsx": ">=0.2.0"
|