@tamagui/code-to-html 1.99.0 → 1.100.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.
- package/dist/esm/index.js +7 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +7 -14
- package/dist/esm/index.native.js +71 -142
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -38,8 +38,7 @@ var require_parse_numeric_range = __commonJS({
|
|
|
38
38
|
lhs = parseInt(lhs), rhs = parseInt(rhs);
|
|
39
39
|
let incr = lhs < rhs ? 1 : -1;
|
|
40
40
|
(sep === "-" || sep === ".." || sep === "\u2025") && (rhs += incr);
|
|
41
|
-
for (let i = lhs; i !== rhs; i += incr)
|
|
42
|
-
res.push(i);
|
|
41
|
+
for (let i = lhs; i !== rhs; i += incr) res.push(i);
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
return res;
|
|
@@ -3590,8 +3589,7 @@ var require_parser = __commonJS({
|
|
|
3590
3589
|
if (tn === $.OPTGROUP) {
|
|
3591
3590
|
let prevOpenElement = p2.openElements.items[p2.openElements.stackTop - 1], prevOpenElementTn = prevOpenElement && p2.treeAdapter.getTagName(prevOpenElement);
|
|
3592
3591
|
p2.openElements.currentTagName === $.OPTION && prevOpenElementTn === $.OPTGROUP && p2.openElements.pop(), p2.openElements.currentTagName === $.OPTGROUP && p2.openElements.pop();
|
|
3593
|
-
} else
|
|
3594
|
-
tn === $.OPTION ? p2.openElements.currentTagName === $.OPTION && p2.openElements.pop() : tn === $.SELECT && p2.openElements.hasInSelectScope($.SELECT) ? (p2.openElements.popUntilTagNamePopped($.SELECT), p2._resetInsertionMode()) : tn === $.TEMPLATE && endTagInHead(p2, token);
|
|
3592
|
+
} else tn === $.OPTION ? p2.openElements.currentTagName === $.OPTION && p2.openElements.pop() : tn === $.SELECT && p2.openElements.hasInSelectScope($.SELECT) ? (p2.openElements.popUntilTagNamePopped($.SELECT), p2._resetInsertionMode()) : tn === $.TEMPLATE && endTagInHead(p2, token);
|
|
3595
3593
|
}
|
|
3596
3594
|
function startTagInSelectInTable(p2, token) {
|
|
3597
3595
|
let tn = token.tagName;
|
|
@@ -3718,8 +3716,7 @@ var require_extend = __commonJS({
|
|
|
3718
3716
|
if (hasOwn.call(obj, name)) {
|
|
3719
3717
|
if (gOPD)
|
|
3720
3718
|
return gOPD(obj, name).value;
|
|
3721
|
-
} else
|
|
3722
|
-
return;
|
|
3719
|
+
} else return;
|
|
3723
3720
|
return obj[name];
|
|
3724
3721
|
};
|
|
3725
3722
|
module.exports = function extend2() {
|
|
@@ -5583,8 +5580,7 @@ function head(node) {
|
|
|
5583
5580
|
for (; ++index2 < children.length; ) {
|
|
5584
5581
|
let child = children[index2];
|
|
5585
5582
|
if (child.type === "element" && (child.tagName === "title" || child.tagName === "base")) {
|
|
5586
|
-
if (seen.includes(child.tagName))
|
|
5587
|
-
return !1;
|
|
5583
|
+
if (seen.includes(child.tagName)) return !1;
|
|
5588
5584
|
seen.push(child.tagName);
|
|
5589
5585
|
}
|
|
5590
5586
|
}
|
|
@@ -8188,8 +8184,7 @@ function markupTemplating(Prism2) {
|
|
|
8188
8184
|
), after = s2.substring(index2 + placeholder.length), replacement = [];
|
|
8189
8185
|
before && replacement.push.apply(replacement, walkTokens([before])), replacement.push(middle), after && replacement.push.apply(replacement, walkTokens([after])), typeof token == "string" ? tokens.splice.apply(tokens, [i, 1].concat(replacement)) : token.content = replacement;
|
|
8190
8186
|
}
|
|
8191
|
-
} else
|
|
8192
|
-
token.content && walkTokens(token.content);
|
|
8187
|
+
} else token.content && walkTokens(token.content);
|
|
8193
8188
|
}
|
|
8194
8189
|
return tokens;
|
|
8195
8190
|
}
|
|
@@ -9396,11 +9391,9 @@ function addProperty(schema, properties, key2, value) {
|
|
|
9396
9391
|
let info = find(schema, key2), index2 = -1, result;
|
|
9397
9392
|
if (value != null) {
|
|
9398
9393
|
if (typeof value == "number") {
|
|
9399
|
-
if (Number.isNaN(value))
|
|
9400
|
-
return;
|
|
9394
|
+
if (Number.isNaN(value)) return;
|
|
9401
9395
|
result = value;
|
|
9402
|
-
} else
|
|
9403
|
-
typeof value == "boolean" ? result = value : typeof value == "string" ? info.spaceSeparated ? result = parse2(value) : info.commaSeparated ? result = parse(value) : info.commaOrSpaceSeparated ? result = parse2(parse(value).join(" ")) : result = parsePrimitive(info, info.property, value) : Array.isArray(value) ? result = value.concat() : result = info.property === "style" ? style(value) : String(value);
|
|
9396
|
+
} else typeof value == "boolean" ? result = value : typeof value == "string" ? info.spaceSeparated ? result = parse2(value) : info.commaSeparated ? result = parse(value) : info.commaOrSpaceSeparated ? result = parse2(parse(value).join(" ")) : result = parsePrimitive(info, info.property, value) : Array.isArray(value) ? result = value.concat() : result = info.property === "style" ? style(value) : String(value);
|
|
9404
9397
|
if (Array.isArray(result)) {
|
|
9405
9398
|
let finalResult = [];
|
|
9406
9399
|
for (; ++index2 < result.length; )
|