Skip to content

Commit

Permalink
Merge branch 'main' into fix_delete_table_row
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvinayvk authored Dec 8, 2024
2 parents b7a1e76 + 7776cea commit 24e3614
Show file tree
Hide file tree
Showing 254 changed files with 23,041 additions and 9,011 deletions.
4 changes: 3 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ untyped-type-import=error
[options]
server.max_workers=4
exact_by_default=true
component_syntax=true

;; [generated-start update-flowconfig]
module.name_mapper='^lexical$' -> '<PROJECT_ROOT>/packages/lexical/flow/Lexical.js.flow'
Expand Down Expand Up @@ -68,6 +69,7 @@ module.name_mapper='^@lexical/react/LexicalNodeMenuPlugin$' -> '<PROJECT_ROOT>/p
module.name_mapper='^@lexical/react/LexicalOnChangePlugin$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalOnChangePlugin.js.flow'
module.name_mapper='^@lexical/react/LexicalPlainTextPlugin$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalPlainTextPlugin.js.flow'
module.name_mapper='^@lexical/react/LexicalRichTextPlugin$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalRichTextPlugin.js.flow'
module.name_mapper='^@lexical/react/LexicalSelectionAlwaysOnDisplay$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalSelectionAlwaysOnDisplay.js.flow'
module.name_mapper='^@lexical/react/LexicalTabIndentationPlugin$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalTabIndentationPlugin.js.flow'
module.name_mapper='^@lexical/react/LexicalTableOfContents$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalTableOfContents.js.flow'
module.name_mapper='^@lexical/react/LexicalTableOfContentsPlugin$' -> '<PROJECT_ROOT>/packages/lexical-react/flow/LexicalTableOfContentsPlugin.js.flow'
Expand Down Expand Up @@ -105,4 +107,4 @@ nonstrict-import
unclear-type

[version]
^0.226.0
^0.250.0
33 changes: 17 additions & 16 deletions .github/workflows/call-e2e-all-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,23 @@ jobs:
editor-mode: ${{ matrix.editor-mode }}
events-mode: ${{ matrix.events-mode }}

react-beta:
strategy:
matrix:
# Currently using a single combination for every-patch e2e tests of
# react beta to reduce cost impact
editor-mode: ['rich-text']
prod: [false]
uses: ./.github/workflows/call-e2e-test.yml
with:
os: 'ubuntu-latest'
browser: 'chromium'
node-version: 18.18.0
events-mode: 'modern-events'
editor-mode: ${{ matrix.editor-mode }}
prod: ${{ matrix.prod }}
override-react-version: beta
# This has been stalling in GitHub CI for unknown reasons, disable for now
# react-beta:
# strategy:
# matrix:
# # Currently using a single combination for every-patch e2e tests of
# # react beta to reduce cost impact
# editor-mode: ['rich-text']
# prod: [false]
# uses: ./.github/workflows/call-e2e-test.yml
# with:
# os: 'ubuntu-latest'
# browser: 'chromium'
# node-version: 18.18.0
# events-mode: 'modern-events'
# editor-mode: ${{ matrix.editor-mode }}
# prod: ${{ matrix.prod }}
# override-react-version: beta

flaky:
strategy:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/close-stale-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Close stale PR
on:
pull_request:
types: labeled
jobs:
close-pr:
if: github.event.label.name == 'stale-pr'
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- run: gh pr close "$NUMBER" --comment "$COMMENT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.number }}
COMMENT: >
Closing this PR due to staleness! If there are new updates, please reopen the PR.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ npm
.env.production.local
.ts-temp
.docusaurus
.playwright-clipboard.lock
e2e-screenshots
test-results
playwright-report
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ packages/playwright-core
packages/**/vite.config.js
packages/**/vite.prod.config.js
packages/lexical-website/docs/api
packages/lexical-website/fb/*.json
**/*.md
**/*.js.flow
**/node_modules
Expand Down
192 changes: 192 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,195 @@
## v0.21.0 (2024-12-01)

