Skip to content

Commit 22c68c6

Browse files
authored
update dependencies (#214)
1 parent 977aa81 commit 22c68c6

File tree

4 files changed

+151
-104
lines changed

4 files changed

+151
-104
lines changed

package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,15 @@
7575
"@lumino/domutils": "^1.2.3",
7676
"@lumino/messaging": "^1.4.3",
7777
"@lumino/widgets": "^1.16.1",
78-
"pdfjs-dist": "2.0.943",
79-
"react": "^17.0.1",
80-
"react-dom": "^17.0.1"
78+
"pdfjs-dist": "2.4.456",
79+
"react": "^17.0.2",
80+
"react-dom": "^17.0.2",
81+
"yjs": "^13.6.1"
8182
},
8283
"devDependencies": {
8384
"@jupyterlab/builder": "^3.6.3",
84-
"@types/react": "^16.9.16",
85-
"@types/react-dom": "^16.9.4",
85+
"@types/react": "^17.0.2",
86+
"@types/react-dom": "^17.0.2",
8687
"@typescript-eslint/eslint-plugin": "^4.13.0",
8788
"@typescript-eslint/parser": "^4.13.0",
8889
"eslint": "^7.5.0",
@@ -99,9 +100,6 @@
99100
"tslint-plugin-prettier": "^2.0.1",
100101
"typescript": "~5.0.4"
101102
},
102-
"resolutions": {
103-
"@types/react": "~18.2.6"
104-
},
105103
"jupyterlab": {
106104
"extension": "lib/index.js",
107105
"schemaDir": "schema",

src/error.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class ErrorPanel extends Widget {
4646
}
4747
}
4848

49-
export interface ILatexProps extends React.Props<LatexError> {
49+
export interface ILatexProps {
5050
text: string;
5151
}
5252

src/pdf.ts

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export class PDFJSViewer extends Widget {
235235
};
236236

237237
this._getDocument(this._objectUrl)
238+
.promise
238239
.then((pdfDocument: any) => {
239240
this._pdfDocument = pdfDocument;
240241
this._viewer!.setDocument(pdfDocument);

0 commit comments

Comments
 (0)