Adding a new MarkDown note buffer for each universe

This commit is contained in:
2023-08-03 18:38:48 +02:00
parent bd76893282
commit 4c239c12f1
8 changed files with 135 additions and 162 deletions

View File

@ -202,6 +202,13 @@
</svg> </svg>
</a> </a>
<a id="note-button" class="pl-2 p-1.5 text-gray-700 focus:outline-nones transition-colors duration-200 rounded-lg dark:text-gray-200 dark:hover:bg-gray-800 hover:bg-gray-100">
<svg class="w-8 h-8 text-white" fill="currentColor" viewBox="0 0 16 20">
<path d="M16 14V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v15a3 3 0 0 0 3 3h12a1 1 0 0 0 0-2h-1v-2a2 2 0 0 0 2-2ZM4 2h2v12H4V2Zm8 16H3a1 1 0 0 1 0-2h9v2Z"/>
</svg>
</a>
<!-- Other buttons -->
<a id="play-button-2" class="pl-2 p-1.5 text-gray-700 focus:outline-nones transition-colors duration-200 rounded-lg dark:text-gray-200 dark:hover:bg-gray-800 hover:bg-gray-100"> <a id="play-button-2" class="pl-2 p-1.5 text-gray-700 focus:outline-nones transition-colors duration-200 rounded-lg dark:text-gray-200 dark:hover:bg-gray-800 hover:bg-gray-100">
<svg class="w-8 h-8 text-white block xl:hidden" fill="currentColor" viewBox="0 0 14 16"> <svg class="w-8 h-8 text-white block xl:hidden" fill="currentColor" viewBox="0 0 14 16">

View File

@ -15,6 +15,7 @@
}, },
"dependencies": { "dependencies": {
"@codemirror/lang-javascript": "^6.1.9", "@codemirror/lang-javascript": "^6.1.9",
"@codemirror/lang-markdown": "^6.2.0",
"@codemirror/theme-one-dark": "^6.1.2", "@codemirror/theme-one-dark": "^6.1.2",
"@replit/codemirror-vim": "^6.0.14", "@replit/codemirror-vim": "^6.0.14",
"@strudel.cycles/webaudio": "^0.8.2", "@strudel.cycles/webaudio": "^0.8.2",

View File

@ -4,8 +4,6 @@ import { tryEvaluate } from "./Evaluator";
import { MidiConnection } from "./IO/MidiConnection"; import { MidiConnection } from "./IO/MidiConnection";
// @ts-ignore // @ts-ignore
import { webaudioOutput, samples } from '@strudel.cycles/webaudio'; import { webaudioOutput, samples } from '@strudel.cycles/webaudio';
// @ts-ignore
import { ZZFX, zzfx } from "zzfx";
interface TimePoint { interface TimePoint {
bar: number, bar: number,
@ -426,9 +424,6 @@ export class UserAPI {
// Trivial functions // Trivial functions
// ============================================================= // =============================================================
// Small ZZFX interface for playing with this synth
zzfx = (...thing: number[]) => zzfx(...thing);
sound = async (values: object) => { sound = async (values: object) => {
webaudioOutput(sound(values), 0.00) webaudioOutput(sound(values), 0.00)
} }

View File

@ -6,12 +6,13 @@ export interface Universe {
global: File global: File
locals: { [key: number]: File } locals: { [key: number]: File }
init: File init: File
notes: File
} }
export interface File { export interface File {
candidate: string candidate: string
committed: string committed?: string
evaluations: number evaluations?: number
} }
export interface Settings { export interface Settings {
@ -36,7 +37,8 @@ export const template_universe = {
8: { candidate: "", committed: "", evaluations: 0}, 8: { candidate: "", committed: "", evaluations: 0},
9: { candidate: "", committed: "", evaluations: 0}, 9: { candidate: "", committed: "", evaluations: 0},
}, },
init: { candidate: "", committed: "", evaluations: 0 } init: { candidate: "", committed: "", evaluations: 0 },
notes: { candidate: "" },
} }
export const template_universes = { export const template_universes = {
@ -53,7 +55,8 @@ export const template_universes = {
8: { candidate: "", committed: "", evaluations: 0}, 8: { candidate: "", committed: "", evaluations: 0},
9: { candidate: "", committed: "", evaluations: 0}, 9: { candidate: "", committed: "", evaluations: 0},
}, },
init: { candidate: "", committed: "", evaluations: 0 } init: { candidate: "", committed: "", evaluations: 0 },
notes: { candidate: "// NOTES" },
}, },
"Help": tutorial_universe, "Help": tutorial_universe,
} }

