@jupyterlab/notebook 4.0.0-alpha.1 → 4.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/actions.d.ts +58 -8
- package/lib/actions.js +395 -32
- package/lib/actions.js.map +1 -1
- package/lib/celllist.js.map +1 -1
- package/lib/executionindicator.js +17 -25
- package/lib/executionindicator.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/model.d.ts +1 -0
- package/lib/model.js +25 -17
- package/lib/model.js.map +1 -1
- package/lib/modelfactory.js.map +1 -1
- package/lib/modestatus.js +4 -0
- package/lib/modestatus.js.map +1 -1
- package/lib/notebooklspadapter.d.ts +137 -0
- package/lib/notebooklspadapter.js +347 -0
- package/lib/notebooklspadapter.js.map +1 -0
- package/lib/notebooktools.d.ts +54 -1
- package/lib/notebooktools.js +134 -0
- package/lib/notebooktools.js.map +1 -1
- package/lib/panel.d.ts +8 -2
- package/lib/panel.js +6 -2
- package/lib/panel.js.map +1 -1
- package/lib/searchprovider.d.ts +141 -0
- package/lib/searchprovider.js +421 -0
- package/lib/searchprovider.js.map +1 -0
- package/lib/toc.d.ts +179 -0
- package/lib/toc.js +484 -0
- package/lib/toc.js.map +1 -0
- package/lib/tokens.js +0 -4
- package/lib/tokens.js.map +1 -1
- package/lib/tracker.js.map +1 -1
- package/lib/truststatus.js +4 -0
- package/lib/truststatus.js.map +1 -1
- package/lib/widget.d.ts +36 -1
- package/lib/widget.js +93 -21
- package/lib/widget.js.map +1 -1
- package/package.json +25 -21
- package/style/base.css +28 -26
- package/style/index.css +6 -2
- package/style/index.js +6 -2
- package/style/toc.css +36 -0
- package/style/toolbar.css +2 -2
package/lib/actions.d.ts
CHANGED
|
@@ -289,6 +289,38 @@ export declare namespace NotebookActions {
|
|
|
289
289
|
* The existing selection will be cleared.
|
|
290
290
|
*/
|
|
291
291
|
function selectBelow(notebook: Notebook): void;
|
|
292
|
+
/** Insert new heading of same level above active cell.
|
|
293
|
+
*
|
|
294
|
+
* @param notebook - The target notebook widget
|
|
295
|
+
*/
|
|
296
|
+
function insertSameLevelHeadingAbove(notebook: Notebook): void;
|
|
297
|
+
/** Insert new heading of same level at end of current section.
|
|
298
|
+
*
|
|
299
|
+
* @param notebook - The target notebook widget
|
|
300
|
+
*/
|
|
301
|
+
function insertSameLevelHeadingBelow(notebook: Notebook): void;
|
|
302
|
+
/**
|
|
303
|
+
* Select the heading above the active cell or, if already at heading, collapse it.
|
|
304
|
+
*
|
|
305
|
+
* @param notebook - The target notebook widget.
|
|
306
|
+
*
|
|
307
|
+
* #### Notes
|
|
308
|
+
* The widget mode will be preserved.
|
|
309
|
+
* This is a no-op if the active cell is the topmost heading in collapsed state
|
|
310
|
+
* The existing selection will be cleared.
|
|
311
|
+
*/
|
|
312
|
+
function selectHeadingAboveOrCollapseHeading(notebook: Notebook): void;
|
|
313
|
+
/**
|
|
314
|
+
* Select the heading below the active cell or, if already at heading, expand it.
|
|
315
|
+
*
|
|
316
|
+
* @param notebook - The target notebook widget.
|
|
317
|
+
*
|
|
318
|
+
* #### Notes
|
|
319
|
+
* The widget mode will be preserved.
|
|
320
|
+
* This is a no-op if the active cell is the last heading in expanded state
|
|
321
|
+
* The existing selection will be cleared.
|
|
322
|
+
*/
|
|
323
|
+
function selectHeadingBelowOrExpandHeading(notebook: Notebook): void;
|
|
292
324
|
/**
|
|
293
325
|
* Extend the selection to the cell above.
|
|
294
326
|
*
|
|
@@ -324,7 +356,7 @@ export declare namespace NotebookActions {
|
|
|
324
356
|
*/
|
|
325
357
|
function deselectAll(notebook: Notebook): void;
|
|
326
358
|
/**
|
|
327
|
-
* Copy the selected cell data to a clipboard.
|
|
359
|
+
* Copy the selected cell(s) data to a clipboard.
|
|
328
360
|
*
|
|
329
361
|
* @param notebook - The target notebook widget.
|
|
330
362
|
*/
|
|
@@ -344,17 +376,35 @@ export declare namespace NotebookActions {
|
|
|
344
376
|
*
|
|
345
377
|
* @param notebook - The target notebook widget.
|
|
346
378
|
*
|
|
347
|
-
* @param mode - the mode of
|
|
348
|
-
* below
|
|
349
|
-
*
|
|
350
|
-
*
|
|
379
|
+
* @param mode - the mode of adding cells:
|
|
380
|
+
* 'below' (default) adds cells below the active cell,
|
|
381
|
+
* 'belowSelected' adds cells below all selected cells,
|
|
382
|
+
* 'above' adds cells above the active cell, and
|
|
383
|
+
* 'replace' removes the currently selected cells and adds cells in their place.
|
|
384
|
+
*
|
|
385
|
+
* #### Notes
|
|
386
|
+
* The last pasted cell becomes the active cell.
|
|
387
|
+
* This is a no-op if there is no cell data on the clipboard.
|
|
388
|
+
* This action can be undone.
|
|
389
|
+
*/
|
|
390
|
+
function paste(notebook: Notebook, mode?: 'below' | 'belowSelected' | 'above' | 'replace'): void;
|
|
391
|
+
/**
|
|
392
|
+
* Duplicate selected cells in the notebook without using the application clipboard.
|
|
393
|
+
*
|
|
394
|
+
* @param notebook - The target notebook widget.
|
|
395
|
+
*
|
|
396
|
+
* @param mode - the mode of adding cells:
|
|
397
|
+
* 'below' (default) adds cells below the active cell,
|
|
398
|
+
* 'belowSelected' adds cells below all selected cells,
|
|
399
|
+
* 'above' adds cells above the active cell, and
|
|
400
|
+
* 'replace' removes the currently selected cells and adds cells in their place.
|
|
351
401
|
*
|
|
352
402
|
* #### Notes
|
|
353
403
|
* The last pasted cell becomes the active cell.
|
|
354
404
|
* This is a no-op if there is no cell data on the clipboard.
|
|
355
405
|
* This action can be undone.
|
|
356
406
|
*/
|
|
357
|
-
function
|
|
407
|
+
function duplicate(notebook: Notebook, mode?: 'below' | 'belowSelected' | 'above' | 'replace'): void;
|
|
358
408
|
/**
|
|
359
409
|
* Undo a cell action.
|
|
360
410
|
*
|
|
@@ -454,7 +504,7 @@ export declare namespace NotebookActions {
|
|
|
454
504
|
*
|
|
455
505
|
* @param notebook - The target notebook widget.
|
|
456
506
|
*/
|
|
457
|
-
function
|
|
507
|
+
function renderDefault(notebook: Notebook): void;
|
|
458
508
|
/**
|
|
459
509
|
* Show the output on all code cells.
|
|
460
510
|
*
|
|
@@ -502,7 +552,7 @@ export declare namespace NotebookActions {
|
|
|
502
552
|
*
|
|
503
553
|
* @param notebook - The target notebook widget.
|
|
504
554
|
*/
|
|
505
|
-
function
|
|
555
|
+
function collapseAllHeadings(notebook: Notebook): any;
|
|
506
556
|
/**
|
|
507
557
|
* Un-collapse all cells in given notebook.
|
|
508
558
|
*
|