@theia/notebook 1.58.3 → 1.59.0-next.62
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/browser/notebook-editor-widget-factory.d.ts.map +1 -1
- package/lib/browser/notebook-editor-widget-factory.js +10 -1
- package/lib/browser/notebook-editor-widget-factory.js.map +1 -1
- package/lib/browser/notebook-editor-widget.d.ts +2 -0
- package/lib/browser/notebook-editor-widget.d.ts.map +1 -1
- package/lib/browser/notebook-editor-widget.js +10 -0
- package/lib/browser/notebook-editor-widget.js.map +1 -1
- package/lib/browser/notebook-frontend-module.d.ts.map +1 -1
- package/lib/browser/notebook-frontend-module.js +4 -1
- package/lib/browser/notebook-frontend-module.js.map +1 -1
- package/lib/browser/service/notebook-execution-service.d.ts +2 -1
- package/lib/browser/service/notebook-execution-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-execution-service.js +18 -0
- package/lib/browser/service/notebook-execution-service.js.map +1 -1
- package/lib/browser/service/notebook-execution-state-service.d.ts +0 -1
- package/lib/browser/service/notebook-execution-state-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-execution-state-service.js +0 -4
- package/lib/browser/service/notebook-execution-state-service.js.map +1 -1
- package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts +4 -3
- package/lib/browser/service/notebook-kernel-quick-pick-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-kernel-quick-pick-service.js +13 -0
- package/lib/browser/service/notebook-kernel-quick-pick-service.js.map +1 -1
- package/lib/browser/service/notebook-model-resolver-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-model-resolver-service.js +13 -6
- package/lib/browser/service/notebook-model-resolver-service.js.map +1 -1
- package/lib/browser/service/notebook-monaco-text-model-service.d.ts +8 -3
- package/lib/browser/service/notebook-monaco-text-model-service.d.ts.map +1 -1
- package/lib/browser/service/notebook-monaco-text-model-service.js +30 -6
- package/lib/browser/service/notebook-monaco-text-model-service.js.map +1 -1
- package/lib/browser/view/notebook-viewport-service.d.ts +1 -1
- package/lib/browser/view/notebook-viewport-service.d.ts.map +1 -1
- package/lib/browser/view/notebook-viewport-service.js +2 -1
- package/lib/browser/view/notebook-viewport-service.js.map +1 -1
- package/package.json +8 -8
- package/src/browser/notebook-editor-widget-factory.ts +12 -1
- package/src/browser/notebook-editor-widget.tsx +13 -2
- package/src/browser/notebook-frontend-module.ts +5 -2
- package/src/browser/service/notebook-execution-service.ts +20 -2
- package/src/browser/service/notebook-execution-state-service.ts +0 -5
- package/src/browser/service/notebook-kernel-quick-pick-service.ts +14 -6
- package/src/browser/service/notebook-model-resolver-service.ts +13 -6
- package/src/browser/service/notebook-monaco-text-model-service.ts +28 -7
- package/src/browser/style/index.css +35 -13
- package/src/browser/view/notebook-viewport-service.ts +2 -2
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
pointer-events: none;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
35
34
|
.theia-notebook-cell-output-webview {
|
|
36
35
|
padding: 5px 0px;
|
|
37
36
|
margin: 0px 15px 0px 50px;
|
|
@@ -77,7 +76,8 @@
|
|
|
77
76
|
|
|
78
77
|
.theia-notebook-cell-content {
|
|
79
78
|
flex: 1;
|
|
80
|
-
width
|
|
79
|
+
/* needs this set width because of monaco. 56px is sidebar + gap to sidebar */
|
|
80
|
+
width: calc(100% - 56px);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/* Rendered Markdown Content */
|
|
@@ -88,16 +88,16 @@
|
|
|
88
88
|
font-size: var(--theia-notebook-markdown-size);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.theia-notebook-markdown-content
|
|
91
|
+
.theia-notebook-markdown-content > * {
|
|
92
92
|
font-weight: 400;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.theia-notebook-markdown-content
|
|
95
|
+
.theia-notebook-markdown-content > *:first-child {
|
|
96
96
|
margin-top: 0;
|
|
97
97
|
padding-top: 0;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.theia-notebook-markdown-content
|
|
100
|
+
.theia-notebook-markdown-content > *:last-child {
|
|
101
101
|
margin-bottom: 0;
|
|
102
102
|
padding-bottom: 0;
|
|
103
103
|
}
|
|
@@ -107,14 +107,19 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* Markdown cell edit mode */
|
|
110
|
-
.theia-notebook-cell-content:has(
|
|
110
|
+
.theia-notebook-cell-content:has(
|
|
111
|
+
.theia-notebook-markdown-editor-container > .theia-notebook-cell-editor
|
|
112
|
+
) {
|
|
111
113
|
pointer-events: all;
|
|
112
114
|
margin-right: var(--theia-notebook-cell-editor-margin-right);
|
|
113
115
|
outline: 1px solid var(--theia-notebook-cellBorderColor);
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
/* Markdown cell edit mode focused */
|
|
117
|
-
.theia-notebook-cell.focused
|
|
119
|
+
.theia-notebook-cell.focused
|
|
120
|
+
.theia-notebook-cell-content:has(
|
|
121
|
+
.theia-notebook-markdown-editor-container > .theia-notebook-cell-editor
|
|
122
|
+
) {
|
|
118
123
|
outline-color: var(--theia-notebook-focusedEditorBorder);
|
|
119
124
|
}
|
|
120
125
|
|
|
@@ -126,6 +131,10 @@
|
|
|
126
131
|
padding: 10px 10px 0 10px;
|
|
127
132
|
}
|
|
128
133
|
|
|
134
|
+
.theia-notebook-cell-editor .monaco-editor {
|
|
135
|
+
outline: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
129
138
|
.theia-notebook-cell-editor-container {
|
|
130
139
|
pointer-events: all;
|
|
131
140
|
width: calc(100% - 46px);
|
|
@@ -242,11 +251,23 @@
|
|
|
242
251
|
|
|
243
252
|
.theia-notebook-main-container .theia-notebook-main-loading-indicator {
|
|
244
253
|
/* `progress-animation` is defined in `packages/core/src/browser/style/progress-bar.css` */
|
|
245
|
-
animation: progress-animation 1.8s 0s infinite
|
|
254
|
+
animation: progress-animation 1.8s 0s infinite
|
|
255
|
+
cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
246
256
|
background-color: var(--theia-progressBar-background);
|
|
247
257
|
height: 2px;
|
|
248
258
|
}
|
|
249
259
|
|
|
260
|
+
.error-message {
|
|
261
|
+
justify-content: center;
|
|
262
|
+
margin: 0 50px;
|
|
263
|
+
text-align: center;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.error-message > span {
|
|
267
|
+
color: var(--theia-errorForeground);
|
|
268
|
+
font-size: 40px !important;
|
|
269
|
+
}
|
|
270
|
+
|
|
250
271
|
.theia-notebook-viewport {
|
|
251
272
|
display: flex;
|
|
252
273
|
overflow: hidden;
|
|
@@ -317,7 +338,7 @@
|
|
|
317
338
|
background-color: var(--theia-toolbar-active);
|
|
318
339
|
}
|
|
319
340
|
|
|
320
|
-
.theia-notebook-add-cell-button
|
|
341
|
+
.theia-notebook-add-cell-button > * {
|
|
321
342
|
vertical-align: middle;
|
|
322
343
|
}
|
|
323
344
|
|
|
@@ -393,7 +414,7 @@
|
|
|
393
414
|
transform: translateY(calc(-100% - 10px));
|
|
394
415
|
}
|
|
395
416
|
|
|
396
|
-
.theia-notebook-find-widget.search-mode
|
|
417
|
+
.theia-notebook-find-widget.search-mode > * > *:nth-child(2) {
|
|
397
418
|
display: none;
|
|
398
419
|
}
|
|
399
420
|
|
|
@@ -422,8 +443,8 @@
|
|
|
422
443
|
align-items: center;
|
|
423
444
|
}
|
|
424
445
|
|
|
425
|
-
.theia-notebook-find-widget-buttons-first>div,
|
|
426
|
-
.theia-notebook-find-widget-buttons-second>div {
|
|
446
|
+
.theia-notebook-find-widget-buttons-first > div,
|
|
447
|
+
.theia-notebook-find-widget-buttons-second > div {
|
|
427
448
|
margin-right: 4px;
|
|
428
449
|
}
|
|
429
450
|
|
|
@@ -481,7 +502,8 @@
|
|
|
481
502
|
margin: 2px;
|
|
482
503
|
}
|
|
483
504
|
|
|
484
|
-
.theia-notebook-find-widget-input-wrapper
|
|
505
|
+
.theia-notebook-find-widget-input-wrapper
|
|
506
|
+
.theia-notebook-find-widget-input:focus {
|
|
485
507
|
border: none;
|
|
486
508
|
outline: none;
|
|
487
509
|
}
|
|
@@ -30,7 +30,7 @@ export class NotebookViewportService implements Disposable {
|
|
|
30
30
|
|
|
31
31
|
protected _viewportElement: HTMLDivElement | undefined;
|
|
32
32
|
|
|
33
|
-
protected resizeObserver
|
|
33
|
+
protected resizeObserver?: ResizeObserver;
|
|
34
34
|
|
|
35
35
|
set viewportElement(element: HTMLDivElement | undefined) {
|
|
36
36
|
this._viewportElement = element;
|
|
@@ -56,6 +56,6 @@ export class NotebookViewportService implements Disposable {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
dispose(): void {
|
|
59
|
-
this.resizeObserver
|
|
59
|
+
this.resizeObserver?.disconnect();
|
|
60
60
|
}
|
|
61
61
|
}
|