@jupyterlab/settingeditor-extension 4.0.0-alpha.2 → 4.0.0-alpha.5
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 +4 -7
- package/lib/index.js +111 -23
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
- package/schema/plugin.json +8 -0
package/lib/index.d.ts
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* @module settingeditor-extension
|
|
4
4
|
*/
|
|
5
|
-
import { JupyterFrontEndPlugin } from '@jupyterlab/application';
|
|
6
|
-
import { ISettingEditorTracker } from '@jupyterlab/settingeditor';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
declare const plugin: JupyterFrontEndPlugin<ISettingEditorTracker>;
|
|
11
|
-
export default plugin;
|
|
5
|
+
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application';
|
|
6
|
+
import { IJSONSettingEditorTracker, ISettingEditorTracker } from '@jupyterlab/settingeditor';
|
|
7
|
+
declare const _default: (JupyterFrontEndPlugin<ISettingEditorTracker, JupyterFrontEnd.IShell, "desktop" | "mobile"> | JupyterFrontEndPlugin<IJSONSettingEditorTracker, JupyterFrontEnd.IShell, "desktop" | "mobile">)[];
|
|
8
|
+
export default _default;
|
package/lib/index.js
CHANGED
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
import { ILabStatus, ILayoutRestorer } from '@jupyterlab/application';
|
|
10
10
|
import { ICommandPalette, MainAreaWidget, WidgetTracker } from '@jupyterlab/apputils';
|
|
11
11
|
import { IEditorServices } from '@jupyterlab/codeeditor';
|
|
12
|
+
import { CommandToolbarButton, IFormComponentRegistry, launchIcon, Toolbar } from '@jupyterlab/ui-components';
|
|
12
13
|
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
13
|
-
import { ISettingEditorTracker,
|
|
14
|
+
import { IJSONSettingEditorTracker, ISettingEditorTracker, JsonSettingEditor, SettingsEditor } from '@jupyterlab/settingeditor';
|
|
14
15
|
import { ISettingRegistry } from '@jupyterlab/settingregistry';
|
|
15
16
|
import { IStateDB } from '@jupyterlab/statedb';
|
|
16
17
|
import { ITranslator } from '@jupyterlab/translation';
|
|
@@ -21,6 +22,7 @@ import { saveIcon, settingsIcon, undoIcon } from '@jupyterlab/ui-components';
|
|
|
21
22
|
var CommandIDs;
|
|
22
23
|
(function (CommandIDs) {
|
|
23
24
|
CommandIDs.open = 'settingeditor:open';
|
|
25
|
+
CommandIDs.openJSON = 'settingeditor:open-json';
|
|
24
26
|
CommandIDs.revert = 'settingeditor:revert';
|
|
25
27
|
CommandIDs.save = 'settingeditor:save';
|
|
26
28
|
})(CommandIDs || (CommandIDs = {}));
|
|
@@ -28,9 +30,91 @@ var CommandIDs;
|
|
|
28
30
|
* The default setting editor extension.
|
|
29
31
|
*/
|
|
30
32
|
const plugin = {
|
|
33
|
+
id: '@jupyterlab/settingeditor-extension:form-ui',
|
|
34
|
+
requires: [
|
|
35
|
+
ISettingRegistry,
|
|
36
|
+
IStateDB,
|
|
37
|
+
ITranslator,
|
|
38
|
+
IFormComponentRegistry,
|
|
39
|
+
ILabStatus
|
|
40
|
+
],
|
|
41
|
+
optional: [ILayoutRestorer, ICommandPalette, IJSONSettingEditorTracker],
|
|
42
|
+
autoStart: true,
|
|
43
|
+
provides: ISettingEditorTracker,
|
|
44
|
+
activate
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Activate the setting editor extension.
|
|
48
|
+
*/
|
|
49
|
+
function activate(app, registry, state, translator, editorRegistry, status, restorer, palette, jsonEditor) {
|
|
50
|
+
const trans = translator.load('jupyterlab');
|
|
51
|
+
const { commands, shell } = app;
|
|
52
|
+
const namespace = 'setting-editor';
|
|
53
|
+
const tracker = new WidgetTracker({
|
|
54
|
+
namespace
|
|
55
|
+
});
|
|
56
|
+
// Handle state restoration.
|
|
57
|
+
if (restorer) {
|
|
58
|
+
void restorer.restore(tracker, {
|
|
59
|
+
command: CommandIDs.open,
|
|
60
|
+
args: widget => ({}),
|
|
61
|
+
name: widget => namespace
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (palette) {
|
|
65
|
+
palette.addItem({
|
|
66
|
+
category: trans.__('Settings'),
|
|
67
|
+
command: CommandIDs.open
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
commands.addCommand(CommandIDs.open, {
|
|
71
|
+
execute: () => {
|
|
72
|
+
if (tracker.currentWidget) {
|
|
73
|
+
shell.activateById(tracker.currentWidget.id);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const key = plugin.id;
|
|
77
|
+
const editor = new MainAreaWidget({
|
|
78
|
+
content: new SettingsEditor({
|
|
79
|
+
editorRegistry,
|
|
80
|
+
key,
|
|
81
|
+
registry,
|
|
82
|
+
state,
|
|
83
|
+
commands,
|
|
84
|
+
toSkip: [
|
|
85
|
+
'@jupyterlab/application-extension:context-menu',
|
|
86
|
+
'@jupyterlab/mainmenu-extension:plugin'
|
|
87
|
+
],
|
|
88
|
+
translator,
|
|
89
|
+
status
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
if (jsonEditor) {
|
|
93
|
+
editor.toolbar.addItem('spacer', Toolbar.createSpacerItem());
|
|
94
|
+
editor.toolbar.addItem('open-json-editor', new CommandToolbarButton({
|
|
95
|
+
commands,
|
|
96
|
+
id: CommandIDs.openJSON,
|
|
97
|
+
icon: launchIcon,
|
|
98
|
+
label: trans.__('JSON Settings Editor')
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
editor.id = namespace;
|
|
102
|
+
editor.title.icon = settingsIcon;
|
|
103
|
+
editor.title.label = trans.__('Settings');
|
|
104
|
+
editor.title.closable = true;
|
|
105
|
+
void tracker.add(editor);
|
|
106
|
+
shell.add(editor);
|
|
107
|
+
},
|
|
108
|
+
label: trans.__('Settings Editor')
|
|
109
|
+
});
|
|
110
|
+
return tracker;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The default setting editor extension.
|
|
114
|
+
*/
|
|
115
|
+
const jsonPlugin = {
|
|
31
116
|
id: '@jupyterlab/settingeditor-extension:plugin',
|
|
32
117
|
requires: [
|
|
33
|
-
ILayoutRestorer,
|
|
34
118
|
ISettingRegistry,
|
|
35
119
|
IEditorServices,
|
|
36
120
|
IStateDB,
|
|
@@ -38,31 +122,32 @@ const plugin = {
|
|
|
38
122
|
ILabStatus,
|
|
39
123
|
ITranslator
|
|
40
124
|
],
|
|
41
|
-
optional: [ICommandPalette],
|
|
125
|
+
optional: [ILayoutRestorer, ICommandPalette],
|
|
42
126
|
autoStart: true,
|
|
43
|
-
provides:
|
|
44
|
-
activate
|
|
127
|
+
provides: IJSONSettingEditorTracker,
|
|
128
|
+
activate: activateJSON
|
|
45
129
|
};
|
|
46
130
|
/**
|
|
47
131
|
* Activate the setting editor extension.
|
|
48
132
|
*/
|
|
49
|
-
function
|
|
133
|
+
function activateJSON(app, registry, editorServices, state, rendermime, status, translator, restorer, palette) {
|
|
50
134
|
const trans = translator.load('jupyterlab');
|
|
51
135
|
const { commands, shell } = app;
|
|
52
|
-
const namespace = 'setting-editor';
|
|
136
|
+
const namespace = 'json-setting-editor';
|
|
53
137
|
const factoryService = editorServices.factoryService;
|
|
54
138
|
const editorFactory = factoryService.newInlineEditor;
|
|
55
139
|
const tracker = new WidgetTracker({
|
|
56
140
|
namespace
|
|
57
141
|
});
|
|
58
|
-
let editor;
|
|
59
142
|
// Handle state restoration.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
143
|
+
if (restorer) {
|
|
144
|
+
void restorer.restore(tracker, {
|
|
145
|
+
command: CommandIDs.openJSON,
|
|
146
|
+
args: widget => ({}),
|
|
147
|
+
name: widget => namespace
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
commands.addCommand(CommandIDs.openJSON, {
|
|
66
151
|
execute: () => {
|
|
67
152
|
if (tracker.currentWidget) {
|
|
68
153
|
shell.activateById(tracker.currentWidget.id);
|
|
@@ -70,7 +155,7 @@ function activate(app, restorer, registry, editorServices, state, rendermime, st
|
|
|
70
155
|
}
|
|
71
156
|
const key = plugin.id;
|
|
72
157
|
const when = app.restored;
|
|
73
|
-
editor = new
|
|
158
|
+
const editor = new JsonSettingEditor({
|
|
74
159
|
commands: {
|
|
75
160
|
registry: commands,
|
|
76
161
|
revert: CommandIDs.revert,
|
|
@@ -107,19 +192,22 @@ function activate(app, restorer, registry, editorServices, state, rendermime, st
|
|
|
107
192
|
}
|
|
108
193
|
});
|
|
109
194
|
});
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
195
|
+
const container = new MainAreaWidget({
|
|
196
|
+
content: editor
|
|
197
|
+
});
|
|
198
|
+
container.id = namespace;
|
|
199
|
+
container.title.icon = settingsIcon;
|
|
200
|
+
container.title.label = trans.__('Advanced Settings Editor');
|
|
201
|
+
container.title.closable = true;
|
|
202
|
+
void tracker.add(container);
|
|
203
|
+
shell.add(container);
|
|
116
204
|
},
|
|
117
205
|
label: trans.__('Advanced Settings Editor')
|
|
118
206
|
});
|
|
119
207
|
if (palette) {
|
|
120
208
|
palette.addItem({
|
|
121
209
|
category: trans.__('Settings'),
|
|
122
|
-
command: CommandIDs.
|
|
210
|
+
command: CommandIDs.openJSON
|
|
123
211
|
});
|
|
124
212
|
}
|
|
125
213
|
commands.addCommand(CommandIDs.revert, {
|
|
@@ -139,5 +227,5 @@ function activate(app, restorer, registry, editorServices, state, rendermime, st
|
|
|
139
227
|
});
|
|
140
228
|
return tracker;
|
|
141
229
|
}
|
|
142
|
-
export default plugin;
|
|
230
|
+
export default [plugin, jsonPlugin];
|
|
143
231
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;+EAG+E;AAC/E;;;GAGG;AAEH,OAAO,EACL,UAAU,EACV,eAAe,EAGhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,cAAc,EACd,aAAa,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;+EAG+E;AAC/E;;;GAGG;AAEH,OAAO,EACL,UAAU,EACV,eAAe,EAGhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,cAAc,EACd,aAAa,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,OAAO,EACR,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAG7E;;GAEG;AACH,IAAU,UAAU,CAQnB;AARD,WAAU,UAAU;IACL,eAAI,GAAG,oBAAoB,CAAC;IAE5B,mBAAQ,GAAG,yBAAyB,CAAC;IAErC,iBAAM,GAAG,s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CAAC,oBAAoB,CAAC;QACrC,SAAS,EAAE,GAAG,EAAE,eAAC,OAAA,MAAA,MAAA,OAAO,CAAC,aAAa,0CAAE,OAAO,CAAC,UAAU,mCAAI,KAAK,CAAA,EAAA;KACpE,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/settingeditor-extension",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.5",
|
|
4
4
|
"description": "JupyterLab - Setting Editor Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"watch": "tsc -b --watch"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
41
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
42
|
-
"@jupyterlab/codeeditor": "^4.0.0-alpha.
|
|
43
|
-
"@jupyterlab/rendermime": "^4.0.0-alpha.
|
|
44
|
-
"@jupyterlab/settingeditor": "^4.0.0-alpha.
|
|
45
|
-
"@jupyterlab/settingregistry": "^4.0.0-alpha.
|
|
46
|
-
"@jupyterlab/statedb": "^4.0.0-alpha.
|
|
47
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
48
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.
|
|
40
|
+
"@jupyterlab/application": "^4.0.0-alpha.5",
|
|
41
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.5",
|
|
42
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.5",
|
|
43
|
+
"@jupyterlab/rendermime": "^4.0.0-alpha.5",
|
|
44
|
+
"@jupyterlab/settingeditor": "^4.0.0-alpha.5",
|
|
45
|
+
"@jupyterlab/settingregistry": "^4.0.0-alpha.5",
|
|
46
|
+
"@jupyterlab/statedb": "^4.0.0-alpha.5",
|
|
47
|
+
"@jupyterlab/translation": "^4.0.0-alpha.5",
|
|
48
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.20",
|
|
49
49
|
"@lumino/disposable": "^1.10.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"rimraf": "~3.0.0",
|
|
53
|
-
"typedoc": "~0.
|
|
53
|
+
"typedoc": "~0.22.10",
|
|
54
54
|
"typescript": "~4.5.2"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
package/schema/plugin.json
CHANGED
|
@@ -4,11 +4,19 @@
|
|
|
4
4
|
"jupyter.lab.shortcuts": [
|
|
5
5
|
{
|
|
6
6
|
"command": "settingeditor:open",
|
|
7
|
+
"args": {},
|
|
7
8
|
"keys": ["Accel ,"],
|
|
8
9
|
"selector": "body"
|
|
9
10
|
},
|
|
11
|
+
{
|
|
12
|
+
"command": "settingeditor:open-json",
|
|
13
|
+
"args": {},
|
|
14
|
+
"keys": ["Shift Accel ,"],
|
|
15
|
+
"selector": "body"
|
|
16
|
+
},
|
|
10
17
|
{
|
|
11
18
|
"command": "settingeditor:save",
|
|
19
|
+
"args": {},
|
|
12
20
|
"keys": ["Accel S"],
|
|
13
21
|
"selector": ".jp-SettingEditor"
|
|
14
22
|
}
|