@theia/notebook 1.41.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.
Files changed (188) hide show
  1. package/README.md +30 -0
  2. package/lib/browser/contributions/notebook-actions-contribution.d.ts +27 -0
  3. package/lib/browser/contributions/notebook-actions-contribution.d.ts.map +1 -0
  4. package/lib/browser/contributions/notebook-actions-contribution.js +172 -0
  5. package/lib/browser/contributions/notebook-actions-contribution.js.map +1 -0
  6. package/lib/browser/contributions/notebook-cell-actions-contribution.d.ts +30 -0
  7. package/lib/browser/contributions/notebook-cell-actions-contribution.d.ts.map +1 -0
  8. package/lib/browser/contributions/notebook-cell-actions-contribution.js +200 -0
  9. package/lib/browser/contributions/notebook-cell-actions-contribution.js.map +1 -0
  10. package/lib/browser/contributions/notebook-color-contribution.d.ts +6 -0
  11. package/lib/browser/contributions/notebook-color-contribution.d.ts.map +1 -0
  12. package/lib/browser/contributions/notebook-color-contribution.js +252 -0
  13. package/lib/browser/contributions/notebook-color-contribution.js.map +1 -0
  14. package/lib/browser/contributions/notebook-context-keys.d.ts +38 -0
  15. package/lib/browser/contributions/notebook-context-keys.d.ts.map +1 -0
  16. package/lib/browser/contributions/notebook-context-keys.js +95 -0
  17. package/lib/browser/contributions/notebook-context-keys.js.map +1 -0
  18. package/lib/browser/index.d.ts +11 -0
  19. package/lib/browser/index.d.ts.map +1 -0
  20. package/lib/browser/index.js +38 -0
  21. package/lib/browser/index.js.map +1 -0
  22. package/lib/browser/notebook-cell-resource-resolver.d.ts +20 -0
  23. package/lib/browser/notebook-cell-resource-resolver.d.ts.map +1 -0
  24. package/lib/browser/notebook-cell-resource-resolver.js +75 -0
  25. package/lib/browser/notebook-cell-resource-resolver.js.map +1 -0
  26. package/lib/browser/notebook-editor-widget-factory.d.ts +17 -0
  27. package/lib/browser/notebook-editor-widget-factory.d.ts.map +1 -0
  28. package/lib/browser/notebook-editor-widget-factory.js +78 -0
  29. package/lib/browser/notebook-editor-widget-factory.js.map +1 -0
  30. package/lib/browser/notebook-editor-widget.d.ts +49 -0
  31. package/lib/browser/notebook-editor-widget.d.ts.map +1 -0
  32. package/lib/browser/notebook-editor-widget.js +150 -0
  33. package/lib/browser/notebook-editor-widget.js.map +1 -0
  34. package/lib/browser/notebook-frontend-module.d.ts +5 -0
  35. package/lib/browser/notebook-frontend-module.d.ts.map +1 -0
  36. package/lib/browser/notebook-frontend-module.js +81 -0
  37. package/lib/browser/notebook-frontend-module.js.map +1 -0
  38. package/lib/browser/notebook-open-handler.d.ts +18 -0
  39. package/lib/browser/notebook-open-handler.d.ts.map +1 -0
  40. package/lib/browser/notebook-open-handler.js +94 -0
  41. package/lib/browser/notebook-open-handler.js.map +1 -0
  42. package/lib/browser/notebook-renderer-registry.d.ts +17 -0
  43. package/lib/browser/notebook-renderer-registry.d.ts.map +1 -0
  44. package/lib/browser/notebook-renderer-registry.js +63 -0
  45. package/lib/browser/notebook-renderer-registry.js.map +1 -0
  46. package/lib/browser/notebook-type-registry.d.ts +7 -0
  47. package/lib/browser/notebook-type-registry.d.ts.map +1 -0
  48. package/lib/browser/notebook-type-registry.js +42 -0
  49. package/lib/browser/notebook-type-registry.js.map +1 -0
  50. package/lib/browser/renderers/cell-output-webview.d.ts +12 -0
  51. package/lib/browser/renderers/cell-output-webview.d.ts.map +1 -0
  52. package/lib/browser/renderers/cell-output-webview.js +20 -0
  53. package/lib/browser/renderers/cell-output-webview.js.map +1 -0
  54. package/lib/browser/service/notebook-cell-context-manager.d.ts +16 -0
  55. package/lib/browser/service/notebook-cell-context-manager.d.ts.map +1 -0
  56. package/lib/browser/service/notebook-cell-context-manager.js +83 -0
  57. package/lib/browser/service/notebook-cell-context-manager.js.map +1 -0
  58. package/lib/browser/service/notebook-editor-service.d.ts +22 -0
  59. package/lib/browser/service/notebook-editor-service.d.ts.map +1 -0
  60. package/lib/browser/service/notebook-editor-service.js +95 -0
  61. package/lib/browser/service/notebook-editor-service.js.map +1 -0
  62. package/lib/browser/service/notebook-execution-service.d.ts +25 -0
  63. package/lib/browser/service/notebook-execution-service.d.ts.map +1 -0
  64. package/lib/browser/service/notebook-execution-service.js +140 -0
  65. package/lib/browser/service/notebook-execution-service.js.map +1 -0
  66. package/lib/browser/service/notebook-execution-state-service.d.ts +94 -0
  67. package/lib/browser/service/notebook-execution-state-service.d.ts.map +1 -0
  68. package/lib/browser/service/notebook-execution-state-service.js +250 -0
  69. package/lib/browser/service/notebook-execution-state-service.js.map +1 -0
  70. package/lib/browser/service/notebook-kernel-history-service.d.ts +23 -0
  71. package/lib/browser/service/notebook-kernel-history-service.d.ts.map +1 -0
  72. package/lib/browser/service/notebook-kernel-history-service.js +109 -0
  73. package/lib/browser/service/notebook-kernel-history-service.js.map +1 -0
  74. package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts +65 -0
  75. package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts.map +1 -0
  76. package/lib/browser/service/notebook-kernel-quick-pick-service.js +430 -0
  77. package/lib/browser/service/notebook-kernel-quick-pick-service.js.map +1 -0
  78. package/lib/browser/service/notebook-kernel-service.d.ts +112 -0
  79. package/lib/browser/service/notebook-kernel-service.d.ts.map +1 -0
  80. package/lib/browser/service/notebook-kernel-service.js +274 -0
  81. package/lib/browser/service/notebook-kernel-service.js.map +1 -0
  82. package/lib/browser/service/notebook-model-resolver-service.d.ts +26 -0
  83. package/lib/browser/service/notebook-model-resolver-service.d.ts.map +1 -0
  84. package/lib/browser/service/notebook-model-resolver-service.js +139 -0
  85. package/lib/browser/service/notebook-model-resolver-service.js.map +1 -0
  86. package/lib/browser/service/notebook-renderer-messaging-service.d.ts +30 -0
  87. package/lib/browser/service/notebook-renderer-messaging-service.d.ts.map +1 -0
  88. package/lib/browser/service/notebook-renderer-messaging-service.js +94 -0
  89. package/lib/browser/service/notebook-renderer-messaging-service.js.map +1 -0
  90. package/lib/browser/service/notebook-service.d.ts +64 -0
  91. package/lib/browser/service/notebook-service.d.ts.map +1 -0
  92. package/lib/browser/service/notebook-service.js +162 -0
  93. package/lib/browser/service/notebook-service.js.map +1 -0
  94. package/lib/browser/view/notebook-cell-editor.d.ts +26 -0
  95. package/lib/browser/view/notebook-cell-editor.d.ts.map +1 -0
  96. package/lib/browser/view/notebook-cell-editor.js +79 -0
  97. package/lib/browser/view/notebook-cell-editor.js.map +1 -0
  98. package/lib/browser/view/notebook-cell-list-view.d.ts +43 -0
  99. package/lib/browser/view/notebook-cell-list-view.d.ts.map +1 -0
  100. package/lib/browser/view/notebook-cell-list-view.js +111 -0
  101. package/lib/browser/view/notebook-cell-list-view.js.map +1 -0
  102. package/lib/browser/view/notebook-cell-toolbar-factory.d.ts +25 -0
  103. package/lib/browser/view/notebook-cell-toolbar-factory.d.ts.map +1 -0
  104. package/lib/browser/view/notebook-cell-toolbar-factory.js +93 -0
  105. package/lib/browser/view/notebook-cell-toolbar-factory.js.map +1 -0
  106. package/lib/browser/view/notebook-cell-toolbar.d.ts +25 -0
  107. package/lib/browser/view/notebook-cell-toolbar.d.ts.map +1 -0
  108. package/lib/browser/view/notebook-cell-toolbar.js +50 -0
  109. package/lib/browser/view/notebook-cell-toolbar.js.map +1 -0
  110. package/lib/browser/view/notebook-code-cell-view.d.ts +47 -0
  111. package/lib/browser/view/notebook-code-cell-view.d.ts.map +1 -0
  112. package/lib/browser/view/notebook-code-cell-view.js +166 -0
  113. package/lib/browser/view/notebook-code-cell-view.js.map +1 -0
  114. package/lib/browser/view/notebook-main-toolbar.d.ts +31 -0
  115. package/lib/browser/view/notebook-main-toolbar.d.ts.map +1 -0
  116. package/lib/browser/view/notebook-main-toolbar.js +118 -0
  117. package/lib/browser/view/notebook-main-toolbar.js.map +1 -0
  118. package/lib/browser/view/notebook-markdown-cell-view.d.ts +12 -0
  119. package/lib/browser/view/notebook-markdown-cell-view.d.ts.map +1 -0
  120. package/lib/browser/view/notebook-markdown-cell-view.js +70 -0
  121. package/lib/browser/view/notebook-markdown-cell-view.js.map +1 -0
  122. package/lib/browser/view-model/notebook-cell-model.d.ts +74 -0
  123. package/lib/browser/view-model/notebook-cell-model.d.ts.map +1 -0
  124. package/lib/browser/view-model/notebook-cell-model.js +226 -0
  125. package/lib/browser/view-model/notebook-cell-model.js.map +1 -0
  126. package/lib/browser/view-model/notebook-cell-output-model.d.ts +19 -0
  127. package/lib/browser/view-model/notebook-cell-output-model.d.ts.map +1 -0
  128. package/lib/browser/view-model/notebook-cell-output-model.js +61 -0
  129. package/lib/browser/view-model/notebook-cell-output-model.js.map +1 -0
  130. package/lib/browser/view-model/notebook-model.d.ts +59 -0
  131. package/lib/browser/view-model/notebook-model.d.ts.map +1 -0
  132. package/lib/browser/view-model/notebook-model.js +315 -0
  133. package/lib/browser/view-model/notebook-model.js.map +1 -0
  134. package/lib/common/index.d.ts +3 -0
  135. package/lib/common/index.d.ts.map +1 -0
  136. package/lib/common/index.js +30 -0
  137. package/lib/common/index.js.map +1 -0
  138. package/lib/common/notebook-common.d.ts +344 -0
  139. package/lib/common/notebook-common.d.ts.map +1 -0
  140. package/lib/common/notebook-common.js +112 -0
  141. package/lib/common/notebook-common.js.map +1 -0
  142. package/lib/common/notebook-protocol.d.ts +21 -0
  143. package/lib/common/notebook-protocol.d.ts.map +1 -0
  144. package/lib/common/notebook-protocol.js +18 -0
  145. package/lib/common/notebook-protocol.js.map +1 -0
  146. package/lib/common/notebook-range.d.ts +14 -0
  147. package/lib/common/notebook-range.d.ts.map +1 -0
  148. package/lib/common/notebook-range.js +18 -0
  149. package/lib/common/notebook-range.js.map +1 -0
  150. package/package.json +52 -0
  151. package/src/browser/contributions/notebook-actions-contribution.ts +171 -0
  152. package/src/browser/contributions/notebook-cell-actions-contribution.ts +204 -0
  153. package/src/browser/contributions/notebook-color-contribution.ts +268 -0
  154. package/src/browser/contributions/notebook-context-keys.ts +99 -0
  155. package/src/browser/index.ts +26 -0
  156. package/src/browser/notebook-cell-resource-resolver.ts +79 -0
  157. package/src/browser/notebook-editor-widget-factory.ts +70 -0
  158. package/src/browser/notebook-editor-widget.tsx +157 -0
  159. package/src/browser/notebook-frontend-module.ts +95 -0
  160. package/src/browser/notebook-open-handler.ts +87 -0
  161. package/src/browser/notebook-renderer-registry.ts +62 -0
  162. package/src/browser/notebook-type-registry.ts +30 -0
  163. package/src/browser/renderers/cell-output-webview.ts +32 -0
  164. package/src/browser/service/notebook-cell-context-manager.ts +70 -0
  165. package/src/browser/service/notebook-editor-service.ts +86 -0
  166. package/src/browser/service/notebook-execution-service.ts +139 -0
  167. package/src/browser/service/notebook-execution-state-service.ts +322 -0
  168. package/src/browser/service/notebook-kernel-history-service.ts +109 -0
  169. package/src/browser/service/notebook-kernel-quick-pick-service.ts +494 -0
  170. package/src/browser/service/notebook-kernel-service.ts +357 -0
  171. package/src/browser/service/notebook-model-resolver-service.ts +141 -0
  172. package/src/browser/service/notebook-renderer-messaging-service.ts +111 -0
  173. package/src/browser/service/notebook-service.ts +178 -0
  174. package/src/browser/style/index.css +236 -0
  175. package/src/browser/view/notebook-cell-editor.tsx +97 -0
  176. package/src/browser/view/notebook-cell-list-view.tsx +171 -0
  177. package/src/browser/view/notebook-cell-toolbar-factory.tsx +91 -0
  178. package/src/browser/view/notebook-cell-toolbar.tsx +70 -0
  179. package/src/browser/view/notebook-code-cell-view.tsx +190 -0
  180. package/src/browser/view/notebook-main-toolbar.tsx +115 -0
  181. package/src/browser/view/notebook-markdown-cell-view.tsx +73 -0
  182. package/src/browser/view-model/notebook-cell-model.ts +271 -0
  183. package/src/browser/view-model/notebook-cell-output-model.ts +69 -0
  184. package/src/browser/view-model/notebook-model.ts +372 -0
  185. package/src/common/index.ts +18 -0
  186. package/src/common/notebook-common.ts +462 -0
  187. package/src/common/notebook-protocol.ts +35 -0
  188. package/src/common/notebook-range.ts +30 -0
