feat: initialize tinymist-vscode-html extension (#1378)

* feat: migrate eslint

* feat: workspace prettierrc

* feat: workspace eslint

* chore: format files

* build: update yarn.lock

* feat: init html extension

* feat: html extension first working flow

* feat: css class support

* feat: update package metadata

* feat: check string context

* feat: clean code

* feat: delete unused yarn.lock
This commit is contained in:
Myriad-Dreamin 2025-02-23 18:56:47 +08:00 committed by GitHub
parent c877c2bb9d
commit 548f64aec9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1519 additions and 154 deletions

4
.gitignore vendored
View file

@ -5,8 +5,8 @@ result*
.envrc
node_modules/
/local/
/editors/vscode/out/
/editors/lapce/out/
editors/vscode/out/
editors/lapce/out/
/external/typst-preview
/dist

View file

@ -1,10 +1,22 @@
.DS_Store
.git/**
.github/**
.vscode/**
assets/**
src/**
target/**
icons/
node_modules/
editiors/vscode/out/
*.toml
*.txt
*.lock
*.md
.env
.env.*
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock

View file

@ -0,0 +1,6 @@
tinymist-*.vsix
*.log
test-dist
.vscode-test
coverage
out/

View file

@ -0,0 +1,11 @@
**
!out/extension.js
!out/extension.web.js
!out/server.js
!package.json
!package-lock.json
!icons/**
!syntaxes/**
!README.md
!LICENSE
!CHANGELOG.md

View file

@ -0,0 +1,11 @@
# Change Log
All notable changes to the "tinymist-html-ext" extension will be documented in this file.
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
The changelog lines unspecified with authors are all written by the @Myriad-Dreamin.
## v0.13.0 - [2025-02-22]
Initial release of the extension.

View file

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2023 Myriad Dreamin, Nathan Varner
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View file

@ -0,0 +1,16 @@
import { build } from "esbuild";
import * as fs from "fs";
if (!fs.existsSync("./out/extension.web.js")) {
fs.mkdirSync("./out", { recursive: true });
fs.writeFileSync("./out/extension.web.js", "");
}
build({
entryPoints: ["./src/extension.mts", "./src/server.mts"],
bundle: true,
outdir: "./out",
external: ["vscode"],
format: "cjs",
platform: "node",
}).catch(() => process.exit(1));

View file

@ -0,0 +1,29 @@
import { build } from "esbuild";
import { polyfillNode } from "esbuild-plugin-polyfill-node";
import * as fs from "fs";
if (!fs.existsSync("./out/extension.js")) {
fs.mkdirSync("./out", { recursive: true });
fs.writeFileSync("./out/extension.js", "");
}
build({
entryPoints: ["./src/extension.web.ts"],
bundle: true,
outfile: "./out/extension.web.js",
external: ["vscode"],
format: "cjs",
target: ["es2020", "chrome61", "edge18", "firefox60"],
// Node.js global to browser globalThis
define: {
global: "globalThis",
},
plugins: [
polyfillNode({
polyfills: {
crypto: "empty",
},
// Options (optional)
}),
],
}).catch(() => process.exit(1));

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -0,0 +1,80 @@
{
"name": "tinymist-vscode-html",
"version": "0.13.0",
"description": "Extending Typst with HTML features",
"keywords": [
"html",
"typst",
"language-server"
],
"categories": [
"Programming Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/Myriad-Dreamin/tinymist.git"
},
"displayName": "Tinymist Typst HTML",
"author": "Myriad-Dreamin",
"contributors": [
"Myriad-Dreamin"
],
"publisher": "myriad-dreamin",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.97.0"
},
"activationEvents": [
"onLanguage:typst"
],
"main": "./out/extension.js",
"browser": "./out/extension.web.js",
"icon": "./icons/ti-white.png",
"contributes": {
"commands": [
{
"command": "tinymist.showHtmlExtensionLog",
"title": "Show Log of the HTML extension",
"description": "Show log of the tinymist HTML extension",
"category": "Typst",
"icon": "$(list-flat)"
}
]
},
"scripts": {
"build-web-base": "node esbuild.web.mjs",
"build-system-base": "node esbuild.system.mjs",
"build-base": "yarn run build-web-base && yarn run build-system-base",
"compile-shared": "node scripts/check-version.mjs && node scripts/postinstall.cjs",
"compile:web": "yarn run build-web-base -- --minify && yarn run compile-shared",
"compile:system": "yarn run build-system-base -- --minify && yarn run compile-shared",
"package": "npx @vscode/vsce package --yarn",
"compile": "yarn run compile:system",
"watch": "yarn run build-system-base -- --sourcemap --watch",
"check": "tsc --noEmit",
"format-check": "prettier --check .",
"format": "prettier --write .",
"test": "rimraf test-dist/ && tsc -p tsconfig.test.json && node test-dist/test/runTests.js"
},
"dependencies": {
"css": "^3.0.0",
"esbuild-plugin-polyfill-node": "^0.3.0",
"lodash.flow": "^3.5.0",
"vscode-languageclient": "^9.0.0",
"vscode-languageserver": "^9.0.0",
"xxhashjs": "^0.2.2"
},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/css": "^0.0.38",
"@types/mocha": "^10.0.1",
"@types/node": "^22.13.4",
"@types/vscode": "^1.97.0",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.22.0",
"chai": "^5.1.1",
"mocha": "^10.2.0",
"ovsx": "^0.8.3",
"vscode-html-languageservice": "^5.3.1"
}
}

View file

@ -0,0 +1,15 @@
import { readFileSync } from "fs";
function check() {
const cargoToml = readFileSync("../../../../Cargo.toml", "utf8");
const cargoVersion = cargoToml.match(/version = "(.*?)"/)[1];
const pkgVersion = JSON.parse(readFileSync("package.json", "utf8")).version;
if (cargoVersion !== pkgVersion) {
throw new Error(
`Version mismatch: ${cargoVersion} (in Cargo.toml) !== ${pkgVersion} (in package.json)`,
);
}
}
check();

View file

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2023 Anders Ellenshøj Andersen <andersa@atlab.dk>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -0,0 +1,35 @@
let XXH = require("xxhashjs").h32;
export function flatten<T>(nestedArray: T[][]): T[] {
if (nestedArray.length === 0) {
throw new RangeError("Can't flatten an empty array.");
} else {
return nestedArray.reduce((a, b) => a.concat(b));
}
}
export function distinct<T>(items: T[] | Thenable<T[]>): Thenable<T[]> {
return Promise.resolve(items).then((items) => Array.from(new Set(items)));
}
export function distinctByXXHash<T>(items: T[] | Thenable<T[]>): Thenable<T[]> {
const initialValue = {
distinctItems: <T[]>[],
hashSet: new Set(),
};
const accumulatorPromise = Promise.resolve(items).then((items) =>
items.reduce((acc, item) => {
const hash = XXH(item, 0x1337).toNumber();
if (!acc.hashSet.has(hash)) {
acc.distinctItems.push(item);
acc.hashSet.add(hash);
}
return acc;
}, initialValue),
);
return accumulatorPromise.then((accumulator) => accumulator.distinctItems);
}

View file

@ -0,0 +1,34 @@
import { workspace, window } from "vscode";
// @ts-ignore
import flow from "lodash.flow";
import uriFilesReader from "./uriFilesReader";
import { distinct, distinctByXXHash } from "./arrayUtils";
import { parseCssTexts, getCSSRules, getCSSSelectors, getCSSClasses } from "./cssUtils";
const styleSheetsReader = flow(uriFilesReader, distinctByXXHash, parseCssTexts);
const distinctCSSClassesExtractor = flow(getCSSRules, getCSSSelectors, getCSSClasses, distinct);
export default function (): Thenable<string[]> {
const startTime = process.hrtime();
return styleSheetsReader(
workspace.findFiles("**/*.css", ""),
workspace.getConfiguration("files").get("encoding", "utf8"),
).then((parseResult: any) => {
return distinctCSSClassesExtractor(parseResult.styleSheets).then((distinctCssClasses: any) => {
const elapsedTime = process.hrtime(startTime);
console.log(`Elapsed time: ${elapsedTime[0]} s ${Math.trunc(elapsedTime[1] / 1e6)} ms`);
console.log(`Files processed: ${parseResult.styleSheets.length}`);
console.log(`Skipped due to parse errors: ${parseResult.unparsable.length}`);
console.log(`CSS classes discovered: ${distinctCssClasses.length}`);
window.setStatusBarMessage(
`HTML Class Suggestions processed ${parseResult.styleSheets.length} distinct css files and discovered ${distinctCssClasses.length} css classes.`,
10000,
);
return distinctCssClasses;
});
});
}

