Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat(web): use Quill instead of a `<textarea />` (#2183)

Elijah Potter64e95d801002
diff --git a/packages/chrome-plugin/src/contentScript/index.ts b/packages/chrome-plugin/src/contentScript/index.ts
index 370540566..d655d6416 100644
--- a/packages/chrome-plugin/src/contentScript/index.ts
+++ b/packages/chrome-plugin/src/contentScript/index.ts
@@ -78,7 +78,11 @@ function scan() {
});
document.querySelectorAll('[contenteditable="true"],[contenteditable]').forEach((element) => {
- if (element.matches('[role="combobox"]')) {
+ if (
+ element.matches('[role="combobox"]') ||
+ element.getAttribute('data-enable-grammarly') === 'false' ||
+ element.getAttribute('spellcheck') === 'false'
+ ) {
return;
}
diff --git a/packages/lint-framework/src/lint/LintFramework.ts b/packages/lint-framework/src/lint/LintFramework.ts
index 624609a59..995f05a4e 100644
--- a/packages/lint-framework/src/lint/LintFramework.ts
+++ b/packages/lint-framework/src/lint/LintFramework.ts
@@ -1,3 +1,4 @@
+import type { IgnorableLintBox } from './Box';
import computeLintBoxes from './computeLintBoxes';
import { isVisible } from './domUtils';
import Highlights from './Highlights';
@@ -20,6 +21,7 @@ export default class LintFramework {
private lintRequested = false;
private renderRequested = false;
private lastLints: { target: HTMLElement; lints: UnpackedLintGroups }[] = [];
+ private lastLintBoxes: IgnorableLintBox[] = [];
/** The function to be called to re-render the highlights. This is a variable because it is used to register/deregister event listeners. */
private updateEventCallback: () => void;
@@ -146,17 +148,9 @@ export default class LintFramework {
}
}
- /** Get the individual lints produced the last time the text on the screen was scanned. */
- public getLastLints(): UnpackedLint[] {
- const lints = [];
-
- for (const group of this.lastLints) {
- for (const groupLints of Object.values(group.lints)) {
- lints.push(...groupLints);
- }
- }
-
- return lints;
+ /** Return the last known ignorable lint boxes rendered on-screen. */
+ public getLastIgnorableLintBoxes(): IgnorableLintBox[] {
+ return this.lastLintBoxes;
}
private attachTargetListeners(target: Node) {
@@ -217,6 +211,7 @@ export default class LintFramework {
)
: [],
);
+ this.lastLintBoxes = boxes;
this.highlights.renderLintBoxes(boxes);
this.popupHandler.updateLintBoxes(boxes);
diff --git a/packages/web/package.json b/packages/web/package.json
index 68f797dfd..12fd0c4b1 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -14,6 +14,7 @@
"@sveltejs/adapter-node": "^5.2.12",
"@sveltejs/kit": "^2.37.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
+ "@tailwindcss/vite": "^4.1.4",
"@types/reveal.js": "^5.0.3",
"autoprefixer": "^10.4.21",
"drizzle-kit": "^0.31.5",
@@ -22,7 +23,6 @@
"svelte": "^5.15.0",
"svelte-check": "^4.1.5",
"tailwindcss": "^4.1.16",
- "@tailwindcss/vite": "^4.1.4",
"tslib": "catalog:",
"tsx": "^4.20.6",
"typescript": "catalog:",
@@ -42,6 +42,7 @@
"lodash-es": "^4.17.21",
"mysql2": "^3.15.2",
"posthog-js": "^1.245.1",
+ "quill": "^2.0.3",
"reveal.js": "^5.1.0",
"svelte-intersection-observer": "^1.0.0",
"typed.js": "^2.1.0",
diff --git a/packages/web/src/lib/components/Editor.svelte b/packages/web/src/lib/components/Editor.svelte
index 40e7e884c..b9c5d41ee 100644
--- a/packages/web/src/lib/components/Editor.svelte
+++ b/packages/web/src/lib/components/Editor.svelte
@@ -2,25 +2,25 @@
import { Card } from 'flowbite-svelte';
import { type WorkerLinter } from 'harper.js';
import {
- applySuggestion,
+ type IgnorableLintBox,
LintFramework,
- type UnpackedLint,
type UnpackedLintGroups,
- type UnpackedSuggestion,
unpackLint,
} from 'lint-framework';
-import LintCard from '$lib/components/LintCard.svelte';
+import LintSidebar from '$lib/components/LintSidebar.svelte';
import demo from '../../../../../demo.md?raw';
export let content = demo.trim();
+export let onReady: () => void = () => null;
-let editor: HTMLTextAreaElement | null;
+let editor: HTMLDivElement | null;
let linter: WorkerLinter;
+let quill: any;
+let lintBoxes: IgnorableLintBox[] = [];
-// Live list of lints from the framework's lint callback
-let lints: UnpackedLint[] = [];
-// Track which lint cards are open by index
-let openSet: Set<number> = new Set();
+$: if (linter != null && quill != null) {
+ onReady();
+}
let lfw = new LintFramework(
async (text) => {
@@ -36,7 +36,8 @@ let lfw = new LintFramework(
);
const grouped: UnpackedLintGroups = Object.fromEntries(entries);
- lints = Object.values(grouped).flat();
+
+ lintBoxes = lfw.getLastIgnorableLintBoxes();
return grouped;
},
@@ -57,154 +58,76 @@ let lfw = new LintFramework(
(async () => {
let { WorkerLinter, binary } = await import('harper.js');
- linter = new WorkerLinter({ binary });
+ let newLinter = new WorkerLinter({ binary });
- await linter.setup();
+ newLinter.setup();
+ await newLinter.lint(content);
+ linter = newLinter;
})();
-$: if (editor != null) {
- lfw.addTarget(editor);
-}
-
-function applySug(lint: UnpackedLint, s: UnpackedSuggestion) {
- content = applySuggestion(content, lint.span, s);
- // Trigger re-lint and rerender after programmatic change
- lfw.update();
-}
+async function updateLintFrameworkElements() {
+ if (editor == null) {
+ return;
+ }
-function createSnippetFor(lint: UnpackedLint) {
- const CONTEXT = 60;
- const start = Math.max(0, lint.span.start - CONTEXT);
- const end = Math.min(content.length, lint.span.end + CONTEXT);
-
- let prefix = content.slice(start, lint.span.start);
- let suffix = content.slice(lint.span.end, end);
-
- // Collapse whitespace/newlines for a compact blurb
- const collapse = (s: string) => s.replace(/\s+/g, ' ').trim();
- prefix = collapse(prefix);
- const problem = collapse(lint.problem_text);
- suffix = collapse(suffix);
-
- return {
- prefix,
- problem,
- suffix,
- prefixEllipsis: start > 0,
- suffixEllipsis: end < content.length,
- };
-}
+ if (quill == null) {
+ let { default: Quill } = await import('quill');
+ quill = new Quill(editor, {});
+ const container = quill.container ?? quill.root?.parentElement;
+ container?.classList.add('h-full', 'min-h-0');
-function jumpTo(lint: UnpackedLint) {
- if (!editor) return;
- const start = lint.span.start;
- const end = lint.span.end;
- // Focus and select; most browsers will scroll selection into view on focus
- editor.focus();
- editor.setSelectionRange(start, end);
- // As a fallback, nudge scroll to selection if needed
- try {
- const approxLineHeight = 20;
- const beforeText = content.slice(0, start);
- const line = (beforeText.match(/\n/g)?.length ?? 0) + 1;
- const targetTop = Math.max(0, (line - 3) * approxLineHeight);
- (editor as HTMLTextAreaElement).scrollTop = targetTop;
- } catch {}
-}
+ quill.root?.classList.add('flex', 'flex-col', 'h-full', 'min-h-0', 'outline-transparent');
+ quill.root?.setAttribute('data-enable-grammarly', 'false');
+ }
-function toggleCard(i: number) {
- const wasOpen = openSet.has(i);
- if (wasOpen) {
- const ns = new Set(openSet);
- ns.delete(i);
- openSet = ns;
- } else {
- const ns = new Set(openSet);
- ns.add(i);
- openSet = ns;
+ for (let el of editor.getElementsByTagName('p')) {
+ lfw.addTarget(el);
}
}
-$: allOpen = lints.length > 0 && openSet.size === lints.length;
+$: if (editor != null) {
+ let mo = new MutationObserver(updateLintFrameworkElements);
+ mo.observe(editor, { childList: true, subtree: true });
+ updateLintFrameworkElements();
+}
-function toggleAll() {
- if (allOpen) {
- openSet = new Set();
- } else {
- openSet = new Set(lints.map((_, i) => i));
+function jumpTo(lintBox: IgnorableLintBox) {
+ if (typeof window === 'undefined') {
+ return;
}
-}
-async function ignoreAll() {
- if (!linter || lints.length === 0) return;
- try {
- const hashes = Array.from(new Set(lints.map((l) => l.context_hash)));
- await Promise.all(hashes.map((h) => linter.ignoreLintHash(BigInt(h))));
- // Refresh to hide ignored lints immediately
- lfw.update();
- } catch (e) {
- console.error('Failed to ignore all lints', e);
+ const range = lintBox.range;
+ if (!range) {
+ return;
}
-}
-// Keep openSet in range if lint list changes
-$: if (openSet.size > 0) {
- const max = lints.length;
- const next = new Set<number>();
- for (const idx of openSet) {
- if (idx >= 0 && idx < max) next.add(idx);
+ try {
+ const rect = range.getBoundingClientRect();
+
+ const selection = window.getSelection();
+ if (selection) {
+ selection.removeAllRanges();
+ selection.addRange(range.cloneRange());
+ }
+
+ const margin = Math.max(10, window.innerHeight * 0.2);
+ const target = Math.max(0, window.scrollY + rect.top - margin);
+ window.scrollTo({ top: target, behavior: 'smooth' });
+ } catch (error) {
+ console.error('Failed to jump to lint', error);
}
- if (next.size !== openSet.size) openSet = next;
}
</script>
<div class="flex flex-row h-full max-w-full">
<Card class="flex-1 h-full p-5 z-10 max-w-full text-lg mr-5">
- <textarea
- bind:this={editor}
- class="w-full m-0 rounded-none p-0 z-0 bg-transparent h-full border-none text-lg resize-none focus:border-0"
- bind:value={content}
- ></textarea>
+ <div bind:this={editor} spellcheck="false">
+ {@html content.replace(/\n\n/g, '<br>')}
+ </div>
</Card>
- <Card class="hidden md:flex md:flex-col md:w-1/3 h-full p-5 z-10">
- <div class="flex items-center justify-between mb-3">
- <div class="text-base font-semibold">Problems</div>
- <div class="flex items-center gap-2">
- <button
- class="text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-[#0b0f14]"
- on:click={toggleAll}
- aria-label={allOpen ? 'Collapse all lint cards' : 'Open all lint cards'}
- >
- {allOpen ? 'Collapse all' : 'Open all'}
- </button>
- <button
- class="text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-[#0b0f14]"
- on:click={ignoreAll}
- disabled={lints.length === 0}
- aria-label="Ignore all current lints"
- >
- Ignore all
- </button>
- </div>
- </div>
- <div class="flex-1 overflow-y-auto pr-1">
- {#if lints.length === 0}
- <p class="text-sm text-gray-500">No lints yet.</p>
- {:else}
- <div class="space-y-3">
- {#each lints as lint, i}
- <LintCard
- {lint}
- snippet={createSnippetFor(lint)}
- open={openSet.has(i)}
- onToggleOpen={() => toggleCard(i)}
- focusError={() => jumpTo(lint)}
- onApply={(s) => applySug(lint, s)}
- />
- {/each}
- </div>
- {/if}
- </div>
- </Card>
+ <LintSidebar
+ lintBoxes={lintBoxes}
+ focusLint={jumpTo}
+ />
</div>
diff --git a/packages/web/src/lib/components/LazyEditor.svelte b/packages/web/src/lib/components/LazyEditor.svelte
new file mode 100644
index 000000000..d7c1ea35f
--- /dev/null
+++ b/packages/web/src/lib/components/LazyEditor.svelte
@@ -0,0 +1,23 @@
+<script lang="ts">
+import { Spinner } from 'flowbite-svelte';
+export let content: string | undefined = undefined;
+
+let editor = import('./Editor.svelte');
+let loading = true;
+
+function onReady() {
+ loading = false;
+}
+</script>
+
+{#await editor then { default: Editor}}
+ <div class={`flex-row h-full max-w-full ${loading ? "hidden" : "flex"}`}>
+ <Editor content={content} {onReady}/>
+ </div>
+{/await}
+
+{#if loading}
+ <div class="flex flex-row h-full max-w-full items-center justify-center">
+ <Spinner color="green" />
+ </div>
+{/if}
diff --git a/packages/web/src/lib/components/LintKindChart.svelte b/packages/web/src/lib/components/LintKindChart.svelte
index e2d56889d..008b44cf5 100644
--- a/packages/web/src/lib/components/LintKindChart.svelte
+++ b/packages/web/src/lib/components/LintKindChart.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import Chart from 'chart.js/auto';
+import { lintKindColor } from 'lint-framework';
import { onMount } from 'svelte';
-import lintKindColor from '$lib/lintKindColor';
// Receive lint counts from the parent component
export let lintCounts: Record<string, number> = {};
diff --git a/packages/web/src/lib/components/LintSidebar.svelte b/packages/web/src/lib/components/LintSidebar.svelte
new file mode 100644
index 000000000..40c6da890
--- /dev/null
+++ b/packages/web/src/lib/components/LintSidebar.svelte
@@ -0,0 +1,115 @@
+<script lang="ts">
+import { Card } from 'flowbite-svelte';
+import { type IgnorableLintBox, type LintBox, type UnpackedLint } from 'lint-framework';
+import LintCard from '$lib/components/LintCard.svelte';
+
+export let lintBoxes: IgnorableLintBox[] = [];
+export let focusLint: (lintBox: IgnorableLintBox) => void = () => {};
+
+async function ignoreAll() {
+ await Promise.all(lintBoxes.map((b) => (b.ignoreLint ? b.ignoreLint() : Promise.resolve())));
+}
+
+let openSet: Set<number> = new Set();
+
+$: allOpen = lintBoxes.length > 0 && openSet.size === lintBoxes.length;
+
+function toggleCard(i: number) {
+ const wasOpen = openSet.has(i);
+ if (wasOpen) {
+ const ns = new Set(openSet);
+ ns.delete(i);
+ openSet = ns;
+ } else {
+ const ns = new Set(openSet);
+ ns.add(i);
+ openSet = ns;
+ }
+}
+
+function toggleAll() {
+ if (allOpen) {
+ openSet = new Set();
+ } else {
+ openSet = new Set(lintBoxes.map((_, i) => i));
+ }
+}
+
+function collapse(contents: string) {
+ return contents.replace(/\s+/g, ' ').trim();
+}
+
+function createSnippetFor(lintBox: LintBox) {
+ let lint = lintBox.lint;
+ let content = lintBox.source.textContent ?? '';
+
+ const CONTEXT = 60;
+ const start = Math.max(0, lint.span.start - CONTEXT);
+ const end = Math.min(content.length, lint.span.end + CONTEXT);
+
+ let prefix = content.slice(start, lint.span.start);
+ let suffix = content.slice(lint.span.end, end);
+
+ prefix = collapse(prefix);
+ const problem = collapse(lint.problem_text);
+ suffix = collapse(suffix);
+
+ return {
+ prefix,
+ problem,
+ suffix,
+ prefixEllipsis: start > 0,
+ suffixEllipsis: end < content.length,
+ };
+}
+
+$: if (openSet.size > 0) {
+ const max = lintBoxes.length;
+ const next = new Set<number>();
+ for (const idx of openSet) {
+ if (idx >= 0 && idx < max) next.add(idx);
+ }
+ if (next.size !== openSet.size) openSet = next;
+}
+</script>
+
+<Card class="hidden md:flex md:flex-col md:w-1/3 h-full p-5 z-10">
+ <div class="flex items-center justify-between mb-3">
+ <div class="text-base font-semibold">Problems</div>
+ <div class="flex items-center gap-2">
+ <button
+ class="text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-[#0b0f14]"
+ on:click={toggleAll}
+ aria-label={allOpen ? 'Collapse all lint cards' : 'Open all lint cards'}
+ >
+ {allOpen ? 'Collapse all' : 'Open all'}
+ </button>
+ <button
+ class="text-xs px-2 py-1 rounded border border-gray-300 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-[#0b0f14]"
+ on:click={ignoreAll}
+ disabled={lintBoxes.length === 0}
+ aria-label="Ignore all current lints"
+ >
+ Ignore all
+ </button>
+ </div>
+ </div>
+ <div class="flex-1 overflow-y-auto pr-1">
+ {#if lintBoxes.length === 0}
+ <p class="text-sm text-gray-500">No lints yet.</p>
+ {:else}
+ <div class="space-y-3">
+ {#each lintBoxes as lintBox, i}
+ <LintCard
+ lint={lintBox.lint}
+ snippet={createSnippetFor(lintBox)}
+ open={openSet.has(i)}
+ onToggleOpen={() => toggleCard(i)}
+ focusError={() => focusLint(lintBox)}
+ onApply={(s) => lintBox.applySuggestion(s)}
+ />
+ {/each}
+ </div>
+ {/if}
+ </div>
+</Card>
diff --git a/packages/web/src/lib/lintKindColor.ts b/packages/web/src/lib/lintKindColor.ts
deleted file mode 100644
index 2c0cbda60..000000000
--- a/packages/web/src/lib/lintKindColor.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-// First, define the color map as a constant
-const LINT_KIND_COLORS = {
- Agreement: '#228B22', // Forest green
- BoundaryError: '#8B4513', // Saddle brown
- Capitalization: '#540D6E', // Deep purple
- Eggcorn: '#FF8C00', // Dark orange
- Enhancement: '#0EAD69', // Green
- Formatting: '#7D3C98', // Amethyst purple
- Grammar: '#9B59B6', // Medium purple
- Malapropism: '#C71585', // Medium violet red
- Miscellaneous: '#3BCEAC', // Turquoise
- Nonstandard: '#008B8B', // Dark cyan
- Punctuation: '#D4850F', // Dark orange
- Readability: '#2E8B57', // Sea green
- Redundancy: '#4682B4', // Steel blue
- Regionalism: '#C061CB', // Vibrant purple
- Repetition: '#00A67C', // Green-cyan
- Spelling: '#EE4266', // Pink-red
- Style: '#FFD23F', // Yellow
- Typo: '#FF6B35', // Vibrant orange-red
- Usage: '#1E90FF', // Dodger blue
- WordChoice: '#228B22', // Forest green
-} as const;
-
-// Export the type for the lint kind keys
-export type LintKind = keyof typeof LINT_KIND_COLORS;
-
-// Export the array of all lint kind names
-export const LINT_KINDS = Object.keys(LINT_KIND_COLORS) as LintKind[];
-
-// The main function that uses the map
-export default function lintKindColor(lintKindKey: string): string {
- const color = LINT_KIND_COLORS[lintKindKey as LintKind];
- if (!color) {
- throw new Error(`Unexpected lint kind: ${lintKindKey}`);
- }
- return color;
-}
diff --git a/packages/web/src/routes/+page.svelte b/packages/web/src/routes/+page.svelte
index dcd6df897..3a6c6be5b 100644
--- a/packages/web/src/routes/+page.svelte
+++ b/packages/web/src/routes/+page.svelte
@@ -7,7 +7,7 @@ export const frontmatter = {
<script lang="ts">
import ChromeLogo from '$lib/components/ChromeLogo.svelte';
import CodeLogo from '$lib/components/CodeLogo.svelte';
-import Editor from '$lib/components/Editor.svelte';
+import LazyEditor from '$lib/components/LazyEditor.svelte';
import FirefoxLogo from '$lib/components/FirefoxLogo.svelte';
import GitHubLogo from '$lib/components/GitHubLogo.svelte';
import ObsidianLogo from '$lib/components/ObsidianLogo.svelte';
@@ -155,7 +155,7 @@ const testimonials = [
<div class="h-[800px] w-full overflow-hidden rounded-xl border border-neutral-200 shadow-sm dark:border-neutral-800">
{#if browser}
- <Editor />
+ <LazyEditor />
{/if}
</div>
</div>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f8c3a8f46..f16c36e16 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -356,6 +356,9 @@ importers:
posthog-js:
specifier: ^1.245.1
version: 1.245.1
+ quill:
+ specifier: ^2.0.3
+ version: 2.0.3
reveal.js:
specifier: ^5.1.0
version: 5.1.0
@@ -6512,6 +6515,9 @@ packages:
resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==}
+ resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
+
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
engines: {node: '>=0.8.x'}
@@ -8275,6 +8281,9 @@ packages:
resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
+ resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==}
+
resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
@@ -8284,6 +8293,10 @@ packages:
resolution: {integrity: sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==}
+ resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
+ deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
+
resolution: {integrity: sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==}
@@ -9105,6 +9118,9 @@ packages:
resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==}
+ resolution: {integrity: sha512-HUrJFQ/StvgmXRcQ1ftY6VEZUq3jA2t9ncFN4F84J/vN0/FPpQF+8FKXb3l6fLces6q0uOHj6NJn+2xvZnxO6A==}
+
resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
engines: {node: '>=6'}
@@ -9696,6 +9712,14 @@ packages:
resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-X74oCeRI4/p0ucjb5Ma8adTXd9Scumz367kkMK5V/IatcX6A0vlgLgKbzXWy5nZmCGeNJm2oQX0d2Eqj+ZIlCA==}
+ engines: {node: '>= 12.0.0'}
+
+ resolution: {integrity: sha512-xEYQBqfYx/sfb33VJiKnSJp8ehloavImQ2A6564GAbqG55PGw1dAWUn1MUbQB62t0azawUS2CZZhWCjO8gRvTw==}
+ engines: {npm: '>=8.2.3'}
+
resolution: {integrity: sha512-5nhRFfjVMQdrwKUfUlRpDUCocdKtjSnYZ1R/86mpZDV3MfsZ3dYYNjSGuMX+mPBvFvQBhdzxSqxkuLPLv4uFGg==}
@@ -19977,6 +20001,8 @@ snapshots:
+
@@ -22130,12 +22156,16 @@ snapshots:
+
+
@@ -23196,6 +23226,8 @@ snapshots:
dot-case: 3.0.4
tslib: 2.8.1
+
dependencies:
callsites: 3.1.0
@@ -23756,6 +23788,19 @@ snapshots:
+ dependencies:
+ fast-diff: 1.3.0
+ lodash.clonedeep: 4.5.0
+ lodash.isequal: 4.5.0
+
+ dependencies:
+ eventemitter3: 5.0.1
+ lodash-es: 4.17.21
+ parchment: 3.0.0
+ quill-delta: 5.1.0
+
dependencies:
w-json: 1.3.10