@@ -0,0 +1,344 @@
1
+ import { CancellationToken, Command, Event, URI } from '@theia/core';
2
+ import { MarkdownString } from '@theia/core/lib/common/markdown-rendering/markdown-string';
3
+ import { BinaryBuffer } from '@theia/core/lib/common/buffer';
4
+ import { UriComponents } from '@theia/core/lib/common/uri';
5
+ import { CellRange } from './notebook-range';
6
+ export declare enum CellKind {
7
+ Markup = 1,
8
+ Code = 2
9
+ }
10
+ export interface NotebookCellMetadata {
11
+ /**
12
+ * custom metadata
13
+ */
14
+ [key: string]: unknown;
15
+ }
16
+ export interface NotebookCellInternalMetadata {
17
+ executionId?: string;
18
+ executionOrder?: number;
19
+ lastRunSuccess?: boolean;
20
+ runStartTime?: number;
21
+ runStartTimeAdjustment?: number;
22
+ runEndTime?: number;
23
+ renderDuration?: {
24
+ [key: string]: number;
25
+ };
26
+ }
27
+ export declare type NotebookDocumentMetadata = Record<string, unknown>;
28
+ export interface NotebookCellStatusBarItem {
29
+ readonly alignment: CellStatusbarAlignment;
30
+ readonly priority?: number;
31
+ readonly text: string;
32
+ readonly tooltip?: string | MarkdownString;
33
+ readonly command?: string | Command;
34
+ readonly opacity?: string;
35
+ readonly onlyShowWhenActive?: boolean;
36
+ }
37
+ export declare const enum CellStatusbarAlignment {
38
+ Left = 1,
39
+ Right = 2
40
+ }
41
+ export declare type TransientCellMetadata = {
42
+ readonly [K in keyof NotebookCellMetadata]?: boolean;
43
+ };
44
+ export declare type CellContentMetadata = {
45
+ readonly [K in keyof NotebookCellMetadata]?: boolean;
46
+ };
47
+ export declare type TransientDocumentMetadata = {
48
+ readonly [K in keyof NotebookDocumentMetadata]?: boolean;
49
+ };
50
+ export interface TransientOptions {
51
+ readonly transientOutputs: boolean;
52
+ readonly transientCellMetadata: TransientCellMetadata;
53
+ readonly transientDocumentMetadata: TransientDocumentMetadata;
54
+ }
55
+ export interface NotebookExtensionDescription {
56
+ readonly id: string;
57
+ readonly location: string | undefined;
58
+ }
59
+ export interface CellOutputItem {
60
+ readonly mime: string;
61
+ readonly data: BinaryBuffer;
62
+ }
63
+ export interface CellOutput {
64
+ outputId: string;
65
+ outputs: CellOutputItem[];
66
+ metadata?: Record<string, unknown>;
67
+ }
68
+ export interface NotebookCellCollapseState {
69
+ inputCollapsed?: boolean;
70
+ outputCollapsed?: boolean;
71
+ }
72
+ export interface NotebookCell {
73
+ readonly uri: URI;
74
+ handle: number;
75
+ language: string;
76
+ cellKind: CellKind;
77
+ outputs: CellOutput[];
78
+ metadata: NotebookCellMetadata;
79
+ internalMetadata: NotebookCellInternalMetadata;
80
+ textBuffer: string;
81
+ onDidChangeOutputs?: Event<NotebookCellOutputsSplice>;
82
+ onDidChangeOutputItems?: Event<void>;
83
+ onDidChangeLanguage: Event<string>;
84
+ onDidChangeMetadata: Event<void>;
85
+ onDidChangeInternalMetadata: Event<CellInternalMetadataChangedEvent>;
86
+ }
87
+ export interface CellData {
88
+ source: string;
89
+ language: string;
90
+ cellKind: CellKind;
91
+ outputs: CellOutput[];
92
+ metadata?: NotebookCellMetadata;
93
+ internalMetadata?: NotebookCellInternalMetadata;
94
+ collapseState?: NotebookCellCollapseState;
95
+ }
96
+ export interface CellReplaceEdit {
97
+ editType: CellEditType.Replace;
98
+ index: number;
99
+ count: number;
100
+ cells: CellData[];
101
+ }
102
+ export interface NotebookDocumentMetadataEdit {
103
+ editType: CellEditType.DocumentMetadata;
104
+ metadata: NotebookDocumentMetadata;
105
+ }
106
+ export interface NotebookData {
107
+ readonly cells: CellData[];
108
+ readonly metadata: NotebookDocumentMetadata;
109
+ }
110
+ export interface NotebookContributionData {
111
+ extension?: string;
112
+ providerDisplayName: string;
113
+ displayName: string;
114
+ filenamePattern: (string)[];
115
+ exclusive: boolean;
116
+ }
117
+ export interface NotebookCellStatusBarItemList {
118
+ items: NotebookCellStatusBarItem[];
119
+ dispose?(): void;
120
+ }
121
+ export interface NotebookCellStatusBarItemProvider {
122
+ viewType: string;
123
+ onDidChangeStatusBarItems?: Event<void>;
124
+ provideCellStatusBarItems(uri: UriComponents, index: number, token: CancellationToken): Promise<NotebookCellStatusBarItemList | undefined>;
125
+ }
126
+ export interface NotebookCellOutputsSplice {
127
+ start: number;
128
+ deleteCount: number;
129
+ newOutputs: CellOutput[];
130
+ }
131
+ export interface CellInternalMetadataChangedEvent {
132
+ readonly lastRunSuccessChanged?: boolean;
133
+ }
134
+ export declare type NotebookCellTextModelSplice<T> = [
135
+ start: number,
136
+ deleteCount: number,
137
+ newItems: T[]
138
+ ];
139
+ export declare enum NotebookCellsChangeType {
140
+ ModelChange = 1,
141
+ Move = 2,
142
+ ChangeCellLanguage = 5,
143
+ Initialize = 6,
144
+ ChangeCellMetadata = 7,
145
+ Output = 8,
146
+ OutputItem = 9,
147
+ ChangeCellContent = 10,
148
+ ChangeDocumentMetadata = 11,
149
+ ChangeCellInternalMetadata = 12,
150
+ Unknown = 100
151
+ }
152
+ export declare enum SelectionStateType {
153
+ Handle = 0,
154
+ Index = 1
155
+ }
156
+ export interface SelectionHandleState {
157
+ kind: SelectionStateType.Handle;
158
+ primary: number | null;
159
+ selections: number[];
160
+ }
161
+ export interface SelectionIndexState {
162
+ kind: SelectionStateType.Index;
163
+ focus: CellRange;
164
+ selections: CellRange[];
165
+ }
166
+ export declare type SelectionState = SelectionHandleState | SelectionIndexState;
167
+ export interface NotebookTextModelChangedEvent {
168
+ readonly rawEvents: NotebookRawContentEvent[];
169
+ readonly synchronous?: boolean;
170
+ readonly endSelectionState?: SelectionState;
171
+ }
172
+ export interface NotebookCellsInitializeEvent<T> {
173
+ readonly kind: NotebookCellsChangeType.Initialize;
174
+ readonly changes: NotebookCellTextModelSplice<T>[];
175
+ }
176
+ export interface NotebookCellsChangeLanguageEvent {
177
+ readonly kind: NotebookCellsChangeType.ChangeCellLanguage;
178
+ readonly index: number;
179
+ readonly language: string;
180
+ }
181
+ export interface NotebookCellsModelChangedEvent<T> {
182
+ readonly kind: NotebookCellsChangeType.ModelChange;
183
+ readonly changes: NotebookCellTextModelSplice<T>[];
184
+ }
185
+ export interface NotebookCellsModelMoveEvent<T> {
186
+ readonly kind: NotebookCellsChangeType.Move;
187
+ readonly index: number;
188
+ readonly length: number;
189
+ readonly newIdx: number;
190
+ readonly cells: T[];
191
+ }
192
+ export interface NotebookOutputChangedEvent {
193
+ readonly kind: NotebookCellsChangeType.Output;
194
+ readonly index: number;
195
+ readonly outputs: CellOutput[];
196
+ readonly append: boolean;
197
+ }
198
+ export interface NotebookOutputItemChangedEvent {
199
+ readonly kind: NotebookCellsChangeType.OutputItem;
200
+ readonly index: number;
201
+ readonly outputId: string;
202
+ readonly outputItems: CellOutputItem[];
203
+ readonly append: boolean;
204
+ }
205
+ export interface NotebookCellsChangeMetadataEvent {
206
+ readonly kind: NotebookCellsChangeType.ChangeCellMetadata;
207
+ readonly index: number;
208
+ readonly metadata: NotebookCellMetadata;
209
+ }
210
+ export interface NotebookCellsChangeInternalMetadataEvent {
211
+ readonly kind: NotebookCellsChangeType.ChangeCellInternalMetadata;
212
+ readonly index: number;
213
+ readonly internalMetadata: NotebookCellInternalMetadata;
214
+ }
215
+ export interface NotebookDocumentChangeMetadataEvent {
216
+ readonly kind: NotebookCellsChangeType.ChangeDocumentMetadata;
217
+ readonly metadata: NotebookDocumentMetadata;
218
+ }
219
+ export interface NotebookDocumentUnknownChangeEvent {
220
+ readonly kind: NotebookCellsChangeType.Unknown;
221
+ }
222
+ export interface NotebookCellContentChangeEvent {
223
+ readonly kind: NotebookCellsChangeType.ChangeCellContent;
224
+ readonly index: number;
225
+ }
226
+ export declare type NotebookRawContentEvent = (NotebookCellsInitializeEvent<NotebookCell> | NotebookDocumentChangeMetadataEvent | NotebookCellContentChangeEvent | NotebookCellsModelChangedEvent<NotebookCell> | NotebookCellsModelMoveEvent<NotebookCell> | NotebookOutputChangedEvent | NotebookOutputItemChangedEvent | NotebookCellsChangeLanguageEvent | NotebookCellsChangeMetadataEvent | NotebookCellsChangeInternalMetadataEvent | NotebookDocumentUnknownChangeEvent);
227
+ export interface NotebookModelChangedEvent {
228
+ readonly rawEvents: NotebookRawContentEvent[];
229
+ readonly versionId: number;
230
+ }
231
+ export interface NotebookModelWillAddRemoveEvent {
232
+ readonly rawEvent: NotebookCellsModelChangedEvent<CellData>;
233
+ }
234
+ export declare enum NotebookCellExecutionState {
235
+ Unconfirmed = 1,
236
+ Pending = 2,
237
+ Executing = 3
238
+ }
239
+ export declare enum CellExecutionUpdateType {
240
+ Output = 1,
241
+ OutputItems = 2,
242
+ ExecutionState = 3
243
+ }
244
+ export interface CellExecuteOutputEdit {
245
+ editType: CellExecutionUpdateType.Output;
246
+ cellHandle: number;
247
+ append?: boolean;
248
+ outputs: CellOutput[];
249
+ }
250
+ export interface CellExecuteOutputItemEdit {
251
+ editType: CellExecutionUpdateType.OutputItems;
252
+ append?: boolean;
253
+ items: CellOutputItem[];
254
+ }
255
+ export interface CellExecutionStateUpdateDto {
256
+ editType: CellExecutionUpdateType.ExecutionState;
257
+ executionOrder?: number;
258
+ runStartTime?: number;
259
+ didPause?: boolean;
260
+ isPaused?: boolean;
261
+ }
262
+ export interface CellOutputEdit {
263
+ editType: CellEditType.Output;
264
+ index: number;
265
+ outputs: CellOutput[];
266
+ append?: boolean;
267
+ }
268
+ export interface CellOutputEditByHandle {
269
+ editType: CellEditType.Output;
270
+ handle: number;
271
+ outputs: CellOutput[];
272
+ append?: boolean;
273
+ }
274
+ export interface CellOutputItemEdit {
275
+ editType: CellEditType.OutputItems;
276
+ items: CellOutputItem[];
277
+ append?: boolean;
278
+ }
279
+ export interface CellMetadataEdit {
280
+ editType: CellEditType.Metadata;
281
+ index: number;
282
+ metadata: NotebookCellMetadata;
283
+ }
284
+ export interface CellLanguageEdit {
285
+ editType: CellEditType.CellLanguage;
286
+ index: number;
287
+ language: string;
288
+ }
289
+ export interface DocumentMetadataEdit {
290
+ editType: CellEditType.DocumentMetadata;
291
+ metadata: NotebookDocumentMetadata;
292
+ }
293
+ export interface CellMoveEdit {
294
+ editType: CellEditType.Move;
295
+ index: number;
296
+ length: number;
297
+ newIdx: number;
298
+ }
299
+ export declare const enum CellEditType {
300
+ Replace = 1,
301
+ Output = 2,
302
+ Metadata = 3,
303
+ CellLanguage = 4,
304
+ DocumentMetadata = 5,
305
+ Move = 6,
306
+ OutputItems = 7,
307
+ PartialMetadata = 8,
308
+ PartialInternalMetadata = 9
309
+ }
310
+ export declare type ImmediateCellEditOperation = CellOutputEditByHandle | CellOutputItemEdit | CellPartialInternalMetadataEditByHandle;
311
+ export declare type CellEditOperation = ImmediateCellEditOperation | CellReplaceEdit | CellOutputEdit | CellMetadataEdit | CellLanguageEdit | DocumentMetadataEdit | CellMoveEdit;
312
+ export declare type NullablePartialNotebookCellInternalMetadata = {
313
+ [Key in keyof Partial<NotebookCellInternalMetadata>]: NotebookCellInternalMetadata[Key] | null;
314
+ };
315
+ export interface CellPartialInternalMetadataEditByHandle {
316
+ editType: CellEditType.PartialInternalMetadata;
317
+ handle: number;
318
+ internalMetadata: NullablePartialNotebookCellInternalMetadata;
319
+ }
320
+ export interface NotebookKernelSourceAction {
321
+ readonly label: string;
322
+ readonly description?: string;
323
+ readonly detail?: string;
324
+ readonly command?: string | Command;
325
+ readonly documentation?: UriComponents | string;
326
+ }
327
+ /**
328
+ * Whether the provided mime type is a text stream like `stdout`, `stderr`.
329
+ */
330
+ export declare function isTextStreamMime(mimeType: string): boolean;
331
+ export declare namespace CellUri {
332
+ const scheme = "vscode-notebook-cell";
333
+ function generate(notebook: URI, handle: number): URI;
334
+ function parse(cell: URI): {
335
+ notebook: URI;
336
+ handle: number;
337
+ } | undefined;
338
+ function generateCellPropertyUri(notebook: URI, handle: number, cellScheme: string): URI;
339
+ function parseCellPropertyUri(uri: URI, propertyScheme: string): {
340
+ notebook: URI;
341
+ handle: number;
342
+ } | undefined;
343
+ }
344
+ //# sourceMappingURL=notebook-common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notebook-common.d.ts","sourceRoot":"","sources":["../../src/common/notebook-common.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,2DAA2D,CAAC;AAC3F,OAAO,E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,SAAS,CAMpH;CACJ"}
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2023 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CellUri = exports.isTextStreamMime = exports.CellExecutionUpdateType = exports.NotebookCellExecutionState = exports.SelectionStateType = exports.NotebookCellsChangeType = exports.CellKind = void 0;
19
+ const buffer_1 = require("@theia/core/lib/common/buffer");
20
+ var CellKind;
21
+ (function (CellKind) {
22
+ CellKind[CellKind["Markup"] = 1] = "Markup";
23
+ CellKind[CellKind["Code"] = 2] = "Code";
24
+ })(CellKind = exports.CellKind || (exports.CellKind = {}));
25
+ ;
26
+ var NotebookCellsChangeType;
27
+ (function (NotebookCellsChangeType) {
28
+ NotebookCellsChangeType[NotebookCellsChangeType["ModelChange"] = 1] = "ModelChange";
29
+ NotebookCellsChangeType[NotebookCellsChangeType["Move"] = 2] = "Move";
30
+ NotebookCellsChangeType[NotebookCellsChangeType["ChangeCellLanguage"] = 5] = "ChangeCellLanguage";
31
+ NotebookCellsChangeType[NotebookCellsChangeType["Initialize"] = 6] = "Initialize";
32
+ NotebookCellsChangeType[NotebookCellsChangeType["ChangeCellMetadata"] = 7] = "ChangeCellMetadata";
33
+ NotebookCellsChangeType[NotebookCellsChangeType["Output"] = 8] = "Output";
34
+ NotebookCellsChangeType[NotebookCellsChangeType["OutputItem"] = 9] = "OutputItem";
35
+ NotebookCellsChangeType[NotebookCellsChangeType["ChangeCellContent"] = 10] = "ChangeCellContent";
36
+ NotebookCellsChangeType[NotebookCellsChangeType["ChangeDocumentMetadata"] = 11] = "ChangeDocumentMetadata";
37
+ NotebookCellsChangeType[NotebookCellsChangeType["ChangeCellInternalMetadata"] = 12] = "ChangeCellInternalMetadata";
38
+ // ChangeCellMime = 13,
39
+ NotebookCellsChangeType[NotebookCellsChangeType["Unknown"] = 100] = "Unknown";
40
+ })(NotebookCellsChangeType = exports.NotebookCellsChangeType || (exports.NotebookCellsChangeType = {}));
41
+ var SelectionStateType;
42
+ (function (SelectionStateType) {
43
+ SelectionStateType[SelectionStateType["Handle"] = 0] = "Handle";
44
+ SelectionStateType[SelectionStateType["Index"] = 1] = "Index";
45
+ })(SelectionStateType = exports.SelectionStateType || (exports.SelectionStateType = {}));
46
+ ;
47
+ ;
48
+ ;
49
+ var NotebookCellExecutionState;
50
+ (function (NotebookCellExecutionState) {
51
+ NotebookCellExecutionState[NotebookCellExecutionState["Unconfirmed"] = 1] = "Unconfirmed";
52
+ NotebookCellExecutionState[NotebookCellExecutionState["Pending"] = 2] = "Pending";
53
+ NotebookCellExecutionState[NotebookCellExecutionState["Executing"] = 3] = "Executing";
54
+ })(NotebookCellExecutionState = exports.NotebookCellExecutionState || (exports.NotebookCellExecutionState = {}));
55
+ var CellExecutionUpdateType;
56
+ (function (CellExecutionUpdateType) {
57
+ CellExecutionUpdateType[CellExecutionUpdateType["Output"] = 1] = "Output";
58
+ CellExecutionUpdateType[CellExecutionUpdateType["OutputItems"] = 2] = "OutputItems";
59
+ CellExecutionUpdateType[CellExecutionUpdateType["ExecutionState"] = 3] = "ExecutionState";
60
+ })(CellExecutionUpdateType = exports.CellExecutionUpdateType || (exports.CellExecutionUpdateType = {}));
61
+ /**
62
+ * Whether the provided mime type is a text stream like `stdout`, `stderr`.
63
+ */
64
+ function isTextStreamMime(mimeType) {
65
+ return ['application/vnd.code.notebook.stdout', 'application/vnd.code.notebook.stderr'].includes(mimeType);
66
+ }
67
+ exports.isTextStreamMime = isTextStreamMime;
68
+ var CellUri;
69
+ (function (CellUri) {
70
+ CellUri.scheme = 'vscode-notebook-cell';
71
+ const _lengths = ['W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f'];
72
+ const _padRegexp = new RegExp(`^[${_lengths.join('')}]+`);
73
+ const _radix = 7;
74
+ function generate(notebook, handle) {
75
+ const s = handle.toString(_radix);
76
+ const p = s.length < _lengths.length ? _lengths[s.length - 1] : 'z';
77
+ const fragment = `${p}${s}s${Buffer.from(buffer_1.BinaryBuffer.fromString(notebook.scheme).buffer).toString('base64')} `;
78
+ return notebook.withScheme(CellUri.scheme).withFragment(fragment);
79
+ }
80
+ CellUri.generate = generate;
81
+ function parse(cell) {
82
+ if (cell.scheme !== CellUri.scheme) {
83
+ return undefined;
84
+ }
85
+ const idx = cell.fragment.indexOf('s');
86
+ if (idx < 0) {
87
+ return undefined;
88
+ }
89
+ const handle = parseInt(cell.fragment.substring(0, idx).replace(_padRegexp, ''), _radix);
90
+ const parsedScheme = Buffer.from(cell.fragment.substring(idx + 1), 'base64').toString();
91
+ if (isNaN(handle)) {
92
+ return undefined;
93
+ }
94
+ return {
95
+ handle,
96
+ notebook: cell.withScheme(parsedScheme).withoutFragment()
97
+ };
98
+ }
99
+ CellUri.parse = parse;
100
+ function generateCellPropertyUri(notebook, handle, cellScheme) {
101
+ return CellUri.generate(notebook, handle).withScheme(cellScheme);
102
+ }
103
+ CellUri.generateCellPropertyUri = generateCellPropertyUri;
104
+ function parseCellPropertyUri(uri, propertyScheme) {
105
+ if (uri.scheme !== propertyScheme) {
106
+ return undefined;
107
+ }
108
+ return CellUri.parse(uri.withScheme(CellUri.scheme));
109
+ }
110
+ CellUri.parseCellPropertyUri = parseCellPropertyUri;
111
+ })(CellUri = exports.CellUri || (exports.CellUri = {}));
112
+ //# sourceMappingURL=notebook-common.js.map
@@ -0,0 +1 @@
1
+ {"version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AAP,eAAO,KAAP,eAAO,QAkDvB"}
@@ -0,0 +1,21 @@
1
+ export interface NotebookTypeDescriptor {
2
+ readonly type: string;
3
+ readonly displayName: string;
4
+ readonly priority?: string | undefined;
5
+ readonly selector?: readonly NotebookFileSelector[];
6
+ }
7
+ export interface NotebookFileSelector {
8
+ readonly filenamePattern?: string;
9
+ readonly excludeFileNamePattern?: string;
10
+ }
11
+ export interface NotebookRendererDescriptor {
12
+ readonly id: string;
13
+ readonly displayName: string;
14
+ readonly mimeTypes: string[];
15
+ readonly entrypoint: string | {
16
+ readonly extends: string;
17
+ readonly path: string;
18
+ };
19
+ readonly requiresMessaging?: 'always' | 'optional' | 'never';
20
+ }
21
+ //# sourceMappingURL=notebook-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notebook-protocol.d.ts","sourceRoot":"","sources":["../../src/common/notebook-protocol.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,sBAAsB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACvD;AAED,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CAC5C;AAED,MAAM,WAAW,0BAA0B;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAClF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAA;CAC/D"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2023 Typefox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=notebook-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notebook-protocol.js","sourceRoot":"","sources":["../../src/common/notebook-protocol.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * [start, end]
3
+ */
4
+ export interface CellRange {
5
+ /**
6
+ * zero based index
7
+ */
8
+ start: number;
9
+ /**
10
+ * zero based index
11
+ */
12
+ end: number;
13
+ }
14
+ //# sourceMappingURL=notebook-range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notebook-range.d.ts","sourceRoot":"","sources":["../../src/common/notebook-range.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2023 Typefox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=notebook-range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notebook-range.js","sourceRoot":"","sources":["../../src/common/notebook-range.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@theia/notebook",
3
+ "version": "1.41.0",
4
+ "description": "Theia - Notebook Extension",
5
+ "dependencies": {
6
+ "@theia/core": "1.41.0",
7
+ "@theia/editor": "1.41.0",
8
+ "@theia/filesystem": "1.41.0",
9
+ "@theia/monaco": "1.41.0",
10
+ "uuid": "^8.3.2"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "theiaExtensions": [
16
+ {
17
+ "frontend": "lib/browser/notebook-frontend-module"
18
+ }
19
+ ],
20
+ "keywords": [
21
+ "theia-extension"
22
+ ],
23
+ "license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/eclipse-theia/theia.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/eclipse-theia/theia/issues"
30
+ },
31
+ "homepage": "https://github.com/eclipse-theia/theia",
32
+ "files": [
33
+ "lib",
34
+ "src"
35
+ ],
36
+ "scripts": {
37
+ "build": "theiaext build",
38
+ "clean": "theiaext clean",
39
+ "compile": "theiaext compile",
40
+ "docs": "theiaext docs",
41
+ "lint": "theiaext lint",
42
+ "watch": "theiaext watch"
43
+ },
44
+ "devDependencies": {
45
+ "@theia/ext-scripts": "1.41.0",
46
+ "@types/vscode-notebook-renderer": "^1.72.0"
47
+ },
48
+ "nyc": {
49
+ "extends": "../../configs/nyc.json"
50
+ },
51
+ "gitHead": "180103ad086fc0a5e4e5fc01b5fcb43f06019eb1"
52
+ }