@jupyterlab/toc-extension 6.0.0-alpha.1 → 6.0.0-alpha.12
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 -9
- package/lib/index.js +185 -101
- package/lib/index.js.map +1 -1
- package/package.json +9 -14
- package/schema/{plugin.json → registry.json} +18 -6
- package/style/base.css +16 -0
- package/style/index.css +2 -6
- package/style/index.js +2 -6
package/lib/index.d.ts
CHANGED
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* @module toc-extension
|
|
4
4
|
*/
|
|
5
|
-
import { JupyterFrontEndPlugin } from '@jupyterlab/application';
|
|
6
|
-
import { ITableOfContentsRegistry } from '@jupyterlab/toc';
|
|
7
|
-
/**
|
|
8
|
-
* Initialization data for the ToC extension.
|
|
9
|
-
*
|
|
10
|
-
* @private
|
|
11
|
-
*/
|
|
12
|
-
declare const extension: JupyterFrontEndPlugin<ITableOfContentsRegistry>;
|
|
5
|
+
import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application';
|
|
6
|
+
import { ITableOfContentsRegistry, ITableOfContentsTracker } from '@jupyterlab/toc';
|
|
13
7
|
/**
|
|
14
8
|
* Exports.
|
|
15
9
|
*/
|
|
16
|
-
|
|
10
|
+
declare const _default: (JupyterFrontEndPlugin<ITableOfContentsRegistry, JupyterFrontEnd.IShell, "desktop" | "mobile"> | JupyterFrontEndPlugin<ITableOfContentsTracker, JupyterFrontEnd.IShell, "desktop" | "mobile">)[];
|
|
11
|
+
export default _default;
|
package/lib/index.js
CHANGED
|
@@ -5,90 +5,81 @@
|
|
|
5
5
|
* @module toc-extension
|
|
6
6
|
*/
|
|
7
7
|
import { ILabShell, ILayoutRestorer } from '@jupyterlab/application';
|
|
8
|
-
import { IDocumentManager } from '@jupyterlab/docmanager';
|
|
9
|
-
import { IEditorTracker } from '@jupyterlab/fileeditor';
|
|
10
|
-
import { IMarkdownViewerTracker } from '@jupyterlab/markdownviewer';
|
|
11
|
-
import { INotebookTracker } from '@jupyterlab/notebook';
|
|
12
|
-
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
13
8
|
import { ISettingRegistry } from '@jupyterlab/settingregistry';
|
|
14
|
-
import {
|
|
15
|
-
import { ITranslator } from '@jupyterlab/translation';
|
|
16
|
-
import { tocIcon } from '@jupyterlab/ui-components';
|
|
17
|
-
import {
|
|
9
|
+
import { ITableOfContentsRegistry, ITableOfContentsTracker, TableOfContents, TableOfContentsPanel, TableOfContentsRegistry, TableOfContentsTracker } from '@jupyterlab/toc';
|
|
10
|
+
import { ITranslator, nullTranslator } from '@jupyterlab/translation';
|
|
11
|
+
import { collapseAllIcon, CommandToolbarButton, ellipsesIcon, expandAllIcon, MenuSvg, numberingIcon, tocIcon, Toolbar, ToolbarButton } from '@jupyterlab/ui-components';
|
|
12
|
+
import { toArray } from '@lumino/algorithm';
|
|
18
13
|
/**
|
|
19
14
|
* A namespace for command IDs of table of contents plugin.
|
|
20
15
|
*/
|
|
21
16
|
var CommandIDs;
|
|
22
17
|
(function (CommandIDs) {
|
|
23
|
-
CommandIDs.
|
|
18
|
+
CommandIDs.displayNumbering = 'toc:display-numbering';
|
|
19
|
+
CommandIDs.displayH1Numbering = 'toc:display-h1-numbering';
|
|
20
|
+
CommandIDs.displayOutputNumbering = 'toc:display-outputs-numbering';
|
|
24
21
|
CommandIDs.showPanel = 'toc:show-panel';
|
|
22
|
+
CommandIDs.toggleCollapse = 'toc:toggle-collapse';
|
|
25
23
|
})(CommandIDs || (CommandIDs = {}));
|
|
26
24
|
/**
|
|
27
25
|
* Activates the ToC extension.
|
|
28
26
|
*
|
|
29
27
|
* @private
|
|
30
28
|
* @param app - Jupyter application
|
|
31
|
-
* @param
|
|
32
|
-
* @param rendermime - rendered MIME registry
|
|
29
|
+
* @param registry - Table of contents registry
|
|
33
30
|
* @param translator - translator
|
|
34
|
-
* @param editorTracker - editor tracker
|
|
35
31
|
* @param restorer - application layout restorer
|
|
36
32
|
* @param labShell - Jupyter lab shell
|
|
37
|
-
* @param markdownViewerTracker - Markdown viewer tracker
|
|
38
|
-
* @param notebookTracker - notebook tracker
|
|
39
33
|
* @param settingRegistry - setting registry
|
|
40
34
|
* @returns table of contents registry
|
|
41
35
|
*/
|
|
42
|
-
async function activateTOC(app,
|
|
43
|
-
const trans = translator.load('jupyterlab');
|
|
36
|
+
async function activateTOC(app, tocRegistry, translator, restorer, labShell, settingRegistry) {
|
|
37
|
+
const trans = (translator !== null && translator !== void 0 ? translator : nullTranslator).load('jupyterlab');
|
|
38
|
+
let configuration = Object.assign({}, TableOfContents.defaultConfig);
|
|
44
39
|
// Create the ToC widget:
|
|
45
|
-
const toc = new
|
|
46
|
-
docmanager,
|
|
47
|
-
rendermime,
|
|
48
|
-
translator
|
|
49
|
-
});
|
|
50
|
-
// Create the ToC registry:
|
|
51
|
-
const registry = new Registry();
|
|
52
|
-
// Add the ToC to the left area:
|
|
40
|
+
const toc = new TableOfContentsPanel(translator !== null && translator !== void 0 ? translator : undefined);
|
|
53
41
|
toc.title.icon = tocIcon;
|
|
54
42
|
toc.title.caption = trans.__('Table of Contents');
|
|
55
43
|
toc.id = 'table-of-contents';
|
|
56
44
|
toc.node.setAttribute('role', 'region');
|
|
57
45
|
toc.node.setAttribute('aria-label', trans.__('Table of Contents section'));
|
|
58
|
-
app.
|
|
59
|
-
|
|
60
|
-
execute:
|
|
61
|
-
if (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (panel == null) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const cells = panel.content.widgets;
|
|
69
|
-
if (cells === undefined) {
|
|
70
|
-
return;
|
|
46
|
+
app.commands.addCommand(CommandIDs.displayH1Numbering, {
|
|
47
|
+
label: trans.__('Show first-level heading number'),
|
|
48
|
+
execute: () => {
|
|
49
|
+
if (toc.model) {
|
|
50
|
+
toc.model.setConfiguration({
|
|
51
|
+
numberingH1: !toc.model.configuration.numberingH1
|
|
52
|
+
});
|
|
71
53
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
54
|
+
},
|
|
55
|
+
isEnabled: () => { var _a, _b; return (_b = (_a = toc.model) === null || _a === void 0 ? void 0 : _a.supportedOptions.includes('numberingH1')) !== null && _b !== void 0 ? _b : false; },
|
|
56
|
+
isToggled: () => { var _a, _b; return (_b = (_a = toc.model) === null || _a === void 0 ? void 0 : _a.configuration.numberingH1) !== null && _b !== void 0 ? _b : false; }
|
|
57
|
+
});
|
|
58
|
+
app.commands.addCommand(CommandIDs.displayNumbering, {
|
|
59
|
+
label: trans.__('Show heading number in the document'),
|
|
60
|
+
icon: args => (args.toolbar ? numberingIcon : undefined),
|
|
61
|
+
execute: () => {
|
|
62
|
+
if (toc.model) {
|
|
63
|
+
toc.model.setConfiguration({
|
|
64
|
+
numberHeaders: !toc.model.configuration.numberHeaders
|
|
65
|
+
});
|
|
66
|
+
app.commands.notifyCommandChanged(CommandIDs.displayNumbering);
|
|
84
67
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
68
|
+
},
|
|
69
|
+
isEnabled: () => { var _a, _b; return (_b = (_a = toc.model) === null || _a === void 0 ? void 0 : _a.supportedOptions.includes('numberHeaders')) !== null && _b !== void 0 ? _b : false; },
|
|
70
|
+
isToggled: () => { var _a, _b; return (_b = (_a = toc.model) === null || _a === void 0 ? void 0 : _a.configuration.numberHeaders) !== null && _b !== void 0 ? _b : false; }
|
|
71
|
+
});
|
|
72
|
+
app.commands.addCommand(CommandIDs.displayOutputNumbering, {
|
|
73
|
+
label: trans.__('Show output headings'),
|
|
74
|
+
execute: () => {
|
|
75
|
+
if (toc.model) {
|
|
76
|
+
toc.model.setConfiguration({
|
|
77
|
+
includeOutput: !toc.model.configuration.includeOutput
|
|
78
|
+
});
|
|
89
79
|
}
|
|
90
80
|
},
|
|
91
|
-
|
|
81
|
+
isEnabled: () => { var _a, _b; return (_b = (_a = toc.model) === null || _a === void 0 ? void 0 : _a.supportedOptions.includes('includeOutput')) !== null && _b !== void 0 ? _b : false; },
|
|
82
|
+
isToggled: () => { var _a, _b; return (_b = (_a = toc.model) === null || _a === void 0 ? void 0 : _a.configuration.includeOutput) !== null && _b !== void 0 ? _b : false; }
|
|
92
83
|
});
|
|
93
84
|
app.commands.addCommand(CommandIDs.showPanel, {
|
|
94
85
|
label: trans.__('Table of Contents'),
|
|
@@ -96,6 +87,31 @@ async function activateTOC(app, docmanager, rendermime, translator, editorTracke
|
|
|
96
87
|
app.shell.activateById(toc.id);
|
|
97
88
|
}
|
|
98
89
|
});
|
|
90
|
+
function someExpanded(model) {
|
|
91
|
+
return model.headings.some(h => { var _a; return !((_a = h.collapsed) !== null && _a !== void 0 ? _a : false); });
|
|
92
|
+
}
|
|
93
|
+
app.commands.addCommand(CommandIDs.toggleCollapse, {
|
|
94
|
+
label: () => toc.model && !someExpanded(toc.model)
|
|
95
|
+
? trans.__('Expand All Headings')
|
|
96
|
+
: trans.__('Collapse All Headings'),
|
|
97
|
+
icon: args => args.toolbar
|
|
98
|
+
? toc.model && !someExpanded(toc.model)
|
|
99
|
+
? expandAllIcon
|
|
100
|
+
: collapseAllIcon
|
|
101
|
+
: undefined,
|
|
102
|
+
execute: () => {
|
|
103
|
+
if (toc.model) {
|
|
104
|
+
if (someExpanded(toc.model)) {
|
|
105
|
+
toc.model.toggleCollapse({ collapsed: true });
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
toc.model.toggleCollapse({ collapsed: false });
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
isEnabled: () => toc.model !== null
|
|
113
|
+
});
|
|
114
|
+
const tracker = new TableOfContentsTracker();
|
|
99
115
|
if (restorer) {
|
|
100
116
|
// Add the ToC widget to the application restorer:
|
|
101
117
|
restorer.add(toc, '@jupyterlab/toc:plugin');
|
|
@@ -104,82 +120,150 @@ async function activateTOC(app, docmanager, rendermime, translator, editorTracke
|
|
|
104
120
|
let settings;
|
|
105
121
|
if (settingRegistry) {
|
|
106
122
|
try {
|
|
107
|
-
settings = await settingRegistry.load(
|
|
123
|
+
settings = await settingRegistry.load(registry.id);
|
|
124
|
+
const updateSettings = (plugin) => {
|
|
125
|
+
const composite = plugin.composite;
|
|
126
|
+
for (const key of [...Object.keys(configuration)]) {
|
|
127
|
+
const value = composite[key];
|
|
128
|
+
if (value !== undefined) {
|
|
129
|
+
configuration[key] = value;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (labShell) {
|
|
133
|
+
toArray(labShell.widgets('main')).forEach(widget => {
|
|
134
|
+
const model = tracker.get(widget);
|
|
135
|
+
if (model) {
|
|
136
|
+
model.setConfiguration(configuration);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
if (app.shell.currentWidget) {
|
|
142
|
+
const model = tracker.get(app.shell.currentWidget);
|
|
143
|
+
if (model) {
|
|
144
|
+
model.setConfiguration(configuration);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
if (settings) {
|
|
150
|
+
settings.changed.connect(updateSettings);
|
|
151
|
+
updateSettings(settings);
|
|
152
|
+
}
|
|
108
153
|
}
|
|
109
154
|
catch (error) {
|
|
110
155
|
console.error(`Failed to load settings for the Table of Contents extension.\n\n${error}`);
|
|
111
156
|
}
|
|
112
157
|
}
|
|
113
|
-
//
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
158
|
+
// Set up the panel toolbar
|
|
159
|
+
const numbering = new CommandToolbarButton({
|
|
160
|
+
commands: app.commands,
|
|
161
|
+
id: CommandIDs.displayNumbering,
|
|
162
|
+
args: {
|
|
163
|
+
toolbar: true
|
|
164
|
+
},
|
|
165
|
+
label: ''
|
|
166
|
+
});
|
|
167
|
+
numbering.addClass('jp-toc-numberingButton');
|
|
168
|
+
toc.toolbar.addItem('display-numbering', numbering);
|
|
169
|
+
toc.toolbar.addItem('spacer', Toolbar.createSpacerItem());
|
|
170
|
+
toc.toolbar.addItem('collapse-all', new CommandToolbarButton({
|
|
171
|
+
commands: app.commands,
|
|
172
|
+
id: CommandIDs.toggleCollapse,
|
|
173
|
+
args: {
|
|
174
|
+
toolbar: true
|
|
175
|
+
},
|
|
176
|
+
label: ''
|
|
177
|
+
}));
|
|
178
|
+
const toolbarMenu = new MenuSvg({ commands: app.commands });
|
|
179
|
+
toolbarMenu.addItem({
|
|
180
|
+
command: CommandIDs.displayH1Numbering
|
|
181
|
+
});
|
|
182
|
+
toolbarMenu.addItem({
|
|
183
|
+
command: CommandIDs.displayOutputNumbering
|
|
184
|
+
});
|
|
185
|
+
const menuButton = new ToolbarButton({
|
|
186
|
+
tooltip: trans.__('More actions…'),
|
|
187
|
+
icon: ellipsesIcon,
|
|
188
|
+
actualOnClick: true,
|
|
189
|
+
onClick: () => {
|
|
190
|
+
const bbox = menuButton.node.getBoundingClientRect();
|
|
191
|
+
toolbarMenu.open(bbox.x, bbox.bottom);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
toc.toolbar.addItem('submenu', menuButton);
|
|
195
|
+
// Add the ToC to the left area:
|
|
196
|
+
app.shell.add(toc, 'left', { rank: 400, type: 'Table of Contents' });
|
|
134
197
|
// Update the ToC when the active widget changes:
|
|
135
198
|
if (labShell) {
|
|
136
199
|
labShell.currentChanged.connect(onConnect);
|
|
137
200
|
}
|
|
138
|
-
|
|
201
|
+
// Connect to current widget
|
|
202
|
+
void app.restored.then(() => {
|
|
203
|
+
onConnect();
|
|
204
|
+
});
|
|
205
|
+
return tracker;
|
|
139
206
|
/**
|
|
140
207
|
* Callback invoked when the active widget changes.
|
|
141
208
|
*
|
|
142
209
|
* @private
|
|
143
210
|
*/
|
|
144
211
|
function onConnect() {
|
|
212
|
+
var _a, _b;
|
|
145
213
|
let widget = app.shell.currentWidget;
|
|
146
214
|
if (!widget) {
|
|
147
215
|
return;
|
|
148
216
|
}
|
|
149
|
-
let
|
|
150
|
-
if (!
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
toc.current = null;
|
|
217
|
+
let model = tracker.get(widget);
|
|
218
|
+
if (!model) {
|
|
219
|
+
model = (_a = tocRegistry.getModel(widget, configuration)) !== null && _a !== void 0 ? _a : null;
|
|
220
|
+
if (model) {
|
|
221
|
+
tracker.add(widget, model);
|
|
155
222
|
}
|
|
156
|
-
|
|
223
|
+
widget.disposed.connect(() => {
|
|
224
|
+
model === null || model === void 0 ? void 0 : model.dispose();
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
if (toc.model) {
|
|
228
|
+
toc.model.collapseChanged.disconnect(onCollapseChange);
|
|
157
229
|
}
|
|
158
|
-
toc.
|
|
230
|
+
toc.model = model;
|
|
231
|
+
(_b = toc.model) === null || _b === void 0 ? void 0 : _b.collapseChanged.connect(onCollapseChange);
|
|
232
|
+
setToolbarButtonsState();
|
|
233
|
+
}
|
|
234
|
+
function setToolbarButtonsState() {
|
|
235
|
+
app.commands.notifyCommandChanged(CommandIDs.displayNumbering);
|
|
236
|
+
app.commands.notifyCommandChanged(CommandIDs.toggleCollapse);
|
|
237
|
+
}
|
|
238
|
+
function onCollapseChange() {
|
|
239
|
+
app.commands.notifyCommandChanged(CommandIDs.toggleCollapse);
|
|
159
240
|
}
|
|
160
241
|
}
|
|
161
242
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* @private
|
|
243
|
+
* Table of contents registry plugin.
|
|
165
244
|
*/
|
|
166
|
-
const
|
|
167
|
-
id: '@jupyterlab/toc:
|
|
245
|
+
const registry = {
|
|
246
|
+
id: '@jupyterlab/toc-extension:registry',
|
|
168
247
|
autoStart: true,
|
|
169
248
|
provides: ITableOfContentsRegistry,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
249
|
+
activate: () => {
|
|
250
|
+
// Create the ToC registry
|
|
251
|
+
return new TableOfContentsRegistry();
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Table of contents tracker plugin.
|
|
256
|
+
*/
|
|
257
|
+
const tracker = {
|
|
258
|
+
id: '@jupyterlab/toc-extension:tracker',
|
|
259
|
+
autoStart: true,
|
|
260
|
+
provides: ITableOfContentsTracker,
|
|
261
|
+
requires: [ITableOfContentsRegistry],
|
|
262
|
+
optional: [ITranslator, ILayoutRestorer, ILabShell, ISettingRegistry],
|
|
179
263
|
activate: activateTOC
|
|
180
264
|
};
|
|
181
265
|
/**
|
|
182
266
|
* Exports.
|
|
183
267
|
*/
|
|
184
|
-
export default
|
|
268
|
+
export default [registry, tracker];
|
|
185
269
|
//# 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,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,OAAO,EACL,SAAS,EACT,eAAe,EAGhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,OAAO,EACL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tB,CAAC;AAEF;;GAEG;AACH,eAAe,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/toc-extension",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.12",
|
|
4
4
|
"description": "JupyterLab - Table of Contents widget extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -40,22 +40,17 @@
|
|
|
40
40
|
"watch": "tsc -b --watch"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
44
|
-
"@jupyterlab/
|
|
45
|
-
"@jupyterlab/
|
|
46
|
-
"@jupyterlab/
|
|
47
|
-
"@jupyterlab/
|
|
48
|
-
"@
|
|
49
|
-
"@jupyterlab/rendermime": "^4.0.0-alpha.1",
|
|
50
|
-
"@jupyterlab/settingregistry": "^4.0.0-alpha.1",
|
|
51
|
-
"@jupyterlab/toc": "^6.0.0-alpha.1",
|
|
52
|
-
"@jupyterlab/translation": "^4.0.0-alpha.1",
|
|
53
|
-
"@jupyterlab/ui-components": "^4.0.0-alpha.16"
|
|
43
|
+
"@jupyterlab/application": "^4.0.0-alpha.12",
|
|
44
|
+
"@jupyterlab/settingregistry": "^4.0.0-alpha.12",
|
|
45
|
+
"@jupyterlab/toc": "^6.0.0-alpha.12",
|
|
46
|
+
"@jupyterlab/translation": "^4.0.0-alpha.12",
|
|
47
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.27",
|
|
48
|
+
"@lumino/algorithm": "^1.9.1"
|
|
54
49
|
},
|
|
55
50
|
"devDependencies": {
|
|
56
51
|
"rimraf": "~3.0.0",
|
|
57
|
-
"typedoc": "~0.
|
|
58
|
-
"typescript": "~4.
|
|
52
|
+
"typedoc": "~0.22.10",
|
|
53
|
+
"typescript": "~4.7.3"
|
|
59
54
|
},
|
|
60
55
|
"publishConfig": {
|
|
61
56
|
"access": "public"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"jupyter.lab.setting-icon": "ui-components:toc",
|
|
3
3
|
"jupyter.lab.setting-icon-label": "Table of Contents",
|
|
4
4
|
"title": "Table of Contents",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Default table of contents settings.",
|
|
6
6
|
"jupyter.lab.menus": {
|
|
7
7
|
"main": [
|
|
8
8
|
{
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"context": [
|
|
19
19
|
{
|
|
20
20
|
"command": "toc:run-cells",
|
|
21
|
-
"selector": ".jp-tocItem"
|
|
21
|
+
"selector": ".jp-TableOfContents-content[data-document-type=\"notebook\"] .jp-tocItem"
|
|
22
22
|
}
|
|
23
23
|
]
|
|
24
24
|
},
|
|
@@ -30,22 +30,34 @@
|
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"properties": {
|
|
33
|
+
"maximalDepth": {
|
|
34
|
+
"title": "Maximal headings depth",
|
|
35
|
+
"type": "integer",
|
|
36
|
+
"minimum": 1,
|
|
37
|
+
"default": 4
|
|
38
|
+
},
|
|
33
39
|
"numberingH1": {
|
|
34
|
-
"title": "Enable
|
|
35
|
-
"description": "Whether to number first-level headings",
|
|
40
|
+
"title": "Enable 1st headings numbering",
|
|
41
|
+
"description": "Whether to number first-level headings or not.",
|
|
36
42
|
"type": "boolean",
|
|
37
43
|
"default": true
|
|
38
44
|
},
|
|
45
|
+
"numberHeaders": {
|
|
46
|
+
"title": "Enable headings numbering",
|
|
47
|
+
"description": "Whether to automatically number the headings or not.",
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
39
51
|
"includeOutput": {
|
|
40
52
|
"title": "Include cell output in headings",
|
|
41
|
-
"description": "Whether to include cell output in headings",
|
|
53
|
+
"description": "Whether to include cell output in headings or not.",
|
|
42
54
|
"type": "boolean",
|
|
43
55
|
"default": true
|
|
44
56
|
},
|
|
45
57
|
"syncCollapseState": {
|
|
46
58
|
"type": "boolean",
|
|
47
59
|
"title": "Synchronize collapse state",
|
|
48
|
-
"description": "If set to true, when a
|
|
60
|
+
"description": "If set to true, when a heading is collapsed in the table of contents the corresponding section in the document is collapsed as well and vice versa. This inhibits the cell output headings.",
|
|
49
61
|
"default": false
|
|
50
62
|
}
|
|
51
63
|
},
|
package/style/base.css
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*-----------------------------------------------------------------------------
|
|
2
|
+
| Copyright (c) Jupyter Development Team.
|
|
3
|
+
| Distributed under the terms of the Modified BSD License.
|
|
4
|
+
|----------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.jp-toc-numberingButton:hover button.lm-mod-toggled.jp-Button.jp-mod-minimal {
|
|
7
|
+
background-color: var(--jp-inverse-layout-color4);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.jp-toc-numberingButton button.lm-mod-toggled .jp-icon3[fill] {
|
|
11
|
+
fill: var(--jp-layout-color1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.jp-toc-numberingButton button.lm-mod-toggled.jp-Button.jp-mod-minimal {
|
|
15
|
+
background-color: var(--jp-inverse-layout-color3);
|
|
16
|
+
}
|
package/style/index.css
CHANGED
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
|
|
7
7
|
@import url('~@jupyterlab/ui-components/style/index.css');
|
|
8
|
-
@import url('~@jupyterlab/rendermime/style/index.css');
|
|
9
8
|
@import url('~@jupyterlab/application/style/index.css');
|
|
10
|
-
@import url('~@jupyterlab/docmanager/style/index.css');
|
|
11
|
-
@import url('~@jupyterlab/cells/style/index.css');
|
|
12
|
-
@import url('~@jupyterlab/fileeditor/style/index.css');
|
|
13
|
-
@import url('~@jupyterlab/markdownviewer/style/index.css');
|
|
14
|
-
@import url('~@jupyterlab/notebook/style/index.css');
|
|
15
9
|
@import url('~@jupyterlab/toc/style/index.css');
|
|
10
|
+
|
|
11
|
+
@import url('./base.css');
|
package/style/index.js
CHANGED
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
|
|
7
7
|
import '@jupyterlab/ui-components/style/index.js';
|
|
8
|
-
import '@jupyterlab/rendermime/style/index.js';
|
|
9
8
|
import '@jupyterlab/application/style/index.js';
|
|
10
|
-
import '@jupyterlab/docmanager/style/index.js';
|
|
11
|
-
import '@jupyterlab/cells/style/index.js';
|
|
12
|
-
import '@jupyterlab/fileeditor/style/index.js';
|
|
13
|
-
import '@jupyterlab/markdownviewer/style/index.js';
|
|
14
|
-
import '@jupyterlab/notebook/style/index.js';
|
|
15
9
|
import '@jupyterlab/toc/style/index.js';
|
|
10
|
+
|
|
11
|
+
import './base.css';
|