@difizen/libro-core 0.0.2-alpha.0
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/LICENSE +21 -0
- package/README.md +3 -0
- package/es/add-cell/index.d.ts +4 -0
- package/es/add-cell/index.d.ts.map +1 -0
- package/es/add-cell/index.js +3 -0
- package/es/add-cell/index.less +38 -0
- package/es/add-cell/libro-add-cell-module.d.ts +3 -0
- package/es/add-cell/libro-add-cell-module.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-module.js +4 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts +12 -0
- package/es/add-cell/libro-add-cell-slot-contribution.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-slot-contribution.js +53 -0
- package/es/add-cell/libro-add-cell-view.d.ts +21 -0
- package/es/add-cell/libro-add-cell-view.d.ts.map +1 -0
- package/es/add-cell/libro-add-cell-view.js +129 -0
- package/es/cell/index.d.ts +10 -0
- package/es/cell/index.d.ts.map +1 -0
- package/es/cell/index.js +9 -0
- package/es/cell/libro-cell-contribution.d.ts +13 -0
- package/es/cell/libro-cell-contribution.d.ts.map +1 -0
- package/es/cell/libro-cell-contribution.js +41 -0
- package/es/cell/libro-cell-model.d.ts +19 -0
- package/es/cell/libro-cell-model.d.ts.map +1 -0
- package/es/cell/libro-cell-model.js +103 -0
- package/es/cell/libro-cell-module.d.ts +10 -0
- package/es/cell/libro-cell-module.d.ts.map +1 -0
- package/es/cell/libro-cell-module.js +30 -0
- package/es/cell/libro-cell-protocol.d.ts +42 -0
- package/es/cell/libro-cell-protocol.d.ts.map +1 -0
- package/es/cell/libro-cell-protocol.js +11 -0
- package/es/cell/libro-cell-service.d.ts +28 -0
- package/es/cell/libro-cell-service.d.ts.map +1 -0
- package/es/cell/libro-cell-service.js +242 -0
- package/es/cell/libro-cell-view.d.ts +65 -0
- package/es/cell/libro-cell-view.d.ts.map +1 -0
- package/es/cell/libro-cell-view.js +191 -0
- package/es/cell/libro-edit-cell-view.d.ts +32 -0
- package/es/cell/libro-edit-cell-view.d.ts.map +1 -0
- package/es/cell/libro-edit-cell-view.js +72 -0
- package/es/cell/libro-executable-cell-model.d.ts +14 -0
- package/es/cell/libro-executable-cell-model.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-model.js +7 -0
- package/es/cell/libro-executable-cell-view.d.ts +27 -0
- package/es/cell/libro-executable-cell-view.d.ts.map +1 -0
- package/es/cell/libro-executable-cell-view.js +66 -0
- package/es/cell/libro-markdown-cell-model.d.ts +9 -0
- package/es/cell/libro-markdown-cell-model.d.ts.map +1 -0
- package/es/cell/libro-markdown-cell-model.js +7 -0
- package/es/collapse-service.d.ts +36 -0
- package/es/collapse-service.d.ts.map +1 -0
- package/es/collapse-service.js +55 -0
- package/es/command/document-commands.d.ts +6 -0
- package/es/command/document-commands.d.ts.map +1 -0
- package/es/command/document-commands.js +13 -0
- package/es/command/index.d.ts +7 -0
- package/es/command/index.d.ts.map +1 -0
- package/es/command/index.js +6 -0
- package/es/command/kernel-command.d.ts +5 -0
- package/es/command/kernel-command.d.ts.map +1 -0
- package/es/command/kernel-command.js +39 -0
- package/es/command/libro-command-contribution.d.ts +14 -0
- package/es/command/libro-command-contribution.d.ts.map +1 -0
- package/es/command/libro-command-contribution.js +1751 -0
- package/es/command/libro-command-register.d.ts +22 -0
- package/es/command/libro-command-register.d.ts.map +1 -0
- package/es/command/libro-command-register.js +105 -0
- package/es/command/module.d.ts +3 -0
- package/es/command/module.d.ts.map +1 -0
- package/es/command/module.js +4 -0
- package/es/command/notebook-commands.d.ts +6 -0
- package/es/command/notebook-commands.d.ts.map +1 -0
- package/es/command/notebook-commands.js +468 -0
- package/es/components/cell-protocol.d.ts +20 -0
- package/es/components/cell-protocol.d.ts.map +1 -0
- package/es/components/cell-protocol.js +4 -0
- package/es/components/dnd-cell-item-render.d.ts +12 -0
- package/es/components/dnd-cell-item-render.d.ts.map +1 -0
- package/es/components/dnd-cell-item-render.js +253 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts +9 -0
- package/es/components/dnd-component/custom-drag-layer.d.ts.map +1 -0
- package/es/components/dnd-component/custom-drag-layer.js +141 -0
- package/es/components/dnd-component/default-dnd-content.d.ts +10 -0
- package/es/components/dnd-component/default-dnd-content.d.ts.map +1 -0
- package/es/components/dnd-component/default-dnd-content.js +257 -0
- package/es/components/dnd-component/dnd-context.d.ts +3 -0
- package/es/components/dnd-component/dnd-context.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-context.js +20 -0
- package/es/components/dnd-component/dnd-list.d.ts +10 -0
- package/es/components/dnd-component/dnd-list.d.ts.map +1 -0
- package/es/components/dnd-component/dnd-list.js +115 -0
- package/es/components/dnd-component/index.d.ts +5 -0
- package/es/components/dnd-component/index.d.ts.map +1 -0
- package/es/components/dnd-component/index.js +4 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +5 -0
- package/es/components/libro-component.d.ts +5 -0
- package/es/components/libro-component.d.ts.map +1 -0
- package/es/components/libro-component.js +35 -0
- package/es/components/libro-side-toolbar-menu.d.ts +21 -0
- package/es/components/libro-side-toolbar-menu.d.ts.map +1 -0
- package/es/components/libro-side-toolbar-menu.js +58 -0
- package/es/components/libro-view-header.d.ts +3 -0
- package/es/components/libro-view-header.d.ts.map +1 -0
- package/es/components/libro-view-header.js +37 -0
- package/es/configuration/libro-configuration-contribution.d.ts +5 -0
- package/es/configuration/libro-configuration-contribution.d.ts.map +1 -0
- package/es/configuration/libro-configuration-contribution.js +24 -0
- package/es/configuration/libro-configuration.d.ts +10 -0
- package/es/configuration/libro-configuration.d.ts.map +1 -0
- package/es/configuration/libro-configuration.js +81 -0
- package/es/content/index.d.ts +5 -0
- package/es/content/index.d.ts.map +1 -0
- package/es/content/index.js +4 -0
- package/es/content/libro-content-contribution.d.ts +11 -0
- package/es/content/libro-content-contribution.d.ts.map +1 -0
- package/es/content/libro-content-contribution.js +32 -0
- package/es/content/libro-content-module.d.ts +3 -0
- package/es/content/libro-content-module.d.ts.map +1 -0
- package/es/content/libro-content-module.js +5 -0
- package/es/content/libro-content-protocol.d.ts +8 -0
- package/es/content/libro-content-protocol.d.ts.map +1 -0
- package/es/content/libro-content-protocol.js +2 -0
- package/es/content/libro-content-service.d.ts +9 -0
- package/es/content/libro-content-service.d.ts.map +1 -0
- package/es/content/libro-content-service.js +35 -0
- package/es/index.d.ts +20 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +19 -0
- package/es/index.less +682 -0
- package/es/libro-context-key.d.ts +22 -0
- package/es/libro-context-key.d.ts.map +1 -0
- package/es/libro-context-key.js +80 -0
- package/es/libro-keybind-registry.d.ts +5 -0
- package/es/libro-keybind-registry.d.ts.map +1 -0
- package/es/libro-keybind-registry.js +68 -0
- package/es/libro-model.d.ts +129 -0
- package/es/libro-model.d.ts.map +1 -0
- package/es/libro-model.js +803 -0
- package/es/libro-protocol.d.ts +241 -0
- package/es/libro-protocol.d.ts.map +1 -0
- package/es/libro-protocol.js +34 -0
- package/es/libro-service.d.ts +34 -0
- package/es/libro-service.d.ts.map +1 -0
- package/es/libro-service.js +180 -0
- package/es/libro-view-tracker.d.ts +6 -0
- package/es/libro-view-tracker.d.ts.map +1 -0
- package/es/libro-view-tracker.js +13 -0
- package/es/libro-view.d.ts +151 -0
- package/es/libro-view.d.ts.map +1 -0
- package/es/libro-view.js +1963 -0
- package/es/material-from-designer.d.ts +27 -0
- package/es/material-from-designer.d.ts.map +1 -0
- package/es/material-from-designer.js +550 -0
- package/es/module.d.ts +3 -0
- package/es/module.d.ts.map +1 -0
- package/es/module.js +55 -0
- package/es/output/index.d.ts +6 -0
- package/es/output/index.d.ts.map +1 -0
- package/es/output/index.js +5 -0
- package/es/output/output-area.d.ts +51 -0
- package/es/output/output-area.d.ts.map +1 -0
- package/es/output/output-area.js +346 -0
- package/es/output/output-contribution.d.ts +11 -0
- package/es/output/output-contribution.d.ts.map +1 -0
- package/es/output/output-contribution.js +31 -0
- package/es/output/output-model.d.ts +27 -0
- package/es/output/output-model.d.ts.map +1 -0
- package/es/output/output-model.js +95 -0
- package/es/output/output-module.d.ts +3 -0
- package/es/output/output-module.d.ts.map +1 -0
- package/es/output/output-module.js +6 -0
- package/es/output/output-protocol.d.ts +130 -0
- package/es/output/output-protocol.d.ts.map +1 -0
- package/es/output/output-protocol.js +18 -0
- package/es/slot/index.d.ts +5 -0
- package/es/slot/index.d.ts.map +1 -0
- package/es/slot/index.js +4 -0
- package/es/slot/libro-slot-manager.d.ts +13 -0
- package/es/slot/libro-slot-manager.d.ts.map +1 -0
- package/es/slot/libro-slot-manager.js +57 -0
- package/es/slot/libro-slot-protocol.d.ts +19 -0
- package/es/slot/libro-slot-protocol.d.ts.map +1 -0
- package/es/slot/libro-slot-protocol.js +5 -0
- package/es/slot/libro-slot-view.d.ts +9 -0
- package/es/slot/libro-slot-view.d.ts.map +1 -0
- package/es/slot/libro-slot-view.js +81 -0
- package/es/slot/module.d.ts +3 -0
- package/es/slot/module.d.ts.map +1 -0
- package/es/slot/module.js +5 -0
- package/es/theme/libro-color-registry.d.ts +6 -0
- package/es/theme/libro-color-registry.d.ts.map +1 -0
- package/es/theme/libro-color-registry.js +494 -0
- package/es/toolbar/change-cell-to-selector.d.ts +5 -0
- package/es/toolbar/change-cell-to-selector.d.ts.map +1 -0
- package/es/toolbar/change-cell-to-selector.js +48 -0
- package/es/toolbar/hide-all-selector.d.ts +5 -0
- package/es/toolbar/hide-all-selector.d.ts.map +1 -0
- package/es/toolbar/hide-all-selector.js +99 -0
- package/es/toolbar/index.d.ts +4 -0
- package/es/toolbar/index.d.ts.map +1 -0
- package/es/toolbar/index.js +3 -0
- package/es/toolbar/index.less +59 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts +4 -0
- package/es/toolbar/libro-toolbar-protocol.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar-protocol.js +1 -0
- package/es/toolbar/libro-toolbar.d.ts +8 -0
- package/es/toolbar/libro-toolbar.d.ts.map +1 -0
- package/es/toolbar/libro-toolbar.js +223 -0
- package/es/toolbar/module.d.ts +3 -0
- package/es/toolbar/module.d.ts.map +1 -0
- package/es/toolbar/module.js +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts +5 -0
- package/es/toolbar/restart-clear-outputs-contribution.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-contribution.js +23 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts +6 -0
- package/es/toolbar/restart-clear-outputs-modal.d.ts.map +1 -0
- package/es/toolbar/restart-clear-outputs-modal.js +30 -0
- package/es/toolbar/save-icon.d.ts +3 -0
- package/es/toolbar/save-icon.d.ts.map +1 -0
- package/es/toolbar/save-icon.js +54 -0
- package/es/toolbar/shutdown-contribution.d.ts +5 -0
- package/es/toolbar/shutdown-contribution.d.ts.map +1 -0
- package/es/toolbar/shutdown-contribution.js +23 -0
- package/es/toolbar/shutdown-modal.d.ts +6 -0
- package/es/toolbar/shutdown-modal.d.ts.map +1 -0
- package/es/toolbar/shutdown-modal.js +30 -0
- package/es/toolbar/side-toolar-more-select.d.ts +4 -0
- package/es/toolbar/side-toolar-more-select.d.ts.map +1 -0
- package/es/toolbar/side-toolar-more-select.js +161 -0
- package/es/typings/index.d.ts +1 -0
- package/package.json +70 -0
- package/src/add-cell/index.less +38 -0
- package/src/add-cell/index.ts +3 -0
- package/src/add-cell/libro-add-cell-module.ts +9 -0
- package/src/add-cell/libro-add-cell-slot-contribution.ts +31 -0
- package/src/add-cell/libro-add-cell-view.tsx +101 -0
- package/src/cell/README.md +14 -0
- package/src/cell/index.ts +9 -0
- package/src/cell/libro-cell-contribution.ts +38 -0
- package/src/cell/libro-cell-model.ts +61 -0
- package/src/cell/libro-cell-module.ts +40 -0
- package/src/cell/libro-cell-protocol.ts +53 -0
- package/src/cell/libro-cell-service.ts +157 -0
- package/src/cell/libro-cell-view.tsx +128 -0
- package/src/cell/libro-edit-cell-view.tsx +60 -0
- package/src/cell/libro-executable-cell-model.ts +32 -0
- package/src/cell/libro-executable-cell-view.ts +74 -0
- package/src/cell/libro-markdown-cell-model.ts +20 -0
- package/src/collapse-service.ts +69 -0
- package/src/command/document-commands.ts +18 -0
- package/src/command/index.ts +6 -0
- package/src/command/kernel-command.ts +41 -0
- package/src/command/libro-command-contribution.ts +1339 -0
- package/src/command/libro-command-register.ts +171 -0
- package/src/command/module.ts +9 -0
- package/src/command/notebook-commands.ts +498 -0
- package/src/components/cell-protocol.ts +22 -0
- package/src/components/dnd-cell-item-render.tsx +308 -0
- package/src/components/dnd-component/custom-drag-layer.tsx +145 -0
- package/src/components/dnd-component/default-dnd-content.tsx +275 -0
- package/src/components/dnd-component/dnd-context.tsx +28 -0
- package/src/components/dnd-component/dnd-list.tsx +116 -0
- package/src/components/dnd-component/index.tsx +4 -0
- package/src/components/index.ts +5 -0
- package/src/components/libro-component.tsx +30 -0
- package/src/components/libro-side-toolbar-menu.tsx +82 -0
- package/src/components/libro-view-header.tsx +33 -0
- package/src/configuration/libro-configuration-contribution.ts +29 -0
- package/src/configuration/libro-configuration.ts +88 -0
- package/src/content/index.ts +4 -0
- package/src/content/libro-content-contribution.ts +17 -0
- package/src/content/libro-content-module.ts +9 -0
- package/src/content/libro-content-protocol.ts +8 -0
- package/src/content/libro-content-service.ts +30 -0
- package/src/index.less +682 -0
- package/src/index.tsx +19 -0
- package/src/libro-context-key.ts +80 -0
- package/src/libro-keybind-registry.ts +43 -0
- package/src/libro-model.ts +614 -0
- package/src/libro-protocol.ts +322 -0
- package/src/libro-service.ts +121 -0
- package/src/libro-view-tracker.ts +9 -0
- package/src/libro-view.tsx +1399 -0
- package/src/material-from-designer.tsx +457 -0
- package/src/module.ts +90 -0
- package/src/output/index.ts +5 -0
- package/src/output/output-area.tsx +255 -0
- package/src/output/output-contribution.ts +18 -0
- package/src/output/output-model.tsx +66 -0
- package/src/output/output-module.ts +10 -0
- package/src/output/output-protocol.ts +164 -0
- package/src/slot/index.ts +4 -0
- package/src/slot/libro-slot-manager.ts +37 -0
- package/src/slot/libro-slot-protocol.ts +28 -0
- package/src/slot/libro-slot-view.tsx +51 -0
- package/src/slot/module.ts +9 -0
- package/src/theme/libro-color-registry.ts +371 -0
- package/src/toolbar/change-cell-to-selector.tsx +58 -0
- package/src/toolbar/hide-all-selector.tsx +126 -0
- package/src/toolbar/index.less +59 -0
- package/src/toolbar/index.ts +3 -0
- package/src/toolbar/libro-toolbar-protocol.ts +4 -0
- package/src/toolbar/libro-toolbar.tsx +192 -0
- package/src/toolbar/module.ts +11 -0
- package/src/toolbar/restart-clear-outputs-contribution.tsx +10 -0
- package/src/toolbar/restart-clear-outputs-modal.tsx +37 -0
- package/src/toolbar/save-icon.tsx +47 -0
- package/src/toolbar/shutdown-contribution.tsx +10 -0
- package/src/toolbar/shutdown-modal.tsx +37 -0
- package/src/toolbar/side-toolar-more-select.tsx +172 -0
- package/src/typings/index.d.ts +1 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { ConfigurationService } from '@difizen/mana-app';
|
|
2
|
+
import { Deferred, DisposableCollection, Emitter } from '@difizen/mana-app';
|
|
3
|
+
import { ViewManager, BaseView } from '@difizen/mana-app';
|
|
4
|
+
import type { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
|
+
import { CellService } from './cell/index.js';
|
|
6
|
+
import { CollapseServiceFactory } from './collapse-service.js';
|
|
7
|
+
import type { CollapseService } from './collapse-service.js';
|
|
8
|
+
import { LirboContextKey } from './libro-context-key.js';
|
|
9
|
+
import { NotebookService } from './libro-protocol.js';
|
|
10
|
+
import type { CellOptions, CellView, DndContentProps, DndItemProps, NotebookView, NotebookModel, NotebookOption } from './libro-protocol.js';
|
|
11
|
+
import { LibroService } from './libro-service.js';
|
|
12
|
+
import { LibroSlotManager } from './slot/index.js';
|
|
13
|
+
import './index.less';
|
|
14
|
+
export declare const LibroContentComponent: import("react").NamedExoticComponent<object>;
|
|
15
|
+
export declare const LibroRender: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare class LibroView extends BaseView implements NotebookView {
|
|
17
|
+
protected toDispose: DisposableCollection;
|
|
18
|
+
model: NotebookModel;
|
|
19
|
+
headerRender: FC;
|
|
20
|
+
loadingRender: FC;
|
|
21
|
+
dndContentRender: FC<DndContentProps>;
|
|
22
|
+
dndItemRender: ForwardRefExoticComponent<DndItemProps & RefAttributes<HTMLDivElement>>;
|
|
23
|
+
protected onCellCreateEmitter: Emitter<CellView>;
|
|
24
|
+
get onCellCreate(): import("@difizen/mana-app").Event<CellView>;
|
|
25
|
+
onBlurEmitter: Emitter;
|
|
26
|
+
get onBlur(): import("@difizen/mana-app").Event<any>;
|
|
27
|
+
cellService: CellService;
|
|
28
|
+
libroService: LibroService;
|
|
29
|
+
libroSlotManager: LibroSlotManager;
|
|
30
|
+
contextKey: LirboContextKey;
|
|
31
|
+
protected viewManager: ViewManager;
|
|
32
|
+
protected configurationService: ConfigurationService;
|
|
33
|
+
protected notebookService: NotebookService;
|
|
34
|
+
protected collapseService: CollapseService;
|
|
35
|
+
isDragging: boolean;
|
|
36
|
+
collapserVisible: boolean;
|
|
37
|
+
get hasModal(): boolean;
|
|
38
|
+
saving?: boolean;
|
|
39
|
+
onSaveEmitter: Emitter<boolean>;
|
|
40
|
+
get onSave(): import("@difizen/mana-app").Event<boolean>;
|
|
41
|
+
runCellEmitter: Emitter<CellView>;
|
|
42
|
+
get onRunCell(): import("@difizen/mana-app").Event<CellView>;
|
|
43
|
+
protected initializedDefer: Deferred<void>;
|
|
44
|
+
get initialized(): Promise<void>;
|
|
45
|
+
constructor(options: NotebookOption, collapseServiceFactory: CollapseServiceFactory, notebookService: NotebookService);
|
|
46
|
+
initView(): void;
|
|
47
|
+
initialize(): Promise<void>;
|
|
48
|
+
view: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
|
|
49
|
+
onViewMount: () => void;
|
|
50
|
+
onViewUnmount: () => void;
|
|
51
|
+
getCellViewByOption(option: CellOptions): Promise<CellView>;
|
|
52
|
+
focus: () => void;
|
|
53
|
+
insertCells: (options: CellOptions[], position?: number) => Promise<void>;
|
|
54
|
+
selectCell: (cell: CellView) => void;
|
|
55
|
+
addCell: (option: CellOptions, position?: number) => Promise<void>;
|
|
56
|
+
addCellAbove: (option: CellOptions, position?: number) => Promise<void>;
|
|
57
|
+
get activeCell(): CellView | undefined;
|
|
58
|
+
findCellIndex: (cell: CellView) => number;
|
|
59
|
+
deleteCell: (cell: CellView) => void;
|
|
60
|
+
executeCellRun(cell: CellView): Promise<boolean>;
|
|
61
|
+
runCells: (cells: CellView[]) => Promise<boolean | undefined>;
|
|
62
|
+
runAllCell: () => Promise<void>;
|
|
63
|
+
runAllAbove: (cell: CellView) => Promise<void>;
|
|
64
|
+
runAllBelow: (cell: CellView) => Promise<void>;
|
|
65
|
+
runCell: (cell: CellView) => Promise<void>;
|
|
66
|
+
runCellandSelectNext: (cell: CellView) => Promise<void>;
|
|
67
|
+
runCellandInsertBelow: (cell: CellView) => Promise<void>;
|
|
68
|
+
moveUpCell: (cell: CellView) => void;
|
|
69
|
+
moveDownCell: (cell: CellView) => void;
|
|
70
|
+
getPreviousVisibleCell(cell: CellView): CellView | undefined;
|
|
71
|
+
getNextVisibleCell(cell: CellView): CellView | undefined;
|
|
72
|
+
copyCell: (cell: CellView) => void;
|
|
73
|
+
cutCell: (cell: CellView) => void;
|
|
74
|
+
pasteCell: (cell: CellView) => void;
|
|
75
|
+
pasteCellAbove: (cell: CellView) => void;
|
|
76
|
+
invertCell: (cell: CellView, type: string) => Promise<void>;
|
|
77
|
+
clearOutputs: (cell: CellView) => void;
|
|
78
|
+
clearAllOutputs: () => void;
|
|
79
|
+
hideCellCode: (cell: CellView) => void;
|
|
80
|
+
hideOrShowCellCode: (cell: CellView) => void;
|
|
81
|
+
hideOutputs: (cell: CellView) => void;
|
|
82
|
+
hideOrShowOutputs: (cell: CellView) => void;
|
|
83
|
+
hideAllOutputs: () => void;
|
|
84
|
+
hideAllCellCode: () => void;
|
|
85
|
+
showCellCode: (cell: CellView) => void;
|
|
86
|
+
showAllCellCode: () => void;
|
|
87
|
+
showCellOutputs: (cell: CellView) => void;
|
|
88
|
+
showAllCellOutputs: () => void;
|
|
89
|
+
/**
|
|
90
|
+
* Whether a cell is selected.
|
|
91
|
+
*/
|
|
92
|
+
isSelected(cell: CellView): boolean;
|
|
93
|
+
extendSelectionAbove: () => void;
|
|
94
|
+
extendSelectionToTop: () => void;
|
|
95
|
+
extendSelectionBelow: () => void;
|
|
96
|
+
extendSelectionToBottom: () => void;
|
|
97
|
+
/**
|
|
98
|
+
* Move the head of an existing contiguous selection to extend the selection.
|
|
99
|
+
*
|
|
100
|
+
* @param index - The new head of the existing selection.
|
|
101
|
+
*
|
|
102
|
+
* #### Notes
|
|
103
|
+
* If there is no existing selection, the active cell is considered an
|
|
104
|
+
* existing one-cell selection.
|
|
105
|
+
*
|
|
106
|
+
* If the new selection is a single cell, that cell becomes the active cell
|
|
107
|
+
* and all cells are deselected.
|
|
108
|
+
*
|
|
109
|
+
* There is no change if there are no cells (i.e., activeCellIndex is -1).
|
|
110
|
+
*/
|
|
111
|
+
extendContiguousSelectionTo(index: number): void;
|
|
112
|
+
/**
|
|
113
|
+
* Get the head and anchor of a contiguous cell selection.
|
|
114
|
+
*
|
|
115
|
+
* The head of a contiguous selection is always the active cell.
|
|
116
|
+
*
|
|
117
|
+
* If there are no cells selected, `{head: null, anchor: null}` is returned.
|
|
118
|
+
*
|
|
119
|
+
* Throws an error if the currently selected cells do not form a contiguous
|
|
120
|
+
* selection.
|
|
121
|
+
*/
|
|
122
|
+
getContiguousSelection(): {
|
|
123
|
+
head: number;
|
|
124
|
+
anchor: number;
|
|
125
|
+
} | {
|
|
126
|
+
head: null;
|
|
127
|
+
anchor: null;
|
|
128
|
+
};
|
|
129
|
+
enableOutputScrolling: (cell: CellView) => void;
|
|
130
|
+
disableOutputScrolling: (cell: CellView) => void;
|
|
131
|
+
disposed: boolean;
|
|
132
|
+
dispose(): void;
|
|
133
|
+
enterCommandMode: (isInLibro: boolean) => void;
|
|
134
|
+
enterEditMode: () => void;
|
|
135
|
+
moveCursorDown: (cell: CellView) => void;
|
|
136
|
+
moveCursorUp: (cell: CellView) => void;
|
|
137
|
+
mergeCellBelow: (cell: CellView) => Promise<void>;
|
|
138
|
+
mergeCellAbove: (cell: CellView) => Promise<void>;
|
|
139
|
+
mergeCells: (cell: CellView) => Promise<void>;
|
|
140
|
+
selectAllCell: () => void;
|
|
141
|
+
splitCell: (cell: CellView) => Promise<void>;
|
|
142
|
+
restartClearOutput: () => void;
|
|
143
|
+
closeAndShutdown: () => void;
|
|
144
|
+
/**
|
|
145
|
+
* Set the markdown header level of a cell.
|
|
146
|
+
*/
|
|
147
|
+
setMarkdownHeader: (cell: CellView, level: number) => Promise<void>;
|
|
148
|
+
collapseCell(cell: CellView, collspse: boolean): void;
|
|
149
|
+
save(): void;
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=libro-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libro-view.d.ts","sourceRoot":"","sources":["../src/libro-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAyB,MAAM,mBAAmB,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAc,oBAAoB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,EAEL,WAAW,EACX,QAAQ,EAIT,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,EAAE,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI1E,OAAO,EACL,WAAW,EAIZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAe7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,eAA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