Skip to content

Commit

Permalink
chore(deps): Bump lexical from 0.12.4 to 0.12.5 (#16356)
Browse files Browse the repository at this point in the history
* chore(deps): Bump lexical from 0.12.4 to 0.12.5

Bumps [lexical](https://github.com/facebook/lexical/tree/HEAD/packages/lexical) from 0.12.4 to 0.12.5.
- [Release notes](https://github.com/facebook/lexical/releases)
- [Changelog](https://github.com/facebook/lexical/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/lexical/commits/v0.12.5/packages/lexical)

---
updated-dependencies:
- dependency-name: lexical
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* group lexical updates

* fix types

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Belin <me@thomasbelin.fr>
  • Loading branch information
dependabot[bot] and atomrc committed Dec 19, 2023
1 parent 07763e3 commit 9b83035
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ updates:
eslint:
patterns:
- '*eslint*'
lexial:
patterns:
- '*lexical*'
datadog:
patterns:
- '*@datadog*'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"jszip": "3.10.1",
"keyboardjs": "2.7.0",
"knockout": "3.5.1",
"lexical": "0.12.4",
"lexical": "0.12.5",
"libsodium-wrappers": "0.7.13",
"linkify-it": "4.0.1",
"long": "5.2.3",
Expand Down
6 changes: 2 additions & 4 deletions src/script/components/RichTextEditor/nodes/Mention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@ import {
$setSelection,
CLICK_COMMAND,
COMMAND_PRIORITY_LOW,
GridSelection,
KEY_ARROW_LEFT_COMMAND,
KEY_ARROW_RIGHT_COMMAND,
KEY_BACKSPACE_COMMAND,
KEY_DELETE_COMMAND,
BLUR_COMMAND,
NodeKey,
NodeSelection,
RangeSelection,
$isRangeSelection,
$createRangeSelection,
BaseSelection,
} from 'lexical';

import {KEY} from 'Util/KeyboardUtil';
Expand All @@ -62,7 +60,7 @@ export const Mention = (props: MentionComponentProps) => {
const {mention, className = '', classNameFocused = '', nodeKey} = props;
const [editor] = useLexicalComposerContext();
const [isSelected, setSelected, clearSelection] = useLexicalNodeSelection(nodeKey);
const [selection, setSelection] = useState<RangeSelection | NodeSelection | GridSelection | null>(null);
const [selection, setSelection] = useState<BaseSelection | null>(null);
const isFocused = $isNodeSelection(selection) && isSelected;
const ref = useRef<HTMLSpanElement>(null);

Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13389,10 +13389,10 @@ __metadata:
languageName: node
linkType: hard

"lexical@npm:0.12.4":
version: 0.12.4
resolution: "lexical@npm:0.12.4"
checksum: c2af8fa2a6bf55dde453240b583b433abd5b6dac860598d33be54fc191005ff5ee8ba8af03d21717cc08c6c87f8a3e45a0bd969f436c765aded57eb9387c8972
"lexical@npm:0.12.5":
version: 0.12.5
resolution: "lexical@npm:0.12.5"
checksum: 7fb2ada2529f65bc401988c87bd893cb8e8ba7494af8dcf499b8a594af9db438ffba51255ba39e626bf988fe6f34138cc2daff4a0397c667cc5d9b44716f4d1c
languageName: node
linkType: hard

Expand Down Expand Up @@ -19585,7 +19585,7 @@ __metadata:
knockout: 3.5.1
less: 4.2.0
less-loader: ^11.1.3
lexical: 0.12.4
lexical: 0.12.5
libsodium-wrappers: 0.7.13
linkify-it: 4.0.1
lint-staged: 15.2.0
Expand Down

0 comments on commit 9b83035

Please sign in to comment.