Allow to change block type

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
environments/review-lexical-ujdd17/deployments/2895
marcin mikołajczak 2023-03-18 19:20:43 +01:00
rodzic 6dd2172a04
commit 8b7b2a533e
5 zmienionych plików z 399 dodań i 147 usunięć

Wyświetl plik

@ -10,6 +10,7 @@ LICENSE file in the /app/soapbox/features/compose/editor directory.
import { CodeHighlightNode, CodeNode } from '@lexical/code';
import { HashtagNode } from '@lexical/hashtag';
import { AutoLinkNode, LinkNode } from '@lexical/link';
import { ListItemNode, ListNode } from '@lexical/list';
import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode';
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
@ -24,6 +25,8 @@ const ComposeNodes: Array<Klass<LexicalNode>> = [
CodeHighlightNode,
AutoLinkNode,
LinkNode,
ListItemNode,
ListNode,
HorizontalRuleNode,
HashtagNode,
MentionNode,

Wyświetl plik

@ -7,15 +7,35 @@ This source code is licensed under the MIT license found in the
LICENSE file in the /app/soapbox/features/compose/editor directory.
*/
import { $isCodeHighlightNode } from '@lexical/code';
import { $createCodeNode, $isCodeHighlightNode } from '@lexical/code';
import { $isLinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link';
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
import { mergeRegister } from '@lexical/utils';
import {
$isListNode,
INSERT_ORDERED_LIST_COMMAND,
INSERT_UNORDERED_LIST_COMMAND,
ListNode,
REMOVE_LIST_COMMAND,
} from '@lexical/list';
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
import {
$createHeadingNode,
$createQuoteNode,
$isHeadingNode,
HeadingTagType,
} from '@lexical/rich-text';
import {
$setBlocksType,
} from '@lexical/selection';
import { $findMatchingParent, $getNearestNodeOfType, mergeRegister } from '@lexical/utils';
import clsx from 'clsx';
import {
$createParagraphNode,
$getSelection,
$isRangeSelection,
$isRootOrShadowRoot,
$isTextNode,
COMMAND_PRIORITY_LOW,
DEPRECATED_$isGridSelection,
FORMAT_TEXT_COMMAND,
LexicalEditor,
SELECTION_CHANGE_COMMAND,
@ -30,9 +50,203 @@ import { getDOMRangeRect } from '../utils/get-dom-range-rect';
import { getSelectedNode } from '../utils/get-selected-node';
import { setFloatingElemPosition } from '../utils/set-floating-elem-position';
const blockTypeToIcon = {
bullet: require('@tabler/icons/list.svg'),
check: require('@tabler/icons/list-check.svg'),
code: require('@tabler/icons/code.svg'),
h1: require('@tabler/icons/h-1.svg'),
h2: require('@tabler/icons/h-2.svg'),
h3: require('@tabler/icons/h-3.svg'),
h4: require('@tabler/icons/h-4.svg'),
h5: require('@tabler/icons/h-5.svg'),
h6: require('@tabler/icons/h-6.svg'),
number: require('@tabler/icons/list-numbers.svg'),
paragraph: require('@tabler/icons/align-left.svg'),
quote: require('@tabler/icons/blockquote.svg'),
};
const blockTypeToBlockName = {
bullet: 'Bulleted List',
check: 'Check List',
code: 'Code Block',
h1: 'Heading 1',
h2: 'Heading 2',
h3: 'Heading 3',
h4: 'Heading 4',
h5: 'Heading 5',
h6: 'Heading 6',
number: 'Numbered List',
paragraph: 'Normal',
quote: 'Quote',
};
const BlockTypeDropdown = ({ editor, anchorElem, blockType, icon }: {
editor: LexicalEditor
anchorElem: HTMLElement
blockType: keyof typeof blockTypeToBlockName
icon: string
}) => {
const [showDropDown, setShowDropDown] = useState(false);
const formatParagraph = () => {
editor.update(() => {
const selection = $getSelection();
if (
$isRangeSelection(selection) ||
DEPRECATED_$isGridSelection(selection)
) {
$setBlocksType(selection, () => $createParagraphNode());
}
});
};
const formatHeading = (headingSize: HeadingTagType) => {
if (blockType !== headingSize) {
editor.update(() => {
const selection = $getSelection();
if (
$isRangeSelection(selection) ||
DEPRECATED_$isGridSelection(selection)
) {
$setBlocksType(selection, () => $createHeadingNode(headingSize));
}
});
}
};
const formatBulletList = () => {
if (blockType !== 'bullet') {
editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined);
} else {
editor.dispatchCommand(REMOVE_LIST_COMMAND, undefined);
}
};
const formatNumberedList = () => {
if (blockType !== 'number') {
editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined);
} else {
editor.dispatchCommand(REMOVE_LIST_COMMAND, undefined);
}
};
const formatQuote = () => {
if (blockType !== 'quote') {
editor.update(() => {
const selection = $getSelection();
if (
$isRangeSelection(selection) ||
DEPRECATED_$isGridSelection(selection)
) {
$setBlocksType(selection, () => $createQuoteNode());
}
});
}
};
const formatCode = () => {
if (blockType !== 'code') {
editor.update(() => {
let selection = $getSelection();
if (
$isRangeSelection(selection) ||
DEPRECATED_$isGridSelection(selection)
) {
if (selection.isCollapsed()) {
$setBlocksType(selection, () => $createCodeNode());
} else {
const textContent = selection.getTextContent();
const codeNode = $createCodeNode();
selection.insertNodes([codeNode]);
selection = $getSelection();
if ($isRangeSelection(selection))
selection.insertRawText(textContent);
}
}
});
}
};
return (
<>
<button
onClick={() => setShowDropDown(!showDropDown)}
className='popup-item spaced relative'
aria-label=''
type='button'
>
<Icon src={icon} />
<Icon src={require('@tabler/icons/chevron-down.svg')} className='-bottom-2 h-4 w-4' />
{showDropDown && (
<div className='floating-text-format-popup' style={{ opacity: 1, top: 36 }}>
<button
onClick={formatParagraph}
className={clsx('popup-item spaced', blockType === 'paragraph' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.paragraph} />
</button>
<button
onClick={() => formatHeading('h1')}
className={clsx('popup-item spaced', blockType === 'h1' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.h1} />
</button>
<button
onClick={() => formatHeading('h2')}
className={clsx('popup-item spaced', blockType === 'h2' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.h2} />
</button>
<button
onClick={() => formatHeading('h3')}
className={clsx('popup-item spaced', blockType === 'h3' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.h3} />
</button>
<button
onClick={formatBulletList}
className={clsx('popup-item spaced', blockType === 'bullet' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.bullet} />
</button>
<button
onClick={formatNumberedList}
className={clsx('popup-item spaced', blockType === 'number' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.number} />
</button>
<button
onClick={formatQuote}
className={clsx('popup-item spaced', blockType === 'quote' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.quote} />
</button>
<button
onClick={formatCode}
className={clsx('popup-item spaced', blockType === 'code' && 'active')}
type='button'
>
<Icon src={blockTypeToIcon.code} />
</button>
</div>
)}
</button>
</>
);
};
const TextFormatFloatingToolbar = ({
editor,
anchorElem,
blockType,
isLink,
isBold,
isItalic,
@ -42,6 +256,7 @@ const TextFormatFloatingToolbar = ({
}: {
editor: LexicalEditor
anchorElem: HTMLElement
blockType: keyof typeof blockTypeToBlockName
isBold: boolean
isCode: boolean
isItalic: boolean
@ -132,16 +347,12 @@ const TextFormatFloatingToolbar = ({
<div ref={popupCharStylesEditorRef} className='floating-text-format-popup'>
{editor.isEditable() && (
<>
<button
onClick={() => {
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'bold');
}}
className={'popup-item spaced ' + (isBold ? 'active' : '')}
aria-label='Format text as bold'
type='button'
>
<Icon src={require('@tabler/icons/align-left.svg')} />
</button>
<BlockTypeDropdown
editor={editor}
anchorElem={anchorElem}
blockType={blockType}
icon={blockTypeToIcon[blockType]}
/>
<button
onClick={() => {
editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'bold');
@ -210,6 +421,8 @@ const useFloatingTextFormatToolbar = (
editor: LexicalEditor,
anchorElem: HTMLElement,
): JSX.Element | null => {
const [blockType, setBlockType] =
useState<keyof typeof blockTypeToBlockName>('paragraph');
const [isText, setIsText] = useState(false);
const [isLink, setIsLink] = useState(false);
const [isBold, setIsBold] = useState(false);
@ -242,6 +455,22 @@ const useFloatingTextFormatToolbar = (
return;
}
const anchorNode = selection.anchor.getNode();
let element =
anchorNode.getKey() === 'root'
? anchorNode
: $findMatchingParent(anchorNode, (e) => {
const parent = e.getParent();
return parent !== null && $isRootOrShadowRoot(parent);
});
if (element === null) {
element = anchorNode.getTopLevelElementOrThrow();
}
const elementKey = element.getKey();
const elementDOM = editor.getElementByKey(elementKey);
const node = getSelectedNode(selection);
// Update text format
@ -251,6 +480,26 @@ const useFloatingTextFormatToolbar = (
setIsStrikethrough(selection.hasFormat('strikethrough'));
setIsCode(selection.hasFormat('code'));
if (elementDOM !== null) {
if ($isListNode(element)) {
const parentList = $getNearestNodeOfType<ListNode>(
anchorNode,
ListNode,
);
const type = parentList
? parentList.getListType()
: element.getListType();
setBlockType(type);
} else {
const type = $isHeadingNode(element)
? element.getTag()
: element.getType();
if (type in blockTypeToBlockName) {
setBlockType(type as keyof typeof blockTypeToBlockName);
}
}
}
// Update links
const parent = node.getParent();
if ($isLinkNode(parent) || $isLinkNode(node)) {
@ -298,6 +547,7 @@ const useFloatingTextFormatToolbar = (
<TextFormatFloatingToolbar
editor={editor}
anchorElem={anchorElem}
blockType={blockType}
isLink={isLink}
isBold={isBold}
isItalic={isItalic}

Wyświetl plik

@ -418,8 +418,6 @@
"compose_form.hashtag_warning": "This post won't be listed under any hashtag as it is unlisted. Only public posts can be searched by hashtag.",
"compose_form.lock_disclaimer": "Your account is not {locked}. Anyone can follow you to view your follower-only posts.",
"compose_form.lock_disclaimer.lock": "locked",
"compose_form.markdown.marked": "Post markdown enabled",
"compose_form.markdown.unmarked": "Post markdown disabled",
"compose_form.message": "Message",
"compose_form.placeholder": "What's on your mind?",
"compose_form.poll.add_option": "Add an answer",

Wyświetl plik

@ -54,14 +54,15 @@
"@gamestdio/websocket": "^0.3.2",
"@jest/globals": "^29.0.0",
"@lcdp/offline-plugin": "^5.1.0",
"@lexical/code": "^0.8.1",
"@lexical/hashtag": "^0.8.1",
"@lexical/link": "^0.8.1",
"@lexical/markdown": "^0.8.1",
"@lexical/react": "^0.8.1",
"@lexical/rich-text": "^0.8.1",
"@lexical/selection": "^0.8.1",
"@lexical/utils": "^0.8.1",
"@lexical/code": "^0.9.0",
"@lexical/hashtag": "^0.9.0",
"@lexical/link": "^0.9.0",
"@lexical/list": "^0.9.0",
"@lexical/markdown": "^0.9.0",
"@lexical/react": "^0.9.0",
"@lexical/rich-text": "^0.9.0",
"@lexical/selection": "^0.9.0",
"@lexical/utils": "^0.9.0",
"@metamask/providers": "^10.0.0",
"@popperjs/core": "^2.11.5",
"@reach/combobox": "^0.18.0",
@ -140,7 +141,7 @@
"intl-messageformat-parser": "^6.0.0",
"intl-pluralrules": "^1.3.1",
"leaflet": "^1.8.0",
"lexical": "^0.8.1",
"lexical": "^0.9.0",
"libphonenumber-js": "^1.10.8",
"line-awesome": "^1.3.0",
"localforage": "^1.10.0",

246
yarn.lock
Wyświetl plik

@ -2382,159 +2382,159 @@
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
"@lexical/clipboard@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/clipboard/-/clipboard-0.8.1.tgz#f0415eeb487bd95b66e1a2d6ff619ddbb8344610"
integrity sha512-+gXrs00PjLY0udFZF3g0GXBVeCRUmxWFWnpNbTDz+RKjSs72+oQbzJLMZfRTuUbL2mI6nNi9x+ZiAKH233KkWQ==
"@lexical/clipboard@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/clipboard/-/clipboard-0.9.0.tgz#442e065189a28f4bebef2c3eb2a09ff83c939920"
integrity sha512-YDfFKC0YWZn7TV4ZEf1wPvdPeWM8vlfnNovQMbkjgjyxiXLK+fJKt1HgO/Utxmnb+GyB8cJTwbdTjKDELfd62g==
dependencies:
"@lexical/html" "0.8.1"
"@lexical/list" "0.8.1"
"@lexical/selection" "0.8.1"
"@lexical/utils" "0.8.1"
"@lexical/html" "0.9.0"
"@lexical/list" "0.9.0"
"@lexical/selection" "0.9.0"
"@lexical/utils" "0.9.0"
"@lexical/code@0.8.1", "@lexical/code@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/code/-/code-0.8.1.tgz#8ee18c6bddc07e493890f74f70e5e8b0ea55a4a5"
integrity sha512-xzTsne500ebu5mkHHOettdu2XOD5Qswomxiuf5Xn/VScS+Zg1C/NLgtELcz7GZw53mBrdKumd98kANck8d+U/Q==
"@lexical/code@0.9.0", "@lexical/code@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/code/-/code-0.9.0.tgz#d916c941e991a8aaa3ef40c8073c4d5b8d5cd95a"
integrity sha512-DdHB7kS/iOTeb6C2DvYKvNb/FTdG78eFpineO1Tb4PaBNY5JmFLHIIHeA10eCeuGouJfhJFjkplel3JBV4FNAw==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
prismjs "^1.27.0"
"@lexical/dragon@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/dragon/-/dragon-0.8.1.tgz#b6c872fd618ad4593cf52dd9403e0c536b5ef7d1"
integrity sha512-AnGolX/J8I+2Wc08fIz2mM52GgvxYLSBfvIMbN2ztc+UPgPB16cVzBVaJOEZm1+D7YeOG2pVRk+rfrsOdL7i4Q==
"@lexical/dragon@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/dragon/-/dragon-0.9.0.tgz#1af8587889868da5e3f7b8f8f6f1a259df1276ba"
integrity sha512-ehx/yr+epvhrsk6CcqsUFLSslq+VGBt8mlQBuceXekIvzUT0I3Uktgtfw5zFsFMc/DnJAEafv/tZlHlc1ZTioQ==
"@lexical/hashtag@0.8.1", "@lexical/hashtag@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/hashtag/-/hashtag-0.8.1.tgz#c1ae42dd98cebbf1cb61373faaa79443ef2bd595"
integrity sha512-H7Owb8BxcqexJpihsccvw3sc6PKI+IzosIYUZ5NC+PB/0D6uUSoAyuNugySvTx57iIVzQECDa4kTvqO1lQHXGw==
"@lexical/hashtag@0.9.0", "@lexical/hashtag@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/hashtag/-/hashtag-0.9.0.tgz#8adef8f9bf132d6c343ff818795d037d697c13f3"
integrity sha512-RjEt27dZfC/BP/yM3kJ8eB4Qf2UqLpImlUsc50z16gSZntZ3fK+9jkSZ7+ACzzvZ81Uph9vVkmdi/3zzlljjEw==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
"@lexical/history@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/history/-/history-0.8.1.tgz#bffef3134184dde456fd3d123b83c3e3fdc6fb51"
integrity sha512-QRgV8UTLfw0yPDiL80J27i5MdKtK7bLNr+YLU48lxgKhQe9j9YSSERNRTjvHADZ7dz9ERMvEYoDXK9Wl4zVgDA==
"@lexical/history@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/history/-/history-0.9.0.tgz#3e73729fa9906eec926d17d00a26643d53122e64"
integrity sha512-prEeoDqYB1rz4Qr64kn62lmphn85Nd3HO2Cx5DNWwwgTz+X9LcFC32yJMzoX61iVm9Uhk4XbjnX0ZW46meosNA==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
"@lexical/html@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/html/-/html-0.8.1.tgz#f0bbff9f3ed16bb154bcf8b33fd1543c90f5f539"
integrity sha512-tt77LIGlNaHA5MdDI0PsS9QBKUEQkNYsVvS6eo26IdnJgvY2F110B3/cYsRzZZUmR0N4WWuuqIVpDN2lL/M6pw==
"@lexical/html@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/html/-/html-0.9.0.tgz#44c671dc4f6109ae67c4d7096c055430ed8e40cb"
integrity sha512-qNmmPYMpd7OYYCoShAMdklHtGoUcinW6kokLYo0atZ4ERuH72GfP1IVQ6qe04M0VU/Ps1ng5ZEOp1Gje6fMtvQ==
dependencies:
"@lexical/selection" "0.8.1"
"@lexical/selection" "0.9.0"
"@lexical/link@0.8.1", "@lexical/link@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/link/-/link-0.8.1.tgz#1a3374057e57608e9d6cf8fc7765865a18659bc2"
integrity sha512-G2MmZcGlth0TzXqHRYC4rvEGRqS9wZ0JsazkxPSLPD4lFQD+u2tVJb7rLXqVNgw0bxQSYUYmGbLnjiNvq8uLRg==
"@lexical/link@0.9.0", "@lexical/link@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/link/-/link-0.9.0.tgz#2fd878f69723d5875a527cdda8c24df3bb4ba7ac"
integrity sha512-zubpf5Wli+F9Q8hqIQ8/arzVJzhXStA2qjvVBv1aM4YwbwLP3jqhRngSfMQX7ZDrHow8uc9xrR7l/t6eO/8XfQ==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
"@lexical/list@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/list/-/list-0.8.1.tgz#107c1e5fdd330d03907d6628df3b570739d2bc42"
integrity sha512-sZjs1yKYLye3/uQNuJbWRgC6RtFTsR3QXBpkxRI6E0OoVViqhGh0vhWXmerLUq61V9McLVJ6noOOzWU1tud6xA==
"@lexical/list@0.9.0", "@lexical/list@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/list/-/list-0.9.0.tgz#ee674c5ba7aea50b5d1007a3d2b10d9638ca37a0"
integrity sha512-vC6W9UaWvL1QB8HG+2OfR10fk+eOMktUllSmfNMeCi26ymcAkzvu9OtbLgL2aiU1h95S+iC7fPhUXl/G5gaB1w==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
"@lexical/mark@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/mark/-/mark-0.8.1.tgz#aa470c165538a0e0cd28082d720eaf6ee84c5cb8"
integrity sha512-UTKpBr43L+PYJZ0U+Xer8y6f2imtMY3WQ5RQ8HnyFl10WMMPuldZxm6QMW25syT8OHmuEzknvkrU3bQm6rInsg==
"@lexical/mark@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/mark/-/mark-0.9.0.tgz#040d3e8d3e2f46160bd4e5b1e6a5489df0c6aa46"
integrity sha512-ACflXazTIEMg+HEGrZa4lmje1R4bxfqbyqRw7C/t+iHr2eZROEpIg9Z+ztQ7wx8YSdNXI36k/WsDEU8uxIgGdQ==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
"@lexical/markdown@0.8.1", "@lexical/markdown@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/markdown/-/markdown-0.8.1.tgz#b5e368d97d532c5d969ecbd687d76ac619d737a1"
integrity sha512-cMwCN28rWvLMYDVLJN0pKnB6qaktJVDtx2sOjcUMg96fP8Aul4OgUzYWcEdd9OCxiy+oHp6iu1FbMa9+JeCs7Q==
"@lexical/markdown@0.9.0", "@lexical/markdown@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/markdown/-/markdown-0.9.0.tgz#3a6cc17196514ca79314d220029ed9a406f3ff5a"
integrity sha512-2VcA+csrnVpXDLU4G69gg4DCKiU1mUn0lPUKOp74iuR+g2K/5PbiRSwJD6vbn18Qxp5qM+bGmMVDbPXp6rIxvA==
dependencies:
"@lexical/code" "0.8.1"
"@lexical/link" "0.8.1"
"@lexical/list" "0.8.1"
"@lexical/rich-text" "0.8.1"
"@lexical/text" "0.8.1"
"@lexical/utils" "0.8.1"
"@lexical/code" "0.9.0"
"@lexical/link" "0.9.0"
"@lexical/list" "0.9.0"
"@lexical/rich-text" "0.9.0"
"@lexical/text" "0.9.0"
"@lexical/utils" "0.9.0"
"@lexical/offset@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/offset/-/offset-0.8.1.tgz#c2e909281c643b35de623cb3f9a3f7df74c3f7e9"
integrity sha512-h/LV5FNet3vGoSgCRQJHg80MQbLul2HwnZg515WuF12nL5e/xpYdmXizFircVwfabWiYIYWQhO8w4Cui2Vi4Rg==
"@lexical/offset@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/offset/-/offset-0.9.0.tgz#aec971e334a8c06784d65be9de206190ea108ac2"
integrity sha512-Tw1V852si1fK7jLtpWNmTlFMUkZAGIKrOuKE/MnboXrDXL1qydCZn1rN/UVIDTPjmF6O6YGh4XQwi4IIWBDvfQ==
"@lexical/overflow@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/overflow/-/overflow-0.8.1.tgz#3b2590050e5776fb90118681e805044a832bf6da"
integrity sha512-MEieO36IQfdhDLycqpfCxSP++HCGCusv8t6Gv6HgvKmsqHyGh5NN3mGMCTk2F58mMyTrA7Np8TiStw5Th6WbVA==
"@lexical/overflow@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/overflow/-/overflow-0.9.0.tgz#e04dce39819fca28613127eb8e0d9296bb8be46f"
integrity sha512-OxtsJ4b9xj6A3TcIJ5RgPmwMmQr643lu9LFMWTrSsLEUIhwWCRwqGaY37LflqpLRNLlcGTbqAqzlTs33hEvsqg==
"@lexical/plain-text@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/plain-text/-/plain-text-0.8.1.tgz#f008a940322b46a45286f3da7e6eb16e2864f736"
integrity sha512-ySv4Szvxikkl1ESVsDfoYelyOT6YXtR27LyyxejPN7MrwCOo0MOgdBvFNYi5Ay+QJ0nS4r7VCJuGe6St7ElE1Q==
"@lexical/plain-text@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/plain-text/-/plain-text-0.9.0.tgz#60be75e4e5f39f01ec2bac7c75e56cb10fdfdbcf"
integrity sha512-V5UKWRdi0Wl1lIGBcPgbWoO4x4leIcBJ1GA2HSp/7dIn5ay9x+lgqKQMI9nQlg72yai5cthv5r16pypjlpk4dg==
"@lexical/react@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/react/-/react-0.8.1.tgz#3532bce77b9e4abeb4d6a56d80d028112d82100a"
integrity sha512-+bQwr1LhsOBveYdtBrVHoEsqSfBZbh2G/V32MMiFD57932UaWp0KyRQWgjQtd6y/5VMPCus+rknk6EwS6PT5Zg==
"@lexical/react@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/react/-/react-0.9.0.tgz#5943192ab46ea059c9de7a8d2a1efd01a8911417"
integrity sha512-gnQ12ufSXLsgudohUbF1Uf5DXkaH0/5S7n+h64ofdeFwbCmqy7yq0FZgWpSX1lBW0UI15UT2uqVQ5LwPqqNhuQ==
dependencies:
"@lexical/clipboard" "0.8.1"
"@lexical/code" "0.8.1"
"@lexical/dragon" "0.8.1"
"@lexical/hashtag" "0.8.1"
"@lexical/history" "0.8.1"
"@lexical/link" "0.8.1"
"@lexical/list" "0.8.1"
"@lexical/mark" "0.8.1"
"@lexical/markdown" "0.8.1"
"@lexical/overflow" "0.8.1"
"@lexical/plain-text" "0.8.1"
"@lexical/rich-text" "0.8.1"
"@lexical/selection" "0.8.1"
"@lexical/table" "0.8.1"
"@lexical/text" "0.8.1"
"@lexical/utils" "0.8.1"
"@lexical/yjs" "0.8.1"
"@lexical/clipboard" "0.9.0"
"@lexical/code" "0.9.0"
"@lexical/dragon" "0.9.0"
"@lexical/hashtag" "0.9.0"
"@lexical/history" "0.9.0"
"@lexical/link" "0.9.0"
"@lexical/list" "0.9.0"
"@lexical/mark" "0.9.0"
"@lexical/markdown" "0.9.0"
"@lexical/overflow" "0.9.0"
"@lexical/plain-text" "0.9.0"
"@lexical/rich-text" "0.9.0"
"@lexical/selection" "0.9.0"
"@lexical/table" "0.9.0"
"@lexical/text" "0.9.0"
"@lexical/utils" "0.9.0"
"@lexical/yjs" "0.9.0"
react-error-boundary "^3.1.4"
"@lexical/rich-text@0.8.1", "@lexical/rich-text@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/rich-text/-/rich-text-0.8.1.tgz#fcc63f88cd43b34eefc01c72a70d26b04541dad4"
integrity sha512-uaYt5UcTYewc4gDXEfe/uterK7xEu2CMAUcLyhWeXcrkTnpQR7v/IEJ4MMQexrNas/F1eI7Qi+qw28eE+C59+A==
"@lexical/rich-text@0.9.0", "@lexical/rich-text@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/rich-text/-/rich-text-0.9.0.tgz#269283a57dddfe033164a6b541fa2a720daf1b67"
integrity sha512-FC2stGty/S5hrQW3uL3xsrNXvKmPqhsSG73gwfx5VH6CxwABQjBGfNq1wO5p02c3J/KOC8OeKuEtgbwldEX48Q==
"@lexical/selection@0.8.1", "@lexical/selection@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/selection/-/selection-0.8.1.tgz#6f1417095b3a038eb9cae5dacc79f1e85d33fa24"
integrity sha512-f94g+Z6n5JJNKw5v46aSn8rSB3RH1eOGiQ/tTXA6snZGlT9ubm5f3vDIZ1q2HQV2vMK1DPwK6ibEyLpVPoyL2w==
"@lexical/selection@0.9.0", "@lexical/selection@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/selection/-/selection-0.9.0.tgz#2c11085f94435c1c71344654a1f2b9a0c3549a22"
integrity sha512-jPLeaqNujER1t61OWmSuUMS010A6Nz49efO8rEJFjMbUK7GB9IDsSDgvE4WnT/yBrXLAickjSiXgUq51LQTYYw==
"@lexical/table@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/table/-/table-0.8.1.tgz#1d1337990dd0d66b602c08286a9bb5b55105f0f8"
integrity sha512-81wqidbw55AE0VjwxHlHFf+0wG2D5SeyxxAXoEzSr+4kFsIkNg5PGQ24iEH/dVj0pQ+AE5W351Jd7y8kauZlig==
"@lexical/table@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/table/-/table-0.9.0.tgz#8f4e0d797c15141e26667cc54d7b640c90f5a9b8"
integrity sha512-Qi0naXpMw4eUREEUGRJH41uf6DXbK5UgrJSMaX1FYvEV8Mk3EjRW1KkjuQGbwlchtEvchyyY6wo6uoYR80Vw7w==
dependencies:
"@lexical/utils" "0.8.1"
"@lexical/utils" "0.9.0"
"@lexical/text@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/text/-/text-0.8.1.tgz#cb5d8c5520f78514a4c4f3fbd05569d7f9f9c16f"
integrity sha512-37yOO+VMogyWPwvR2RUJteC9rpF4otQJqYffpwIYE0kA73q6+quBZPZJpMX1PGvixgHypXFZy1YD7YMhXY4m9w==
"@lexical/text@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/text/-/text-0.9.0.tgz#ee90b42d8558123c917f561cfbfb804dac25e0a4"
integrity sha512-+OHoB1Qb2SajGTEm9K4I3hDtCmeLr0Bs62psra6qYE/lil0Y8brrEXB5egppDpm6mKtiMzGrkBDMpcsKw/kiWA==
"@lexical/utils@0.8.1", "@lexical/utils@^0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/utils/-/utils-0.8.1.tgz#ccb86aaed54e88d856d2cdc7adec763a9f5363d5"
integrity sha512-mRV1ea4KCnRW8vrxm6/6930CNiOqsDEj2nDygI/fE+sHZI2lajjBpMdBP/F4XhIjn5stGUhKRKWoV5JXG8n70g==
"@lexical/utils@0.9.0", "@lexical/utils@^0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/utils/-/utils-0.9.0.tgz#923e79af94566844442bc8699aba89f7d1cf5779"
integrity sha512-s4BrBKrd7VHexLSYdSKrRAVmuxmfVV49MYx/khILGnNQKYS2O8PuERCXi+IRi8Ac5ASELO6d28Y2my8NMM1CYA==
dependencies:
"@lexical/list" "0.8.1"
"@lexical/selection" "0.8.1"
"@lexical/table" "0.8.1"
"@lexical/list" "0.9.0"
"@lexical/selection" "0.9.0"
"@lexical/table" "0.9.0"
"@lexical/yjs@0.8.1":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@lexical/yjs/-/yjs-0.8.1.tgz#d99b04fc6176cdc8bd7726ef4476c3f389a3283d"
integrity sha512-wQ/N7WOpOq7PJIEsRLSyPZvHZDRUUFfESLUdSKTzEe2YK6zFRQ69vhE7cVuWF38/JzeB/ogtH3h2lsybQCAvmA==
"@lexical/yjs@0.9.0":
version "0.9.0"
resolved "https://registry.yarnpkg.com/@lexical/yjs/-/yjs-0.9.0.tgz#88d90c346102bf46f5ee2ef6a6c763bef1f12bf6"
integrity sha512-xRwa/gmBgS4uE0lYFht9gM602wzb0MSXJBWreI8hSyyipQPgr7XTndKzt/0ntZ6RvgV8KEINyftjNftwGQNooA==
dependencies:
"@lexical/offset" "0.8.1"
"@lexical/offset" "0.9.0"
"@mdn/browser-compat-data@^3.3.14":
version "3.3.14"
@ -11991,10 +11991,10 @@ levn@~0.3.0:
prelude-ls "~1.1.2"
type-check "~0.3.2"
lexical@^0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/lexical/-/lexical-0.8.1.tgz#7d84f6673c568f96060bb0e4b21b9b9c9e037eba"
integrity sha512-+dVoQZldtPCLyMgnvbgeYCmfIQilEHrZYGf6Fdpw4Ck0Xvg7IpvMpIKuMsXYsH1t2TlrTQ3qR6cDYvobuU7kMA==
lexical@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/lexical/-/lexical-0.9.0.tgz#9c67b624b19a521b2515721b65a12e7fdc806980"
integrity sha512-UHMvjRVqrpBLJkCRytVxAvy3PftRnlhZIqKcY1Uiugf6KjzP0GQTwWhxxcltJJ0sZCjZcVYgiib+m08R5KXz0g==
li@^1.3.0:
version "1.3.0"