View file

@ -0,0 +1,39 @@
"use strict";
import * as vscode from "vscode";
import aggregator from "./cssAggregator";
export class CssCompletionItemProvider {
public completionItems?: PromiseLike<vscode.CompletionItem[]>;
constructor() {
this.refreshCompletionItems();
}
// public provideCompletionItems(
// document: vscode.TextDocument,
// position: vscode.Position,
// token: vscode.CancellationToken,
// ): Thenable<vscode.CompletionItem[]> {
// if (canTriggerCompletion(document, position)) {
// return this.completionItems as PromiseLike<vscode.CompletionItem[]>;
// } else {
// return Promise.reject<vscode.CompletionItem[]>("Not inside html class attribute.");
// }
// }
public refreshCompletionItems() {
this.completionItems = aggregator().then((cssClasses) => {
const completionItems = cssClasses.map((cssClass) => {
const completionItem = new vscode.CompletionItem(cssClass);
completionItem.detail = `Insert ${cssClass}`;
completionItem.insertText = cssClass;
completionItem.kind = vscode.CompletionItemKind.Value;
// make sure our completion item group are first
completionItem.preselect = true;
return completionItem;
});
return completionItems;
});
}
}

View file

@ -0,0 +1,105 @@
import { parse, Stylesheet, Rule, Media } from "css";
import { flatten } from "./arrayUtils";
export interface CSSTextsParseResult {
styleSheets: Stylesheet[];
unparsable: string[];
}
export function parseCssTexts(
cssTexts: string[] | Thenable<string[]>,
): Thenable<CSSTextsParseResult> {
const initialValue = {
styleSheets: <Stylesheet[]>[],
unparsable: <string[]>[],
};
return Promise.resolve(cssTexts).then((cssTexts) =>
cssTexts.reduce((acc, cssText) => {
try {
acc.styleSheets.push(parse(cssText));
} catch (error) {
acc.unparsable.push(cssText);
}
return acc;
}, initialValue),
);
}
export function getCSSRules(styleSheets: Stylesheet[] | Thenable<Stylesheet[]>): Thenable<Rule[]> {
return Promise.resolve(styleSheets).then((styleSheets) =>
styleSheets.reduce((acc, styleSheet) => {
return acc.concat(findRootRules(styleSheet), findMediaRules(styleSheet));
}, [] as Rule[]),
);
}
export function getCSSSelectors(rules: Rule[] | Thenable<Rule[]>): Thenable<string[]> {
return Promise.resolve(rules).then((rules) => {
if (rules.length > 0) {
return flatten(rules.map((rule) => rule.selectors!)).filter(
(value) => value && value.length > 0,
);
} else {
return [];
}
});
}
export function getCSSClasses(selectors: string[] | Thenable<string[]>): Thenable<string[]> {
return Promise.resolve(selectors).then((selectors) =>
selectors.reduce((acc, selector) => {
const className = findClassName(selector);
if (className && className.length > 0) {
acc.push(sanitizeClassName(className));
}
return acc;
}, [] as string[]),
);
}
export function findRootRules(cssAST: Stylesheet): Rule[] {
// @ts-ignore
return cssAST.stylesheet!.rules.filter((node) => (<Rule>node).type === "rule");
}
export function findMediaRules(cssAST: Stylesheet): Rule[] {
let mediaNodes = <Rule[]>cssAST.stylesheet!.rules.filter((node) => {
// @ts-ignore
return (<Rule>node).type === "media";
});
if (mediaNodes.length > 0) {
// @ts-ignore
return flatten(mediaNodes.map((node) => (<Media>node).rules!));
} else {
return [];
}
}
export function findClassName(selector: string): string {
let classNameStartIndex = selector.lastIndexOf(".");
if (classNameStartIndex >= 0) {
let classText = selector.substr(classNameStartIndex + 1);
// Search for one of ' ', '[', ':' or '>', that isn't escaped with a backslash
let classNameEndIndex = classText.search(/[^\\][\s\[:>]/);
if (classNameEndIndex >= 0) {
return classText.substr(0, classNameEndIndex + 1);
} else {
return classText;
}
} else {
return "";
}
}
export function sanitizeClassName(className: string): string {
return className.replace(/\\[!"#$%&'()*+,\-./:;<=>?@[\\\]^`{|}~]/g, (substr, ...args) => {
if (args.length === 2) {
return substr.slice(1);
} else {
return substr;
}
});
}

View file

@ -0,0 +1,23 @@
import * as path from 'path';
import { runTests } from '@vscode/test-electron';
async function main() {
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
// The path to test runner
// Passed to --extensionTestsPath
const extensionTestsPath = path.resolve(__dirname, './suite/index');
// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
} catch (err) {
console.error('Failed to run tests', err);
process.exit(1);
}
}
main();

