@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 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 the paste operation: 'below' pastes cells
348
- * below the active cell, 'above' pastes cells above the active cell,
349
- * and 'replace' removes the currently selected cells and pastes cells
350
- * in their place.
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 paste(notebook: Notebook, mode?: 'below' | 'above' | 'replace'): void;
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 renderNotSideBySide(notebook: Notebook): void;
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 collapseAll(notebook: Notebook): any;
555
+ function collapseAllHeadings(notebook: Notebook): any;
506
556
  /**
507
557
  * Un-collapse all cells in given notebook.
508
558
  *