@difizen/libro-jupyter 0.2.33 → 0.2.35-next.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/es/components/cell-input-bottom-blank.js +2 -2
- package/es/output/libro-jupyter-outputarea.d.ts +2 -2
- package/es/output/libro-jupyter-outputarea.d.ts.map +1 -1
- package/es/widget/widget-view.d.ts +2 -2
- package/es/widget/widget-view.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/components/cell-input-bottom-blank.tsx +3 -3
- package/src/output/libro-jupyter-outputarea.tsx +2 -2
- package/src/widget/widget-view.tsx +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-core';
|
|
2
2
|
import { useObserve } from '@difizen/mana-app';
|
|
3
3
|
import { isWaitingExecute } from "../utils/index.js";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export function CellInputBottomBlank(_ref) {
|
|
6
6
|
var cell = _ref.cell;
|
|
7
7
|
var observableCell = useObserve(cell);
|
|
8
|
-
if (!(cell instanceof
|
|
8
|
+
if (!(cell instanceof LibroEditableExecutableCellView) || !(observableCell.outputArea instanceof LibroOutputArea)) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
11
|
var outputs = observableCell.outputArea.outputs;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LibroEditableExecutableCellView, IOutputAreaOption } from '@difizen/libro-core';
|
|
2
2
|
import { LibroOutputArea } from '@difizen/libro-core';
|
|
3
3
|
export declare class LibroJupyterOutputArea extends LibroOutputArea {
|
|
4
|
-
cell:
|
|
4
|
+
cell: LibroEditableExecutableCellView;
|
|
5
5
|
protected displayIdMap: Map<string, number[]>;
|
|
6
6
|
constructor(option: IOutputAreaOption);
|
|
7
7
|
handleMsg(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libro-jupyter-outputarea.d.ts","sourceRoot":"","sources":["../../src/output/libro-jupyter-outputarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"libro-jupyter-outputarea.d.ts","sourceRoot":"","sources":["../../src/output/libro-jupyter-outputarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,+BAA+B,EAE/B,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAatD,qBAEa,sBAAuB,SAAQ,eAAe;IACjD,IAAI,EAAE,+BAA+B,CAAC;IAC9C,SAAS,CAAC,YAAY,wBAA+B;gBAErB,MAAM,EAAE,iBAAiB;IAKzD,SAAS;IAgEA,OAAO,IAAI,IAAI;IAKf,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI;CAMjD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import type { JSONObject, JSONValue } from '@difizen/libro-common';
|
|
3
|
-
import type { CellView,
|
|
3
|
+
import type { CellView, LibroEditableExecutableCellView } from '@difizen/libro-core';
|
|
4
4
|
import { LibroContextKey } from '@difizen/libro-core';
|
|
5
5
|
import type { KernelMessage } from '@difizen/libro-kernel';
|
|
6
6
|
import { BaseView } from '@difizen/mana-app';
|
|
@@ -15,7 +15,7 @@ export declare class WidgetView extends BaseView implements IWidgetView {
|
|
|
15
15
|
protected _msgHook: (msg: KernelMessage.IIOPubMessage) => boolean;
|
|
16
16
|
libroWidgetManager: LibroWidgetManager;
|
|
17
17
|
state: JSONObject & WidgetState;
|
|
18
|
-
cell?:
|
|
18
|
+
cell?: LibroEditableExecutableCellView;
|
|
19
19
|
get outputs(): import("@difizen/libro-core").BaseOutputArea | undefined;
|
|
20
20
|
disableCommandMode: boolean;
|
|
21
21
|
toDisposeOnMsgChanged?: Disposable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-view.d.ts","sourceRoot":"","sources":["../../src/widget/widget-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAuB,MAAM,uBAAuB,CAAC;AACxF,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"widget-view.d.ts","sourceRoot":"","sources":["../../src/widget/widget-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAuB,MAAM,uBAAuB,CAAC;AACxF,OAAO,KAAK,EAAE,QAAQ,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAKL,QAAQ,EAGT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMnE,OAAO,KAAK,EACV,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,0FAIhC,CAAC;AAEF,qBAEa,UAAW,SAAQ,QAAS,YAAW,WAAW;IACpD,IAAI,EAAE,aAAa,CAAwB;IACpD,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,aAAa,KAAK,OAAO,CAAC;IAEtC,kBAAkB,EAAE,kBAAkB,CAAC;IAGnE,KAAK,EAAE,UAAU,GAAG,WAAW,CAAsB;IAErD,IAAI,CAAC,EAAE,+BAA+B,CAAC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
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-jupyter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.35-next.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro"
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/colors": "^7.0.0",
|
|
35
35
|
"@ant-design/icons": "^5.1.0",
|
|
36
|
-
"@difizen/libro-code-cell": "^0.2.
|
|
37
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
38
|
-
"@difizen/libro-codemirror": "^0.2.
|
|
39
|
-
"@difizen/libro-cofine-editor": "^0.2.
|
|
40
|
-
"@difizen/libro-common": "^0.2.
|
|
41
|
-
"@difizen/libro-core": "^0.2.
|
|
42
|
-
"@difizen/libro-kernel": "^0.2.
|
|
43
|
-
"@difizen/libro-l10n": "^0.2.
|
|
44
|
-
"@difizen/libro-language-client": "^0.2.
|
|
45
|
-
"@difizen/libro-lsp": "^0.2.
|
|
46
|
-
"@difizen/libro-markdown-cell": "^0.2.
|
|
47
|
-
"@difizen/libro-output": "^0.2.
|
|
48
|
-
"@difizen/libro-raw-cell": "^0.2.
|
|
49
|
-
"@difizen/libro-rendermime": "^0.2.
|
|
50
|
-
"@difizen/libro-search": "^0.2.
|
|
51
|
-
"@difizen/libro-search-code-cell": "^0.2.
|
|
36
|
+
"@difizen/libro-code-cell": "^0.2.35-next.0",
|
|
37
|
+
"@difizen/libro-code-editor": "^0.2.35-next.0",
|
|
38
|
+
"@difizen/libro-codemirror": "^0.2.35-next.0",
|
|
39
|
+
"@difizen/libro-cofine-editor": "^0.2.35-next.0",
|
|
40
|
+
"@difizen/libro-common": "^0.2.35-next.0",
|
|
41
|
+
"@difizen/libro-core": "^0.2.35-next.0",
|
|
42
|
+
"@difizen/libro-kernel": "^0.2.35-next.0",
|
|
43
|
+
"@difizen/libro-l10n": "^0.2.35-next.0",
|
|
44
|
+
"@difizen/libro-language-client": "^0.2.35-next.0",
|
|
45
|
+
"@difizen/libro-lsp": "^0.2.35-next.0",
|
|
46
|
+
"@difizen/libro-markdown-cell": "^0.2.35-next.0",
|
|
47
|
+
"@difizen/libro-output": "^0.2.35-next.0",
|
|
48
|
+
"@difizen/libro-raw-cell": "^0.2.35-next.0",
|
|
49
|
+
"@difizen/libro-rendermime": "^0.2.35-next.0",
|
|
50
|
+
"@difizen/libro-search": "^0.2.35-next.0",
|
|
51
|
+
"@difizen/libro-search-code-cell": "^0.2.35-next.0",
|
|
52
52
|
"@difizen/mana-app": "latest",
|
|
53
53
|
"@difizen/mana-l10n": "latest",
|
|
54
54
|
"classnames": "^2.3.2",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { CellView } from '@difizen/libro-core';
|
|
2
|
-
import {
|
|
2
|
+
import { LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-core';
|
|
3
3
|
import { useObserve } from '@difizen/mana-app';
|
|
4
4
|
|
|
5
5
|
import { isWaitingExecute } from '../utils/index.js';
|
|
6
6
|
|
|
7
7
|
export function CellInputBottomBlank({ cell }: { cell: CellView }) {
|
|
8
|
-
const observableCell = useObserve(cell) as
|
|
8
|
+
const observableCell = useObserve(cell) as LibroEditableExecutableCellView;
|
|
9
9
|
|
|
10
10
|
if (
|
|
11
|
-
!(cell instanceof
|
|
11
|
+
!(cell instanceof LibroEditableExecutableCellView) ||
|
|
12
12
|
!(observableCell.outputArea instanceof LibroOutputArea)
|
|
13
13
|
) {
|
|
14
14
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as nbformat from '@difizen/libro-common';
|
|
2
2
|
import type {
|
|
3
|
-
|
|
3
|
+
LibroEditableExecutableCellView,
|
|
4
4
|
ExecutableCellModel,
|
|
5
5
|
IOutputAreaOption,
|
|
6
6
|
} from '@difizen/libro-core';
|
|
@@ -20,7 +20,7 @@ import { inject, transient, view, ViewOption } from '@difizen/mana-app';
|
|
|
20
20
|
@transient()
|
|
21
21
|
@view('libro-output-area')
|
|
22
22
|
export class LibroJupyterOutputArea extends LibroOutputArea {
|
|
23
|
-
declare cell:
|
|
23
|
+
declare cell: LibroEditableExecutableCellView;
|
|
24
24
|
protected displayIdMap = new Map<string, number[]>();
|
|
25
25
|
|
|
26
26
|
constructor(@inject(ViewOption) option: IOutputAreaOption) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSONObject, JSONValue, IOutput, OutputType } from '@difizen/libro-common';
|
|
2
|
-
import type { CellView,
|
|
2
|
+
import type { CellView, LibroEditableExecutableCellView } from '@difizen/libro-core';
|
|
3
3
|
import { ExecutableCellView } from '@difizen/libro-core';
|
|
4
4
|
import { LibroContextKey } from '@difizen/libro-core';
|
|
5
5
|
import type { KernelMessage } from '@difizen/libro-kernel';
|
|
@@ -48,7 +48,7 @@ export class WidgetView extends BaseView implements IWidgetView {
|
|
|
48
48
|
@prop()
|
|
49
49
|
state: JSONObject & WidgetState = defaultWidgetState;
|
|
50
50
|
|
|
51
|
-
cell?:
|
|
51
|
+
cell?: LibroEditableExecutableCellView;
|
|
52
52
|
|
|
53
53
|
get outputs() {
|
|
54
54
|
if (this.cell) {
|
|
@@ -102,7 +102,7 @@ export class WidgetView extends BaseView implements IWidgetView {
|
|
|
102
102
|
|
|
103
103
|
setCell(cell: CellView) {
|
|
104
104
|
if (ExecutableCellView.is(cell)) {
|
|
105
|
-
this.cell = cell as
|
|
105
|
+
this.cell = cell as LibroEditableExecutableCellView;
|
|
106
106
|
if (this.cell) {
|
|
107
107
|
this.cell.parentReady
|
|
108
108
|
.then(() => {
|