From f409c47bc75238b0e2e432648d4de57ae69ad16c Mon Sep 17 00:00:00 2001 From: Duc Trung Le Date: Thu, 19 Dec 2024 10:32:56 +0100 Subject: [PATCH] Update packages/base/src/types.ts Co-authored-by: Jeremy Tuloup --- packages/base/src/suggestionsPanel/model.ts | 2 +- packages/base/src/suggestionsPanel/widget.ts | 2 +- packages/base/src/types.ts | 2 +- yarn.lock | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/base/src/suggestionsPanel/model.ts b/packages/base/src/suggestionsPanel/model.ts index 3893d76..3192ac6 100644 --- a/packages/base/src/suggestionsPanel/model.ts +++ b/packages/base/src/suggestionsPanel/model.ts @@ -244,7 +244,7 @@ export class SuggestionsModel implements ISuggestionsModel { } } - nativateToCell(cellId?: string): void { + scrollToCell(cellId?: string): void { if (cellId && this._notebookPanel) { const index = this.getCellIndex(cellId); if (index !== -1) { diff --git a/packages/base/src/suggestionsPanel/widget.ts b/packages/base/src/suggestionsPanel/widget.ts index 32fd811..95f7a70 100644 --- a/packages/base/src/suggestionsPanel/widget.ts +++ b/packages/base/src/suggestionsPanel/widget.ts @@ -274,7 +274,7 @@ export class SuggestionsWidget extends PanelWithToolbar { } }; const navigateCallback = async () => { - this._model.nativateToCell(cellId); + this._model.scrollToCell(cellId); }; let Cls: typeof BaseCellwidget = BaseCellwidget; switch (suggestionData.type) { diff --git a/packages/base/src/types.ts b/packages/base/src/types.ts index 27a7e22..c64d29b 100644 --- a/packages/base/src/types.ts +++ b/packages/base/src/types.ts @@ -229,7 +229,7 @@ export interface ISuggestionsModel extends IDisposable { * Scroll to the cell by its id * */ - nativateToCell(cellId?: string): void; + scrollToCell(cellId?: string): void; } export interface ISuggestionChange { diff --git a/yarn.lock b/yarn.lock index b14dd1d..cf725f9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10332,7 +10332,7 @@ __metadata: "typescript@patch:typescript@>=3 < 6#~builtin, typescript@patch:typescript@^5#~builtin": version: 5.7.2 - resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin::version=5.7.2&hash=85af82" + resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin::version=5.7.2&hash=e012d7" bin: tsc: bin/tsc tsserver: bin/tsserver @@ -10342,11 +10342,11 @@ __metadata: "typescript@patch:typescript@~5.0.2#~builtin": version: 5.0.4 - resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=85af82" + resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=b5f058" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: bb309d320c59a26565fb3793dba550576ab861018ff3fd1b7fccabbe46ae4a35546bc45f342c0a0b6f265c801ccdf64ffd68f548f117ceb7f0eac4b805cd52a9 + checksum: d26b6ba97b6d163c55dbdffd9bbb4c211667ebebc743accfeb2c8c0154aace7afd097b51165a72a5bad2cf65a4612259344ff60f8e642362aa1695c760d303ac languageName: node linkType: hard