Skip to content

Commit

Permalink
feat: upgrade to lexical 0.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed May 6, 2024
1 parent 7dd5254 commit 24c2c31
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 188 deletions.
36 changes: 18 additions & 18 deletions packages/svelte-lexical/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,24 @@
"svelte"
],
"dependencies": {
"@lexical/clipboard": "0.14.2",
"@lexical/code": "0.14.2",
"@lexical/file": "0.14.2",
"@lexical/hashtag": "0.14.2",
"@lexical/history": "0.14.2",
"@lexical/html": "0.14.2",
"@lexical/link": "0.14.2",
"@lexical/list": "0.14.2",
"@lexical/mark": "0.14.2",
"@lexical/overflow": "0.14.2",
"@lexical/plain-text": "0.14.2",
"@lexical/rich-text": "0.14.2",
"@lexical/selection": "0.14.2",
"@lexical/table": "0.14.2",
"@lexical/utils": "0.14.2",
"@lexical/yjs": "0.14.2",
"@lexical/markdown": "0.14.2",
"lexical": "0.14.2",
"@lexical/clipboard": "0.14.3",
"@lexical/code": "0.14.3",
"@lexical/file": "0.14.3",
"@lexical/hashtag": "0.14.3",
"@lexical/history": "0.14.3",
"@lexical/html": "0.14.3",
"@lexical/link": "0.14.3",
"@lexical/list": "0.14.3",
"@lexical/mark": "0.14.3",
"@lexical/overflow": "0.14.3",
"@lexical/plain-text": "0.14.3",
"@lexical/rich-text": "0.14.3",
"@lexical/selection": "0.14.3",
"@lexical/table": "0.14.3",
"@lexical/utils": "0.14.3",
"@lexical/yjs": "0.14.3",
"@lexical/markdown": "0.14.3",
"lexical": "0.14.3",
"lodash-es": "^4.17.21",
"prettier": "^3.2.5",
"y-websocket": "1.5.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/svelte-lexical/src/lib/environment/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ export const IS_CHROME: boolean =
CAN_USE_DOM && /^(?=.*Chrome).*/i.test(navigator.userAgent);
// export const canUseTextInputEvent: boolean = CAN_USE_DOM && 'TextEvent' in window && !documentMode;

export const IS_ANDROID_CHROME: boolean =
CAN_USE_DOM && IS_ANDROID && IS_CHROME;

export const IS_APPLE_WEBKIT =
CAN_USE_DOM && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !IS_CHROME;
Loading

0 comments on commit 24c2c31

Please sign in to comment.