- Fix selected table colors (#6892) Gerard Rovira
- v0.20.2 (#6891) Sherry
- v0.20.2 Lexical GitHub Actions Bot

## v0.20.2 (2024-11-30)

- lexicallexical-playground Bug Fix Allow setEditorState to work correctly inside of an update (#6876) Bob Ippolito
- lexical-playground Fix CSS property (#6886) Ivaylo Pavlov
- v0.20.1 (#6887) Sherry
- lexical-table Bug Fix Fix scrollable table exportDOM (#6884) Bob Ippolito
- lexical-table Bug Fix Fix table tab navigation (#6880) Bob Ippolito
- lexical-playground Feature Highlight special strings with format (#6860) C.
- lexical-playground Fix Hidden comment button on narrow screens or vertical monitors (#6871) Oluwasanya Olaoluwa
- lexical-table Bug Fix Fix left arrow key handling for table selection (#6875) Bob Ippolito
- positionNodeOnRange fixes (#6873) Gerard Rovira
- Add SelectionAlwaysOnDisplay plugin (#6872) Gerard Rovira
- Allow passing params to run-all (#6874) Gerard Rovira
- lexical-playground Bug Fix Preserve the selection using the link editor from a table (#6865) Bob Ippolito
- lexical-playground Bug Fix autocomplete format before and after insertion (#6845) Bedru Umer
- lexical-utils Bug Fix Add feature detection to calculateZoomLevel (#6864) Bob Ippolito
- Add Documentation for RootNodes semantic and use case (#6869) C.
- lexical-selection Bug Fix Wrong selection type in setBlocksType (#6867) Simon
- lexical-table Bug Fix get table-cell background selection color from a class (#6658) Hamza
- lexical-table Bug Fix Resolve table selection issue when the mouse crosses over a portal (#6834) Bob Ippolito
- Lexical Chore Update default skipInitialization to false for registerMutationListener (#6857) Fadekemi Adebayo
- tests npm upgrade cross-spawn (#6856) Sherry
- Feature Deprecate nodesOfType function (#6855) Sachin Mahato
- Lexical Bug Fix backspace bug when deleting nodes with canInsertTextAfter set to false (#6268) Dani Lauzurica
- lexical-link Test Appending inline element nodes to ListNode (#6826) Fadekemi Adebayo
- Chore npm upgrade cross-spawn (#6848) Sherry
- Table Action Menu - fix UI issue with Merge Cells item (#6830) Syed Umar Anis
- lexical-utils Bug Fix Add missing Flow type declarations (#6841) Hadi Hamid
- lexical-react Fix(lexical-react) ContentEditable props type rename (#6837) (Ivan)
- lexical-link Test Removing link from node(children) (#6817) Oluwasanya Olaoluwa
- lexical-table Bug Fix Fix down arrow key handling in TableObserver (#6839) Bob Ippolito
- Prevent initial value fn to be called on rerender (#6835) Maksim Horbachevsky
- Link flow types (#6833) Gerard Rovira
- lexical-examples Chore Add DOMExportOutputMap type to the exportMap (#6827) Ajaezo Kingsley
- lexicallexical-table Feature Scrollable tables with experimental getDOMSlot API (#6759) Bob Ippolito
- lexical-rich-textlexical-plain-text workaround for Korean IME issue on iOS (#6819) wnhlee
- Fix Aria attributes for ContentEditable are ignored (#6814) Oluwasanya Olaoluwa
- Mention nodes shouldnt be spellcheckd ) (#6788) Sevki
- lexical-list Bug Fix Handle appending inline element nodes in ListNode.append (#6791) Aman Harwara
- lexical-mark Bug Fix Stop MarkNode ids array deep copy in clone (#6810) Ebad
- v0.20.0 (#6809) Bob Ippolito
- v0.20.0 Lexical GitHub Actions Bot

## v0.20.1 (2024-11-29)

- lexical-table Bug Fix Fix table tab navigation (#6880) Bob Ippolito
- lexical-playground Feature Highlight special strings with format (#6860) C.
- lexical-playground Fix Hidden comment button on narrow screens or vertical monitors (#6871) Oluwasanya Olaoluwa
- lexical-table Bug Fix Fix left arrow key handling for table selection (#6875) Bob Ippolito
- positionNodeOnRange fixes (#6873) Gerard Rovira
- Add SelectionAlwaysOnDisplay plugin (#6872) Gerard Rovira
- Allow passing params to run-all (#6874) Gerard Rovira
- lexical-playground Bug Fix Preserve the selection using the link editor from a table (#6865) Bob Ippolito
- lexical-playground Bug Fix autocomplete format before and after insertion (#6845) Bedru Umer
- lexical-utils Bug Fix Add feature detection to calculateZoomLevel (#6864) Bob Ippolito
- Add Documentation for RootNodes semantic and use case (#6869) C.
- lexical-selection Bug Fix Wrong selection type in setBlocksType (#6867) Simon
- lexical-table Bug Fix get table-cell background selection color from a class (#6658) Hamza
- lexical-table Bug Fix Resolve table selection issue when the mouse crosses over a portal (#6834) Bob Ippolito
- Lexical Chore Update default skipInitialization to false for registerMutationListener (#6857) Fadekemi Adebayo
- tests npm upgrade cross-spawn (#6856) Sherry
- Feature Deprecate nodesOfType function (#6855) Sachin Mahato
- Lexical Bug Fix backspace bug when deleting nodes with canInsertTextAfter set to false (#6268) Dani Lauzurica
- lexical-link Test Appending inline element nodes to ListNode (#6826) Fadekemi Adebayo
- Chore npm upgrade cross-spawn (#6848) Sherry
- Table Action Menu - fix UI issue with Merge Cells item (#6830) Syed Umar Anis
- lexical-utils Bug Fix Add missing Flow type declarations (#6841) Hadi Hamid
- lexical-react Fix(lexical-react) ContentEditable props type rename (#6837) (Ivan)
- lexical-link Test Removing link from node(children) (#6817) Oluwasanya Olaoluwa
- lexical-table Bug Fix Fix down arrow key handling in TableObserver (#6839) Bob Ippolito
- Prevent initial value fn to be called on rerender (#6835) Maksim Horbachevsky
- Link flow types (#6833) Gerard Rovira
- lexical-examples Chore Add DOMExportOutputMap type to the exportMap (#6827) Ajaezo Kingsley
- lexicallexical-table Feature Scrollable tables with experimental getDOMSlot API (#6759) Bob Ippolito
- lexical-rich-textlexical-plain-text workaround for Korean IME issue on iOS (#6819) wnhlee
- Fix Aria attributes for ContentEditable are ignored (#6814) Oluwasanya Olaoluwa
- Mention nodes shouldnt be spellcheckd ) (#6788) Sevki
- lexical-list Bug Fix Handle appending inline element nodes in ListNode.append (#6791) Aman Harwara
- lexical-mark Bug Fix Stop MarkNode ids array deep copy in clone (#6810) Ebad
- v0.20.0 (#6809) Bob Ippolito
- v0.20.0 Lexical GitHub Actions Bot

## v0.20.0 (2024-11-07)

- Add optional selection argument to getHtmlContent flow type (#6803) Rajiv Anisetti
- Fix importDOM for Layout plugin (#6799) Ivaylo Pavlov
- lexical-playground Feature Add more keyboard shortcuts (#6754) Bedru Umer
- lexical-website Documentation Update Add Documentation for html Property in Lexical Editor Configuration (#6770) Ajaezo Kingsley
- lexical-yjs Bug Fix clean up dangling text after undo in collaboration (#6670) Michael Shafer
- Lexical-website BugFix Change button text colour to improve visibility (#6796) Fadekemi Adebayo
- lexical-markdown Feature add ability to control finding the end of a node matched by TextMatchTransformer (#6681) Alessio Gravili
- lexical-react Bug Fix LexicalTypeaheadMenuPlugin SSR error ReferenceError document is not defined (#6794) Bedru Umer
- lexical-website Chore upgrade to Docusaurus v3.6 - Docusaurus Faster (#6761) Sbastien Lorber
- Bug Fix ContextMenu Paste option not preserving style (#6780) C.
- lexical-playground Fix the placement of the fontSize button in the ToolbarPlugin and hide the vertical scroll (Bug Fix) (#6786) Oluwasanya Olaoluwa
- #6768 fix to avoid infinite markdown shortcut matchers run (#6778) Maksim Horbachevsky
- lexical Feature Add onUpdate function during update with onUpdate (correct baselline) (#6773) Michael Landis
- v0.19.0 (#6774) Sherry
- v0.19.0 Lexical GitHub Actions Bot

## v0.19.0 (2024-10-28)

- lexical Add missing commands to Lexical.js.flow (#6769) Sherry
- lexical-react Feature add attributes in LinkPlugin (#6760) Taro Shono
- lexical-react replace abstract component (#6752) Sherry
- Trust HTML for rich text clipboard (#6755) Gerard Rovira
- lexical-playground Bug Fix Disable editing of Excalidraw Component in Read-Only Mode (#6704) Neysan Foo
- lexical-playground Bug Fix Disable table hover actions in read-only mode (#6706) Neysan Foo
- lexical-table lexical-selection Try to fix calling split on undefined (#6746) Ivaylo Pavlov
- Add ariaErrorMessage and ariaInvalid to Flow type (#6751) EJ Hammond
- lexical-react Feature Add aria-errormessage and aria-invalid support to LexicalContentEditable (#6745) EJ Hammond
- lexical-table Return inserted node from insertTableRowEXPERIMENTAL and insertTableColumnEXPERIMENTAL (#6741) Aman Harwara
- Bug Fix Shiftdown selects an extra subsequent element for Table selection (#6679) Katsia
- lexical-playground Bug Fix Disable equation editing in read-only mode (#6707) Neysan Foo
- lexical-markdown Feature add ability to hook into the import process for multiline element transformers (#6682) Alessio Gravili
- lexical-playground Bug Fix Disable image and inline focusing, adding caption and editing in read-only mode (#6705) Neysan Foo
- lexical-code Bug Fix Add global type declarations for Prism (#6736) Bob Ippolito
- Chore Disable react-beta test job for now (#6738) Bob Ippolito
- lexical-playground Table Hover Actions Layout Fixes (#6725) Ivaylo Pavlov
- lexical Bug Fix lines were being deleted with deleteLine (#6719) Taro Shono
- lexical-table Bug Fix colWidths not imported from DOM for TableNode (#6731) cwstra
- Chore add workflow to auto close stale pr based on label (#6732) Sherry
- lexical-playground Bug Fix match toolbar font size input with the rest of toolbar items in Read-Only mode (#6698) Bedru Umer
- lexical-playground Remove unused command (#6726) Ivaylo Pavlov
- fix preserve custom fields in Lexical-Yjs sync (#6724) Vadim Nicolaev
- lexicallexical-listlexical-rich-text Fix Preserve indentation when serializing to and from HTML (#6693) Germn Jabloski
- lexicallexical-list Bug Fix Retain indentation when list format is removed and reapplied (#6684) Sebastian Arrazola
- lexical Bug Fix Insertion into inline ElementNode should not crash (#6703) Bob Ippolito
- lexical-playground Bug Fix Track Resizing Actions for Excalidraw in History Stack (#6696) Neysan Foo
- lexical-playground Bug Fix toolbar font size input keyboard accessibility (#6695) Riley Pearce
- lexical-playground 3 Bug Fixes, 1 UX Improvement All Regarding Excalidraw Node (#6666) Neysan Foo
- lexical Bug Fix TextNode in token mode should not be split by removeText (#6690) Bob Ippolito
- lexical-yjs Bug Fix Add missing setLocalStateField method to ProviderAwareness type (#6683) Vadim Nicolaev
- lexical Bug Fix Fix Table formatting when no TextNodes present (#6675) Katsia
- lexical-tablelexical-playground Bug Fix Make style buttons in toolbar respect table selection (#6678) Katsia
- Support backward selection in rows deletion (#6680) Maksim Horbachevsky
- v0.18.0 (#6676) Sherry
- v0.18.0 Lexical GitHub Actions Bot

## v0.18.0 (2024-09-26)

- lexical-markdown set shouldMergeAdjacentLines default to be false (#6660) Sherry
- lexical-link Bug Fix Removing a link from descendants (#6656) Sergey Gorbachev
- lexical-playground Bug Fix Correct ExcalidrawNode DOM handling for proper resizing (#6657) neysanfoo
- lexical-markdown Refactor allows omitting certain properties from TextMatchTransformers, adds jsdocs (#6651) Alessio Gravili
- lexical-table Bug Fix Fix crash in deleteCellHandler (#6650) Bob Ippolito
- lexical-playground Bug Fix empty code block not focused (#6649) Sherry
- lexical-markdown shouldMergeAdjacentLines as an option (#6642) Sherry
- lexical-code Bug Fix Annotate lexicalcode as having side-effects for Prism (#6652) Bob Ippolito
- lexical-reactlexical-playground Bug Fix Workaround for yjs disconnect race in React StrictMode (#6644) Bob Ippolito
- Allow exporting a document fragment from the exportDOM function (#6641) Tom Kubt
- Grammar Issue - Repeated Word (#6643) Adam Pugh
- lexical-tablelexical-playground Feature Add column widths to TableNode (#6625) Patrick Moody
- lexical-playgroundExcalidrawNode Bug Fix Preserve Excalidraw image dimensions after resizing (#6634) neysanfoo
- lexical-table Bug Table formatting and styling not persisting for empty cells (#6626) Katsia
- lexical-markdown Fix normalize markdown in convertFromMarkdownString to comply with CommonMark spec (2nd try) (#6629) Germn Jabloski
- lexical-playground Bug Fix Fix table rowcolumn index when resizing merged cells (#6630) Patrick Moody
- Revert lexical-markdown Fix normalize markdown in convertFromMarkdownString to comply with CommonMark spec (#6608) (#6627) Sherry
- lexical-react Refactor Ensure disconnect is called after connection is established in useYjsCollaboration (#6619) smworld01
- CI tag flaky test (#6620) Sherry
- address micromatch vulnerability (#6616) Sherry
- Bug Fix Fix issue where selecting a cell then dragging outside of table would not select entire table (#6579) Mo
- lexical-markdown Breaking Change rename multilineElement to multiline-element (#6617) Sherry
- lexical Chore Add more helpful invariants to applyNodeReplacement (#6567) Bob Ippolito
- lexical-markdown Fix normalize markdown in convertFromMarkdownString to comply with CommonMark spec (#6608) Germn Jabloski
- Expose getStyleObjectFromCss in lexicalselection (#6612) Melissa Freiser
- lexical-markdown update markdown flow api (#6615) Sherry
- lexical-playground Fix Poll Option not clickable at some place after checked state (#6609) Vinay Kushwaha
- Multiple update tags (#6507) Gerard Rovira
- lexical-codebreaking change Bug Fix explicitly import instead of window. to support code nodes in nodejs (#6562) Nadine Nguyen
- lexical-tablelexical-playground Bug Fix Fix merged cell related edge cases (#6607) Bob Ippolito
- Fix issue where cmdctrl left arrow after a tab character would cause exception (#6588) Mo
- Address svelte vulnerability (#6603) Sherry
- lexical-markdownbreaking change Feature multiline markdown transformers mdx support (#6530) Alessio Gravili
- lexical-table Fix Table Cut Event Handling (#6596) Ivaylo Pavlov
- lexicallexical-overflow Refactor simplified removeText and insertText rewrite (part 1) (#6456) Germn Jabloski
- Fix test results CI path on Windows (#6585) Mo
- lexical-listlexical-react Refactor Create registerList Function Separate from React Shared Utils (#6560) River
- lexical-react Fix incorrect addition of empty cells on table paste (#6578) Shubhanker Srivastava
- lexical-table feat Add row striping (#6547) Ivaylo Pavlov
- Feature Check undeclared dependencies in build (#6574) Bob Ippolito
- lexical-react menu positioning Unrevert PR6510 but with gating (#6566) Sherry
- lexical-table Bug Fix Add lexicalclipboard as a direct dependency of lexicaltable (#6571) Bob Ippolito
- v0.17.1 (#6559) Ivaylo Pavlov
- v0.17.1 Lexical GitHub Actions Bot

## v0.17.1 (2024-08-26)

- lexical-playground Bug Fix fix comment timestamps (#6555) Ira Hopkinson
Expand Down
6 changes: 3 additions & 3 deletions examples/react-plain-text/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@lexical/react-plain-text-example",
"private": true,
"version": "0.17.1",
"version": "0.21.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"@lexical/react": "0.17.1",
"lexical": "0.17.1",
"@lexical/react": "0.21.0",
"lexical": "0.21.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
8 changes: 4 additions & 4 deletions examples/react-rich-collab/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lexical/react-rich-collab-example",
"private": true,
"version": "0.17.1",
"version": "0.21.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -12,9 +12,9 @@
"server:webrtc": "cross-env HOST=localhost PORT=1235 npx y-webrtc"
},
"dependencies": {
"@lexical/react": "0.17.1",
"@lexical/yjs": "0.17.1",
"lexical": "0.17.1",
"@lexical/react": "0.21.0",
"@lexical/yjs": "0.21.0",
"lexical": "0.21.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"y-webrtc": "^10.3.0",
Expand Down
Loading

0 comments on commit 24e3614

Please sign in to comment.