View File

@ -1,114 +0,0 @@
import { Decoration, DecorationSet } from "@codemirror/view"
import { StateField, StateEffect, ChangeDesc } from "@codemirror/state"
import { EditorView } from "@codemirror/view"
import { invertedEffects } from "@codemirror/commands"
import { Extension } from "@codemirror/state"
function mapRange(range: {from: number, to: number}, change: ChangeDesc) {
let from = change.mapPos(range.from), to = change.mapPos(range.to)
return from < to ? {from, to} : undefined
}
const addHighlight = StateEffect.define<{from: number, to: number}>({
map: mapRange
})
const removeHighlight = StateEffect.define<{from: number, to: number}>({
map: mapRange
})
const highlight = Decoration.mark({
attributes: {style: `background-color: #ffad42`}
})
const highlightedRanges = StateField.define({
create() {
return Decoration.none
},
update(ranges, tr) {
ranges = ranges.map(tr.changes)
for (let e of tr.effects) {
if (e.is(addHighlight))
ranges = addRange(ranges, e.value)
else if (e.is(removeHighlight))
ranges = cutRange(ranges, e.value)
}
return ranges
},
provide: field => EditorView.decorations.from(field)
})
function cutRange(ranges: DecorationSet, r: {from: number, to: number}) {
let leftover: any[] = []
ranges.between(r.from, r.to, (from, to, deco) => {
if (from < r.from) leftover.push(deco.range(from, r.from))
if (to > r.to) leftover.push(deco.range(r.to, to))
})
return ranges.update({
filterFrom: r.from,
filterTo: r.to,
filter: () => false,
add: leftover
})
}
function addRange(ranges: DecorationSet, r: {from: number, to: number}) {
ranges.between(r.from, r.to, (from, to) => {
if (from < r.from) r = {from, to: r.to}
if (to > r.to) r = {from: r.from, to}
})
return ranges.update({
filterFrom: r.from,
filterTo: r.to,
filter: () => false,
add: [highlight.range(r.from, r.to)]
})
}
const invertHighlight = invertedEffects.of(tr => {
let found = []
for (let e of tr.effects) {
if (e.is(addHighlight)) found.push(removeHighlight.of(e.value))
else if (e.is(removeHighlight)) found.push(addHighlight.of(e.value))
}
let ranges = tr.startState.field(highlightedRanges)
tr.changes.iterChangedRanges((chFrom, chTo) => {
ranges.between(chFrom, chTo, (rFrom, rTo) => {
if (rFrom >= chFrom || rTo <= chTo) {
let from = Math.max(chFrom, rFrom), to = Math.min(chTo, rTo)
if (from < to) found.push(addHighlight.of({from, to}))
}
})
})
return found
})
export function highlightSelection(view: EditorView) {
view.dispatch({
effects: view.state.selection.ranges.filter(r => !r.empty)
.map(r => addHighlight.of(r))
})
return true
}
export function unhighlightSelection(view: EditorView) {
let highlighted = view.state.field(highlightedRanges)
let effects: any[] = []
for (let sel of view.state.selection.ranges) {
highlighted.between(sel.from, sel.to, (rFrom, rTo) => {
let from = Math.max(sel.from, rFrom), to = Math.min(sel.to, rTo)
if (from < to) effects.push(removeHighlight.of({from, to}))
})
}
view.dispatch({effects})
return true
}
export function rangeHighlighting(): Extension {
return [
highlightedRanges,
invertHighlight,
]
}

View File

