chore: upgrade lexical

This commit is contained in:
Aman Harwara
2023-05-24 21:43:17 +05:30
parent 502289aa50
commit 22cedc1321
38 changed files with 166 additions and 166 deletions

View File

@@ -196,7 +196,7 @@ async function createWindowServices(window: Electron.BrowserWindow, appState: Ap
const searchManager = initializeSearchManager(window.webContents)
initializeZoomManager(window, appState.store)
const updateManager = setupUpdates(window, appState)
// const updateManager = setupUpdates(window, appState)
const trayManager = createTrayManager(window, appState.store)
const spellcheckerManager = createSpellcheckerManager(appState.store, window.webContents, appLocale)
const mediaManager = new MediaManager()
@@ -216,7 +216,7 @@ async function createWindowServices(window: Electron.BrowserWindow, appState: Ap
const fileBackupsManager = new FilesBackupManager(appState, window.webContents)
return {
updateManager,
// updateManager,
trayManager,
spellcheckerManager,
menuManager,

View File

@@ -28,7 +28,7 @@
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@babel/preset-env": "*",
"@babel/preset-typescript": "^7.21.5",
"@lexical/react": "0.10.0",
"@lexical/react": "0.11.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@simplewebauthn/browser": "^7.1.0",
"@standardnotes/authenticator": "^2.4.0",
@@ -75,7 +75,7 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"lexical": "0.10.0",
"lexical": "0.11.0",
"lint-staged": ">=13",
"mini-css-extract-plugin": "^2.7.2",
"minimatch": "^5.1.1",
@@ -108,7 +108,7 @@
},
"dependencies": {
"@ariakit/react": "^0.2.1",
"@lexical/headless": "0.10.0",
"@lexical/headless": "0.11.0",
"@radix-ui/react-slot": "^1.0.1"
}
}

View File

@@ -1,8 +1,8 @@
import { LexicalIconName } from '@/Components/Icon/LexicalIcons'
import { TypeaheadOption } from '@lexical/react/LexicalTypeaheadMenuPlugin'
import { MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin'
import { IconType } from '@standardnotes/snjs'
export class BlockPickerOption extends TypeaheadOption {
export class BlockPickerOption extends MenuOption {
title: string
iconName: IconType | LexicalIconName
keywords: Array<string>

View File

@@ -1,7 +1,7 @@
import { TypeaheadOption } from '@lexical/react/LexicalTypeaheadMenuPlugin'
import { MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin'
import { LinkableItem } from '@/Utils/Items/Search/LinkableItem'
export class ItemOption extends TypeaheadOption {
export class ItemOption extends MenuOption {
constructor(
public item: LinkableItem | undefined,
public label: string,