Compare commits
3 Commits
issue-337-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| cc9c70287c | |||
| f142289813 | |||
| c17ab41a33 |
@ -79,17 +79,28 @@ test('gap cursor reaches positions before and after a lone table (issue #335)',
|
|||||||
// Inserting into the empty page replaces the placeholder paragraph — the
|
// Inserting into the empty page replaces the placeholder paragraph — the
|
||||||
// table really is the only block, which is the situation of issue #335.
|
// table really is the only block, which is the situation of issue #335.
|
||||||
await expect(content.locator(':scope > p')).toHaveCount(0);
|
await expect(content.locator(':scope > p')).toHaveCount(0);
|
||||||
|
// Right after the insert the collab sync can still swallow a click's
|
||||||
|
// selection update; interact only against a settled editor (established
|
||||||
|
// pattern, see a11y.spec.ts). The typed markers below verify each click
|
||||||
|
// really placed the cursor where the locator points.
|
||||||
|
await page.waitForTimeout(500);
|
||||||
|
|
||||||
// Keyboard only: ArrowUp from the first cell lands on the gap cursor
|
// Keyboard only: ArrowUp from the first cell lands on the gap cursor
|
||||||
// before the table; typing there materializes a paragraph.
|
// before the table; typing there materializes a paragraph.
|
||||||
await content.locator('th').first().click();
|
await content.locator('th').first().click();
|
||||||
|
await page.keyboard.type('in');
|
||||||
|
await expect(content.locator('th').first()).toHaveText('in');
|
||||||
await page.keyboard.press('ArrowUp');
|
await page.keyboard.press('ArrowUp');
|
||||||
|
await expect(page.locator('.ProseMirror-gapcursor')).toHaveCount(1);
|
||||||
await page.keyboard.type('above');
|
await page.keyboard.type('above');
|
||||||
await expect(content.locator(':scope > :first-child')).toHaveText('above');
|
await expect(content.locator(':scope > :first-child')).toHaveText('above');
|
||||||
|
|
||||||
// Same for the position after the table.
|
// Same for the position after the table.
|
||||||
await content.locator('td').last().click();
|
await content.locator('td').last().click();
|
||||||
|
await page.keyboard.type('z');
|
||||||
|
await expect(content.locator('td').last()).toHaveText('z');
|
||||||
await page.keyboard.press('ArrowDown');
|
await page.keyboard.press('ArrowDown');
|
||||||
|
await expect(page.locator('.ProseMirror-gapcursor')).toHaveCount(1);
|
||||||
await page.keyboard.type('below');
|
await page.keyboard.type('below');
|
||||||
await expect(content.locator(':scope > :last-child')).toHaveText('below');
|
await expect(content.locator(':scope > :last-child')).toHaveText('below');
|
||||||
|
|
||||||
@ -115,6 +126,8 @@ test('cells can be merged and split from the toolbar (issue #337)', async ({ bro
|
|||||||
const splitButton = page.getByRole('button', { name: /split cell|zelle teilen/i });
|
const splitButton = page.getByRole('button', { name: /split cell|zelle teilen/i });
|
||||||
await expect(mergeButton).toBeDisabled();
|
await expect(mergeButton).toBeDisabled();
|
||||||
await expect(splitButton).toBeDisabled();
|
await expect(splitButton).toBeDisabled();
|
||||||
|
// Settle before clicking into cells — see the gap cursor test.
|
||||||
|
await page.waitForTimeout(500);
|
||||||
|
|
||||||
// Extending the selection across the cell border turns it into a cell
|
// Extending the selection across the cell border turns it into a cell
|
||||||
// selection (prosemirror-tables), which is what merge operates on.
|
// selection (prosemirror-tables), which is what merge operates on.
|
||||||
@ -141,6 +154,61 @@ test('cells can be merged and split from the toolbar (issue #337)', async ({ bro
|
|||||||
await context.close();
|
await context.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Tab navigates table cells, extends the table, and never traps focus (issue #338)', async ({
|
||||||
|
browser,
|
||||||
|
}) => {
|
||||||
|
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
||||||
|
const { pondSlug, pageSlug } = await createPage(context, `E2E TableTab ${Date.now()}`);
|
||||||
|
const page = await context.newPage();
|
||||||
|
|
||||||
|
await page.goto(`/p/${pondSlug}/${pageSlug}`);
|
||||||
|
await page.getByRole('button', { name: /edit|bearbeiten/i }).click();
|
||||||
|
const status = page.locator('.editor-connection');
|
||||||
|
await expect(status).toHaveAttribute('data-status', 'connected', { timeout: 10000 });
|
||||||
|
|
||||||
|
const content = page.locator('.ProseMirror');
|
||||||
|
await content.click();
|
||||||
|
await page.getByRole('button', { name: /insert table|tabelle einfügen/i }).click();
|
||||||
|
const rows = content.locator('tr');
|
||||||
|
await expect(rows).toHaveCount(3);
|
||||||
|
// Settle before clicking into cells — see the gap cursor test.
|
||||||
|
await page.waitForTimeout(500);
|
||||||
|
|
||||||
|
// Tab moves to the next cell, Shift+Tab back. Typed markers prove where
|
||||||
|
// the cursor really is (the typing assertions also settle the editor
|
||||||
|
// between keypresses — see the merge test on click/key races).
|
||||||
|
await content.locator('th').first().click();
|
||||||
|
await page.keyboard.type('one');
|
||||||
|
await expect(content.locator('th').first()).toHaveText('one');
|
||||||
|
await page.keyboard.press('Tab');
|
||||||
|
await page.keyboard.type('two');
|
||||||
|
await expect(content.locator('th').nth(1)).toHaveText('two');
|
||||||
|
await page.keyboard.press('Shift+Tab');
|
||||||
|
await page.keyboard.type('back');
|
||||||
|
await expect(content.locator('th').first()).toContainText('back');
|
||||||
|
|
||||||
|
// Tab in the last cell appends a row and moves into it (Word behavior).
|
||||||
|
const lastCell = rows.nth(2).locator('td').nth(2);
|
||||||
|
await lastCell.click();
|
||||||
|
await page.keyboard.type('z');
|
||||||
|
await expect(lastCell).toHaveText('z');
|
||||||
|
await page.keyboard.press('Tab');
|
||||||
|
await expect(rows).toHaveCount(4);
|
||||||
|
await page.keyboard.type('new');
|
||||||
|
await expect(rows.nth(3).locator('td').first()).toHaveText('new');
|
||||||
|
|
||||||
|
// No keyboard trap (WCAG 2.1.2): Escape works from EVERY cell (the gap
|
||||||
|
// cursor is only reachable per arrow key from edge cells) and places the
|
||||||
|
// cursor after the table; once outside, Tab leaves the editor entirely.
|
||||||
|
// The mechanism is announced via the editor's aria-describedby hint.
|
||||||
|
await page.keyboard.press('Escape');
|
||||||
|
await expect(page.locator('.ProseMirror-gapcursor')).toHaveCount(1);
|
||||||
|
await page.keyboard.press('Tab');
|
||||||
|
await expect(content).not.toBeFocused();
|
||||||
|
|
||||||
|
await context.close();
|
||||||
|
});
|
||||||
|
|
||||||
test('edit mode hides the sidebar; leaving edit mode restores it', async ({ browser }) => {
|
test('edit mode hides the sidebar; leaving edit mode restores it', async ({ browser }) => {
|
||||||
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
||||||
const { pondSlug, pageSlug } = await createPage(context, `E2E Sidebar ${Date.now()}`);
|
const { pondSlug, pageSlug } = await createPage(context, `E2E Sidebar ${Date.now()}`);
|
||||||
|
|||||||
@ -108,6 +108,102 @@ test('a plain-text paste is not mangled into rich structure', async ({ browser }
|
|||||||
await context.close();
|
await context.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('a Markdown table pasted with code-editor styling HTML becomes a table (issue #339)', async ({
|
||||||
|
browser,
|
||||||
|
}) => {
|
||||||
|
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
||||||
|
const { pondSlug, pageSlug } = await createPage(context, `E2E MD TablePaste ${Date.now()}`);
|
||||||
|
const page = await context.newPage();
|
||||||
|
|
||||||
|
await page.goto(`/p/${pondSlug}/${pageSlug}`);
|
||||||
|
await enterEditMode(page);
|
||||||
|
await page.locator('.ProseMirror').click();
|
||||||
|
|
||||||
|
// VS Code (copyWithSyntaxHighlighting) ships the plain text a second time
|
||||||
|
// as styled div/span HTML — exactly the flavor that used to shadow the
|
||||||
|
// Markdown conversion.
|
||||||
|
await page.evaluate(() => {
|
||||||
|
const el = document.querySelector('.ProseMirror');
|
||||||
|
const dataTransfer = new DataTransfer();
|
||||||
|
dataTransfer.setData('text/plain', '| A | B |\n| --- | --- |\n| 1 | 2 |');
|
||||||
|
dataTransfer.setData(
|
||||||
|
'text/html',
|
||||||
|
'<meta charset="utf-8"><div style="color:#d4d4d4;background-color:#1e1e1e;">' +
|
||||||
|
'<div><span style="color:#d4d4d4;">| A | B |</span></div>' +
|
||||||
|
'<div><span style="color:#d4d4d4;">| --- | --- |</span></div>' +
|
||||||
|
'<div><span style="color:#d4d4d4;">| 1 | 2 |</span></div></div>',
|
||||||
|
);
|
||||||
|
el!.dispatchEvent(
|
||||||
|
new ClipboardEvent('paste', { clipboardData: dataTransfer, bubbles: true, cancelable: true }),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
const content = page.locator('.ProseMirror');
|
||||||
|
await expect(content.locator('table')).toHaveCount(1);
|
||||||
|
await expect(content.locator('th').first()).toHaveText('A');
|
||||||
|
await expect(content.locator('td').first()).toHaveText('1');
|
||||||
|
|
||||||
|
await context.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('a Markdown table pasted into a code block stays verbatim text (issue #339)', async ({
|
||||||
|
browser,
|
||||||
|
}) => {
|
||||||
|
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
||||||
|
const { pondSlug, pageSlug } = await createPage(context, `E2E MD CodePaste ${Date.now()}`);
|
||||||
|
const page = await context.newPage();
|
||||||
|
|
||||||
|
await page.goto(`/p/${pondSlug}/${pageSlug}`);
|
||||||
|
await enterEditMode(page);
|
||||||
|
await page.locator('.ProseMirror').click();
|
||||||
|
await page.getByRole('button', { name: /code block|codeblock/i }).click();
|
||||||
|
|
||||||
|
await page.evaluate(() => {
|
||||||
|
const el = document.querySelector('.ProseMirror');
|
||||||
|
const dataTransfer = new DataTransfer();
|
||||||
|
dataTransfer.setData('text/plain', '| A | B |\n| --- | --- |\n| 1 | 2 |');
|
||||||
|
el!.dispatchEvent(
|
||||||
|
new ClipboardEvent('paste', { clipboardData: dataTransfer, bubbles: true, cancelable: true }),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
const content = page.locator('.ProseMirror');
|
||||||
|
await expect(content.locator('table')).toHaveCount(0);
|
||||||
|
await expect(content.locator('pre')).toContainText('| A | B |');
|
||||||
|
|
||||||
|
await context.close();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('typing a Markdown table header plus separator creates a table (issue #339)', async ({
|
||||||
|
browser,
|
||||||
|
}) => {
|
||||||
|
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
||||||
|
const { pondSlug, pageSlug } = await createPage(context, `E2E MD TableType ${Date.now()}`);
|
||||||
|
const page = await context.newPage();
|
||||||
|
|
||||||
|
await page.goto(`/p/${pondSlug}/${pageSlug}`);
|
||||||
|
await enterEditMode(page);
|
||||||
|
const content = page.locator('.ProseMirror');
|
||||||
|
await content.click();
|
||||||
|
|
||||||
|
await page.keyboard.type('| Name | Rolle |');
|
||||||
|
await page.keyboard.press('Enter');
|
||||||
|
await page.keyboard.type('| --- | --- |');
|
||||||
|
await expect(content).toContainText('| --- | --- |');
|
||||||
|
await page.keyboard.press('Enter');
|
||||||
|
|
||||||
|
await expect(content.locator('table')).toHaveCount(1);
|
||||||
|
await expect(content.locator('th').first()).toHaveText('Name');
|
||||||
|
await expect(content).not.toContainText('| --- | --- |');
|
||||||
|
|
||||||
|
// The cursor lands in the table; Tab from the last header cell appends the
|
||||||
|
// first body row (#338), so typing continues seamlessly.
|
||||||
|
await page.keyboard.type('x');
|
||||||
|
await expect(content.locator('th').first()).toContainText('x');
|
||||||
|
|
||||||
|
await context.close();
|
||||||
|
});
|
||||||
|
|
||||||
test('page menu downloads the page as Markdown matching its content', async ({ browser }) => {
|
test('page menu downloads the page as Markdown matching its content', async ({ browser }) => {
|
||||||
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
const context = await contextForUser(browser, BASE_URL, 'fixture-user');
|
||||||
const { pondSlug, pageSlug, pageId } = await createPage(context, `E2E MD Export ${Date.now()}`);
|
const { pondSlug, pageSlug, pageId } = await createPage(context, `E2E MD Export ${Date.now()}`);
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import type { AnyExtension } from '@tiptap/core';
|
|||||||
|
|
||||||
import { GapCursor } from './gap-cursor';
|
import { GapCursor } from './gap-cursor';
|
||||||
import { MarkdownClipboard } from './markdown-clipboard';
|
import { MarkdownClipboard } from './markdown-clipboard';
|
||||||
|
import { MarkdownTableInput } from './markdown-table-input';
|
||||||
import { Bold, CodeMark, Italic, LinkMark, Strikethrough } from './marks';
|
import { Bold, CodeMark, Italic, LinkMark, Strikethrough } from './marks';
|
||||||
import { Image } from './nodes/image';
|
import { Image } from './nodes/image';
|
||||||
import { BulletList, ListItem, OrderedList, TaskList } from './nodes/lists';
|
import { BulletList, ListItem, OrderedList, TaskList } from './nodes/lists';
|
||||||
@ -64,5 +65,6 @@ export const documentExtensions: AnyExtension[] = [
|
|||||||
Strikethrough,
|
Strikethrough,
|
||||||
LinkMark,
|
LinkMark,
|
||||||
MarkdownClipboard,
|
MarkdownClipboard,
|
||||||
|
MarkdownTableInput,
|
||||||
GapCursor,
|
GapCursor,
|
||||||
];
|
];
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
|
// @vitest-environment jsdom
|
||||||
import { describe, expect, it } from 'vitest';
|
import { describe, expect, it } from 'vitest';
|
||||||
|
|
||||||
import { looksLikeMarkdown } from './markdown-clipboard';
|
import { htmlIsStyledPlainText, looksLikeMarkdown } from './markdown-clipboard';
|
||||||
|
|
||||||
describe('looksLikeMarkdown (issue #30)', () => {
|
describe('looksLikeMarkdown (issue #30)', () => {
|
||||||
it('recognizes a heading + list document', () => {
|
it('recognizes a heading + list document', () => {
|
||||||
@ -31,3 +32,21 @@ describe('looksLikeMarkdown (issue #30)', () => {
|
|||||||
expect(looksLikeMarkdown(' \n ')).toBe(false);
|
expect(looksLikeMarkdown(' \n ')).toBe(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('htmlIsStyledPlainText (issue #339)', () => {
|
||||||
|
it('recognizes VS-Code-style syntax-highlighting HTML as styled plain text', () => {
|
||||||
|
const vsCode =
|
||||||
|
'<meta charset="utf-8"><div style="color:#d4d4d4;background-color:#1e1e1e;">' +
|
||||||
|
'<div><span style="color:#d4d4d4;">| A | B |</span></div>' +
|
||||||
|
'<div><span>| --- | --- |</span></div></div>';
|
||||||
|
expect(htmlIsStyledPlainText(vsCode)).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('keeps rich-text clipboard HTML on the HTML paste path', () => {
|
||||||
|
expect(htmlIsStyledPlainText('<table><tr><td>a</td></tr></table>')).toBe(false);
|
||||||
|
expect(htmlIsStyledPlainText('<p><strong>bold</strong> prose</p>')).toBe(false);
|
||||||
|
expect(htmlIsStyledPlainText('<ul><li>one</li></ul>')).toBe(false);
|
||||||
|
expect(htmlIsStyledPlainText('<p><a href="https://example.org">link</a></p>')).toBe(false);
|
||||||
|
expect(htmlIsStyledPlainText('<pre><code>x</code></pre>')).toBe(false);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@ -26,6 +26,25 @@ export function looksLikeMarkdown(text: string): boolean {
|
|||||||
return matches.length >= 2;
|
return matches.length >= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Elements whose presence means the clipboard HTML carries real structure
|
||||||
|
* or semantics that ProseMirror's HTML paste should interpret. */
|
||||||
|
const STRUCTURAL_HTML =
|
||||||
|
'table, ul, ol, li, h1, h2, h3, h4, h5, h6, blockquote, pre, code, a, img, b, strong, i, em, u, s';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code editors (VS Code with copyWithSyntaxHighlighting, similar tools) put
|
||||||
|
* an HTML flavor on the clipboard that is nothing but the plain text wrapped
|
||||||
|
* in styled div/span containers. Treating that as "real HTML" made the paste
|
||||||
|
* ignore the Markdown heuristic below, so a Markdown table copied out of
|
||||||
|
* VS Code arrived as verbatim text while the same text from a plain editor
|
||||||
|
* converted fine (issue #339). Only HTML without any structural element is
|
||||||
|
* declared equivalent to the plain text — anything from a rich-text source
|
||||||
|
* keeps going through ProseMirror's own HTML paste.
|
||||||
|
*/
|
||||||
|
export function htmlIsStyledPlainText(html: string): boolean {
|
||||||
|
return new DOMParser().parseFromString(html, 'text/html').querySelector(STRUCTURAL_HTML) === null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Markdown on the clipboard, both ways (issue #30, ADR 0004/0009): copying
|
* Markdown on the clipboard, both ways (issue #30, ADR 0004/0009): copying
|
||||||
* puts Markdown on `text/plain` alongside the browser's own HTML (so
|
* puts Markdown on `text/plain` alongside the browser's own HTML (so
|
||||||
@ -65,8 +84,11 @@ export const MarkdownClipboard = Extension.create({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handlePaste(view, event) {
|
handlePaste(view, event) {
|
||||||
|
// Inside a code block pasted text is code, never a document —
|
||||||
|
// converting there would split the block around rich nodes.
|
||||||
|
if (view.state.selection.$from.parent.type.spec.code) return false;
|
||||||
const html = event.clipboardData?.getData('text/html');
|
const html = event.clipboardData?.getData('text/html');
|
||||||
if (html && html.trim() !== '') return false;
|
if (html && html.trim() !== '' && !htmlIsStyledPlainText(html)) return false;
|
||||||
const text = event.clipboardData?.getData('text/plain');
|
const text = event.clipboardData?.getData('text/plain');
|
||||||
if (!text || !looksLikeMarkdown(text)) return false;
|
if (!text || !looksLikeMarkdown(text)) return false;
|
||||||
|
|
||||||
|
|||||||
68
apps/web/src/editor/markdown-table-input.ts
Normal file
68
apps/web/src/editor/markdown-table-input.ts
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
import { markdownToDoc } from '@dorfteich/shared';
|
||||||
|
import { Extension } from '@tiptap/core';
|
||||||
|
import { Node as ProseMirrorNode } from '@tiptap/pm/model';
|
||||||
|
import { Plugin, Selection } from '@tiptap/pm/state';
|
||||||
|
|
||||||
|
/** A `| … |` pipe row — the same signal `looksLikeMarkdown` uses. */
|
||||||
|
const PIPE_ROW = /^\|.+\|\s*$/;
|
||||||
|
|
||||||
|
/** The GFM header separator (`| --- | :--- |`…). Three dashes minimum keeps
|
||||||
|
* accidental short rows like `|-|` from ever triggering a conversion. */
|
||||||
|
const SEPARATOR_ROW = /^\|(?:\s*:?-{3,}:?\s*\|)+\s*$/;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hand-typed Markdown tables (issue #339): pressing Enter at the end of a
|
||||||
|
* separator row whose previous sibling is a pipe row replaces the two
|
||||||
|
* paragraphs with a real table. TipTap input rules cannot express this —
|
||||||
|
* they only see text inside a single textblock, and a table needs two.
|
||||||
|
* Conversion is refused inside existing tables (the schema would allow the
|
||||||
|
* nested table, the reader could not make sense of it). Body rows are then
|
||||||
|
* typed cell-wise — Tab in the last cell appends a row (#338).
|
||||||
|
*/
|
||||||
|
export const MarkdownTableInput = Extension.create({
|
||||||
|
name: 'markdownTableInput',
|
||||||
|
|
||||||
|
addProseMirrorPlugins() {
|
||||||
|
return [
|
||||||
|
new Plugin({
|
||||||
|
props: {
|
||||||
|
handleKeyDown(view, event) {
|
||||||
|
if (event.key !== 'Enter' || event.shiftKey || event.ctrlKey || event.metaKey)
|
||||||
|
return false;
|
||||||
|
const { $from, empty } = view.state.selection;
|
||||||
|
if (!empty || $from.parent.type.name !== 'paragraph') return false;
|
||||||
|
if ($from.parentOffset !== $from.parent.content.size) return false;
|
||||||
|
if (!SEPARATOR_ROW.test($from.parent.textContent)) return false;
|
||||||
|
for (let depth = $from.depth - 1; depth > 0; depth -= 1) {
|
||||||
|
if ($from.node(depth).type.spec.tableRole) return false;
|
||||||
|
}
|
||||||
|
const container = $from.node($from.depth - 1);
|
||||||
|
const index = $from.index($from.depth - 1);
|
||||||
|
if (index === 0) return false;
|
||||||
|
const headerRow = container.child(index - 1);
|
||||||
|
if (headerRow.type.name !== 'paragraph' || !PIPE_ROW.test(headerRow.textContent))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
let table: ProseMirrorNode;
|
||||||
|
try {
|
||||||
|
const parsed = markdownToDoc(`${headerRow.textContent}\n${$from.parent.textContent}`);
|
||||||
|
if (parsed.childCount !== 1 || parsed.firstChild?.type.name !== 'table') return false;
|
||||||
|
// Re-hydrated against the live schema — same identity dance as
|
||||||
|
// in markdown-clipboard.ts.
|
||||||
|
table = ProseMirrorNode.fromJSON(view.state.schema, parsed.firstChild.toJSON());
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const start = $from.before($from.depth) - headerRow.nodeSize;
|
||||||
|
const end = $from.after($from.depth);
|
||||||
|
const tr = view.state.tr.replaceWith(start, end, table);
|
||||||
|
tr.setSelection(Selection.near(tr.doc.resolve(start), 1));
|
||||||
|
view.dispatch(tr.scrollIntoView());
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
];
|
||||||
|
},
|
||||||
|
});
|
||||||
@ -1,4 +1,6 @@
|
|||||||
import { Node } from '@tiptap/core';
|
import { Node } from '@tiptap/core';
|
||||||
|
import { GapCursor } from '@tiptap/pm/gapcursor';
|
||||||
|
import { Selection } from '@tiptap/pm/state';
|
||||||
import type { Node as PMNode, Schema } from 'prosemirror-model';
|
import type { Node as PMNode, Schema } from 'prosemirror-model';
|
||||||
import {
|
import {
|
||||||
addColumnAfter,
|
addColumnAfter,
|
||||||
@ -8,6 +10,7 @@ import {
|
|||||||
deleteColumn,
|
deleteColumn,
|
||||||
deleteRow,
|
deleteRow,
|
||||||
deleteTable,
|
deleteTable,
|
||||||
|
goToNextCell,
|
||||||
mergeCells,
|
mergeCells,
|
||||||
splitCell,
|
splitCell,
|
||||||
tableEditing,
|
tableEditing,
|
||||||
@ -38,6 +41,8 @@ declare module '@tiptap/core' {
|
|||||||
deleteTable: () => ReturnType;
|
deleteTable: () => ReturnType;
|
||||||
mergeCells: () => ReturnType;
|
mergeCells: () => ReturnType;
|
||||||
splitCell: () => ReturnType;
|
splitCell: () => ReturnType;
|
||||||
|
goToNextCell: () => ReturnType;
|
||||||
|
goToPreviousCell: () => ReturnType;
|
||||||
toggleHeaderRow: () => ReturnType;
|
toggleHeaderRow: () => ReturnType;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -69,6 +74,37 @@ export const Table = Node.create({
|
|||||||
addProseMirrorPlugins() {
|
addProseMirrorPlugins() {
|
||||||
return [tableEditing()];
|
return [tableEditing()];
|
||||||
},
|
},
|
||||||
|
addKeyboardShortcuts() {
|
||||||
|
return {
|
||||||
|
// Word-style navigation (issue #338): Tab moves cell-wise and appends
|
||||||
|
// a new row from the last cell. Outside a table every branch returns
|
||||||
|
// false, so Tab keeps its browser default (focus moves on) and the
|
||||||
|
// editor is no keyboard trap — from inside a table the arrow keys
|
||||||
|
// lead out via the gap cursor (#335), then Tab leaves the editor.
|
||||||
|
Tab: () => {
|
||||||
|
if (this.editor.commands.goToNextCell()) return true;
|
||||||
|
if (!this.editor.can().addRowAfter()) return false;
|
||||||
|
return this.editor.chain().addRowAfter().goToNextCell().run();
|
||||||
|
},
|
||||||
|
'Shift-Tab': () => this.editor.commands.goToPreviousCell(),
|
||||||
|
// The documented exit (aria-describedby hint, #338): the gap cursor is
|
||||||
|
// only reachable per arrow key from the table's edge cells, so Escape
|
||||||
|
// is the exit that works from EVERY cell. Falls back to a gap cursor
|
||||||
|
// when no textblock follows the table (#335 guarantees the position).
|
||||||
|
Escape: () =>
|
||||||
|
this.editor.commands.command(({ state, dispatch }) => {
|
||||||
|
const { $head } = state.selection;
|
||||||
|
for (let depth = $head.depth; depth > 0; depth -= 1) {
|
||||||
|
if ($head.node(depth).type.spec.tableRole !== 'table') continue;
|
||||||
|
const $after = state.doc.resolve($head.after(depth));
|
||||||
|
const selection = Selection.findFrom($after, 1, true) ?? new GapCursor($after);
|
||||||
|
if (dispatch) dispatch(state.tr.setSelection(selection).scrollIntoView());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
},
|
||||||
addCommands() {
|
addCommands() {
|
||||||
return {
|
return {
|
||||||
insertTable:
|
insertTable:
|
||||||
@ -113,6 +149,14 @@ export const Table = Node.create({
|
|||||||
() =>
|
() =>
|
||||||
({ state, dispatch }) =>
|
({ state, dispatch }) =>
|
||||||
splitCell(state, dispatch),
|
splitCell(state, dispatch),
|
||||||
|
goToNextCell:
|
||||||
|
() =>
|
||||||
|
({ state, dispatch }) =>
|
||||||
|
goToNextCell(1)(state, dispatch),
|
||||||
|
goToPreviousCell:
|
||||||
|
() =>
|
||||||
|
({ state, dispatch }) =>
|
||||||
|
goToNextCell(-1)(state, dispatch),
|
||||||
toggleHeaderRow:
|
toggleHeaderRow:
|
||||||
() =>
|
() =>
|
||||||
({ state, dispatch }) =>
|
({ state, dispatch }) =>
|
||||||
|
|||||||
@ -227,7 +227,9 @@ function PageEditor({
|
|||||||
attributes: {
|
attributes: {
|
||||||
role: canEdit ? 'textbox' : 'document',
|
role: canEdit ? 'textbox' : 'document',
|
||||||
'aria-label': t('contentLabel'),
|
'aria-label': t('contentLabel'),
|
||||||
...(canEdit ? { 'aria-multiline': 'true' } : {}),
|
...(canEdit
|
||||||
|
? { 'aria-multiline': 'true', 'aria-describedby': 'editor-keyboard-hint' }
|
||||||
|
: {}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -361,6 +363,13 @@ function PageEditor({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<EditorContent editor={editor} className="editor-content" />
|
<EditorContent editor={editor} className="editor-content" />
|
||||||
|
{/* Referenced via aria-describedby in edit mode: Tab is captured
|
||||||
|
inside tables (#338), so the way out must be discoverable. */}
|
||||||
|
{canEdit && (
|
||||||
|
<p id="editor-keyboard-hint" className="visually-hidden">
|
||||||
|
{t('keyboardHint')}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
{canEdit && <WikilinkAutocomplete editor={editor} />}
|
{canEdit && <WikilinkAutocomplete editor={editor} />}
|
||||||
{canEdit && <MentionAutocomplete editor={editor} />}
|
{canEdit && <MentionAutocomplete editor={editor} />}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -20,6 +20,8 @@ import { fileURLToPath } from 'node:url';
|
|||||||
import { build } from 'esbuild';
|
import { build } from 'esbuild';
|
||||||
import { zipSync } from 'fflate';
|
import { zipSync } from 'fflate';
|
||||||
|
|
||||||
|
import { thirdPartyNotices } from '../third-party-licenses.mjs';
|
||||||
|
|
||||||
const DRAWIO_VERSION = '30.3.6';
|
const DRAWIO_VERSION = '30.3.6';
|
||||||
const DRAWIO_TARBALL = `https://github.com/jgraph/drawio/archive/refs/tags/v${DRAWIO_VERSION}.tar.gz`;
|
const DRAWIO_TARBALL = `https://github.com/jgraph/drawio/archive/refs/tags/v${DRAWIO_VERSION}.tar.gz`;
|
||||||
|
|
||||||
@ -27,12 +29,16 @@ const root = dirname(fileURLToPath(import.meta.url));
|
|||||||
const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
||||||
const vendor = join(root, 'vendor');
|
const vendor = join(root, 'vendor');
|
||||||
const webapp = join(vendor, `drawio-${DRAWIO_VERSION}`, 'src', 'main', 'webapp');
|
const webapp = join(vendor, `drawio-${DRAWIO_VERSION}`, 'src', 'main', 'webapp');
|
||||||
|
// Apache-2.0 requires a copy of the license with any redistribution (§4(a)),
|
||||||
|
// so the tarball's root LICENSE ships in the ZIP (issue #345).
|
||||||
|
const licenseFile = join(vendor, `drawio-${DRAWIO_VERSION}`, 'LICENSE');
|
||||||
|
|
||||||
// --- 1. Fetch + unpack the pinned draw.io release (cached in vendor/) -----
|
// --- 1. Fetch + unpack the pinned draw.io release (cached in vendor/) -----
|
||||||
// In CI the vendor fetch is skipped (network + 60 MB — the fonts-build
|
// In CI the vendor fetch is skipped (network + 60 MB — the fonts-build
|
||||||
// lesson): the controller bundle still builds, only the installable ZIP
|
// lesson): the controller bundle still builds, only the installable ZIP
|
||||||
// needs a dev machine (or a pre-populated vendor/ cache).
|
// needs a dev machine (or a pre-populated vendor/ cache). The LICENSE guard
|
||||||
if (!existsSync(webapp)) {
|
// also heals vendor/ caches unpacked before #345 added it.
|
||||||
|
if (!existsSync(webapp) || !existsSync(licenseFile)) {
|
||||||
if (process.env.CI) {
|
if (process.env.CI) {
|
||||||
console.log('CI: skipping draw.io vendor fetch — bundling plugin.js only, no ZIP');
|
console.log('CI: skipping draw.io vendor fetch — bundling plugin.js only, no ZIP');
|
||||||
await bundleController();
|
await bundleController();
|
||||||
@ -44,9 +50,18 @@ if (!existsSync(webapp)) {
|
|||||||
console.log(`fetching draw.io v${DRAWIO_VERSION} …`);
|
console.log(`fetching draw.io v${DRAWIO_VERSION} …`);
|
||||||
execFileSync('curl', ['-sfL', '-o', tarball, DRAWIO_TARBALL], { stdio: 'inherit' });
|
execFileSync('curl', ['-sfL', '-o', tarball, DRAWIO_TARBALL], { stdio: 'inherit' });
|
||||||
}
|
}
|
||||||
execFileSync('tar', ['-xzf', tarball, '-C', vendor, `drawio-${DRAWIO_VERSION}/src/main/webapp`], {
|
execFileSync(
|
||||||
stdio: 'inherit',
|
'tar',
|
||||||
});
|
[
|
||||||
|
'-xzf',
|
||||||
|
tarball,
|
||||||
|
'-C',
|
||||||
|
vendor,
|
||||||
|
`drawio-${DRAWIO_VERSION}/src/main/webapp`,
|
||||||
|
`drawio-${DRAWIO_VERSION}/LICENSE`,
|
||||||
|
],
|
||||||
|
{ stdio: 'inherit' },
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- 2. Select the runtime subset -----------------------------------------
|
// --- 2. Select the runtime subset -----------------------------------------
|
||||||
@ -103,20 +118,32 @@ const drawioFiles = collect(webapp, '');
|
|||||||
// --- 3. Bundle the plugin controller ---------------------------------------
|
// --- 3. Bundle the plugin controller ---------------------------------------
|
||||||
async function bundleController() {
|
async function bundleController() {
|
||||||
mkdirSync(join(root, 'dist'), { recursive: true });
|
mkdirSync(join(root, 'dist'), { recursive: true });
|
||||||
await build({
|
const result = await build({
|
||||||
entryPoints: [join(root, 'src/plugin.ts')],
|
entryPoints: [join(root, 'src/plugin.ts')],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
outfile: join(root, 'dist/plugin.js'),
|
outfile: join(root, 'dist/plugin.js'),
|
||||||
minify: true,
|
minify: true,
|
||||||
|
metafile: true,
|
||||||
});
|
});
|
||||||
|
return result.metafile;
|
||||||
}
|
}
|
||||||
await bundleController();
|
const metafile = await bundleController();
|
||||||
|
|
||||||
// --- 4. Pack the ZIP --------------------------------------------------------
|
// --- 4. Pack the ZIP --------------------------------------------------------
|
||||||
const files = {
|
const files = {
|
||||||
'manifest.json': readFileSync(join(root, 'manifest.json')),
|
'manifest.json': readFileSync(join(root, 'manifest.json')),
|
||||||
'plugin.js': readFileSync(join(root, 'dist/plugin.js')),
|
'plugin.js': readFileSync(join(root, 'dist/plugin.js')),
|
||||||
|
'licenses/drawio-LICENSE.txt': readFileSync(licenseFile),
|
||||||
|
'licenses/THIRD-PARTY-NOTICES.txt': Buffer.from(
|
||||||
|
thirdPartyNotices(metafile, [
|
||||||
|
{
|
||||||
|
title: `draw.io ${DRAWIO_VERSION} (bundled webapp under assets/drawio/)`,
|
||||||
|
license: 'Apache-2.0',
|
||||||
|
note: `Source: ${DRAWIO_TARBALL} — full license text in licenses/drawio-LICENSE.txt.`,
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
),
|
||||||
};
|
};
|
||||||
for (const name of readdirSync(join(root, 'i18n'))) {
|
for (const name of readdirSync(join(root, 'i18n'))) {
|
||||||
files[`i18n/${name}`] = readFileSync(join(root, 'i18n', name));
|
files[`i18n/${name}`] = readFileSync(join(root, 'i18n', name));
|
||||||
|
|||||||
@ -20,6 +20,8 @@ import { fileURLToPath } from 'node:url';
|
|||||||
import { build } from 'esbuild';
|
import { build } from 'esbuild';
|
||||||
import { zipSync } from 'fflate';
|
import { zipSync } from 'fflate';
|
||||||
|
|
||||||
|
import { thirdPartyNotices } from '../third-party-licenses.mjs';
|
||||||
|
|
||||||
const root = dirname(fileURLToPath(import.meta.url));
|
const root = dirname(fileURLToPath(import.meta.url));
|
||||||
const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(import.meta.url);
|
||||||
@ -73,7 +75,7 @@ for (const sub of ASSET_SUBDIRS) {
|
|||||||
|
|
||||||
// --- 2. Bundle the plugin controller (React + Excalidraw) ------------------
|
// --- 2. Bundle the plugin controller (React + Excalidraw) ------------------
|
||||||
mkdirSync(join(root, 'dist'), { recursive: true });
|
mkdirSync(join(root, 'dist'), { recursive: true });
|
||||||
await build({
|
const buildResult = await build({
|
||||||
entryPoints: [join(root, 'src/plugin.tsx')],
|
entryPoints: [join(root, 'src/plugin.tsx')],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
@ -89,6 +91,7 @@ await build({
|
|||||||
'process.env.NODE_ENV': '"production"',
|
'process.env.NODE_ENV': '"production"',
|
||||||
'process.env.IS_PREACT': '"false"',
|
'process.env.IS_PREACT': '"false"',
|
||||||
},
|
},
|
||||||
|
metafile: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
// --- 3. Pack the ZIP --------------------------------------------------------
|
// --- 3. Pack the ZIP --------------------------------------------------------
|
||||||
@ -103,6 +106,29 @@ for (const name of readdirSync(join(root, 'i18n'))) {
|
|||||||
// and sit at the ZIP root so they resolve under EXCALIDRAW_ASSET_PATH.
|
// and sit at the ZIP root so they resolve under EXCALIDRAW_ASSET_PATH.
|
||||||
Object.assign(files, assetFiles);
|
Object.assign(files, assetFiles);
|
||||||
|
|
||||||
|
// License texts for the redistributed material (issue #345): bundled npm
|
||||||
|
// packages come from the metafile; the shipped fonts have no license files
|
||||||
|
// upstream at all, so the texts are curated in licenses/ (see FONT-NOTICES.md)
|
||||||
|
// — @excalidraw/excalidraw ships no LICENSE file either, hence the committed
|
||||||
|
// MIT text instead of the metafile fallback line.
|
||||||
|
for (const name of readdirSync(join(root, 'licenses'))) {
|
||||||
|
files[`licenses/${name}`] = readFileSync(join(root, 'licenses', name));
|
||||||
|
}
|
||||||
|
files['licenses/THIRD-PARTY-NOTICES.txt'] = Buffer.from(
|
||||||
|
thirdPartyNotices(buildResult.metafile, [
|
||||||
|
{
|
||||||
|
title: 'Excalidraw (bundled into plugin.js)',
|
||||||
|
license: 'MIT',
|
||||||
|
note: 'Full license text in licenses/excalidraw-MIT.txt.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Fonts (shipped under fonts/)',
|
||||||
|
license: 'OFL-1.1 and MIT, per family',
|
||||||
|
note: 'Attribution table in licenses/FONT-NOTICES.md; per-font license texts alongside it.',
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
const target = join(root, 'dist', `${manifest.id}-${manifest.version}.zip`);
|
const target = join(root, 'dist', `${manifest.id}-${manifest.version}.zip`);
|
||||||
rmSync(target, { force: true });
|
rmSync(target, { force: true });
|
||||||
writeFileSync(target, zipSync(files, { level: 6 }));
|
writeFileSync(target, zipSync(files, { level: 6 }));
|
||||||
|
|||||||
95
packages/plugins/excalidraw/licenses/Assistant-OFL.txt
Normal file
95
packages/plugins/excalidraw/licenses/Assistant-OFL.txt
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
Copyright 2020 The Assistant Project Authors (https://github.com/hafontia/Assistant).
|
||||||
|
Copyright 2010 The Source Sans Pro Authors (https://github.com/adobe-fonts/source-sans-pro), with Reserved Font Name 'Source'.
|
||||||
|
Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
94
packages/plugins/excalidraw/licenses/CascadiaCode-OFL.txt
Normal file
94
packages/plugins/excalidraw/licenses/CascadiaCode-OFL.txt
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
Copyright (c) 2019 - Present, Microsoft Corporation,
|
||||||
|
with Reserved Font Name Cascadia Code.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
21
packages/plugins/excalidraw/licenses/ComicShanns-MIT.txt
Normal file
21
packages/plugins/excalidraw/licenses/ComicShanns-MIT.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 Shannon Miwa
|
||||||
|
|
||||||
|
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.
|
||||||
22
packages/plugins/excalidraw/licenses/FONT-NOTICES.md
Normal file
22
packages/plugins/excalidraw/licenses/FONT-NOTICES.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Font notices
|
||||||
|
|
||||||
|
The Excalidraw plugin package ships the font files that Excalidraw's
|
||||||
|
prod build loads at runtime (`fonts/`). Neither the npm package nor the
|
||||||
|
Excalidraw repository ships license files next to the fonts, so the
|
||||||
|
attributions are collected here (issue #345); each referenced text in
|
||||||
|
this directory carries the font's own copyright statement.
|
||||||
|
|
||||||
|
| Font family | License | Text | Upstream |
|
||||||
|
| --------------- | ------- | ---------------------- | ------------------------------------------------------------------------------------------------- |
|
||||||
|
| Assistant | OFL-1.1 | `Assistant-OFL.txt` | https://github.com/hafontia/Assistant |
|
||||||
|
| Cascadia Code | OFL-1.1 | `CascadiaCode-OFL.txt` | https://github.com/microsoft/cascadia-code |
|
||||||
|
| Comic Shanns | MIT | `ComicShanns-MIT.txt` | https://github.com/shannpersand/comic-shanns |
|
||||||
|
| Excalifont | MIT | `excalidraw-MIT.txt` | Published as part of https://github.com/excalidraw/excalidraw (no separate font license upstream) |
|
||||||
|
| Liberation Sans | OFL-1.1 | `Liberation-OFL.txt` | https://github.com/liberationfonts/liberation-fonts |
|
||||||
|
| Lilita One | OFL-1.1 | `LilitaOne-OFL.txt` | https://fonts.google.com/specimen/Lilita+One |
|
||||||
|
| Nunito | OFL-1.1 | `Nunito-OFL.txt` | https://github.com/googlefonts/nunito |
|
||||||
|
| Virgil | OFL-1.1 | `Virgil-OFL.txt` | https://github.com/excalidraw/virgil |
|
||||||
|
| Xiaolai | OFL-1.1 | `Xiaolai-OFL.txt` | https://github.com/lxgw/kose-font |
|
||||||
|
|
||||||
|
The SIL Open Font License permits use, redistribution, and bundling
|
||||||
|
with software; it applies to the font files, not to this plugin's code.
|
||||||
102
packages/plugins/excalidraw/licenses/Liberation-OFL.txt
Normal file
102
packages/plugins/excalidraw/licenses/Liberation-OFL.txt
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
Digitized data copyright (c) 2010 Google Corporation
|
||||||
|
with Reserved Font Arimo, Tinos and Cousine.
|
||||||
|
Copyright (c) 2012 Red Hat, Inc.
|
||||||
|
with Reserved Font Name Liberation.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License,
|
||||||
|
Version 1.1.
|
||||||
|
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
|
||||||
|
PREAMBLE The goals of the Open Font License (OFL) are to stimulate
|
||||||
|
worldwide development of collaborative font projects, to support the font
|
||||||
|
creation efforts of academic and linguistic communities, and to provide
|
||||||
|
a free and open framework in which fonts may be shared and improved in
|
||||||
|
partnership with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves.
|
||||||
|
The fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply to
|
||||||
|
any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such.
|
||||||
|
This may include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components
|
||||||
|
as distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting ? in part or in whole ?
|
||||||
|
any of the components of the Original Version, by changing formats or
|
||||||
|
by porting the Font Software to a new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical writer
|
||||||
|
or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,in
|
||||||
|
Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the
|
||||||
|
corresponding Copyright Holder. This restriction only applies to the
|
||||||
|
primary font name as presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole, must
|
||||||
|
be distributed entirely under this license, and must not be distributed
|
||||||
|
under any other license. The requirement for fonts to remain under
|
||||||
|
this license does not apply to any document created using the Font
|
||||||
|
Software.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are not met.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
|
||||||
|
DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
|
||||||
94
packages/plugins/excalidraw/licenses/LilitaOne-OFL.txt
Normal file
94
packages/plugins/excalidraw/licenses/LilitaOne-OFL.txt
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
Copyright (c) 2011 Juan Montoreano (juan@remolacha.biz),
|
||||||
|
with Reserved Font Name Lilita
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
93
packages/plugins/excalidraw/licenses/Nunito-OFL.txt
Normal file
93
packages/plugins/excalidraw/licenses/Nunito-OFL.txt
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
Copyright 2014 The Nunito Project Authors (https://github.com/googlefonts/nunito)
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
45
packages/plugins/excalidraw/licenses/Virgil-OFL.txt
Normal file
45
packages/plugins/excalidraw/licenses/Virgil-OFL.txt
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
Copyright (c) 2021 - Present, Ellinor Rapp, with Reserved Font Name Virgil.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: [scripts.sil.org/OFL](https://scripts.sil.org/OFL).
|
||||||
|
|
||||||
|
# SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
|
||||||
|
## PREAMBLE
|
||||||
|
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
## DEFINITIONS
|
||||||
|
|
||||||
|
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
## PERMISSION & CONDITIONS
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1. Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2. Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3. No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
|
||||||
|
|
||||||
|
4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
|
||||||
|
|
||||||
|
5. The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
|
||||||
|
|
||||||
|
## TERMINATION
|
||||||
|
|
||||||
|
This license becomes null and void if any of the above conditions are not met.
|
||||||
|
|
||||||
|
## DISCLAIMER
|
||||||
|
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
94
packages/plugins/excalidraw/licenses/Xiaolai-OFL.txt
Normal file
94
packages/plugins/excalidraw/licenses/Xiaolai-OFL.txt
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
Copyright 2020-2024 LXGW (https://github.com/lxgw/kose-font)
|
||||||
|
Copyright 2014 Nozomi Seto (https://ja.osdn.net/projects/setofont/)
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
21
packages/plugins/excalidraw/licenses/excalidraw-MIT.txt
Normal file
21
packages/plugins/excalidraw/licenses/excalidraw-MIT.txt
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Excalidraw
|
||||||
|
|
||||||
|
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.
|
||||||
@ -9,21 +9,27 @@ import { fileURLToPath } from 'node:url';
|
|||||||
import { build } from 'esbuild';
|
import { build } from 'esbuild';
|
||||||
import { zipSync } from 'fflate';
|
import { zipSync } from 'fflate';
|
||||||
|
|
||||||
|
import { thirdPartyNotices } from '../third-party-licenses.mjs';
|
||||||
|
|
||||||
const root = dirname(fileURLToPath(import.meta.url));
|
const root = dirname(fileURLToPath(import.meta.url));
|
||||||
const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
const manifest = JSON.parse(readFileSync(join(root, 'manifest.json'), 'utf8'));
|
||||||
|
|
||||||
mkdirSync(join(root, 'dist'), { recursive: true });
|
mkdirSync(join(root, 'dist'), { recursive: true });
|
||||||
await build({
|
const buildResult = await build({
|
||||||
entryPoints: [join(root, 'src/plugin.ts')],
|
entryPoints: [join(root, 'src/plugin.ts')],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
outfile: join(root, 'dist/plugin.js'),
|
outfile: join(root, 'dist/plugin.js'),
|
||||||
minify: true,
|
minify: true,
|
||||||
|
metafile: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const files = {
|
const files = {
|
||||||
'manifest.json': readFileSync(join(root, 'manifest.json')),
|
'manifest.json': readFileSync(join(root, 'manifest.json')),
|
||||||
'plugin.js': readFileSync(join(root, 'dist/plugin.js')),
|
'plugin.js': readFileSync(join(root, 'dist/plugin.js')),
|
||||||
|
// mermaid and its transitive dependencies are bundled into plugin.js; their
|
||||||
|
// license texts ship with the package they belong to (issue #345).
|
||||||
|
'licenses/THIRD-PARTY-NOTICES.txt': Buffer.from(thirdPartyNotices(buildResult.metafile)),
|
||||||
};
|
};
|
||||||
for (const name of readdirSync(join(root, 'i18n'))) {
|
for (const name of readdirSync(join(root, 'i18n'))) {
|
||||||
files[`i18n/${name}`] = readFileSync(join(root, 'i18n', name));
|
files[`i18n/${name}`] = readFileSync(join(root, 'i18n', name));
|
||||||
|
|||||||
82
packages/plugins/third-party-licenses.mjs
Normal file
82
packages/plugins/third-party-licenses.mjs
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
// Third-party license notices for plugin ZIPs (issue #345). A plugin that
|
||||||
|
// redistributes third-party material must ship the license texts alongside it
|
||||||
|
// (Apache-2.0 §4(a), MIT's notice clause, OFL §2). The bundled-package list is
|
||||||
|
// derived from the esbuild metafile — the set of files that actually ended up
|
||||||
|
// in plugin.js — so the notices can never drift from the bundle the way a
|
||||||
|
// hand-maintained list would. Non-bundled material (vendored webapps, copied
|
||||||
|
// font assets) cannot appear in a metafile; callers pass those as `extras`.
|
||||||
|
import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
||||||
|
import { dirname, join, resolve, sep } from 'node:path';
|
||||||
|
|
||||||
|
const LICENSE_FILE_PATTERN = /^(licen[cs]e|copying|notice)(\.|$)/i;
|
||||||
|
|
||||||
|
/** Walk up from `file` to the nearest package.json that names a package. */
|
||||||
|
function packageRootOf(file) {
|
||||||
|
let dir = dirname(resolve(file));
|
||||||
|
while (dir !== dirname(dir)) {
|
||||||
|
const pj = join(dir, 'package.json');
|
||||||
|
if (existsSync(pj)) {
|
||||||
|
try {
|
||||||
|
const parsed = JSON.parse(readFileSync(pj, 'utf8'));
|
||||||
|
if (parsed.name) return { dir, pkg: parsed };
|
||||||
|
} catch {
|
||||||
|
// unreadable package.json (e.g. a fixture) — keep walking up
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dir = dirname(dir);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function shippedLicenseText(dir) {
|
||||||
|
const names = readdirSync(dir).filter((name) => LICENSE_FILE_PATTERN.test(name));
|
||||||
|
return names
|
||||||
|
.sort()
|
||||||
|
.map((name) => readFileSync(join(dir, name), 'utf8').trim())
|
||||||
|
.join('\n\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All third-party npm packages whose files the metafile lists as bundle
|
||||||
|
* inputs, deduplicated by name@version. First-party `@dorfteich/*` packages
|
||||||
|
* are covered by the repository LICENSE and skipped.
|
||||||
|
*/
|
||||||
|
export function bundledPackages(metafile) {
|
||||||
|
const seen = new Map();
|
||||||
|
for (const input of Object.keys(metafile.inputs)) {
|
||||||
|
if (!input.split(sep).includes('node_modules') && !input.includes('/node_modules/')) continue;
|
||||||
|
const found = packageRootOf(input);
|
||||||
|
if (!found || found.pkg.name.startsWith('@dorfteich/')) continue;
|
||||||
|
const key = `${found.pkg.name}@${found.pkg.version}`;
|
||||||
|
if (!seen.has(key)) {
|
||||||
|
seen.set(key, {
|
||||||
|
name: found.pkg.name,
|
||||||
|
version: found.pkg.version,
|
||||||
|
license: typeof found.pkg.license === 'string' ? found.pkg.license : 'see license text',
|
||||||
|
text: shippedLicenseText(found.dir),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [...seen.values()].sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renders `licenses/THIRD-PARTY-NOTICES.txt` for a plugin ZIP: one section per
|
||||||
|
* bundled package (license expression + the license file it ships), then one
|
||||||
|
* per caller-supplied extra ({ title, license, note?, text? }).
|
||||||
|
*/
|
||||||
|
export function thirdPartyNotices(metafile, extras = []) {
|
||||||
|
const rule = '='.repeat(72);
|
||||||
|
const sections = [
|
||||||
|
'THIRD-PARTY NOTICES\n\nThis plugin package redistributes the third-party components listed\nbelow, each under its own license.\n',
|
||||||
|
];
|
||||||
|
for (const pkg of bundledPackages(metafile)) {
|
||||||
|
const body = pkg.text || `License: ${pkg.license} (no license file shipped in the npm package)`;
|
||||||
|
sections.push(`${rule}\n${pkg.name} ${pkg.version} — ${pkg.license}\n${rule}\n\n${body}\n`);
|
||||||
|
}
|
||||||
|
for (const extra of extras) {
|
||||||
|
const parts = [extra.note, extra.text].filter(Boolean).join('\n\n');
|
||||||
|
sections.push(`${rule}\n${extra.title} — ${extra.license}\n${rule}\n\n${parts}\n`);
|
||||||
|
}
|
||||||
|
return sections.join('\n');
|
||||||
|
}
|
||||||
@ -194,5 +194,6 @@
|
|||||||
"due": "Zieldatum",
|
"due": "Zieldatum",
|
||||||
"start": "Startdatum"
|
"start": "Startdatum"
|
||||||
},
|
},
|
||||||
"contentLabel": "Seiteninhalt"
|
"contentLabel": "Seiteninhalt",
|
||||||
|
"keyboardHint": "In Tabellen wechselt die Tabulatortaste zur nächsten Zelle und legt in der letzten Zelle eine neue Zeile an; Umschalt+Tab geht zurück. Escape stellt den Cursor hinter die Tabelle; außerhalb von Tabellen verlässt die Tabulatortaste den Editor."
|
||||||
}
|
}
|
||||||
|
|||||||
@ -194,5 +194,6 @@
|
|||||||
"due": "Due date",
|
"due": "Due date",
|
||||||
"start": "Start date"
|
"start": "Start date"
|
||||||
},
|
},
|
||||||
"contentLabel": "Page content"
|
"contentLabel": "Page content",
|
||||||
|
"keyboardHint": "Inside tables, Tab moves to the next cell and creates a new row from the last cell; Shift+Tab moves back. Escape places the cursor after the table; outside tables, Tab leaves the editor."
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user