Comparing version 0.6.1 to 0.6.2
@@ -176,11 +176,20 @@ "use strict"; | ||
const Wrapper = extension.MultilineAnnotation; | ||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Wrapper, { colors, query: line.annotationQuery, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)( | ||
LinesComponent, | ||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)( | ||
Wrapper, | ||
{ | ||
lines: line.lines, | ||
digits, | ||
extensions, | ||
colors | ||
} | ||
) }, i); | ||
colors, | ||
query: line.annotationQuery, | ||
content: getLinesContent(line.lines), | ||
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)( | ||
LinesComponent, | ||
{ | ||
lines: line.lines, | ||
digits, | ||
extensions, | ||
colors | ||
} | ||
) | ||
}, | ||
i | ||
); | ||
} else { | ||
@@ -280,2 +289,11 @@ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)( | ||
} | ||
function getLinesContent(lines) { | ||
return lines.map((line) => { | ||
if ("lineNumber" in line) { | ||
return getContent(line.tokens); | ||
} else { | ||
return getLinesContent(line.lines); | ||
} | ||
}).join("\n"); | ||
} | ||
function Style({ | ||
@@ -282,0 +300,0 @@ themeName, |
{ | ||
"name": "bright", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24221
858