babel-plugin-jsx-dom-expressions 0.33.7 → 0.33.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.
- package/index.js +6 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -55,11 +55,11 @@ const booleans = [
|
|
|
55
55
|
"selected"
|
|
56
56
|
];
|
|
57
57
|
|
|
58
|
-
const BooleanAttributes = new Set(booleans);
|
|
58
|
+
const BooleanAttributes = /*#__PURE__*/ new Set(booleans);
|
|
59
59
|
|
|
60
|
-
const Properties = new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
60
|
+
const Properties = /*#__PURE__*/ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
61
61
|
|
|
62
|
-
const ChildProperties = new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
62
|
+
const ChildProperties = /*#__PURE__*/ new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
63
63
|
|
|
64
64
|
// React Compat
|
|
65
65
|
const Aliases = {
|
|
@@ -77,7 +77,7 @@ const PropAliases = {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
// list of Element events that will be delegated
|
|
80
|
-
const DelegatedEvents = new Set([
|
|
80
|
+
const DelegatedEvents = /*#__PURE__*/ new Set([
|
|
81
81
|
"beforeinput",
|
|
82
82
|
"click",
|
|
83
83
|
"dblclick",
|
|
@@ -102,7 +102,7 @@ const DelegatedEvents = new Set([
|
|
|
102
102
|
"touchstart"
|
|
103
103
|
]);
|
|
104
104
|
|
|
105
|
-
const SVGElements = new Set([
|
|
105
|
+
const SVGElements = /*#__PURE__*/ new Set([
|
|
106
106
|
// "a",
|
|
107
107
|
"altGlyph",
|
|
108
108
|
"altGlyphDef",
|
|
@@ -1718,6 +1718,7 @@ function transformAttributes$1(path, results) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
i && attributes.splice(attributes.indexOf(classAttributes[i]), 1);
|
|
1720
1720
|
}
|
|
1721
|
+
first.name = t__namespace.JSXIdentifier("class");
|
|
1721
1722
|
first.value = t__namespace.JSXExpressionContainer(t__namespace.TemplateLiteral(quasis, values));
|
|
1722
1723
|
}
|
|
1723
1724
|
if (styleAttributes.length) transformToObject("style", attributes, styleAttributes);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-jsx-dom-expressions",
|
|
3
3
|
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
|
|
4
|
-
"version": "0.33.
|
|
4
|
+
"version": "0.33.8",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@babel/types": "^7.16.0",
|
|
24
24
|
"html-entities": "2.3.2"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "22e8d3ae8c8eb50596fce778c5b9116880cc55c2"
|
|
27
27
|
}
|