Skip to content

Commit 11b210d

Browse files
chore(deps): update dependencies (non-major) (#1212)
1 parent 1c65380 commit 11b210d

File tree

19 files changed

+1343
-1415
lines changed

19 files changed

+1343
-1415
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "rino",
33
"version": "0.0.0",
44
"private": true,
5-
"packageManager": "pnpm@8.2.0",
5+
"packageManager": "pnpm@8.3.1",
66
"scripts": {
77
"dev": "rino-cli dev",
88
"build": "rino-cli build",
@@ -17,14 +17,14 @@
1717
"typecheck": "tsc -b tsconfig.json"
1818
},
1919
"devDependencies": {
20-
"@changesets/cli": "^2.26.0",
20+
"@changesets/cli": "^2.26.1",
2121
"@ocavue/eslint-config-react": "^0.4.9",
2222
"@rino.app/cli": "workspace:*",
23-
"@types/node": "^18.15.5",
24-
"eslint": "^8.36.0",
25-
"prettier": "^2.8.5",
26-
"turbo": "^1.8.4",
27-
"typescript": "^5.0.2"
23+
"@types/node": "^18.16.3",
24+
"eslint": "^8.39.0",
25+
"prettier": "^2.8.8",
26+
"turbo": "^1.9.3",
27+
"typescript": "^5.0.4"
2828
},
2929
"renovate": {
3030
"extends": [

packages/common/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"build:api-extractor": "api-extractor run --local --verbose"
2020
},
2121
"devDependencies": {
22-
"@microsoft/api-extractor": "^7.34.4",
23-
"esbuild": "^0.17.12",
24-
"typescript": "^5.0.2",
25-
"@vitest/coverage-c8": "^0.30.0",
22+
"@microsoft/api-extractor": "^7.34.6",
23+
"@vitest/coverage-c8": "^0.30.1",
24+
"esbuild": "^0.17.18",
25+
"typescript": "^5.0.4",
2626
"vitest": "^0.30.1"
2727
},
2828
"publishConfig": {

packages/editor/package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
"build:api-extractor": "api-extractor run --local --verbose"
2020
},
2121
"dependencies": {
22-
"@codemirror/autocomplete": "^6.4.2",
23-
"@codemirror/commands": "^6.2.2",
24-
"@codemirror/lang-markdown": "^6.1.0",
22+
"@codemirror/autocomplete": "^6.6.0",
23+
"@codemirror/commands": "^6.2.3",
24+
"@codemirror/lang-markdown": "^6.1.1",
2525
"@codemirror/language": "^6.6.0",
26-
"@codemirror/language-data": "^6.1.0",
27-
"@codemirror/lint": "^6.2.0",
28-
"@codemirror/search": "^6.3.0",
26+
"@codemirror/language-data": "^6.3.0",
27+
"@codemirror/lint": "^6.2.1",
28+
"@codemirror/search": "^6.4.0",
2929
"@codemirror/state": "^6.2.0",
30-
"@codemirror/theme-one-dark": "^6.1.1",
30+
"@codemirror/theme-one-dark": "^6.1.2",
3131
"@codemirror/view": "^6.10.0",
32-
"@emotion/css": "^11.10.6",
33-
"@emotion/react": "^11.10.6",
34-
"@floating-ui/react": "^0.22.0",
35-
"@mui/material": "^5.11.13",
32+
"@emotion/css": "^11.10.8",
33+
"@emotion/react": "^11.10.8",
34+
"@floating-ui/react": "^0.24.0",
35+
"@mui/material": "^5.12.2",
3636
"@remirror/core": "^2.0.16",
3737
"@remirror/dev": "^2.0.17",
3838
"@remirror/extension-blockquote": "^2.0.14",
@@ -64,7 +64,7 @@
6464
"mdast-util-gfm-autolink-literal": "^1.0.3",
6565
"mdast-util-gfm-strikethrough": "^1.0.3",
6666
"micromark-extension-gfm-autolink-literal": "^1.0.3",
67-
"micromark-extension-gfm-strikethrough": "^1.0.4",
67+
"micromark-extension-gfm-strikethrough": "^1.0.5",
6868
"prosemirror-flat-list": "^0.3.9",
6969
"prosemirror-tables": "^1.3.2",
7070
"prosemirror-view": "^1.31.0",
@@ -77,28 +77,28 @@
7777
"react-dom": "^18.2.0"
7878
},
7979
"devDependencies": {
80-
"@babel/core": "^7.21.3",
81-
"@microsoft/api-extractor": "^7.34.4",
82-
"@types/jest": "^29.5.0",
80+
"@babel/core": "^7.21.5",
81+
"@microsoft/api-extractor": "^7.34.6",
82+
"@types/jest": "^29.5.1",
8383
"@types/lodash-es": "^4.17.7",
8484
"@types/markdown-it": "^12.2.3",
8585
"@types/mdast": "^3.0.11",
8686
"@types/orderedmap": "^1.0.0",
8787
"@types/prettier": "^2.7.2",
88-
"@types/react": "^18.0.28",
89-
"@types/react-dom": "^18.0.11",
90-
"@vitest/coverage-c8": "^0.30.0",
88+
"@types/react": "^18.2.0",
89+
"@types/react-dom": "^18.2.1",
90+
"@vitest/coverage-c8": "^0.30.1",
9191
"c8": "^7.13.0",
9292
"commonmark-spec": "^0.30.0",
93-
"esbuild": "^0.17.12",
94-
"esbuild-node-externals": "^1.6.0",
93+
"esbuild": "^0.17.18",
94+
"esbuild-node-externals": "^1.7.0",
9595
"jest-remirror": "^2.1.5",
9696
"jsdom": "^21.1.1",
9797
"npm-run-all": "^4.1.5",
98-
"prettier": "^2.8.5",
98+
"prettier": "^2.8.8",
9999
"react": "^18.2.0",
100100
"react-dom": "^18.2.0",
101-
"typescript": "^5.0.2",
101+
"typescript": "^5.0.4",
102102
"vite": "^4.3.3",
103103
"vitest": "^0.30.1"
104104
},

packages/editor/src/components/wysiwyg/CodeLanguageSelect.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useCodeBlock } from "../../hooks/use-code-block"
55

66
const CodeLanguageInput: React.FC = () => {
77
const { dom: codeBlock, language, setLanguage } = useCodeBlock()
8-
const { x, y, reference, floating, strategy, update, refs } = useFloating({
8+
const { x, y, strategy, update, refs } = useFloating({
99
placement: "top-end",
1010
middleware: [flip({ padding: 8 }), offset(4)],
1111
})
@@ -16,17 +16,17 @@ const CodeLanguageInput: React.FC = () => {
1616
}
1717
// Only call this when the floating element is rendered
1818
return autoUpdate(codeBlock, refs.floating.current, update)
19-
}, [refs.floating, update, reference, codeBlock])
19+
}, [refs.floating, update, codeBlock])
2020

