mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-07 00:12:21 +01:00
An open-source, cross-platform terminal for seamless workflows
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps the prod-dependencies group with 1 update: [css-tree](https://github.com/csstree/csstree). Updates `css-tree` from 2.3.1 to 3.0.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/csstree/csstree/releases">css-tree's releases</a>.</em></p> <blockquote> <h2>3.0.0</h2> <ul> <li>Added support for the <a href="https://drafts.csswg.org/css-contain-3/#container-rule"><code>@container</code></a> at-rule</li> <li>Added support for the <a href="https://drafts.csswg.org/css-transitions-2/#defining-before-change-style"><code>@starting-style</code></a> at-rule</li> <li>Added support for the <a href="https://drafts.csswg.org/css-cascade-6/#scoped-styles"><code>@scope</code></a> at-rule</li> <li>Added support for the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/@position-try"><code>@position-try</code></a> at-rule</li> <li>Added support for the <a href="https://drafts.csswg.org/css-cascade-5/#at-layer"><code>@layer</code></a> at-rule</li> <li>Added support for <code>layer</code>, <code>layer()</code> and <code>supports()</code> in the <code>@media</code> at-rule (according to <a href="https://drafts.csswg.org/css-cascade-5/#at-import"><code>the @import rule</code></a> in Cascading and Inheritance 5)</li> <li>Added <code>Layer</code> and <code>LayerList</code> node types</li> <li>Added <code>TokenStream#lookupTypeNonSC()</code> method</li> <li>Added <code><dashed-ident></code> to generic types</li> <li>Bumped <code>mdn/data</code> to <code>2.10.0</code></li> <li>Aligned <code><'font'></code> to <a href="https://drafts.csswg.org/css-fonts-4/">CSS Fonts 4</a></li> <li>Aligned <code><color></code> to <a href="https://drafts.csswg.org/css-color-5/">CSS Color 5</a></li> <li>Fixed initialization when <code>Object.prototype</code> is extended or polluted (<a href="https://redirect.github.com/csstree/csstree/issues/262">#262</a>)</li> <li>Fixed <code>fork()</code> method to consider the <code>generic</code> option when creating a Lexer instance (<a href="https://redirect.github.com/csstree/csstree/issues/266">#266</a>)</li> <li>Fixed crash on parse error when custom <code>line</code> or <code>offset</code> is specified via options (<a href="https://redirect.github.com/csstree/csstree/issues/251">#251</a>)</li> <li>Fixed <code>speak</code> syntax patch (<a href="https://redirect.github.com/csstree/csstree/issues/241">#241</a>)</li> <li>Fixed <code>:lang()</code> to accept a list of <code><ident></code> or <code><string></code> per <a href="https://drafts.csswg.org/selectors/#the-lang-pseudo">spec</a> (<a href="https://redirect.github.com/csstree/csstree/issues/265">#265</a>)</li> <li>Fixed lexer matching for syntaxes referred to as <code><'property'></code>, when the syntax has a top-level <code>#</code>-multiplier (<a href="https://redirect.github.com/csstree/csstree/issues/102">#102</a>)</li> <li>Relaxed parsing of syntax definition to allow whitespaces in range multiplier (<a href="https://redirect.github.com/csstree/csstree/issues/270">#270</a>)</li> <li>Changed <code>parseWithFallback()</code> to rollback <code>tokenIndex</code> before calling a fallback</li> <li>Changed <code>Block</code> to not include <code>{</code> and <code>}</code></li> <li>Changed <code>Atrule</code> and <code>Rule</code> to include <code>{</code> and <code>}</code> for a block</li> <li>Changed <code>Ratio</code> parsing: <ul> <li>Left and right parts contain nodes instead of strings</li> <li>Both left and right parts of a ratio can now be any number; validation of number range is no longer within the parser's scope.</li> <li>Both parts can now be functions. Although not explicitly mentioned in the specification, mathematical functions can replace numbers, addressing potential use cases (<a href="https://redirect.github.com/csstree/csstree/issues/162">#162</a>).</li> <li>As per the <a href="https://drafts.csswg.org/css-values-4/#ratios">CSS Values and Units Level 4</a> specification, the right part of <code>Ratio</code> can be omitted. While this can't be a parser output (which would produce a <code>Number</code> node), it's feasible during <code>Ratio</code> node construction or transformation.</li> </ul> </li> <li>Changes to query-related at-rules: <ul> <li>Added new node types: <ul> <li><a href="https://github.com/csstree/csstree/blob/HEAD/docs/ast.md#feature"><code>Feature</code></a>: represents features like <code>(feature)</code> and <code>(feature: value)</code>, fundamental for both <code>@media</code> and <code>@container</code> at-rules</li> <li><a href="https://github.com/csstree/csstree/blob/HEAD/docs/ast.md#featurerange"><code>FeatureRange</code></a>: represents <a href="https://www.w3.org/TR/mediaqueries-4/#mq-range-context">features in a range context</a></li> <li><a href="https://github.com/csstree/csstree/blob/HEAD/docs/ast.md#featurefunction"><code>FeatureFunction</code></a>: represents functional features such as <code>@supports</code>'s <code>selector()</code> or <code>@container</code>'s <code>style()</code></li> <li><a href="https://github.com/csstree/csstree/blob/HEAD/docs/ast.md#condition"><code>Condition</code></a>: used across all query-like at-rules, encapsulating queries with features and the <code>not</code>, <code>and</code>, and <code>or</code> operators</li> <li><a href="https://github.com/csstree/csstree/blob/HEAD/docs/ast.md#condition"><code>GeneralEnclosure</code></a>: represents the <a href="https://www.w3.org/TR/mediaqueries-4/#typedef-general-enclosed"><code><general-enclosed></code></a> production, which caters to unparsed parentheses or functional expressions</li> </ul> <blockquote> <p>Note: All new nodes include a <code>kind</code> property to define the at-rule type. Supported kinds are <code>media</code>, <code>supports</code>, and <code>container</code></p> </blockquote> </li> <li>Added support for functions for features and features in a range context, e.g. <code>(width: calc(100cm / 6))</code></li> <li>Added a <code>condition</code> value for the parser's context option to parse queries. Use the <code>kind</code> option to specify the condition type, e.g., <code>parse('...', { context: 'condition', kind: 'media' })</code></li> <li>Introduced a <code>features</code> section in the syntax configuration for defining functional features of at-rules. Expand definitions using the <code>fork()</code> method. The current definition is as follows: <pre lang="js"><code>features: { supports: { selector() { /* ... */ } }, container: { style() { /* ... */ } } } </code></pre> </li> <li>Changes for <code>@media</code> at-rule: <ul> <li>Enhanced prelude parsing for complex queries. Parentheses with errors will be parsed as <code>GeneralEnclosed</code></li> <li>Added support for features in a range context, e.g. <code>(width > 100px)</code> or <code>(100px < height < 400px)</code></li> <li>Transitioned from <code>MediaFeature</code> node type to the <code>Feature</code> node type with <code>kind: "media"</code></li> <li>Changed <code>MediaQuery</code> node structure into the following form:</li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/csstree/csstree/blob/master/CHANGELOG.md">css-tree's changelog</a>.</em></p> <blockquote> <h2>3.0.0 (September 11, 2024)</h2> <ul> <li>Added support for the <a href="https://drafts.csswg.org/css-contain-3/#container-rule"><code>@container</code></a> at-rule</li> <li>Added support for the <a href="https://drafts.csswg.org/css-transitions-2/#defining-before-change-style"><code>@starting-style</code></a> at-rule</li> <li>Added support for the <a href="https://drafts.csswg.org/css-cascade-6/#scoped-styles"><code>@scope</code></a> at-rule</li> <li>Added support for the <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/@position-try"><code>@position-try</code></a> at-rule</li> <li>Added support for the <a href="https://drafts.csswg.org/css-cascade-5/#at-layer"><code>@layer</code></a> at-rule</li> <li>Added support for <code>layer</code>, <code>layer()</code> and <code>supports()</code> in the <code>@media</code> at-rule (according to <a href="https://drafts.csswg.org/css-cascade-5/#at-import"><code>the @import rule</code></a> in Cascading and Inheritance 5)</li> <li>Added <code>Layer</code> and <code>LayerList</code> node types</li> <li>Added <code>TokenStream#lookupTypeNonSC()</code> method</li> <li>Added <code><dashed-ident></code> to generic types</li> <li>Bumped <code>mdn/data</code> to <code>2.10.0</code></li> <li>Aligned <code><'font'></code> to <a href="https://drafts.csswg.org/css-fonts-4/">CSS Fonts 4</a></li> <li>Aligned <code><color></code> to <a href="https://drafts.csswg.org/css-color-5/">CSS Color 5</a></li> <li>Fixed initialization when <code>Object.prototype</code> is extended or polluted (<a href="https://redirect.github.com/csstree/csstree/issues/262">#262</a>)</li> <li>Fixed <code>fork()</code> method to consider the <code>generic</code> option when creating a Lexer instance (<a href="https://redirect.github.com/csstree/csstree/issues/266">#266</a>)</li> <li>Fixed crash on parse error when custom <code>line</code> or <code>offset</code> is specified via options (<a href="https://redirect.github.com/csstree/csstree/issues/251">#251</a>)</li> <li>Fixed <code>speak</code> syntax patch (<a href="https://redirect.github.com/csstree/csstree/issues/241">#241</a>)</li> <li>Fixed <code>:lang()</code> to accept a list of <code><ident></code> or <code><string></code> per <a href="https://drafts.csswg.org/selectors/#the-lang-pseudo">spec</a> (<a href="https://redirect.github.com/csstree/csstree/issues/265">#265</a>)</li> <li>Fixed lexer matching for syntaxes referred to as <code><'property'></code>, when the syntax has a top-level <code>#</code>-multiplier (<a href="https://redirect.github.com/csstree/csstree/issues/102">#102</a>)</li> <li>Relaxed parsing of syntax definition to allow whitespaces in range multiplier (<a href="https://redirect.github.com/csstree/csstree/issues/270">#270</a>)</li> <li>Changed <code>parseWithFallback()</code> to rollback <code>tokenIndex</code> before calling a fallback</li> <li>Changed <code>Block</code> to not include <code>{</code> and <code>}</code></li> <li>Changed <code>Atrule</code> and <code>Rule</code> to include <code>{</code> and <code>}</code> for a block</li> <li>Changed <code>Ratio</code> parsing: <ul> <li>Left and right parts contain nodes instead of strings</li> <li>Both left and right parts of a ratio can now be any number; validation of number range is no longer within the parser's scope.</li> <li>Both parts can now be functions. Although not explicitly mentioned in the specification, mathematical functions can replace numbers, addressing potential use cases (<a href="https://redirect.github.com/csstree/csstree/issues/162">#162</a>).</li> <li>As per the <a href="https://drafts.csswg.org/css-values-4/#ratios">CSS Values and Units Level 4</a> specification, the right part of <code>Ratio</code> can be omitted. While this can't be a parser output (which would produce a <code>Number</code> node), it's feasible during <code>Ratio</code> node construction or transformation.</li> </ul> </li> <li>Changes to query-related at-rules: <ul> <li> <p>Added new node types:</p> <ul> <li><a href="https://github.com/csstree/csstree/blob/master/docs/ast.md#feature"><code>Feature</code></a>: represents features like <code>(feature)</code> and <code>(feature: value)</code>, fundamental for both <code>@media</code> and <code>@container</code> at-rules</li> <li><a href="https://github.com/csstree/csstree/blob/master/docs/ast.md#featurerange"><code>FeatureRange</code></a>: represents <a href="https://www.w3.org/TR/mediaqueries-4/#mq-range-context">features in a range context</a></li> <li><a href="https://github.com/csstree/csstree/blob/master/docs/ast.md#featurefunction"><code>FeatureFunction</code></a>: represents functional features such as <code>@supports</code>'s <code>selector()</code> or <code>@container</code>'s <code>style()</code></li> <li><a href="https://github.com/csstree/csstree/blob/master/docs/ast.md#condition"><code>Condition</code></a>: used across all query-like at-rules, encapsulating queries with features and the <code>not</code>, <code>and</code>, and <code>or</code> operators</li> <li><a href="https://github.com/csstree/csstree/blob/master/docs/ast.md#condition"><code>GeneralEnclosure</code></a>: represents the <a href="https://www.w3.org/TR/mediaqueries-4/#typedef-general-enclosed"><code><general-enclosed></code></a> production, which caters to unparsed parentheses or functional expressions</li> </ul> <blockquote> <p>Note: All new nodes include a <code>kind</code> property to define the at-rule type. Supported kinds are <code>media</code>, <code>supports</code>, and <code>container</code>.</p> </blockquote> </li> <li> <p>Added support for functions for features and features in a range context, e.g. <code>(width: calc(100cm / 6))</code></p> </li> <li> <p>Added a <code>condition</code> value for the parser's context option to parse queries. Use the <code>kind</code> option to specify the condition type, e.g., <code>parse('...', { context: 'condition', kind: 'media' })</code>.</p> </li> <li> <p>Introduced a <code>features</code> section in the syntax configuration for defining functional features of at-rules. Expand definitions using the <code>fork()</code> method. The current definition is as follows:</p> <pre lang="js"><code>features: { supports: { selector() { /* ... */ } }, container: { style() { /* ... */ } } } </code></pre> </li> <li> <p>Changes for <code>@media</code> at-rule:</p> <ul> <li>Enhanced prelude parsing for complex queries. Parentheses with errors will be parsed as <code>GeneralEnclosed</code>.</li> <li>Added support for features in a range context, e.g. <code>(width > 100px)</code> or <code>(100px < height < 400px)</code></li> </ul> </li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.github | ||
.storybook | ||
.vscode | ||
build | ||
cmd | ||
db | ||
emain | ||
frontend | ||
pkg | ||
public | ||
scripts/artifacts | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.prettierignore | ||
.yarnrc.yml | ||
electron-builder.config.cjs | ||
electron.vite.config.ts | ||
eslint.config.js | ||
go.mod | ||
go.sum | ||
index.html | ||
LICENSE | ||
package.json | ||
prettier.config.cjs | ||
README.md | ||
Taskfile.yml | ||
tsconfig.json | ||
version.cjs | ||
vitest.config.ts | ||
yarn.lock |
The Next Wave
Prereqs:
You'll need to install "task" (which we're using as a build/run system):
brew install go-task
On first checkout:
yarn
go mod tidy
Then, run the following command to start the app using the Vite dev server (this will enable Hot Module Reloading):
task electron:dev
To run the app without the dev server, run the following instead:
task electron:start