View file

@ -0,0 +1,38 @@
import { findClassName, sanitizeClassName } from '../../cssUtils';
import * as assert from 'assert';
suite('Test cssUtils', () => {
suite('#findClassName', () => {
test('finds \'container\' in \'.container\'', () => {
assert.equal(findClassName('.container'), 'container');
});
test('finds \'bg-warning\' in \'a.bg-warning:hover\'', () => {
assert.equal(findClassName('a.bg-warning:hover'), 'bg-warning');
});
test('finds \'u-1\\/2\' in \'.u-1\\/2\'', () => {
assert.equal(findClassName('.u-1\\/2'), 'u-1\\/2');
});
test('finds \'ratio-16\\:9\' in \'.ratio-16\\:9\'', () => {
assert.equal(findClassName('.ratio-16\\:9'), 'ratio-16\\:9');
});
test('finds \'margin\\@palm\' in \'.margin\\@palm\'', () => {
assert.equal(findClassName('.margin\\@palm'), 'margin\\@palm');
});
});
suite('#sanitizeClassName', () => {
test('sanitizes \'u-1\\/2\' to \'u-1/2\'', () =>{
assert.equal(sanitizeClassName('u-1\\/2'), 'u-1/2');
});
test('sanitizes \'ratio-16\\:9\' to \'ratio-16:9\'', () =>{
assert.equal(sanitizeClassName('ratio-16\\:9'), 'ratio-16:9');
});
test('sanitizes \'margin\\@palm\' to \'margin@palm\'', () =>{
assert.equal(sanitizeClassName('margin\\@palm'), 'margin@palm');
});
test('sanitizes \'foo-1\\/2\\@bar\' to \'foo-1/2@bar\'', () =>{
assert.equal(sanitizeClassName('foo-1\\/2\\@bar'), 'foo-1/2@bar');
});
});
});

View file

@ -0,0 +1,38 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
export function run(): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
ui: "tdd",
color: true,
});
const testsRoot = path.resolve(__dirname, "..");
return new Promise((c, e) => {
glob("**/**.test.js", { cwd: testsRoot }, (err, files) => {
if (err) {
return e(err);
}
// Add files to the test suite
files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));
try {
// Run the mocha test
mocha.run((failures) => {
if (failures > 0) {
e(new Error(`${failures} tests failed.`));
} else {
c();
}
});
} catch (err) {
console.error(err);
e(err);
}
});
});
}

View file

@ -0,0 +1,14 @@
import uriFilesReader from "../../uriFilesReader";
import * as assert from "assert";
import { Uri } from "vscode";
suite("Test uriFilesReader", () => {
test("Can't load http protocol", () => {
const httpsUri = Uri.parse("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css");
return uriFilesReader([httpsUri], "utf8").then((data: any) => {
assert(false, "Expected promise to be rejected.");
},(err: any) => {
assert(err.code === "ENOENT");
});
});
});

View file

@ -0,0 +1,16 @@
import { Uri } from "vscode";
import { readFile } from "fs";
export default (uris: Uri[]|Thenable<Uri[]>, encoding: BufferEncoding): Thenable<string[]> => {
return Promise.resolve(uris).then(uris => {
return Promise.all(uris.map(uri => new Promise<string>((resolve, reject) => {
readFile(uri.fsPath, encoding, (err, data) => {
if (err) {
reject(err);
} else {
resolve(data.toString());
}
});
})));
});
};

View file

@ -0,0 +1,224 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
interface EmbeddedRegion {
languageId: string | undefined;
start: number;
end: number;
attributeValue?: boolean;
}
enum TokenKind {
Unknown,
Colon,
String,
Identifier,
}
class BackScanner {
currentToken: TokenKind = TokenKind.Unknown;
tokenContent: string = "";
constructor(
private documentText: string,
private offset: number,
) {
this.scanBack();
}
getCurrentToken() {
return this.currentToken;
}
scanBack() {
let i = this.offset;
this.currentToken = TokenKind.Unknown;
while (i >= 0) {
const ch = this.documentText[i];
i--;
// console.log("scanBack", ch, this.currentToken, this.tokenContent);
if (this.currentToken === TokenKind.Unknown) {
if (ch === ":") {
this.currentToken = TokenKind.Colon;
this.tokenContent = ch;
break;
} else if (ch === '"') {
this.currentToken = TokenKind.String;
this.tokenContent = ch;
} else if (/[a-zA-Z0-9\-]/.test(ch)) {
this.currentToken = TokenKind.Identifier;
this.tokenContent = ch;
} else if (/\s/.test(ch)) {
// ignore
} else {
break;
}
} else if (this.currentToken === TokenKind.String) {
this.tokenContent = ch + this.tokenContent;
if (ch === '"') {
break;
}
} else if (this.currentToken === TokenKind.Identifier) {
if (/[a-zA-Z0-9\-]/.test(ch)) {
this.tokenContent = ch + this.tokenContent;
} else {
break;
}
}
}
this.offset = i;
}
}
export function isInsideClassAttribute(documentText: string, offset: number) {
console.log("isInsideClassAttribute", offset);
// string start
let start = offset - 1;
while (start >= 0) {
if (documentText[start] === '"') {
let shashCount = 0;
while (start > 0) {
if (documentText[start - 1] === "\\") {
shashCount++;
start--;
} else {
break;
}
}
if (shashCount % 2 === 0) {
break;
}
start--;
} else {
start--;
}
}
if (start >= 0 && documentText[start] === '"') {
start -= 1;
// find class attribute
const reverseScanner = new BackScanner(documentText, start);
if (reverseScanner.getCurrentToken() !== TokenKind.Colon) {
return false;
}
reverseScanner.scanBack();
if (reverseScanner.getCurrentToken() === TokenKind.Identifier) {
console.log("found class attribute", reverseScanner.tokenContent);
return reverseScanner.tokenContent === "class";
}
if (reverseScanner.getCurrentToken() === TokenKind.String) {
console.log("found class attribute", reverseScanner.tokenContent);
return reverseScanner.tokenContent === '"class"';
}
}
return false;
}
export function parseRawBlockRegion(
documentText: string,
offset: number,
): EmbeddedRegion | undefined {
let start = offset - 1;
while (start >= 0) {
if (documentText[start] === "`") {
start -= 2;
if (start < 0 || documentText.slice(start, start + 3) !== "```") {
break;
}
let languageOffset = start + 3;
let backtickStart = start;
while (backtickStart > 0 && documentText[backtickStart - 1] === "`") {
backtickStart -= 1;
}
let numOfBackticks = languageOffset - backtickStart;
let languageStart = languageOffset;
while (languageOffset < offset) {
if (/\s/.test(documentText[languageOffset])) {
break;
}
languageOffset++;
}
let languageId = documentText.slice(languageStart, languageOffset);
console.log("numOfBackticks", numOfBackticks, languageOffset, languageId);
let rawOffset = languageOffset;
let rawEnd = languageOffset;
let accumulatedBacktick = 0;
while (rawEnd < documentText.length) {
const isBacktick = documentText[rawEnd] === "`";
rawEnd++;
if (isBacktick) {
accumulatedBacktick++;
} else {
if (accumulatedBacktick >= numOfBackticks) {
break;
}
accumulatedBacktick = 0;
}
}
if (accumulatedBacktick > rawEnd) {
return;
}
rawEnd -= accumulatedBacktick;
const rawContent = documentText.slice(rawOffset, rawEnd);
console.log("raw content", languageId, rawOffset, rawEnd, rawContent);
// return [languageId, rawOffset, rawEnd];
return {
languageId,
start: rawOffset,
end: rawEnd,
};
}
start--;
}
return;
}
/**
* Extract embedded regions from a document
*
* @param documentText The content of the document
* @param regions The regions to embed
* @param langId The language id to extract
* @returns The content of the document with the regions embedded
*/
export function getVirtualContent(
documentText: string,
regions: EmbeddedRegion[],
langId: string,
): string {
// Keeps space.
let content = documentText
.split("\n")
.map((line) => {
return " ".repeat(line.length);
})
.join("\n");
regions.forEach((r) => {
if (r.languageId === langId) {
content =
content.slice(0, r.start) + documentText.slice(r.start, r.end) + content.slice(r.end);
}
});
return content;
}

View file

@ -0,0 +1,143 @@
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
import * as path from "path";
import * as vscode from "vscode";
import { commands, CompletionList, ExtensionContext, Uri } from "vscode";
import {
type LanguageClientOptions,
type ServerOptions,
LanguageClient,
TransportKind,
} from "vscode-languageclient/node";
import { getVirtualContent, isInsideClassAttribute, parseRawBlockRegion } from "./embeddedSupport";
import { cssActivate } from "./features/css";
let client: LanguageClient;
export function activate(context: ExtensionContext) {
const tinymistExtension = vscode.extensions.getExtension("myriad-dreamin.tinymist");
if (!tinymistExtension) {
void vscode.window.showWarningMessage(
"Tinymist HTML:\n\nTinymist LSP feature is required. Please install Tinymist Typst Extension (myriad-dreamin.tinymist).",
);
}
const provider = cssActivate(context);
// The server is implemented in node
const serverModule = context.asAbsolutePath(path.join("out", "server.js"));
// If the extension is launched in debug mode then the debug server options are used
// Otherwise the run options are used
const serverOptions: ServerOptions = {
run: { module: serverModule, transport: TransportKind.ipc },
debug: {
module: serverModule,
transport: TransportKind.ipc,
},
};
const virtualDocumentContents = new Map<string, string>();
const removeSuffix = (uri: string) => uri.replace(/\.(html|css)$/, "");
vscode.workspace.registerTextDocumentContentProvider("embedded-content", {
provideTextDocumentContent: (uri) => {
const originalUri = removeSuffix(uri.path.slice(1));
const decodedUri = decodeURIComponent(originalUri);
console.log("provideTextDocumentContent gg", uri.path, originalUri, decodedUri);
return virtualDocumentContents.get(decodedUri);
},
});
const clientOptions: LanguageClientOptions = {
documentSelector: [{ scheme: "file", language: "typst" }],
middleware: {
provideCompletionItem: async (document, position, context, token, next) => {
const res = await vscode.commands.executeCommand<
[{ mode: "math" | "markup" | "code" | "comment" | "string" | "raw" }]
>("tinymist.interactCodeContext", {
textDocument: {
uri: document.uri.toString(),
},
query: [
{
kind: "modeAt",
position: {
line: position.line,
character: position.character,
},
},
],
});
const inString = res[0]?.mode === "string";
const inRaw = res[0]?.mode === "raw";
// If completes the content of a `class` attribute, completes classes found in the css
// files.
if (inString && isInsideClassAttribute(document.getText(), document.offsetAt(position))) {
return provider.completionItems;
}
if (!inRaw) {
console.log("not in raw");
return await next(document, position, context, token);
}
// If not in `<style>`, do not perform request forwarding
const virtualContent = parseRawBlockRegion(document.getText(), document.offsetAt(position));
if (!virtualContent) {
return await next(document, position, context, token);
}
const langId = virtualContent.languageId;
if (langId !== "html" && langId !== "css") {
return await next(document, position, context, token);
}
const originalUri = document.uri.toString(true);
virtualDocumentContents.set(
originalUri,
getVirtualContent(document.getText(), [virtualContent], langId!),
);
const vdocUriString = `embedded-content://${langId}/${encodeURIComponent(originalUri)}.${langId}`;
const vdocUri = Uri.parse(vdocUriString);
return await commands.executeCommand<CompletionList>(
"vscode.executeCompletionItemProvider",
vdocUri,
position,
context.triggerCharacter,
);
},
},
};
// Create the language client and start the client.
client = new LanguageClient(
"TinymistTypstHTMLExtension",
"Tinymist Typst HTML Extension",
serverOptions,
clientOptions,
);
context.subscriptions.push(
vscode.commands.registerCommand("tinymist-html-ext.showLog", () => {
client.outputChannel?.show();
}),
);
// Start the client. This will also launch the server
client.start();
}
export function deactivate(): Thenable<void> | undefined {
if (!client) {
return undefined;
}
return client.stop();
}