@ -3,15 +3,11 @@ import { EditorView } from "codemirror";
import { editorSetup } from "./EditorSetup"; import { editorSetup } from "./EditorSetup";
import { EditorState, Compartment } from "@codemirror/state"; import { EditorState, Compartment } from "@codemirror/state";
import { javascript } from "@codemirror/lang-javascript"; import { javascript } from "@codemirror/lang-javascript";
import { markdown } from "@codemirror/lang-markdown";
import { Clock } from "./Clock"; import { Clock } from "./Clock";
import { vim } from "@replit/codemirror-vim"; import { vim } from "@replit/codemirror-vim";
import { AppSettings } from "./AppSettings"; import { AppSettings } from "./AppSettings";
import { ViewUpdate } from "@codemirror/view"; import { ViewUpdate } from "@codemirror/view";
import {
highlightSelection,
unhighlightSelection,
rangeHighlighting,
} from "./highlightSelection";
import { UserAPI } from "./API"; import { UserAPI } from "./API";
import { Extension } from "@codemirror/state"; import { Extension } from "@codemirror/state";
import { import {
@ -29,9 +25,10 @@ export class Editor {
universes: Universes = template_universes; universes: Universes = template_universes;
selected_universe: string; selected_universe: string;
local_index: number = 1; local_index: number = 1;
editor_mode: "global" | "local" | "init" = "local"; editor_mode: "global" | "local" | "init" | "notes" = "local";
fontSize: Compartment; fontSize: Compartment;
vimModeCompartment : Compartment; vimModeCompartment : Compartment;
chosenLanguage: Compartment
settings = new AppSettings(); settings = new AppSettings();
editorExtensions: Extension[] = []; editorExtensions: Extension[] = [];
@ -77,6 +74,9 @@ export class Editor {
init_button: HTMLButtonElement = document.getElementById( init_button: HTMLButtonElement = document.getElementById(
"init-button" "init-button"
) as HTMLButtonElement; ) as HTMLButtonElement;
note_button: HTMLButtonElement = document.getElementById(
"note-button"
) as HTMLButtonElement;
settings_button: HTMLButtonElement = document.getElementById( settings_button: HTMLButtonElement = document.getElementById(
"settings-button" "settings-button"
) as HTMLButtonElement; ) as HTMLButtonElement;
@ -136,6 +136,7 @@ export class Editor {
this.fontSize = new Compartment(); this.fontSize = new Compartment();
this.vimModeCompartment = new Compartment(); this.vimModeCompartment = new Compartment();
this.chosenLanguage = new Compartment();
const vimPlugin = this.settings.vimMode ? vim() : []; const vimPlugin = this.settings.vimMode ? vim() : [];
const fontSizeModif = EditorView.theme( { const fontSizeModif = EditorView.theme( {
"&": { "&": {
@ -151,8 +152,7 @@ export class Editor {
this.vimModeCompartment.of(vimPlugin), this.vimModeCompartment.of(vimPlugin),
editorSetup, editorSetup,
oneDark, oneDark,
rangeHighlighting(), this.chosenLanguage.of(javascript()),
javascript(),
EditorView.updateListener.of((v: ViewUpdate) => { EditorView.updateListener.of((v: ViewUpdate) => {
v; v;
// This is the event listener for the editor // This is the event listener for the editor
@ -221,7 +221,6 @@ export class Editor {
// Ctrl + Enter or Return: Evaluate the hovered code block // Ctrl + Enter or Return: Evaluate the hovered code block
if ((event.key === "Enter" || event.key === "Return") && event.ctrlKey) { if ((event.key === "Enter" || event.key === "Return") && event.ctrlKey) {
event.preventDefault(); event.preventDefault();
// const code = this.getCodeBlock();
this.currentFile().candidate = this.view.state.doc.toString(); this.currentFile().candidate = this.view.state.doc.toString();
this.flashBackground('#2d313d', 200) this.flashBackground('#2d313d', 200)
} }
@ -234,7 +233,6 @@ export class Editor {
event.preventDefault(); // Prevents the addition of a new line event.preventDefault(); // Prevents the addition of a new line
this.currentFile().candidate = this.view.state.doc.toString(); this.currentFile().candidate = this.view.state.doc.toString();
this.flashBackground('#2d313d', 200) this.flashBackground('#2d313d', 200)
// const code = this.getSelectedLines();
} }
// This is the modal to switch between universes // This is the modal to switch between universes
@ -253,6 +251,12 @@ export class Editor {
this.view.focus(); this.view.focus();
} }
if (event.ctrlKey && event.key === "n") {
event.preventDefault();
this.changeModeFromInterface("notes");
this.view.focus();
}
if (event.ctrlKey && event.key === "g") { if (event.ctrlKey && event.key === "g") {
event.preventDefault(); event.preventDefault();
this.changeModeFromInterface("global"); this.changeModeFromInterface("global");
@ -346,6 +350,10 @@ export class Editor {
this.init_button.addEventListener("click", () => this.init_button.addEventListener("click", () =>
this.changeModeFromInterface("init") this.changeModeFromInterface("init")
); );
this.note_button.addEventListener("click", () =>
this.changeModeFromInterface("notes")
);
this.settings_button.addEventListener("click", () => { this.settings_button.addEventListener("click", () => {
this.font_size_slider.value = this.settings.font_size.toString(); this.font_size_slider.value = this.settings.font_size.toString();
@ -391,7 +399,6 @@ export class Editor {
}) })
this.buffer_search.addEventListener("keydown", (event) => { this.buffer_search.addEventListener("keydown", (event) => {
// this.changeModeFromInterface("local");
if (event.key === "Enter") { if (event.key === "Enter") {
let query = this.buffer_search.value; let query = this.buffer_search.value;
if (query.length > 2 && query.length < 20) { if (query.length > 2 && query.length < 20) {
@ -406,6 +413,10 @@ export class Editor {
tryEvaluate(this, this.universes[this.selected_universe.toString()].init) tryEvaluate(this, this.universes[this.selected_universe.toString()].init)
} }
get note_buffer() {
return this.universes[this.selected_universe.toString()].notes;
}
get global_buffer() { get global_buffer() {
return this.universes[this.selected_universe.toString()].global; return this.universes[this.selected_universe.toString()].global;
} }
@ -431,12 +442,11 @@ export class Editor {
this.updateEditorView(); this.updateEditorView();
} }
changeModeFromInterface(mode: "global" | "local" | "init") { changeModeFromInterface(mode: "global" | "local" | "init" | "notes") {
const interface_buttons: HTMLElement[] = [ const interface_buttons: HTMLElement[] = [
this.local_button, this.local_button, this.global_button,
this.global_button, this.init_button, this.note_button,
this.init_button
]; ];
let changeColor = (button: HTMLElement) => { let changeColor = (button: HTMLElement) => {
@ -467,15 +477,32 @@ export class Editor {
if (!this.local_script_tabs.classList.contains("hidden")) { if (!this.local_script_tabs.classList.contains("hidden")) {
this.local_script_tabs.classList.add("hidden"); this.local_script_tabs.classList.add("hidden");
} }
this.editor_mode = "global"; changeColor(this.global_button); this.editor_mode = "global"
changeColor(this.global_button);
break; break;
case "init": case "init":
if (!this.local_script_tabs.classList.contains("hidden")) { if (!this.local_script_tabs.classList.contains("hidden")) {
this.local_script_tabs.classList.add("hidden"); this.local_script_tabs.classList.add("hidden");
} }
this.editor_mode = "init"; changeColor(this.init_button); this.editor_mode = "init"
changeColor(this.init_button);
break;
case "notes":
if (!this.local_script_tabs.classList.contains("hidden")) {
this.local_script_tabs.classList.add("hidden");
}
this.editor_mode = "notes"
changeColor(this.note_button);
break; break;
} }
// If the editor is in notes mode, we need to update the selectedLanguage
this.view.dispatch({
effects: this.chosenLanguage.reconfigure(this.editor_mode == "notes" ? markdown() : javascript())
})
console.log(this.chosenLanguage.get(this.view.state))
this.updateEditorView(); this.updateEditorView();
} }
@ -555,6 +582,8 @@ export class Editor {
return this.local_buffer; return this.local_buffer;
case "init": case "init":
return this.init_buffer; return this.init_buffer;
case "notes":
return this.note_buffer;
} }
} }
@ -602,14 +631,6 @@ export class Editor {
endLine = state.doc.line(endLine.number + 1); endLine = state.doc.line(endLine.number + 1);
} }
// this.view.dispatch({selection: {anchor: 0 + startLine.from, head: endLine.to}});
highlightSelection(this.view);
setTimeout(() => {
unhighlightSelection(this.view);
this.view.dispatch({ selection: { anchor: cursor, head: cursor } });
}, 200);
let result_string = state.doc.sliceString(startLine.from, endLine.to); let result_string = state.doc.sliceString(startLine.from, endLine.to);
result_string = result_string result_string = result_string
.split("\n") .split("\n")
@ -639,13 +660,6 @@ export class Editor {
}); });
// Release the selection and get the cursor back to its original position // Release the selection and get the cursor back to its original position
// Blink the text!
highlightSelection(this.view);
setTimeout(() => {
unhighlightSelection(this.view);
this.view.dispatch({ selection: { anchor: from, head: from } });
}, 200);
return state.doc.sliceString(fromLine.from, toLine.to); return state.doc.sliceString(fromLine.from, toLine.to);
}; };

View File

@ -19,6 +19,8 @@ const init_buffer=`
// loaded! // loaded!
` `
const note_buffer='// Notes buffer: a buffer to write your notes.'
export const tutorial_universe = { export const tutorial_universe = {
global: { candidate: global_text, committed: global_text, evaluations: 0 }, global: { candidate: global_text, committed: global_text, evaluations: 0 },
locals: { locals: {
@ -32,5 +34,6 @@ export const tutorial_universe = {
8: { candidate: local_buffer, committed: local_buffer, evaluations: 0 }, 8: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
9: { candidate: local_buffer, committed: local_buffer, evaluations: 0 }, 9: { candidate: local_buffer, committed: local_buffer, evaluations: 0 },
}, },
init: { candidate: init_buffer, committed: init_buffer, evaluations: 0 } init: { candidate: init_buffer, committed: init_buffer, evaluations: 0 },
notes: { candidate: note_buffer },
} }

View File

@ -14,7 +14,7 @@
dependencies: dependencies:
regenerator-runtime "^0.13.11" regenerator-runtime "^0.13.11"
"@codemirror/autocomplete@^6.0.0": "@codemirror/autocomplete@^6.0.0", "@codemirror/autocomplete@^6.7.1":
version "6.9.0" version "6.9.0"
resolved "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.9.0.tgz" resolved "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.9.0.tgz"
integrity sha512-Fbwm0V/Wn3BkEJZRhr0hi5BhCo5a7eBL6LYaliPjOSwCyfOpnjXY59HruSxOUNV+1OYer0Tgx1zRNQttjXyDog== integrity sha512-Fbwm0V/Wn3BkEJZRhr0hi5BhCo5a7eBL6LYaliPjOSwCyfOpnjXY59HruSxOUNV+1OYer0Tgx1zRNQttjXyDog==
@ -34,7 +34,33 @@
"@codemirror/view" "^6.0.0" "@codemirror/view" "^6.0.0"
"@lezer/common" "^1.0.0" "@lezer/common" "^1.0.0"
"@codemirror/lang-javascript@^6.1.9": "@codemirror/lang-css@^6.0.0":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@codemirror/lang-css/-/lang-css-6.2.0.tgz#f84f9da392099432445c75e32fdac63ae572315f"
integrity sha512-oyIdJM29AyRPM3+PPq1I2oIk8NpUfEN3kAM05XWDDs6o3gSneIKaVJifT2P+fqONLou2uIgXynFyMUDQvo/szA==
dependencies:
"@codemirror/autocomplete" "^6.0.0"
"@codemirror/language" "^6.0.0"
"@codemirror/state" "^6.0.0"
"@lezer/common" "^1.0.2"
"@lezer/css" "^1.0.0"
"@codemirror/lang-html@^6.0.0":
version "6.4.5"
resolved "https://registry.yarnpkg.com/@codemirror/lang-html/-/lang-html-6.4.5.tgz#4cf014da02624a8a4365ef6c8e343f35afa0c784"
integrity sha512-dUCSxkIw2G+chaUfw3Gfu5kkN83vJQN8gfQDp9iEHsIZluMJA0YJveT12zg/28BJx+uPsbQ6VimKCgx3oJrZxA==
dependencies:
"@codemirror/autocomplete" "^6.0.0"
"@codemirror/lang-css" "^6.0.0"
"@codemirror/lang-javascript" "^6.0.0"
"@codemirror/language" "^6.4.0"
"@codemirror/state" "^6.0.0"
"@codemirror/view" "^6.2.2"
"@lezer/common" "^1.0.0"
"@lezer/css" "^1.1.0"
"@lezer/html" "^1.3.0"
"@codemirror/lang-javascript@^6.0.0", "@codemirror/lang-javascript@^6.1.9":
version "6.1.9" version "6.1.9"
resolved "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.1.9.tgz" resolved "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.1.9.tgz"
integrity sha512-z3jdkcqOEBT2txn2a87A0jSy6Te3679wg/U8QzMeftFt+4KA6QooMwfdFzJiuC3L6fXKfTXZcDocoaxMYfGz0w== integrity sha512-z3jdkcqOEBT2txn2a87A0jSy6Te3679wg/U8QzMeftFt+4KA6QooMwfdFzJiuC3L6fXKfTXZcDocoaxMYfGz0w==
@ -47,7 +73,20 @@
"@lezer/common" "^1.0.0" "@lezer/common" "^1.0.0"
"@lezer/javascript" "^1.0.0" "@lezer/javascript" "^1.0.0"
"@codemirror/language@^6.0.0", "@codemirror/language@^6.6.0": "@codemirror/lang-markdown@^6.2.0":
version "6.2.0"
resolved "https://registry.yarnpkg.com/@codemirror/lang-markdown/-/lang-markdown-6.2.0.tgz#d391d1314911da522bf4cc4edb15ff6b3eb66979"
integrity sha512-deKegEQVzfBAcLPqsJEa+IxotqPVwWZi90UOEvQbfa01NTAw8jNinrykuYPTULGUj+gha0ZG2HBsn4s5d64Qrg==
dependencies:
"@codemirror/autocomplete" "^6.7.1"
"@codemirror/lang-html" "^6.0.0"
"@codemirror/language" "^6.3.0"
"@codemirror/state" "^6.0.0"
"@codemirror/view" "^6.0.0"
"@lezer/common" "^1.0.0"
"@lezer/markdown" "^1.0.0"
"@codemirror/language@^6.0.0", "@codemirror/language@^6.3.0", "@codemirror/language@^6.4.0", "@codemirror/language@^6.6.0":
version "6.8.0" version "6.8.0"
resolved "https://registry.npmjs.org/@codemirror/language/-/language-6.8.0.tgz" resolved "https://registry.npmjs.org/@codemirror/language/-/language-6.8.0.tgz"
integrity sha512-r1paAyWOZkfY0RaYEZj3Kul+MiQTEbDvYqf8gPGaRvNneHXCmfSaAVFjwRUPlgxS8yflMxw2CTu6uCMp8R8A2g== integrity sha512-r1paAyWOZkfY0RaYEZj3Kul+MiQTEbDvYqf8gPGaRvNneHXCmfSaAVFjwRUPlgxS8yflMxw2CTu6uCMp8R8A2g==
@ -92,7 +131,7 @@
"@codemirror/view" "^6.0.0" "@codemirror/view" "^6.0.0"
"@lezer/highlight" "^1.0.0" "@lezer/highlight" "^1.0.0"
"@codemirror/view@^6.0.0", "@codemirror/view@^6.6.0": "@codemirror/view@^6.0.0", "@codemirror/view@^6.2.2", "@codemirror/view@^6.6.0":
version "6.16.0" version "6.16.0"
resolved "https://registry.npmjs.org/@codemirror/view/-/view-6.16.0.tgz" resolved "https://registry.npmjs.org/@codemirror/view/-/view-6.16.0.tgz"
integrity sha512-1Z2HkvkC3KR/oEZVuW9Ivmp8TWLzGEd8T8TA04TTwPvqogfkHBdYSlflytDOqmkUxM2d1ywTg7X2dU5mC+SXvg== integrity sha512-1Z2HkvkC3KR/oEZVuW9Ivmp8TWLzGEd8T8TA04TTwPvqogfkHBdYSlflytDOqmkUxM2d1ywTg7X2dU5mC+SXvg==
@ -248,11 +287,19 @@
"@jridgewell/resolve-uri" "3.1.0" "@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14" "@jridgewell/sourcemap-codec" "1.4.14"
"@lezer/common@^1.0.0": "@lezer/common@^1.0.0", "@lezer/common@^1.0.2":
version "1.0.3" version "1.0.3"
resolved "https://registry.npmjs.org/@lezer/common/-/common-1.0.3.tgz" resolved "https://registry.npmjs.org/@lezer/common/-/common-1.0.3.tgz"
integrity sha512-JH4wAXCgUOcCGNekQPLhVeUtIqjH0yPBs7vvUdSjyQama9618IOKFJwkv2kcqdhF0my8hQEgCTEJU0GIgnahvA== integrity sha512-JH4wAXCgUOcCGNekQPLhVeUtIqjH0yPBs7vvUdSjyQama9618IOKFJwkv2kcqdhF0my8hQEgCTEJU0GIgnahvA==
"@lezer/css@^1.0.0", "@lezer/css@^1.1.0":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@lezer/css/-/css-1.1.3.tgz#605495b00fd8a122088becf196a93744cbe817fc"
integrity sha512-SjSM4pkQnQdJDVc80LYzEaMiNy9txsFbI7HsMgeVF28NdLaAdHNtQ+kB/QqDUzRBV/75NTXjJ/R5IdC8QQGxMg==
dependencies:
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
"@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3": "@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3":
version "1.1.6" version "1.1.6"
resolved "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.1.6.tgz" resolved "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.1.6.tgz"
@ -260,6 +307,15 @@
dependencies: dependencies:
"@lezer/common" "^1.0.0" "@lezer/common" "^1.0.0"
"@lezer/html@^1.3.0":
version "1.3.6"
resolved "https://registry.yarnpkg.com/@lezer/html/-/html-1.3.6.tgz#26a2a17da4e0f91835e36db9ccd025b2ed8d33f7"
integrity sha512-Kk9HJARZTc0bAnMQUqbtuhFVsB4AnteR2BFUWfZV7L/x1H0aAKz6YabrfJ2gk/BEgjh9L3hg5O4y2IDZRBdzuQ==
dependencies:
"@lezer/common" "^1.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
"@lezer/javascript@^1.0.0": "@lezer/javascript@^1.0.0":
version "1.4.4" version "1.4.4"
resolved "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.4.tgz" resolved "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.4.4.tgz"
@ -275,6 +331,14 @@
dependencies: dependencies:
"@lezer/common" "^1.0.0" "@lezer/common" "^1.0.0"
"@lezer/markdown@^1.0.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@lezer/markdown/-/markdown-1.1.0.tgz#5cee104ef353a3442ecee023ff1912826fac8658"
integrity sha512-JYOI6Lkqbl83semCANkO3CKbKc0pONwinyagBufWBm+k4yhIcqfCF8B8fpEpvJLmIy7CAfwiq7dQ/PzUZA340g==
dependencies:
"@lezer/common" "^1.0.0"
"@lezer/highlight" "^1.0.0"
"@nodelib/fs.scandir@2.1.5": "@nodelib/fs.scandir@2.1.5":
version "2.1.5" version "2.1.5"
resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz"