@fails-components/jupyter-interceptor 0.0.1-alpha.8 → 0.0.2
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/index.d.ts +1 -5
- package/lib/index.js +2 -2
- package/lib/tokens.d.ts +5 -0
- package/lib/tokens.js +2 -0
- package/package.json +22 -18
- package/src/index.ts +3 -9
- package/src/tokens.ts +10 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { JupyterFrontEndPlugin } from '@jupyterlab/application';
|
|
2
2
|
import { WidgetModel } from '@jupyter-widgets/base';
|
|
3
|
-
import { Token } from '@lumino/coreutils';
|
|
4
3
|
import { IFailsInterceptorUpdateMessage, IAppletWidgetRegistry, IFailsLauncherInfo } from '@fails-components/jupyter-launcher';
|
|
5
|
-
export
|
|
6
|
-
isMimeTypeSupported: (mimeType: string) => boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const IFailsInterceptor: Token<IFailsInterceptor>;
|
|
4
|
+
export * from './tokens';
|
|
9
5
|
export declare class AppletWidgetRegistry implements IAppletWidgetRegistry {
|
|
10
6
|
constructor(launcher: IFailsLauncherInfo);
|
|
11
7
|
registerModel(path: string, modelId: string, model: WidgetModel): void;
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { INotebookTracker } from '@jupyterlab/notebook';
|
|
2
2
|
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
3
|
-
import { Token } from '@lumino/coreutils';
|
|
4
3
|
import { IFailsLauncherInfo } from '@fails-components/jupyter-launcher';
|
|
5
4
|
import { Signal } from '@lumino/signaling';
|
|
6
|
-
|
|
5
|
+
import { IFailsInterceptor } from './tokens';
|
|
6
|
+
export * from './tokens';
|
|
7
7
|
// List of static Mimetypes, where intercepting is not necessary
|
|
8
8
|
const staticMimeTypes = new Set([
|
|
9
9
|
'text/html',
|
package/lib/tokens.d.ts
ADDED
package/lib/tokens.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fails-components/jupyter-interceptor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "A collections of plugins intercepting kernel messages and other message, to steer outputs remotely",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -60,22 +60,19 @@
|
|
|
60
60
|
"watch:labextension": "jupyter labextension watch ."
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@fails-components/jupyter-launcher": "^0.0.
|
|
64
|
-
"@jupyter-widgets/base": "^6.0.
|
|
65
|
-
"@jupyter-widgets/jupyterlab-manager": "^5.0.
|
|
66
|
-
"@jupyter/ydoc": "^3.0.
|
|
67
|
-
"@jupyterlab/application": "^4.3
|
|
68
|
-
"@jupyterlab/cells": "^4.3
|
|
69
|
-
"@jupyterlab/nbformat": "^4.3
|
|
70
|
-
"@jupyterlab/notebook": "^4.3
|
|
71
|
-
"@jupyterlab/rendermime": "^4.3
|
|
72
|
-
"@jupyterlab/services": "^7.3
|
|
73
|
-
"@jupyterlite/application-extension": "^0.
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@jupyterlite/settings": "^0.5.0",
|
|
77
|
-
"@lumino/coreutils": "^2.2.0",
|
|
78
|
-
"json5": "^2.2.3"
|
|
63
|
+
"@fails-components/jupyter-launcher": "^0.0.2",
|
|
64
|
+
"@jupyter-widgets/base": "^6.0.11",
|
|
65
|
+
"@jupyter-widgets/jupyterlab-manager": "^5.0.15",
|
|
66
|
+
"@jupyter/ydoc": "^3.0.4",
|
|
67
|
+
"@jupyterlab/application": "^4.4.3",
|
|
68
|
+
"@jupyterlab/cells": "^4.4.3",
|
|
69
|
+
"@jupyterlab/nbformat": "^4.4.3",
|
|
70
|
+
"@jupyterlab/notebook": "^4.4.3",
|
|
71
|
+
"@jupyterlab/rendermime": "^4.4.3",
|
|
72
|
+
"@jupyterlab/services": "^7.4.3",
|
|
73
|
+
"@jupyterlite/application-extension": "^0.6.1",
|
|
74
|
+
"@lumino/coreutils": "^2.2.1",
|
|
75
|
+
"@lumino/signaling": "^2.1.4"
|
|
79
76
|
},
|
|
80
77
|
"devDependencies": {
|
|
81
78
|
"@jupyterlab/builder": "^4.0.0",
|
|
@@ -115,7 +112,14 @@
|
|
|
115
112
|
"jupyterlab": {
|
|
116
113
|
"extension": true,
|
|
117
114
|
"outputDir": "fails_components_jupyter_interceptor/labextension",
|
|
118
|
-
"schemaDir": "schema"
|
|
115
|
+
"schemaDir": "schema",
|
|
116
|
+
"sharedPackages": {
|
|
117
|
+
"@fails-components/jupyter-launcher": {
|
|
118
|
+
"singleton": true,
|
|
119
|
+
"requiredVersion": "^0.0.1-alpha.18",
|
|
120
|
+
"import": false
|
|
121
|
+
}
|
|
122
|
+
}
|
|
119
123
|
},
|
|
120
124
|
"eslintIgnore": [
|
|
121
125
|
"node_modules",
|
package/src/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from '@jupyterlab/rendermime';
|
|
21
21
|
import { ICellModel } from '@jupyterlab/cells';
|
|
22
22
|
import { ISharedCodeCell } from '@jupyter/ydoc';
|
|
23
|
-
import { JSONObject, PromiseDelegate
|
|
23
|
+
import { JSONObject, PromiseDelegate } from '@lumino/coreutils';
|
|
24
24
|
import { Kernel /*, KernelMessage */ } from '@jupyterlab/services';
|
|
25
25
|
import {
|
|
26
26
|
IFailsInterceptorUpdateMessage,
|
|
@@ -28,15 +28,9 @@ import {
|
|
|
28
28
|
IFailsLauncherInfo
|
|
29
29
|
} from '@fails-components/jupyter-launcher';
|
|
30
30
|
import { Signal } from '@lumino/signaling';
|
|
31
|
+
import { IFailsInterceptor } from './tokens';
|
|
31
32
|
|
|
32
|
-
export
|
|
33
|
-
isMimeTypeSupported: (mimeType: string) => boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const IFailsInterceptor = new Token<IFailsInterceptor>(
|
|
37
|
-
'@fails-components/jupyter-fails:IFailsInterceptor',
|
|
38
|
-
'A service to talk with FAILS interceptor.'
|
|
39
|
-
);
|
|
33
|
+
export * from './tokens';
|
|
40
34
|
|
|
41
35
|
// List of static Mimetypes, where intercepting is not necessary
|
|
42
36
|
const staticMimeTypes = new Set([
|
package/src/tokens.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Token } from '@lumino/coreutils';
|
|
2
|
+
|
|
3
|
+
export interface IFailsInterceptor {
|
|
4
|
+
isMimeTypeSupported: (mimeType: string) => boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const IFailsInterceptor = new Token<IFailsInterceptor>(
|
|
8
|
+
'@fails-components/jupyter-fails:IFailsInterceptor',
|
|
9
|
+
'A service to talk with FAILS interceptor.'
|
|
10
|
+
);
|