diff --git a/packages/lexical-playground/src/plugins/ActionsPlugin.tsx b/packages/lexical-playground/src/plugins/ActionsPlugin/index.tsx similarity index 97% rename from packages/lexical-playground/src/plugins/ActionsPlugin.tsx rename to packages/lexical-playground/src/plugins/ActionsPlugin/index.tsx index fb0b89fcac9..3c027c273cc 100644 --- a/packages/lexical-playground/src/plugins/ActionsPlugin.tsx +++ b/packages/lexical-playground/src/plugins/ActionsPlugin/index.tsx @@ -28,13 +28,13 @@ import { import * as React from 'react'; import {useCallback, useEffect, useState} from 'react'; -import useModal from '../hooks/useModal'; -import Button from '../ui/Button'; -import {PLAYGROUND_TRANSFORMERS} from './MarkdownTransformers'; +import useModal from '../../hooks/useModal'; +import Button from '../../ui/Button'; +import {PLAYGROUND_TRANSFORMERS} from '../MarkdownTransformers'; import { SPEECH_TO_TEXT_COMMAND, SUPPORT_SPEECH_RECOGNITION, -} from './SpeechToTextPlugin'; +} from '../SpeechToTextPlugin'; export default function ActionsPlugin({ isRichText, diff --git a/packages/lexical-playground/src/plugins/AutoLinkPlugin.tsx b/packages/lexical-playground/src/plugins/AutoLinkPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/AutoLinkPlugin.tsx rename to packages/lexical-playground/src/plugins/AutoLinkPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/AutocompletePlugin.tsx b/packages/lexical-playground/src/plugins/AutocompletePlugin/index.tsx similarity index 99% rename from packages/lexical-playground/src/plugins/AutocompletePlugin.tsx rename to packages/lexical-playground/src/plugins/AutocompletePlugin/index.tsx index 3b830013b14..0f1338471c3 100644 --- a/packages/lexical-playground/src/plugins/AutocompletePlugin.tsx +++ b/packages/lexical-playground/src/plugins/AutocompletePlugin/index.tsx @@ -29,12 +29,12 @@ import { } from 'lexical'; import {useCallback, useEffect} from 'react'; -import {useSharedAutocompleteContext} from '../context/SharedAutocompleteContext'; +import {useSharedAutocompleteContext} from '../../context/SharedAutocompleteContext'; import { $createAutocompleteNode, AutocompleteNode, -} from '../nodes/AutocompleteNode'; -import {addSwipeRightListener} from '../utils/swipe'; +} from '../../nodes/AutocompleteNode'; +import {addSwipeRightListener} from '../../utils/swipe'; type SearchPromise = { dismiss: () => void; diff --git a/packages/lexical-playground/src/plugins/ClickableLinkPlugin.ts b/packages/lexical-playground/src/plugins/ClickableLinkPlugin/index.ts similarity index 100% rename from packages/lexical-playground/src/plugins/ClickableLinkPlugin.ts rename to packages/lexical-playground/src/plugins/ClickableLinkPlugin/index.ts diff --git a/packages/lexical-playground/src/plugins/CodeActionMenuPlugin.css b/packages/lexical-playground/src/plugins/CodeActionMenuPlugin/index.css similarity index 100% rename from packages/lexical-playground/src/plugins/CodeActionMenuPlugin.css rename to packages/lexical-playground/src/plugins/CodeActionMenuPlugin/index.css diff --git a/packages/lexical-playground/src/plugins/CodeActionMenuPlugin.tsx b/packages/lexical-playground/src/plugins/CodeActionMenuPlugin/index.tsx similarity index 99% rename from packages/lexical-playground/src/plugins/CodeActionMenuPlugin.tsx rename to packages/lexical-playground/src/plugins/CodeActionMenuPlugin/index.tsx index 2d7b87f88e5..bdf2400da16 100644 --- a/packages/lexical-playground/src/plugins/CodeActionMenuPlugin.tsx +++ b/packages/lexical-playground/src/plugins/CodeActionMenuPlugin/index.tsx @@ -6,7 +6,7 @@ * */ -import './CodeActionMenuPlugin.css'; +import './index.css'; import {$isCodeNode, CodeNode, getLanguageFriendlyName} from '@lexical/code'; import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; diff --git a/packages/lexical-playground/src/plugins/CodeHighlightPlugin.ts b/packages/lexical-playground/src/plugins/CodeHighlightPlugin/index.ts similarity index 100% rename from packages/lexical-playground/src/plugins/CodeHighlightPlugin.ts rename to packages/lexical-playground/src/plugins/CodeHighlightPlugin/index.ts diff --git a/packages/lexical-playground/src/plugins/CommentPlugin.css b/packages/lexical-playground/src/plugins/CommentPlugin/index.css similarity index 100% rename from packages/lexical-playground/src/plugins/CommentPlugin.css rename to packages/lexical-playground/src/plugins/CommentPlugin/index.css diff --git a/packages/lexical-playground/src/plugins/CommentPlugin.tsx b/packages/lexical-playground/src/plugins/CommentPlugin/index.tsx similarity index 98% rename from packages/lexical-playground/src/plugins/CommentPlugin.tsx rename to packages/lexical-playground/src/plugins/CommentPlugin/index.tsx index ea37081a968..818b7d12f0f 100644 --- a/packages/lexical-playground/src/plugins/CommentPlugin.tsx +++ b/packages/lexical-playground/src/plugins/CommentPlugin/index.tsx @@ -14,7 +14,7 @@ import type { } from 'lexical'; import type {Doc} from 'yjs'; -import './CommentPlugin.css'; +import './index.css'; import { $createMarkNode, @@ -59,12 +59,12 @@ import { createThread, Thread, useCommentStore, -} from '../commenting'; -import useModal from '../hooks/useModal'; -import CommentEditorTheme from '../themes/CommentEditorTheme'; -import Button from '../ui/Button'; -import ContentEditable from '../ui/ContentEditable.jsx'; -import Placeholder from '../ui/Placeholder.jsx'; +} from '../../commenting'; +import useModal from '../../hooks/useModal'; +import CommentEditorTheme from '../../themes/CommentEditorTheme'; +import Button from '../../ui/Button'; +import ContentEditable from '../../ui/ContentEditable.jsx'; +import Placeholder from '../../ui/Placeholder.jsx'; export const INSERT_INLINE_COMMAND: LexicalCommand = createCommand(); diff --git a/packages/lexical-playground/src/plugins/ComponentPickerPlugin.tsx b/packages/lexical-playground/src/plugins/ComponentPickerPlugin/index.tsx similarity index 98% rename from packages/lexical-playground/src/plugins/ComponentPickerPlugin.tsx rename to packages/lexical-playground/src/plugins/ComponentPickerPlugin/index.tsx index 8531da51c65..07d3628e4ac 100644 --- a/packages/lexical-playground/src/plugins/ComponentPickerPlugin.tsx +++ b/packages/lexical-playground/src/plugins/ComponentPickerPlugin/index.tsx @@ -33,17 +33,17 @@ import {useCallback, useMemo, useState} from 'react'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import useModal from '../hooks/useModal'; -import catTypingGif from '../images/cat-typing.gif'; -import {INSERT_EXCALIDRAW_COMMAND} from './ExcalidrawPlugin'; -import {INSERT_IMAGE_COMMAND} from './ImagesPlugin'; +import useModal from '../../hooks/useModal'; +import catTypingGif from '../../images/cat-typing.gif'; +import {INSERT_EXCALIDRAW_COMMAND} from '../ExcalidrawPlugin'; +import {INSERT_IMAGE_COMMAND} from '../ImagesPlugin'; import { InsertEquationDialog, InsertImageDialog, InsertPollDialog, InsertTableDialog, InsertTweetDialog, -} from './ToolbarPlugin'; +} from '../ToolbarPlugin'; class ComponentPickerOption extends TypeaheadOption { // What shows up in the editor diff --git a/packages/lexical-playground/src/plugins/EmojisPlugin.ts b/packages/lexical-playground/src/plugins/EmojisPlugin/index.ts similarity index 96% rename from packages/lexical-playground/src/plugins/EmojisPlugin.ts rename to packages/lexical-playground/src/plugins/EmojisPlugin/index.ts index d4b971beeb0..d2e661cabff 100644 --- a/packages/lexical-playground/src/plugins/EmojisPlugin.ts +++ b/packages/lexical-playground/src/plugins/EmojisPlugin/index.ts @@ -12,7 +12,7 @@ import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; import {TextNode} from 'lexical'; import {useEffect} from 'react'; -import {$createEmojiNode, EmojiNode} from '../nodes/EmojiNode'; +import {$createEmojiNode, EmojiNode} from '../../nodes/EmojiNode'; const emojis: Map = new Map([ [':)', ['emoji happysmile', '🙂']], diff --git a/packages/lexical-playground/src/plugins/EquationsPlugin.ts b/packages/lexical-playground/src/plugins/EquationsPlugin/index.ts similarity index 94% rename from packages/lexical-playground/src/plugins/EquationsPlugin.ts rename to packages/lexical-playground/src/plugins/EquationsPlugin/index.ts index 9cf61a97b6f..014804d55e4 100644 --- a/packages/lexical-playground/src/plugins/EquationsPlugin.ts +++ b/packages/lexical-playground/src/plugins/EquationsPlugin/index.ts @@ -19,7 +19,7 @@ import { } from 'lexical'; import {useEffect} from 'react'; -import {$createEquationNode, EquationNode} from '../nodes/EquationNode'; +import {$createEquationNode, EquationNode} from '../../nodes/EquationNode'; type CommandPayload = { equation: string; diff --git a/packages/lexical-playground/src/plugins/ExcalidrawPlugin.ts b/packages/lexical-playground/src/plugins/ExcalidrawPlugin/index.ts similarity index 93% rename from packages/lexical-playground/src/plugins/ExcalidrawPlugin.ts rename to packages/lexical-playground/src/plugins/ExcalidrawPlugin/index.ts index fe3b823f16e..916abb6289e 100644 --- a/packages/lexical-playground/src/plugins/ExcalidrawPlugin.ts +++ b/packages/lexical-playground/src/plugins/ExcalidrawPlugin/index.ts @@ -16,7 +16,10 @@ import { } from 'lexical'; import {useEffect} from 'react'; -import {$createExcalidrawNode, ExcalidrawNode} from '../nodes/ExcalidrawNode'; +import { + $createExcalidrawNode, + ExcalidrawNode, +} from '../../nodes/ExcalidrawNode'; export const INSERT_EXCALIDRAW_COMMAND: LexicalCommand = createCommand(); export default function ExcalidrawPlugin(): JSX.Element | null { diff --git a/packages/lexical-playground/src/plugins/HorizontalRulePlugin.ts b/packages/lexical-playground/src/plugins/HorizontalRulePlugin/index.ts similarity index 100% rename from packages/lexical-playground/src/plugins/HorizontalRulePlugin.ts rename to packages/lexical-playground/src/plugins/HorizontalRulePlugin/index.ts diff --git a/packages/lexical-playground/src/plugins/ImagesPlugin.ts b/packages/lexical-playground/src/plugins/ImagesPlugin/index.ts similarity index 99% rename from packages/lexical-playground/src/plugins/ImagesPlugin.ts rename to packages/lexical-playground/src/plugins/ImagesPlugin/index.ts index 670b530f94c..2228ddeb2b3 100644 --- a/packages/lexical-playground/src/plugins/ImagesPlugin.ts +++ b/packages/lexical-playground/src/plugins/ImagesPlugin/index.ts @@ -32,7 +32,7 @@ import { $isImageNode, ImageNode, ImagePayload, -} from '../nodes/ImageNode'; +} from '../../nodes/ImageNode'; export type InsertImagePayload = Readonly; diff --git a/packages/lexical-playground/src/plugins/KeywordsPlugin.ts b/packages/lexical-playground/src/plugins/KeywordsPlugin/index.ts similarity index 98% rename from packages/lexical-playground/src/plugins/KeywordsPlugin.ts rename to packages/lexical-playground/src/plugins/KeywordsPlugin/index.ts index d998acb587b..27f7e4414e7 100644 --- a/packages/lexical-playground/src/plugins/KeywordsPlugin.ts +++ b/packages/lexical-playground/src/plugins/KeywordsPlugin/index.ts @@ -12,7 +12,7 @@ import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; import {useLexicalTextEntity} from '@lexical/react/useLexicalTextEntity'; import {useCallback, useEffect} from 'react'; -import {$createKeywordNode, KeywordNode} from '../nodes/KeywordNode'; +import {$createKeywordNode, KeywordNode} from '../../nodes/KeywordNode'; const KEYWORDS_REGEX = /(^|$|[^A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ])(congrats|congratulations|gratuluju|gratuluji|gratulujeme|blahopřeju|blahopřeji|blahopřejeme|Til lykke|Tillykke|Glückwunsch|Gratuliere|felicitaciones|enhorabuena|paljon onnea|onnittelut|Félicitations|gratula|gratulálok|gratulálunk|congratulazioni|complimenti|おめでとう|おめでとうございます|축하해|축하해요|gratulerer|Gefeliciteerd|gratulacje|Parabéns|parabéns|felicitações|felicitări|мои поздравления|поздравляем|поздравляю|gratulujem|blahoželám|ยินดีด้วย|ขอแสดงความยินดี|tebrikler|tebrik ederim|恭喜|祝贺你|恭喜你|恭喜|恭喜|baie geluk|veels geluk|অভিনন্দন|Čestitam|Čestitke|Čestitamo|Συγχαρητήρια|Μπράβο|અભિનંદન|badhai|बधाई|अभिनंदन|Честитам|Свака част|hongera|வாழ்த்துகள்|வாழ்த்துக்கள்|అభినందనలు|അഭിനന്ദനങ്ങൾ|Chúc mừng|מזל טוב|mazel tov|mazal tov)(^|$|[^A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ])/i; diff --git a/packages/lexical-playground/src/plugins/ListMaxIndentLevelPlugin.ts b/packages/lexical-playground/src/plugins/ListMaxIndentLevelPlugin/index.ts similarity index 100% rename from packages/lexical-playground/src/plugins/ListMaxIndentLevelPlugin.ts rename to packages/lexical-playground/src/plugins/ListMaxIndentLevelPlugin/index.ts diff --git a/packages/lexical-playground/src/plugins/MarkdownShortcutPlugin.tsx b/packages/lexical-playground/src/plugins/MarkdownShortcutPlugin/index.tsx similarity index 87% rename from packages/lexical-playground/src/plugins/MarkdownShortcutPlugin.tsx rename to packages/lexical-playground/src/plugins/MarkdownShortcutPlugin/index.tsx index 7e865a71e40..a2eee255c3d 100644 --- a/packages/lexical-playground/src/plugins/MarkdownShortcutPlugin.tsx +++ b/packages/lexical-playground/src/plugins/MarkdownShortcutPlugin/index.tsx @@ -9,7 +9,7 @@ import {MarkdownShortcutPlugin} from '@lexical/react/LexicalMarkdownShortcutPlugin'; import * as React from 'react'; -import {PLAYGROUND_TRANSFORMERS} from './MarkdownTransformers'; +import {PLAYGROUND_TRANSFORMERS} from '../MarkdownTransformers'; export default function MarkdownPlugin(): JSX.Element { return ; diff --git a/packages/lexical-playground/src/plugins/MarkdownTransformers.ts b/packages/lexical-playground/src/plugins/MarkdownTransformers/index.ts similarity index 96% rename from packages/lexical-playground/src/plugins/MarkdownTransformers.ts rename to packages/lexical-playground/src/plugins/MarkdownTransformers/index.ts index 1fb95f35e2c..1a349e2f4d5 100644 --- a/packages/lexical-playground/src/plugins/MarkdownTransformers.ts +++ b/packages/lexical-playground/src/plugins/MarkdownTransformers/index.ts @@ -41,9 +41,9 @@ import { $isTextNode, } from 'lexical'; -import {$createEquationNode, $isEquationNode} from '../nodes/EquationNode'; -import {$createImageNode, $isImageNode} from '../nodes/ImageNode'; -import {$createTweetNode, $isTweetNode} from '../nodes/TweetNode'; +import {$createEquationNode, $isEquationNode} from '../../nodes/EquationNode'; +import {$createImageNode, $isImageNode} from '../../nodes/ImageNode'; +import {$createTweetNode, $isTweetNode} from '../../nodes/TweetNode'; export const HR: ElementTransformer = { export: (node: LexicalNode) => { diff --git a/packages/lexical-playground/src/plugins/MaxLengthPlugin.tsx b/packages/lexical-playground/src/plugins/MaxLengthPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/MaxLengthPlugin.tsx rename to packages/lexical-playground/src/plugins/MaxLengthPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/MentionsPlugin.tsx b/packages/lexical-playground/src/plugins/MentionsPlugin/index.tsx similarity index 99% rename from packages/lexical-playground/src/plugins/MentionsPlugin.tsx rename to packages/lexical-playground/src/plugins/MentionsPlugin/index.tsx index e61f4bd98a9..f747fb48a3e 100644 --- a/packages/lexical-playground/src/plugins/MentionsPlugin.tsx +++ b/packages/lexical-playground/src/plugins/MentionsPlugin/index.tsx @@ -18,7 +18,7 @@ import {useCallback, useEffect, useMemo, useState} from 'react'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import {$createMentionNode} from '../nodes/MentionNode'; +import {$createMentionNode} from '../../nodes/MentionNode'; const PUNCTUATION = '\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%\'"~=<>_:;'; diff --git a/packages/lexical-playground/src/plugins/PasteLogPlugin.tsx b/packages/lexical-playground/src/plugins/PasteLogPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/PasteLogPlugin.tsx rename to packages/lexical-playground/src/plugins/PasteLogPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/PollPlugin.ts b/packages/lexical-playground/src/plugins/PollPlugin/index.ts similarity index 95% rename from packages/lexical-playground/src/plugins/PollPlugin.ts rename to packages/lexical-playground/src/plugins/PollPlugin/index.ts index 27d7366869f..cbcb1357a1c 100644 --- a/packages/lexical-playground/src/plugins/PollPlugin.ts +++ b/packages/lexical-playground/src/plugins/PollPlugin/index.ts @@ -18,7 +18,7 @@ import { } from 'lexical'; import {useEffect} from 'react'; -import {$createPollNode, PollNode} from '../nodes/PollNode'; +import {$createPollNode, PollNode} from '../../nodes/PollNode'; export const INSERT_POLL_COMMAND: LexicalCommand = createCommand(); diff --git a/packages/lexical-playground/src/plugins/SpeechToTextPlugin.ts b/packages/lexical-playground/src/plugins/SpeechToTextPlugin/index.ts similarity index 98% rename from packages/lexical-playground/src/plugins/SpeechToTextPlugin.ts rename to packages/lexical-playground/src/plugins/SpeechToTextPlugin/index.ts index 951f616394a..f3398d7ce33 100644 --- a/packages/lexical-playground/src/plugins/SpeechToTextPlugin.ts +++ b/packages/lexical-playground/src/plugins/SpeechToTextPlugin/index.ts @@ -19,7 +19,7 @@ import { } from 'lexical'; import {useEffect, useRef, useState} from 'react'; -import useReport from '../hooks/useReport'; +import useReport from '../../hooks/useReport'; export const SPEECH_TO_TEXT_COMMAND: LexicalCommand = createCommand(); diff --git a/packages/lexical-playground/src/plugins/StickyPlugin.ts b/packages/lexical-playground/src/plugins/StickyPlugin/index.ts similarity index 92% rename from packages/lexical-playground/src/plugins/StickyPlugin.ts rename to packages/lexical-playground/src/plugins/StickyPlugin/index.ts index 4c065b23c26..719833f2c84 100644 --- a/packages/lexical-playground/src/plugins/StickyPlugin.ts +++ b/packages/lexical-playground/src/plugins/StickyPlugin/index.ts @@ -9,7 +9,7 @@ import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; import {useEffect} from 'react'; -import {StickyNode} from '../nodes/StickyNode'; +import {StickyNode} from '../../nodes/StickyNode'; export default function StickyPlugin(): JSX.Element | null { const [editor] = useLexicalComposerContext(); diff --git a/packages/lexical-playground/src/plugins/TabFocusPlugin.tsx b/packages/lexical-playground/src/plugins/TabFocusPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/TabFocusPlugin.tsx rename to packages/lexical-playground/src/plugins/TabFocusPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/TableActionMenuPlugin.tsx b/packages/lexical-playground/src/plugins/TableActionMenuPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/TableActionMenuPlugin.tsx rename to packages/lexical-playground/src/plugins/TableActionMenuPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/TableCellResizer.css b/packages/lexical-playground/src/plugins/TableCellResizer/index.css similarity index 100% rename from packages/lexical-playground/src/plugins/TableCellResizer.css rename to packages/lexical-playground/src/plugins/TableCellResizer/index.css diff --git a/packages/lexical-playground/src/plugins/TableCellResizer.tsx b/packages/lexical-playground/src/plugins/TableCellResizer/index.tsx similarity index 99% rename from packages/lexical-playground/src/plugins/TableCellResizer.tsx rename to packages/lexical-playground/src/plugins/TableCellResizer/index.tsx index 6b2c56500c4..bf64984832b 100644 --- a/packages/lexical-playground/src/plugins/TableCellResizer.tsx +++ b/packages/lexical-playground/src/plugins/TableCellResizer/index.tsx @@ -8,7 +8,7 @@ import type {Cell} from '@lexical/table'; import type {LexicalEditor} from 'lexical'; -import './TableCellResizer.css'; +import './index.css'; import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; import { diff --git a/packages/lexical-playground/src/ui/TableOfContentsStyle.css b/packages/lexical-playground/src/plugins/TableOfContentsPlugin/index.css similarity index 100% rename from packages/lexical-playground/src/ui/TableOfContentsStyle.css rename to packages/lexical-playground/src/plugins/TableOfContentsPlugin/index.css diff --git a/packages/lexical-playground/src/plugins/TableOfContentsPlugin.tsx b/packages/lexical-playground/src/plugins/TableOfContentsPlugin/index.tsx similarity index 99% rename from packages/lexical-playground/src/plugins/TableOfContentsPlugin.tsx rename to packages/lexical-playground/src/plugins/TableOfContentsPlugin/index.tsx index a97e488a5e3..6dad517236b 100644 --- a/packages/lexical-playground/src/plugins/TableOfContentsPlugin.tsx +++ b/packages/lexical-playground/src/plugins/TableOfContentsPlugin/index.tsx @@ -8,7 +8,7 @@ import type {HeadingTagType} from '@lexical/rich-text'; import type {NodeKey} from 'lexical'; -import '../ui/TableOfContentsStyle.css'; +import './index.css'; import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext'; import LexicalTableOfContents__EXPERIMENTAL from '@lexical/react/LexicalTableOfContents__EXPERIMENTAL'; diff --git a/packages/lexical-playground/src/plugins/TestRecorderPlugin.tsx b/packages/lexical-playground/src/plugins/TestRecorderPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/TestRecorderPlugin.tsx rename to packages/lexical-playground/src/plugins/TestRecorderPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/TextFormatFloatingToolbarPlugin.tsx b/packages/lexical-playground/src/plugins/TextFormatFloatingToolbarPlugin/index.tsx similarity index 99% rename from packages/lexical-playground/src/plugins/TextFormatFloatingToolbarPlugin.tsx rename to packages/lexical-playground/src/plugins/TextFormatFloatingToolbarPlugin/index.tsx index 59d3a4fdf9c..2af0256e0be 100644 --- a/packages/lexical-playground/src/plugins/TextFormatFloatingToolbarPlugin.tsx +++ b/packages/lexical-playground/src/plugins/TextFormatFloatingToolbarPlugin/index.tsx @@ -27,7 +27,7 @@ import {useCallback, useEffect, useRef, useState} from 'react'; import * as React from 'react'; import {createPortal} from 'react-dom'; -import {INSERT_INLINE_COMMAND} from './CommentPlugin'; +import {INSERT_INLINE_COMMAND} from '../CommentPlugin'; function setPopupPosition( editor: HTMLElement, diff --git a/packages/lexical-playground/src/plugins/ToolbarPlugin.css b/packages/lexical-playground/src/plugins/ToolbarPlugin/index.css similarity index 100% rename from packages/lexical-playground/src/plugins/ToolbarPlugin.css rename to packages/lexical-playground/src/plugins/ToolbarPlugin/index.css diff --git a/packages/lexical-playground/src/plugins/ToolbarPlugin.tsx b/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx similarity index 97% rename from packages/lexical-playground/src/plugins/ToolbarPlugin.tsx rename to packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx index fba8a7f9dbe..955ab327efe 100644 --- a/packages/lexical-playground/src/plugins/ToolbarPlugin.tsx +++ b/packages/lexical-playground/src/plugins/ToolbarPlugin/index.tsx @@ -6,7 +6,7 @@ * */ -import type {InsertImagePayload} from './ImagesPlugin'; +import type {InsertImagePayload} from '../ImagesPlugin'; import type { GridSelection, LexicalEditor, @@ -14,7 +14,7 @@ import type { RangeSelection, } from 'lexical'; -import './ToolbarPlugin.css'; +import './index.css'; import { $createCodeNode, @@ -82,25 +82,25 @@ import {ChangeEvent, useCallback, useEffect, useRef, useState} from 'react'; import {createPortal} from 'react-dom'; import {IS_APPLE} from 'shared/environment'; -import useModal from '../hooks/useModal'; -import catTypingGif from '../images/cat-typing.gif'; -import yellowFlowerImage from '../images/yellow-flower.jpg'; -import {$createStickyNode} from '../nodes/StickyNode'; -import {$isTweetNode} from '../nodes/TweetNode'; -import {$isYouTubeNode} from '../nodes/YouTubeNode'; -import Button from '../ui/Button'; -import ColorPicker from '../ui/ColorPicker'; -import DropDown, {DropDownItem} from '../ui/DropDown'; -import FileInput from '../ui/FileInput.jsx'; -import KatexEquationAlterer from '../ui/KatexEquationAlterer'; -import LinkPreview from '../ui/LinkPreview'; -import TextInput from '../ui/TextInput'; -import {INSERT_EQUATION_COMMAND} from './EquationsPlugin'; -import {INSERT_EXCALIDRAW_COMMAND} from './ExcalidrawPlugin'; -import {INSERT_IMAGE_COMMAND} from './ImagesPlugin'; -import {INSERT_POLL_COMMAND} from './PollPlugin'; -import {INSERT_TWEET_COMMAND} from './TwitterPlugin'; -import {INSERT_YOUTUBE_COMMAND} from './YouTubePlugin'; +import useModal from '../../hooks/useModal'; +import catTypingGif from '../../images/cat-typing.gif'; +import yellowFlowerImage from '../../images/yellow-flower.jpg'; +import {$createStickyNode} from '../../nodes/StickyNode'; +import {$isTweetNode} from '../../nodes/TweetNode'; +import {$isYouTubeNode} from '../../nodes/YouTubeNode'; +import Button from '../../ui/Button'; +import ColorPicker from '../../ui/ColorPicker'; +import DropDown, {DropDownItem} from '../../ui/DropDown'; +import FileInput from '../../ui/FileInput.jsx'; +import KatexEquationAlterer from '../../ui/KatexEquationAlterer'; +import LinkPreview from '../../ui/LinkPreview'; +import TextInput from '../../ui/TextInput'; +import {INSERT_EQUATION_COMMAND} from '../EquationsPlugin'; +import {INSERT_EXCALIDRAW_COMMAND} from '../ExcalidrawPlugin'; +import {INSERT_IMAGE_COMMAND} from '../ImagesPlugin'; +import {INSERT_POLL_COMMAND} from '../PollPlugin'; +import {INSERT_TWEET_COMMAND} from '../TwitterPlugin'; +import {INSERT_YOUTUBE_COMMAND} from '../YouTubePlugin'; const blockTypeToBlockName = { bullet: 'Bulleted List', diff --git a/packages/lexical-playground/src/plugins/TreeViewPlugin.tsx b/packages/lexical-playground/src/plugins/TreeViewPlugin/index.tsx similarity index 100% rename from packages/lexical-playground/src/plugins/TreeViewPlugin.tsx rename to packages/lexical-playground/src/plugins/TreeViewPlugin/index.tsx diff --git a/packages/lexical-playground/src/plugins/TwitterPlugin.ts b/packages/lexical-playground/src/plugins/TwitterPlugin/index.ts similarity index 94% rename from packages/lexical-playground/src/plugins/TwitterPlugin.ts rename to packages/lexical-playground/src/plugins/TwitterPlugin/index.ts index 831cb0bea7d..ef18e4199d9 100644 --- a/packages/lexical-playground/src/plugins/TwitterPlugin.ts +++ b/packages/lexical-playground/src/plugins/TwitterPlugin/index.ts @@ -11,7 +11,7 @@ import {$insertBlockNode} from '@lexical/utils'; import {COMMAND_PRIORITY_EDITOR, createCommand, LexicalCommand} from 'lexical'; import {useEffect} from 'react'; -import {$createTweetNode, TweetNode} from '../nodes/TweetNode'; +import {$createTweetNode, TweetNode} from '../../nodes/TweetNode'; export const INSERT_TWEET_COMMAND: LexicalCommand = createCommand(); diff --git a/packages/lexical-playground/src/plugins/TypingPerfPlugin.ts b/packages/lexical-playground/src/plugins/TypingPerfPlugin/index.ts similarity index 98% rename from packages/lexical-playground/src/plugins/TypingPerfPlugin.ts rename to packages/lexical-playground/src/plugins/TypingPerfPlugin/index.ts index 037b9509136..738de5c93d4 100644 --- a/packages/lexical-playground/src/plugins/TypingPerfPlugin.ts +++ b/packages/lexical-playground/src/plugins/TypingPerfPlugin/index.ts @@ -8,7 +8,7 @@ import {useEffect} from 'react'; -import useReport from '../hooks/useReport'; +import useReport from '../../hooks/useReport'; const validInputTypes = new Set([ 'insertText', diff --git a/packages/lexical-playground/src/plugins/YouTubePlugin.ts b/packages/lexical-playground/src/plugins/YouTubePlugin/index.ts similarity index 93% rename from packages/lexical-playground/src/plugins/YouTubePlugin.ts rename to packages/lexical-playground/src/plugins/YouTubePlugin/index.ts index f70dc8f894e..c5f2d649867 100644 --- a/packages/lexical-playground/src/plugins/YouTubePlugin.ts +++ b/packages/lexical-playground/src/plugins/YouTubePlugin/index.ts @@ -11,7 +11,7 @@ import {$insertBlockNode} from '@lexical/utils'; import {COMMAND_PRIORITY_EDITOR, createCommand, LexicalCommand} from 'lexical'; import {useEffect} from 'react'; -import {$createYouTubeNode, YouTubeNode} from '../nodes/YouTubeNode'; +import {$createYouTubeNode, YouTubeNode} from '../../nodes/YouTubeNode'; export const INSERT_YOUTUBE_COMMAND: LexicalCommand = createCommand();