View file

@ -0,0 +1,16 @@
import * as vscode from "vscode";
import { CssCompletionItemProvider } from "../css/cssCompletionItemProvider";
export function cssActivate(context: vscode.ExtensionContext) {
let provider = new CssCompletionItemProvider();
context.subscriptions.push(
vscode.workspace.onDidSaveTextDocument((e) => {
if (e.languageId === "css") {
provider.refreshCompletionItems();
}
}),
);
return provider;
}

View file

@ -0,0 +1,62 @@
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
import { getLanguageService } from "vscode-html-languageservice/lib/esm/htmlLanguageService";
import {
createConnection,
InitializeParams,
ProposedFeatures,
TextDocuments,
TextDocumentSyncKind,
} from "vscode-languageserver/node";
import { TextDocument } from "vscode-languageserver-textdocument";
// Create a connection for the server. The connection uses Node's IPC as a transport.
// Also include all preview / proposed LSP features.
const connection = createConnection(ProposedFeatures.all);
// Create a simple text document manager. The text document manager
// supports full document sync only
const documents = new TextDocuments(TextDocument);
const htmlLanguageService = getLanguageService();
connection.onInitialize((_params: InitializeParams) => {
console.log("initialize server");
return {
capabilities: {
textDocumentSync: TextDocumentSyncKind.Full,
// Tell the client that the server supports code completion
completionProvider: {
triggerCharacters: [
..."abcdefghijklmnopqrstuvwxyz".split(""),
..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),
],
resolveProvider: false,
},
},
};
});
connection.onCompletion(async (textDocumentPosition, _token) => {
console.log(
"provideCompletionItem server",
textDocumentPosition.textDocument.uri,
textDocumentPosition.position,
);
const document = documents.get(textDocumentPosition.textDocument.uri);
if (!document) {
return null;
}
return htmlLanguageService.doComplete(
document,
textDocumentPosition.position,
htmlLanguageService.parseHTMLDocument(document),
);
});
documents.listen(connection);
connection.listen();

View file

@ -0,0 +1,14 @@
{
"compilerOptions": {
"module": "commonjs",
"types": ["mocha", "chai", "node"],
"target": "es2020",
"lib": ["es2020"],
"outDir": "out",
"rootDir": "src",
"sourceMap": true,
"strict": true
},
"include": ["src", "scripts"],
"exclude": ["node_modules/*", "../../node_modules/*"]
}

View file

@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "test-dist"
},
"include": ["src/test"],
"exclude": ["node_modules"]
}

View file

@ -1,24 +0,0 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
}

View file

@ -257,7 +257,7 @@
"watch": "yarn run build-base -- --sourcemap --watch",
"pretest": "yarn run compile && yarn run lint",
"package": "vsce package --yarn",
"lint": "eslint src --ext ts",
"lint": "eslint src",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
@ -267,11 +267,8 @@
"@types/node": "^22.13.4",
"@types/vscode": "^1.97.0",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^8.24.0",
"@typescript-eslint/parser": "^8.2.4",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.22.0",
"eslint": "^9.20.1",
"glob": "^8.1.0",
"mocha": "^10.2.0",
"typescript": "^5.2.2"

View file

@ -1,3 +0,0 @@
.eslintrc.js
out/
node_modules/

View file