2121
useLayoutEffect(() => {
22-
reference(codeBlock)
23-
}, [reference, codeBlock])
22+
refs.setReference(codeBlock)
23+
}, [refs, codeBlock])
2424

2525
return (
2626
<>
2727
{codeBlock ? (
2828
<input
29-
ref={floating}
29+
ref={refs.setFloating}
3030
style={{
3131
position: strategy,
3232
zIndex: 1000,

packages/editor/src/extensions/codemirror/codemirror-setup.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export const basicSetup: Extension = [
7171
highlightSelectionMatches(),
7272
keymap.of([
7373
...closeBracketsKeymap,
74-
...defaultKeymap,
74+
...defaultKeymap.filter(
75+
// Remove the conflicted key binding
76+
(keyBinding) => keyBinding.key?.toLowerCase() !== "mod-/",
77+
),
7578
...searchKeymap,
7679
// ...historyKeymap,
7780
// ...foldKeymap,

packages/editor/src/extensions/table-components/TableCellButton.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function useButtonFloating(cellEl: Element | null) {
1616
middleware: [],
1717
})
1818

19-
const { reference, refs, update } = floating
19+
const { refs, update } = floating
2020

2121
const updateFloating = useCallback(() => {
2222
if (!cellEl) return
@@ -38,9 +38,9 @@ function useButtonFloating(cellEl: Element | null) {
3838
},
3939
contextElement: cellEl,
4040
}
41-
reference(virtualEl)
41+
refs.setReference(virtualEl)
4242
update()
43-
}, [cellEl, reference, update])
43+
}, [cellEl, refs, update])
4444

4545
useEffect(() => {
4646
if (!cellEl || !refs.floating.current) {
@@ -59,12 +59,12 @@ type TableCellButtonComponentProps = {
5959
}
6060

6161
const TableCellButtonComponent: React.FC<TableCellButtonComponentProps> = ({ cellEl, handleClick }) => {
62-
const { x, y, floating, strategy } = useButtonFloating(cellEl)
62+
const { x, y, refs, strategy } = useButtonFloating(cellEl)
6363
const show = Boolean(cellEl)
6464

6565
return show ? (
6666
<div
67-
ref={floating}
67+
ref={refs.setFloating}
6868
style={{
6969
position: strategy,
7070
top: y ?? "",

packages/editor/src/extensions/table-components/TableMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ type TableMenuProps = UseTableMenuProps
5050

5151
export const TableMenu: React.FC<TableMenuProps> = ({ coords, handleClose }) => {
5252
const selection = useEditorView().state.selection
53-
const { floating, strategy, x, y } = useTableMenu({ coords, handleClose })
53+
const { refs, strategy, x, y } = useTableMenu({ coords, handleClose })
5454

5555
return coords && isCellSelection(selection) ? (
5656
<div
57-
ref={floating}
57+
ref={refs.setFloating}
5858
style={{
5959
zIndex: 12,
6060
position: strategy,

packages/editor/src/extensions/table-components/TableTooltip.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ type TableMenuButtonProps = {
3232
}
3333

3434
const TableMenuButton: React.FC<TableMenuButtonProps> = ({ handleClick, anchorCellEl, headCellEl }) => {
35-
const { x, y, floating, strategy, middlewareData } = useFloatingMenuFloating({ anchorCellEl, headCellEl })
35+
const { x, y, strategy, middlewareData, refs } = useFloatingMenuFloating({ anchorCellEl, headCellEl })
3636
const referenceHidden = middlewareData.hide?.referenceHidden
3737

3838
return (
3939
<div
40-
ref={floating}
40+
ref={refs.setFloating}
4141
style={{
4242
position: strategy,
4343
top: y ?? "",
@@ -68,7 +68,7 @@ function useFloatingMenuFloating({ anchorCellEl: cellA, headCellEl: cellB }: { a
6868
middleware: [offset(20), shift(), flip(), hide()],
6969
})
7070

71-
const { reference, refs, update } = useFloatingReturn
71+
const { refs, update } = useFloatingReturn
7272

7373
const updateFloating = useCallback(() => {
7474
const { top, bottom, left, right } = calcCellSelectionBoundingClientRect(cellA, cellB)
@@ -88,9 +88,9 @@ function useFloatingMenuFloating({ anchorCellEl: cellA, headCellEl: cellB }: { a
8888
},
8989
}
9090

91-
reference(virtualEl)
91+
refs.setReference(virtualEl)
9292
update()
93-
}, [cellA, cellB, reference, update])
93+
}, [cellA, cellB, refs, update])
9494

9595
useEffect(() => {
9696
updateFloating()

packages/editor/src/extensions/table-components/use-table-menu.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function useTableMenu({ handleClose, coords }: UseTableMenuProps): UseFlo
2121
],
2222
})
2323

24-
const { reference, refs } = useFloatingReturn
24+
const { refs } = useFloatingReturn
2525

2626
useOnClickOutside(refs.floating, handleClose)
2727

@@ -42,8 +42,8 @@ export function useTableMenu({ handleClose, coords }: UseTableMenuProps): UseFlo
4242
}
4343
},
4444
}
45-
reference(virtualEl)
46-
}, [coords, reference])
45+
refs.setReference(virtualEl)
46+
}, [coords, refs])
4747

4848
return useFloatingReturn
4949
}

packages/electron-main/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"@rino.app/common": "workspace:*",
1111
"@rino.app/electron-types": "workspace:*",
1212
"@types/lodash-es": "^4.17.7",
13-
"electron": "24.1.1",
13+
"electron": "24.1.3",
1414
"electron-context-menu": "^3.6.1",
1515
"electron-log": "^4.4.8",
1616
"electron-store": "^8.1.0",
1717
"electron-updater": "^5.3.0",
18-
"esbuild": "^0.17.12",
18+
"esbuild": "^0.17.18",
1919
"lodash-es": "^4.17.21",
2020
"node-fetch": "^3.3.1",
21-
"typescript": "^5.0.2"
21+
"typescript": "^5.0.4"
2222
}
2323
}

0 commit comments

Comments
 (0)