* Fixed getStyleObjectFromRawCSS function to work for unformatted css strings
* Testing that handles unformatted css text
* Testing that $getStyleObjectFromRawCss handles unformatted css
* Added TableOfContents
* Renamed TableOfContetnsPlugin file name and added flow file
* Added TableOfContentsPlugin to config files and added styling
* Fixed types
* Added TableOfContentsList as a seperate module
* Fixed type of tag from string to HeadingTagType
* Table of contents updates as user scrolls
* Wrapped plugin in a feature
* Deleted package-lock.json
* Fixed conditioanl rendering syntax
* Removed extra parameter
* package-lock
* fix imports
* Update packages/lexical-playground/src/plugins/TableOfContentsPlugin.tsx
Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>
* Added sticky styling and handled text overflow
* Table of contents updates automtaically on scroll without observing all heading nodes
* Update table correctly when headings are not visible but exist either up or down
* Fix failing E2E
* Changed isTableOfContentes to showTableOfContents in settings
* Added useEffect to fix memory leak
* Hoisted functions that don't use props
* Renamed isTableOfContets to showTableOfContents
* Changing selectedHeading by observing page top
* resolved lint error
* Refactored scroll up logic
* Added comments
* Added better css
* Changed place of toc div to fix failing test
* Fixed adjacent headings scrolling
* Fixed adjacent headings bug
* Renamed helper methods
* Fixed test
* Added dependency array to useEffect
* Added TableOfContents to dependency array
* Updated dependeny array in useEffect
Co-authored-by: Karam Qaoud <kqaoud@fb.com>
Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>
* Remove .d.ts and fix type errors
* Fix failing test
* Upgrade roll up to remove maxlisteners warning
* Refactor type generation and make build script run in sequence to avoid OOM errors in GitHub actions
* Small change
* Fix playground TS errors
* Run migration scripts
* Fix more difficult types
* Remove shared modules
* debug failing build
* Fix small bugs
* Remove unnecessary types for getLatest and getWritable
* Fix failing unit test
* Fix small type error in playground due to empty editor config