@ -1,89 +0,0 @@
const tsRule = {
files: ['*.ts'],
ignorePatterns: ['esbuild.config.mjs'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 10,
project: ['./tsconfig.lib.json'],
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
plugins: [
'@typescript-eslint',
// "@angular-eslint/eslint-plugin"
],
rules: {
'@typescript-eslint/indent': [
'error',
2,
{
SwitchCase: 1,
},
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
semi: [2, 'always'],
'@typescript-eslint/no-inferrable-types': [
'error',
{
ignoreParameters: true,
ignoreProperties: true,
},
],
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/unbound-method': 0,
// "@angular-eslint/use-injectable-provided-in": "error",
// "@angular-eslint/no-attribute-decorator": "error"
},
};
// noinspection SpellCheckingInspection
module.exports = {
env: {
browser: true,
node: true,
es6: true,
es2015: true,
es2017: true,
},
overrides: [
tsRule,
// {
// "files": ["*.component.html"],
// "parser": "@angular-eslint/template-parser",
// "plugins": ["@angular-eslint/template"],
// "rules": {
// "@angular-eslint/template/banana-in-a-box": "error",
// "@angular-eslint/template/no-negated-async": "error"
// }
// },
],
};

View file

@ -1,11 +0,0 @@
.DS_Store
icons/
node_modules/
out/
.env
.env.*
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock

View file

@ -1,9 +1,9 @@
import { build } from "esbuild";
import * as fs from 'fs';
import * as fs from "fs";
if (!fs.existsSync('./out/extension.web.js')) {
fs.mkdirSync('./out', { recursive: true });
fs.writeFileSync('./out/extension.web.js', '');
if (!fs.existsSync("./out/extension.web.js")) {
fs.mkdirSync("./out", { recursive: true });
fs.writeFileSync("./out/extension.web.js", "");
}
build({

View file

@ -1,10 +1,10 @@
import { build } from "esbuild";
import { polyfillNode } from "esbuild-plugin-polyfill-node";
import * as fs from 'fs';
import * as fs from "fs";
if (!fs.existsSync('./out/extension.js')) {
fs.mkdirSync('./out', { recursive: true });
fs.writeFileSync('./out/extension.js', '');
if (!fs.existsSync("./out/extension.js")) {
fs.mkdirSync("./out", { recursive: true });
fs.writeFileSync("./out/extension.js", "");
}
build({
@ -16,7 +16,7 @@ build({
target: ["es2020", "chrome61", "edge18", "firefox60"],
// Node.js global to browser globalThis
define: {
global: 'globalThis'
global: "globalThis",
},
plugins: [
polyfillNode({

View file

@ -1164,12 +1164,10 @@
"compile-shared": "yarn run build:syntax && yarn run build:frontend && node scripts/check-version.mjs && node scripts/postinstall.cjs && node scripts/config-man.cjs",
"compile:web": "yarn run build-web-base -- --minify && yarn run compile-shared",
"compile:system": "yarn run build-system-base -- --minify && yarn run compile-shared",
"package": "vsce package --yarn",
"package": "npx @vscode/vsce package --yarn",
"compile": "yarn run compile:system",
"watch": "yarn run build-system-base -- --sourcemap --watch",
"check": "tsc --noEmit",
"lint": "eslint ./src --ext .ts",
"lint-fix": "eslint ./src --ext .ts --fix",
"format-check": "prettier --check .",
"format": "prettier --write .",
"test": "rimraf test-dist/ && tsc -p tsconfig.test.json && node test-dist/test/runTests.js"

View file

@ -104,7 +104,7 @@ function makeLabelTree(labels: LabelViewItem[]): LabelViewItem[] {
(currentTrie.refs ||= []).push(label);
}
const merged = mergeLabelTree(trie);
const merged = mergeLabelTree(trie);
// If there's only one label in the document, the result of `mergeLabelTree` is that label
// and has no children. So make make a list out of that by hand here.
const items = merged.children ?? [merged];

99
eslint.config.mjs Normal file
View file

@ -0,0 +1,99 @@
import globals from "globals";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
export default [
{
ignores: ["**/.eslintrc.js", "**/out/", "**/node_modules/"],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
...compat
.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
)
.map((config) => ({
...config,
files: ["editors/vscode/**/*.ts"],
})),
{
files: ["editors/vscode/**/*.ts"],
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
parser: tsParser,
ecmaVersion: 10,
sourceType: "module",
parserOptions: {
project: ["./editors/vscode/tsconfig.json"],
ecmaFeatures: {
modules: true,
},
},
},
rules: {
// "@typescript-eslint/member-delimiter-style": [
// "error",
// {
// multiline: {
// delimiter: "semi",
// requireLast: true,
// },
// singleline: {
// delimiter: "semi",
// requireLast: false,
// },
// },
// ],
semi: [2, "always"],
"@typescript-eslint/no-inferrable-types": [
"error",
{
ignoreParameters: true,
ignoreProperties: true,
},
],
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/unbound-method": 0,
},
},
];

View file

@ -8,6 +8,7 @@
"crates/tinymist-core",
"editors/vscode",
"contrib/typst-preview/editors/vscode",
"contrib/html/editors/vscode",
"tools/editor-tools",
"tools/typst-dom",
"tools/typst-preview-frontend"
@ -19,6 +20,8 @@
"docs": "shiroa serve --font-path assets/fonts -w . docs/tinymist",
"docs:typ": "node scripts/link-docs.mjs",
"docs:rs": "cargo doc --workspace --document-private-items --no-deps",
"lint": "eslint editors/vscode/src",
"lint-fix": "eslint editors/vscode/src --fix",
"test:grammar": "cd syntaxes/textmate && yarn run test",
"build:typlite": "cargo build --bin typlite",
"typlite": "target/debug/typlite",
@ -29,6 +32,13 @@
},
"dependencies": {},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.24.1",
"@typescript-eslint/parser": "^8.24.1",
"eslint": "^9.20.1",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^17.15.1",
"eslint-plugin-promise": "^7.2.1",
"cpr": "^3.0.1",
"prettier": "^3.0.3",
"rimraf": "^6.0.1",

205
yarn.lock
View file

@ -563,6 +563,11 @@
dependencies:
"@types/node" "*"
"@types/css@^0.0.38":
version "0.0.38"
resolved "https://registry.yarnpkg.com/@types/css/-/css-0.0.38.tgz#fe7291e420488528305e68b1a6fc0486ba5e8a75"
integrity sha512-FsAy4pBnrJb8qdKmIyDy582o4Xt8pHwpCwYRmIvXw4dslA7C4436oOM+8XNnMEsV/LSculbFNaZsBZmycDjARw==
"@types/deep-eql@*":
version "4.0.2"
resolved "https://registry.yarnpkg.com/@types/deep-eql/-/deep-eql-4.0.2.tgz#334311971d3a07121e7eb91b684a605e7eea9cbd"
@ -642,6 +647,21 @@
natural-compare "^1.4.0"
ts-api-utils "^2.0.1"
"@typescript-eslint/eslint-plugin@^8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.24.1.tgz#d104c2a6212304c649105b18af2c110b4a1dd4ae"
integrity sha512-ll1StnKtBigWIGqvYDVuDmXJHVH4zLVot1yQ4fJtLpL7qacwkxJc1T0bptqw+miBQ/QfUbhl1TcQ4accW5KUyA==
dependencies:
"@eslint-community/regexpp" "^4.10.0"
"@typescript-eslint/scope-manager" "8.24.1"
"@typescript-eslint/type-utils" "8.24.1"
"@typescript-eslint/utils" "8.24.1"
"@typescript-eslint/visitor-keys" "8.24.1"
graphemer "^1.4.0"
ignore "^5.3.1"
natural-compare "^1.4.0"
ts-api-utils "^2.0.1"
"@typescript-eslint/parser@^8.2.4":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.24.0.tgz#bba837f9ee125b78f459ad947ff9b61be8139085"
@ -653,6 +673,17 @@
"@typescript-eslint/visitor-keys" "8.24.0"
debug "^4.3.4"
"@typescript-eslint/parser@^8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.24.1.tgz#67965c2d2ddd7eadb2f094c395695db8334ef9a2"
integrity sha512-Tqoa05bu+t5s8CTZFaGpCH2ub3QeT9YDkXbPd3uQ4SfsLoh1/vv2GEYAioPoxCWJJNsenXlC88tRjwoHNts1oQ==
dependencies:
"@typescript-eslint/scope-manager" "8.24.1"
"@typescript-eslint/types" "8.24.1"
"@typescript-eslint/typescript-estree" "8.24.1"
"@typescript-eslint/visitor-keys" "8.24.1"
debug "^4.3.4"
"@typescript-eslint/scope-manager@8.24.0":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.24.0.tgz#2e34b3eb2ce768f2ffb109474174ced5417002b1"
@ -661,6 +692,14 @@
"@typescript-eslint/types" "8.24.0"
"@typescript-eslint/visitor-keys" "8.24.0"
"@typescript-eslint/scope-manager@8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.24.1.tgz#1e1e76ec4560aa85077ab36deb9b2bead4ae124e"
integrity sha512-OdQr6BNBzwRjNEXMQyaGyZzgg7wzjYKfX2ZBV3E04hUCBDv3GQCHiz9RpqdUIiVrMgJGkXm3tcEh4vFSHreS2Q==
dependencies:
"@typescript-eslint/types" "8.24.1"
"@typescript-eslint/visitor-keys" "8.24.1"
"@typescript-eslint/type-utils@8.24.0":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.24.0.tgz#6ee3ec4db06f9e5e7b01ca6c2b5dd5843a9fd1e8"
@ -671,11 +710,26 @@
debug "^4.3.4"
ts-api-utils "^2.0.1"
"@typescript-eslint/type-utils@8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.24.1.tgz#99113e1df63d1571309d87eef68967344c78dd65"
integrity sha512-/Do9fmNgCsQ+K4rCz0STI7lYB4phTtEXqqCAs3gZW0pnK7lWNkvWd5iW545GSmApm4AzmQXmSqXPO565B4WVrw==
dependencies:
"@typescript-eslint/typescript-estree" "8.24.1"
"@typescript-eslint/utils" "8.24.1"
debug "^4.3.4"
ts-api-utils "^2.0.1"
"@typescript-eslint/types@8.24.0":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.24.0.tgz#694e7fb18d70506c317b816de9521300b0f72c8e"
integrity sha512-VacJCBTyje7HGAw7xp11q439A+zeGG0p0/p2zsZwpnMzjPB5WteaWqt4g2iysgGFafrqvyLWqq6ZPZAOCoefCw==
"@typescript-eslint/types@8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.24.1.tgz#8777a024f3afc4ace5e48f9a804309c6dd38f95a"
integrity sha512-9kqJ+2DkUXiuhoiYIUvIYjGcwle8pcPpdlfkemGvTObzgmYfJ5d0Qm6jwb4NBXP9W1I5tss0VIAnWFumz3mC5A==
"@typescript-eslint/typescript-estree@8.24.0":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.24.0.tgz#0487349be174097bb329a58273100a9629e03c6c"
@ -690,6 +744,20 @@
semver "^7.6.0"
ts-api-utils "^2.0.1"
"@typescript-eslint/typescript-estree@8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.24.1.tgz#3bb479401f8bd471b3c6dd3db89e7256977c54db"
integrity sha512-UPyy4MJ/0RE648DSKQe9g0VDSehPINiejjA6ElqnFaFIhI6ZEiZAkUI0D5MCk0bQcTf/LVqZStvQ6K4lPn/BRg==
dependencies:
"@typescript-eslint/types" "8.24.1"
"@typescript-eslint/visitor-keys" "8.24.1"
debug "^4.3.4"
fast-glob "^3.3.2"
is-glob "^4.0.3"
minimatch "^9.0.4"
semver "^7.6.0"
ts-api-utils "^2.0.1"
"@typescript-eslint/utils@8.24.0":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.24.0.tgz#21cb1195ae79230af825bfeed59574f5cb70a749"
@ -700,6 +768,16 @@
"@typescript-eslint/types" "8.24.0"
"@typescript-eslint/typescript-estree" "8.24.0"
"@typescript-eslint/utils@8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.24.1.tgz#08d14eac33cfb3456feeee5a275b8ad3349e52ed"
integrity sha512-OOcg3PMMQx9EXspId5iktsI3eMaXVwlhC8BvNnX6B5w9a4dVgpkQZuU8Hy67TolKcl+iFWq0XX+jbDGN4xWxjQ==
dependencies:
"@eslint-community/eslint-utils" "^4.4.0"
"@typescript-eslint/scope-manager" "8.24.1"
"@typescript-eslint/types" "8.24.1"
"@typescript-eslint/typescript-estree" "8.24.1"
"@typescript-eslint/visitor-keys@8.24.0":
version "8.24.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.24.0.tgz#36ecf0b9b1d819ad88a3bd4157ab7d594cb797c9"
@ -708,6 +786,14 @@
"@typescript-eslint/types" "8.24.0"
eslint-visitor-keys "^4.2.0"
"@typescript-eslint/visitor-keys@8.24.1":
version "8.24.1"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.24.1.tgz#8bdfe47a89195344b34eb21ef61251562148202b"
integrity sha512-EwVHlp5l+2vp8CoqJm9KikPZgi3gbdZAtabKT9KPShGeOcJhsv4Zdo3oc8T8I0uKEmYoU4ItyxbptjF08enaxg==
dependencies:
"@typescript-eslint/types" "8.24.1"
eslint-visitor-keys "^4.2.0"
"@vitest/expect@3.0.5":
version "3.0.5"
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-3.0.5.tgz#aa0acd0976cf56842806e5dcaebd446543966b14"
@ -767,6 +853,11 @@
loupe "^3.1.2"
tinyrainbow "^2.0.0"
"@vscode/l10n@^0.0.18":
version "0.0.18"
resolved "https://registry.yarnpkg.com/@vscode/l10n/-/l10n-0.0.18.tgz#916d3a5e960dbab47c1c56f58a7cb5087b135c95"
integrity sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==
"@vscode/test-electron@^2.3.9":
version "2.4.1"
resolved "https://registry.yarnpkg.com/@vscode/test-electron/-/test-electron-2.4.1.tgz#5c2760640bf692efbdaa18bafcd35fb519688941"
@ -1020,6 +1111,11 @@ asynckit@^0.4.0:
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
atob@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
available-typed-arrays@^1.0.7:
version "1.0.7"
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846"
@ -1152,7 +1248,7 @@ camelcase@^6.0.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
chai@^5.1.2, chai@^5.2.0:
chai@^5.1.1, chai@^5.1.2, chai@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/chai/-/chai-5.2.0.tgz#1358ee106763624114addf84ab02697e411c9c05"
integrity sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==
@ -1360,11 +1456,25 @@ css-what@^6.1.0:
resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==
css@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/css/-/css-3.0.0.tgz#4447a4d58fdd03367c516ca9f64ae365cee4aa5d"
integrity sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==
dependencies:
inherits "^2.0.4"
source-map "^0.6.1"
source-map-resolve "^0.6.0"
csv-stringify@^6.5.0:
version "6.5.1"
resolved "https://registry.yarnpkg.com/csv-stringify/-/csv-stringify-6.5.1.tgz#a31837dd35e34787e3c248159c982a21af964d94"
integrity sha512-+9lpZfwpLntpTIEpFbwQyWuW/hmI/eHuJZD1XzeZpfZTqkf1fyvBbBLXTJJMsBuuS11uTShMqPwzx4A6ffXgRQ==
cuint@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/cuint/-/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b"
integrity sha512-d4ZVpCW31eWwCMe1YT3ur7mUDnTXbgwyzaL320DrcRT45rfjYxkt5QWLrmOJ+/UEAI2+fQgKe/fCjR8l4TpRgw==
data-uri-to-buffer@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e"
@ -1423,6 +1533,11 @@ decamelize@^4.0.0:
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837"
integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==
decode-uri-component@^0.2.0:
version "0.2.2"
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
decompress-response@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc"
@ -2721,6 +2836,11 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"
lodash.flow@^3.5.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/lodash.flow/-/lodash.flow-3.5.0.tgz#87bf40292b8cf83e4e8ce1a3ae4209e20071675a"
integrity sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==
lodash.includes@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
@ -3653,6 +3773,19 @@ source-map-js@^1.2.1:
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
source-map-resolve@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.6.0.tgz#3d9df87e236b53f16d01e58150fc7711138e5ed2"
integrity sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==
dependencies:
atob "^2.1.2"
decode-uri-component "^0.2.0"
source-map@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
stackback@0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/stackback/-/stackback-0.0.2.tgz#1ac8a0d9483848d1695e418b6d031a3c3ce68e3b"
@ -3675,8 +3808,16 @@ stoppable@^1.1.0:
resolved "https://registry.yarnpkg.com/stoppable/-/stoppable-1.1.0.tgz#32da568e83ea488b08e4d7ea2c3bcc9d75015d5b"
integrity sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
name string-width-cjs
"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"
string-width@^4.1.0, string-width@^4.2.0:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@ -3745,8 +3886,14 @@ string_decoder@~1.1.1:
dependencies:
safe-buffer "~5.1.0"
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
name strip-ansi-cjs
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@ -4128,6 +4275,16 @@ vitest@^3.0.5:
vite-node "3.0.5"
why-is-node-running "^2.3.0"
vscode-html-languageservice@^5.3.1:
version "5.3.1"
resolved "https://registry.yarnpkg.com/vscode-html-languageservice/-/vscode-html-languageservice-5.3.1.tgz#93cac1cebb42165b52a15220f02c47d1320fc43a"
integrity sha512-ysUh4hFeW/WOWz/TO9gm08xigiSsV/FOAZ+DolgJfeLftna54YdmZ4A+lIn46RbdO3/Qv5QHTn1ZGqmrXQhZyA==
dependencies:
"@vscode/l10n" "^0.0.18"
vscode-languageserver-textdocument "^1.0.12"
vscode-languageserver-types "^3.17.5"
vscode-uri "^3.0.8"
vscode-jsonrpc@8.2.0:
version "8.2.0"
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz#f43dfa35fb51e763d17cd94dcca0c9458f35abf9"
@ -4150,11 +4307,28 @@ vscode-languageserver-protocol@3.17.5:
vscode-jsonrpc "8.2.0"
vscode-languageserver-types "3.17.5"
vscode-languageserver-types@3.17.5:
vscode-languageserver-textdocument@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz#457ee04271ab38998a093c68c2342f53f6e4a631"
integrity sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==
vscode-languageserver-types@3.17.5, vscode-languageserver-types@^3.17.5:
version "3.17.5"
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz#3273676f0cf2eab40b3f44d085acbb7f08a39d8a"
integrity sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==
vscode-languageserver@^9.0.0:
version "9.0.1"
resolved "https://registry.yarnpkg.com/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz#500aef82097eb94df90d008678b0b6b5f474015b"
integrity sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==
dependencies:
vscode-languageserver-protocol "3.17.5"
vscode-uri@^3.0.8:
version "3.1.0"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.1.0.tgz#dd09ec5a66a38b5c3fffc774015713496d14e09c"
integrity sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==
vscode-variables@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/vscode-variables/-/vscode-variables-0.1.3.tgz#7d035e66dbeec7385d04de6478ff942f53fa4178"
@ -4224,8 +4398,16 @@ workerpool@^6.5.1:
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
name wrap-ansi-cjs
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"
wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@ -4266,6 +4448,13 @@ xmlbuilder@~11.0.0:
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3"
integrity sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==
xxhashjs@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/xxhashjs/-/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8"
integrity sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw==
dependencies:
cuint "^0.2.2"
y18n@^5.0.5:
version "5.0.8"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"