@jupyterlab/apputils 4.0.0-alpha.8 → 4.0.0-beta.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.
Files changed (81) hide show
  1. package/lib/clipboard.d.ts +1 -1
  2. package/lib/dialog.d.ts +66 -4
  3. package/lib/dialog.js +126 -29
  4. package/lib/dialog.js.map +1 -1
  5. package/lib/domutils.js.map +1 -1
  6. package/lib/index.d.ts +1 -0
  7. package/lib/index.js +1 -0
  8. package/lib/index.js.map +1 -1
  9. package/lib/inputdialog.d.ts +35 -3
  10. package/lib/inputdialog.js +122 -12
  11. package/lib/inputdialog.js.map +1 -1
  12. package/lib/kernelstatuses.js +26 -25
  13. package/lib/kernelstatuses.js.map +1 -1
  14. package/lib/mainareawidget.d.ts +9 -0
  15. package/lib/mainareawidget.js +29 -4
  16. package/lib/mainareawidget.js.map +1 -1
  17. package/lib/menufactory.js +14 -15
  18. package/lib/menufactory.js.map +1 -1
  19. package/lib/notification.d.ts +336 -0
  20. package/lib/notification.js +310 -0
  21. package/lib/notification.js.map +1 -0
  22. package/lib/runningSessions.js +2 -2
  23. package/lib/runningSessions.js.map +1 -1
  24. package/lib/sanitizer.d.ts +20 -7
  25. package/lib/sanitizer.js +34 -7
  26. package/lib/sanitizer.js.map +1 -1
  27. package/lib/semanticCommand.js +11 -2
  28. package/lib/semanticCommand.js.map +1 -1
  29. package/lib/sessioncontext.d.ts +53 -6
  30. package/lib/sessioncontext.js +100 -68
  31. package/lib/sessioncontext.js.map +1 -1
  32. package/lib/testutils.d.ts +5 -0
  33. package/lib/testutils.js +46 -0
  34. package/lib/testutils.js.map +1 -0
  35. package/lib/thememanager.js +20 -5
  36. package/lib/thememanager.js.map +1 -1
  37. package/lib/tokens.d.ts +21 -42
  38. package/lib/tokens.js.map +1 -1
  39. package/lib/toolbar/factory.d.ts +2 -1
  40. package/lib/toolbar/factory.js +132 -105
  41. package/lib/toolbar/factory.js.map +1 -1
  42. package/lib/toolbar/index.js +4 -0
  43. package/lib/toolbar/index.js.map +1 -1
  44. package/lib/toolbar/registry.d.ts +11 -0
  45. package/lib/toolbar/registry.js +20 -3
  46. package/lib/toolbar/registry.js.map +1 -1
  47. package/lib/toolbar/widget.d.ts +3 -0
  48. package/lib/toolbar/widget.js +8 -5
  49. package/lib/toolbar/widget.js.map +1 -1
  50. package/lib/widgettracker.d.ts +13 -1
  51. package/lib/widgettracker.js +29 -2
  52. package/lib/widgettracker.js.map +1 -1
  53. package/package.json +31 -30
  54. package/src/clipboard.ts +107 -0
  55. package/src/commandlinker.ts +209 -0
  56. package/src/commandpalette.ts +175 -0
  57. package/src/dialog.tsx +1133 -0
  58. package/src/domutils.ts +53 -0
  59. package/src/index.ts +78 -0
  60. package/src/inputdialog.ts +551 -0
  61. package/src/kernelstatuses.tsx +279 -0
  62. package/src/mainareawidget.ts +362 -0
  63. package/src/menufactory.ts +201 -0
  64. package/src/notification.ts +559 -0
  65. package/src/printing.ts +180 -0
  66. package/src/runningSessions.tsx +233 -0
  67. package/src/sanitizer.ts +986 -0
  68. package/src/semanticCommand.ts +77 -0
  69. package/src/sessioncontext.tsx +1774 -0
  70. package/src/testutils.ts +49 -0
  71. package/src/thememanager.ts +530 -0
  72. package/src/tokens.ts +351 -0
  73. package/src/toolbar/factory.ts +422 -0
  74. package/src/toolbar/index.ts +8 -0
  75. package/src/toolbar/registry.ts +158 -0
  76. package/src/toolbar/widget.tsx +242 -0
  77. package/src/widgettracker.ts +391 -0
  78. package/src/windowresolver.ts +218 -0
  79. package/style/dialog.css +16 -1
  80. package/style/inputdialog.css +5 -0
  81. package/style/materialcolors.css +5 -0
@@ -0,0 +1,336 @@
1
+ import { ReadonlyJSONValue } from '@lumino/coreutils';
2
+ import { IDisposable } from '@lumino/disposable';
3
+ import { ISignal } from '@lumino/signaling';
4
+ /**
5
+ * Notification manager
6
+ */
7
+ export declare class NotificationManager implements IDisposable {
8
+ constructor();
9
+ /**
10
+ * Signal emitted whenever a notification changes.
11
+ */
12
+ get changed(): ISignal<NotificationManager, Notification.IChange>;
13
+ /**
14
+ * Total number of notifications.
15
+ */
16
+ get count(): number;
17
+ /**
18
+ * Whether the manager is disposed or not.
19
+ */
20
+ get isDisposed(): boolean;
21
+ /**
22
+ * The list of notifications.
23
+ */
24
+ get notifications(): Notification.INotification[];
25
+ /**
26
+ * Dismiss one notification (specified by its id) or all if no id provided.
27
+ *
28
+ * @param id Notification id
29
+ */
30
+ dismiss(id?: string): void;
31
+ /**
32
+ * Dispose the manager.
33
+ */
34
+ dispose(): void;
35
+ /**
36
+ * Test whether a notification exists or not.
37
+ *
38
+ * @param id Notification id
39
+ * @returns Notification status
40
+ */
41
+ has(id: string): boolean;
42
+ /**
43
+ * Add a new notification.
44
+ *
45
+ * This will trigger the `changed` signal with an `added` event.
46
+ *
47
+ * @param message Notification message
48
+ * @param type Notification type
49
+ * @param options Notification option
50
+ * @returns Notification unique id
51
+ */
52
+ notify<T extends ReadonlyJSONValue = ReadonlyJSONValue>(message: string, type: Notification.TypeOptions, options: Notification.IOptions<T>): string;
53
+ /**
54
+ * Update an existing notification.
55
+ *
56
+ * If the notification does not exists this won't do anything.
57
+ *
58
+ * Once updated the notification will be moved at the begin
59
+ * of the notification stack.
60
+ *
61
+ * @param args Update options
62
+ * @returns Whether the update was successful or not.
63
+ */
64
+ update<T extends ReadonlyJSONValue = ReadonlyJSONValue>(args: Notification.IUpdate<T>): boolean;
65
+ private _isDisposed;
66
+ private _changed;
67
+ private _queue;
68
+ }
69
+ /**
70
+ * Notification namespace
71
+ */
72
+ export declare namespace Notification {
73
+ /**
74
+ * Enumeration of available action display type.
75
+ */
76
+ type ActionDisplayType = 'default' | 'accent' | 'warn' | 'link';
77
+ /**
78
+ * Interface describing an action linked to a notification.
79
+ */
80
+ interface IAction {
81
+ /**
82
+ * The action label.
83
+ *
84
+ * This should be a short description.
85
+ */
86
+ label: string;
87
+ /**
88
+ * Callback function to trigger
89
+ *
90
+ * ### Notes
91
+ * By default execution of the callback will close the toast
92
+ * and dismiss the notification. You can prevent this by calling
93
+ * `event.preventDefault()` in the callback.
94
+ */
95
+ callback: (event: MouseEvent) => void;
96
+ /**
97
+ * The action caption.
98
+ *
99
+ * This can be a longer description of the action.
100
+ */
101
+ caption?: string;
102
+ /**
103
+ * The action display type.
104
+ *
105
+ * This will be used to modify the action button style.
106
+ */
107
+ displayType?: ActionDisplayType;
108
+ }
109
+ /**
110
+ * Notification interface
111
+ */
112
+ interface INotification<T extends ReadonlyJSONValue = ReadonlyJSONValue> {
113
+ /**
114
+ * Notification unique identifier
115
+ */
116
+ id: string;
117
+ /**
118
+ * Notification message
119
+ *
120
+ * #### Notes
121
+ * The message will be truncated if longer than 140 characters.
122
+ */
123
+ message: string;
124
+ /**
125
+ * Notification creation date
126
+ */
127
+ createdAt: number;
128
+ /**
129
+ * Notification modification date
130
+ */
131
+ modifiedAt: number;
132
+ /**
133
+ * Notification type
134
+ */
135
+ type: TypeOptions;
136
+ /**
137
+ * Notification options
138
+ */
139
+ options: IOptions<T>;
140
+ }
141
+ /**
142
+ * Notification change interface
143
+ */
144
+ interface IChange {
145
+ /**
146
+ * Change type
147
+ */
148
+ type: 'added' | 'removed' | 'updated';
149
+ /**
150
+ * Notification that changed
151
+ */
152
+ notification: INotification;
153
+ }
154
+ /**
155
+ * Notification options
156
+ */
157
+ interface IOptions<T extends ReadonlyJSONValue> {
158
+ /**
159
+ * Autoclosing behavior - false (not closing automatically)
160
+ * or number (time in milliseconds before hiding the notification)
161
+ *
162
+ * Set to zero if you want the notification to be retained in the notification
163
+ * center but not displayed as toast. This is the default behavior.
164
+ */
165
+ autoClose?: number | false;
166
+ /**
167
+ * List of associated actions
168
+ */
169
+ actions?: Array<IAction>;
170
+ /**
171
+ * Data associated with a notification
172
+ */
173
+ data?: T;
174
+ /**
175
+ * Task progression
176
+ *
177
+ * ### Notes
178
+ * This should be a number between 0 (not started) and 1 (completed).
179
+ */
180
+ progress?: number;
181
+ }
182
+ /**
183
+ * Parameters for notification depending on a promise.
184
+ */
185
+ interface IPromiseOptions<Pending extends ReadonlyJSONValue, Success extends ReadonlyJSONValue = Pending, Error extends ReadonlyJSONValue = Pending> {
186
+ /**
187
+ * Promise pending message and options
188
+ *
189
+ * #### Notes
190
+ * The message will be truncated if longer than 140 characters.
191
+ */
192
+ pending: {
193
+ message: string;
194
+ options?: IOptions<Pending>;
195
+ };
196
+ /**
197
+ * Message when promise resolves and options
198
+ *
199
+ * The message factory receives as first argument the result
200
+ * of the promise and as second the success `options.data`.
201
+ *
202
+ * #### Notes
203
+ * The message will be truncated if longer than 140 characters.
204
+ */
205
+ success: {
206
+ message: (result: unknown, data?: Success) => string;
207
+ options?: IOptions<Success>;
208
+ };
209
+ /**
210
+ * Message when promise rejects and options
211
+ *
212
+ * The message factory receives as first argument the error
213
+ * of the promise and as second the error `options.data`.
214
+ *
215
+ * #### Notes
216
+ * The message will be truncated if longer than 140 characters.
217
+ */
218
+ error: {
219
+ message: (reason: unknown, data?: Error) => string;
220
+ options?: IOptions<Error>;
221
+ };
222
+ }
223
+ /**
224
+ * Type of notifications
225
+ */
226
+ type TypeOptions = 'info' | 'in-progress' | 'success' | 'warning' | 'error' | 'default';
227
+ /**
228
+ * Options for updating a notification
229
+ */
230
+ interface IUpdate<T extends ReadonlyJSONValue> extends IOptions<T> {
231
+ /**
232
+ * Notification unique id
233
+ */
234
+ id: string;
235
+ /**
236
+ * New notification message
237
+ */
238
+ message?: string;
239
+ /**
240
+ * New notification type
241
+ */
242
+ type?: TypeOptions;
243
+ }
244
+ /**
245
+ * The global notification manager.
246
+ */
247
+ const manager: NotificationManager;
248
+ /**
249
+ * Dismiss one notification (specified by its id) or all if no id provided
250
+ *
251
+ * @param id notification id
252
+ */
253
+ function dismiss(id?: string): void;
254
+ /**
255
+ * Helper function to emit a notification.
256
+ *
257
+ * #### Notes
258
+ * The message will be truncated if longer than 140 characters.
259
+ *
260
+ * @param message Notification message
261
+ * @param type Notification type
262
+ * @param options Options for the error notification
263
+ * @returns Notification unique id
264
+ */
265
+ function emit<T extends ReadonlyJSONValue = ReadonlyJSONValue>(message: string, type?: TypeOptions, options?: IOptions<T>): string;
266
+ /**
267
+ * Helper function to emit an error notification.
268
+ *
269
+ * #### Notes
270
+ * The message will be truncated if longer than 140 characters.
271
+ *
272
+ * @param message Notification message
273
+ * @param options Options for the error notification
274
+ * @returns Notification unique id
275
+ */
276
+ function error<T extends ReadonlyJSONValue = ReadonlyJSONValue>(message: string, options?: IOptions<T>): string;
277
+ /**
278
+ * Helper function to emit an info notification.
279
+ *
280
+ * #### Notes
281
+ * The message will be truncated if longer than 140 characters.
282
+ *
283
+ * @param message Notification message
284
+ * @param options Options for the info notification
285
+ * @returns Notification unique id
286
+ */
287
+ function info<T extends ReadonlyJSONValue = ReadonlyJSONValue>(message: string, options?: IOptions<T>): string;
288
+ /**
289
+ * Helper function to show an in-progress notification.
290
+ *
291
+ * #### Notes
292
+ * The message will be truncated if longer than 140 characters.
293
+ *
294
+ * @param promise Promise to wait for
295
+ * @param options Options for the in-progress notification
296
+ * @returns Notification unique id
297
+ */
298
+ function promise<Pending extends ReadonlyJSONValue = ReadonlyJSONValue, Success extends ReadonlyJSONValue = Pending, Error extends ReadonlyJSONValue = Pending>(promise: Promise<Success>, options: IPromiseOptions<Pending, Success, Error>): string;
299
+ /**
300
+ * Helper function to emit a success notification.
301
+ *
302
+ * #### Notes
303
+ * The message will be truncated if longer than 140 characters.
304
+ *
305
+ * @param message Notification message
306
+ * @param options Options for the success notification
307
+ * @returns Notification unique id
308
+ */
309
+ function success<T extends ReadonlyJSONValue = ReadonlyJSONValue>(message: string, options?: IOptions<T>): string;
310
+ /**
311
+ * Helper function to update a notification.
312
+ *
313
+ * If the notification does not exists, nothing will happen.
314
+ *
315
+ * Once updated the notification will be moved at the begin
316
+ * of the notification stack.
317
+ *
318
+ * #### Notes
319
+ * The message will be truncated if longer than 140 characters.
320
+ *
321
+ * @param args Update options
322
+ * @returns Whether the update was successful or not.
323
+ */
324
+ function update<T extends ReadonlyJSONValue = ReadonlyJSONValue>(args: IUpdate<T>): boolean;
325
+ /**
326
+ * Helper function to emit a warning notification.
327
+ *
328
+ * #### Notes
329
+ * The message will be truncated if longer than 140 characters.
330
+ *
331
+ * @param message Notification message
332
+ * @param options Options for the warning notification
333
+ * @returns Notification unique id
334
+ */
335
+ function warning<T extends ReadonlyJSONValue = ReadonlyJSONValue>(message: string, options?: IOptions<T>): string;
336
+ }
@@ -0,0 +1,310 @@
1
+ /*
2
+ * Copyright (c) Jupyter Development Team.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ import { UUID } from '@lumino/coreutils';
6
+ import { Signal } from '@lumino/signaling';
7
+ /**
8
+ * Notification manager
9
+ */
10
+ export class NotificationManager {
11
+ constructor() {
12
+ this._isDisposed = false;
13
+ this._queue = [];
14
+ this._changed = new Signal(this);
15
+ }
16
+ /**
17
+ * Signal emitted whenever a notification changes.
18
+ */
19
+ get changed() {
20
+ return this._changed;
21
+ }
22
+ /**
23
+ * Total number of notifications.
24
+ */
25
+ get count() {
26
+ return this._queue.length;
27
+ }
28
+ /**
29
+ * Whether the manager is disposed or not.
30
+ */
31
+ get isDisposed() {
32
+ return this._isDisposed;
33
+ }
34
+ /**
35
+ * The list of notifications.
36
+ */
37
+ get notifications() {
38
+ return this._queue.slice();
39
+ }
40
+ /**
41
+ * Dismiss one notification (specified by its id) or all if no id provided.
42
+ *
43
+ * @param id Notification id
44
+ */
45
+ dismiss(id) {
46
+ if (typeof id === 'undefined') {
47
+ const q = this._queue.slice();
48
+ this._queue.length = 0;
49
+ for (const notification of q) {
50
+ this._changed.emit({
51
+ type: 'removed',
52
+ notification
53
+ });
54
+ }
55
+ }
56
+ else {
57
+ const notificationIndex = this._queue.findIndex(n => n.id === id);
58
+ if (notificationIndex > -1) {
59
+ const notification = this._queue.splice(notificationIndex, 1)[0];
60
+ this._changed.emit({
61
+ type: 'removed',
62
+ notification
63
+ });
64
+ }
65
+ }
66
+ }
67
+ /**
68
+ * Dispose the manager.
69
+ */
70
+ dispose() {
71
+ if (this._isDisposed) {
72
+ return;
73
+ }
74
+ this._isDisposed = true;
75
+ Signal.clearData(this);
76
+ }
77
+ /**
78
+ * Test whether a notification exists or not.
79
+ *
80
+ * @param id Notification id
81
+ * @returns Notification status
82
+ */
83
+ has(id) {
84
+ return this._queue.findIndex(n => n.id === id) > -1;
85
+ }
86
+ /**
87
+ * Add a new notification.
88
+ *
89
+ * This will trigger the `changed` signal with an `added` event.
90
+ *
91
+ * @param message Notification message
92
+ * @param type Notification type
93
+ * @param options Notification option
94
+ * @returns Notification unique id
95
+ */
96
+ notify(message, type, options) {
97
+ const now = Date.now();
98
+ const { progress, ...othersOptions } = options;
99
+ const notification = Object.freeze({
100
+ id: UUID.uuid4(),
101
+ createdAt: now,
102
+ modifiedAt: now,
103
+ message,
104
+ type,
105
+ options: {
106
+ // By default notification will be silent
107
+ autoClose: 0,
108
+ progress: typeof progress === 'number'
109
+ ? Math.min(Math.max(0, progress), 1)
110
+ : progress,
111
+ ...othersOptions
112
+ }
113
+ });
114
+ this._queue.unshift(notification);
115
+ this._changed.emit({
116
+ type: 'added',
117
+ notification
118
+ });
119
+ return notification.id;
120
+ }
121
+ /**
122
+ * Update an existing notification.
123
+ *
124
+ * If the notification does not exists this won't do anything.
125
+ *
126
+ * Once updated the notification will be moved at the begin
127
+ * of the notification stack.
128
+ *
129
+ * @param args Update options
130
+ * @returns Whether the update was successful or not.
131
+ */
132
+ update(args) {
133
+ const { id, message, actions, autoClose, data, progress, type } = args;
134
+ const newProgress = typeof progress === 'number'
135
+ ? Math.min(Math.max(0, progress), 1)
136
+ : progress;
137
+ const notificationIndex = this._queue.findIndex(n => n.id === id);
138
+ if (notificationIndex > -1) {
139
+ const oldNotification = this._queue[notificationIndex];
140
+ // We need to create a new object as notification are frozen; i.e. cannot be edited
141
+ const notification = Object.freeze({
142
+ ...oldNotification,
143
+ message: message !== null && message !== void 0 ? message : oldNotification.message,
144
+ type: type !== null && type !== void 0 ? type : oldNotification.type,
145
+ options: {
146
+ actions: actions !== null && actions !== void 0 ? actions : oldNotification.options.actions,
147
+ autoClose: autoClose !== null && autoClose !== void 0 ? autoClose : oldNotification.options.autoClose,
148
+ data: data !== null && data !== void 0 ? data : oldNotification.options.data,
149
+ progress: newProgress !== null && newProgress !== void 0 ? newProgress : oldNotification.options.progress
150
+ },
151
+ modifiedAt: Date.now()
152
+ });
153
+ this._queue.splice(notificationIndex, 1);
154
+ this._queue.unshift(notification);
155
+ this._changed.emit({
156
+ type: 'updated',
157
+ notification
158
+ });
159
+ return true;
160
+ }
161
+ return false;
162
+ }
163
+ }
164
+ /**
165
+ * Notification namespace
166
+ */
167
+ export var Notification;
168
+ (function (Notification) {
169
+ /**
170
+ * The global notification manager.
171
+ */
172
+ Notification.manager = new NotificationManager();
173
+ /**
174
+ * Dismiss one notification (specified by its id) or all if no id provided
175
+ *
176
+ * @param id notification id
177
+ */
178
+ function dismiss(id) {
179
+ Notification.manager.dismiss(id);
180
+ }
181
+ Notification.dismiss = dismiss;
182
+ /**
183
+ * Helper function to emit a notification.
184
+ *
185
+ * #### Notes
186
+ * The message will be truncated if longer than 140 characters.
187
+ *
188
+ * @param message Notification message
189
+ * @param type Notification type
190
+ * @param options Options for the error notification
191
+ * @returns Notification unique id
192
+ */
193
+ function emit(message, type = 'default', options = {}) {
194
+ return Notification.manager.notify(message, type, options);
195
+ }
196
+ Notification.emit = emit;
197
+ /**
198
+ * Helper function to emit an error notification.
199
+ *
200
+ * #### Notes
201
+ * The message will be truncated if longer than 140 characters.
202
+ *
203
+ * @param message Notification message
204
+ * @param options Options for the error notification
205
+ * @returns Notification unique id
206
+ */
207
+ function error(message, options = {}) {
208
+ return Notification.manager.notify(message, 'error', options);
209
+ }
210
+ Notification.error = error;
211
+ /**
212
+ * Helper function to emit an info notification.
213
+ *
214
+ * #### Notes
215
+ * The message will be truncated if longer than 140 characters.
216
+ *
217
+ * @param message Notification message
218
+ * @param options Options for the info notification
219
+ * @returns Notification unique id
220
+ */
221
+ function info(message, options = {}) {
222
+ return Notification.manager.notify(message, 'info', options);
223
+ }
224
+ Notification.info = info;
225
+ /**
226
+ * Helper function to show an in-progress notification.
227
+ *
228
+ * #### Notes
229
+ * The message will be truncated if longer than 140 characters.
230
+ *
231
+ * @param promise Promise to wait for
232
+ * @param options Options for the in-progress notification
233
+ * @returns Notification unique id
234
+ */
235
+ function promise(promise, options) {
236
+ var _a;
237
+ const { pending, error, success } = options;
238
+ const id = Notification.manager.notify(pending.message, 'in-progress', (_a = pending.options) !== null && _a !== void 0 ? _a : {});
239
+ promise
240
+ .then(result => {
241
+ var _a, _b, _c;
242
+ Notification.manager.update({
243
+ id,
244
+ message: success.message(result, (_a = success.options) === null || _a === void 0 ? void 0 : _a.data),
245
+ type: 'success',
246
+ ...success.options,
247
+ data: (_c = (_b = success.options) === null || _b === void 0 ? void 0 : _b.data) !== null && _c !== void 0 ? _c : result
248
+ });
249
+ })
250
+ .catch(reason => {
251
+ var _a, _b, _c;
252
+ Notification.manager.update({
253
+ id,
254
+ message: error.message(reason, (_a = error.options) === null || _a === void 0 ? void 0 : _a.data),
255
+ type: 'error',
256
+ ...error.options,
257
+ data: (_c = (_b = error.options) === null || _b === void 0 ? void 0 : _b.data) !== null && _c !== void 0 ? _c : reason
258
+ });
259
+ });
260
+ return id;
261
+ }
262
+ Notification.promise = promise;
263
+ /**
264
+ * Helper function to emit a success notification.
265
+ *
266
+ * #### Notes
267
+ * The message will be truncated if longer than 140 characters.
268
+ *
269
+ * @param message Notification message
270
+ * @param options Options for the success notification
271
+ * @returns Notification unique id
272
+ */
273
+ function success(message, options = {}) {
274
+ return Notification.manager.notify(message, 'success', options);
275
+ }
276
+ Notification.success = success;
277
+ /**
278
+ * Helper function to update a notification.
279
+ *
280
+ * If the notification does not exists, nothing will happen.
281
+ *
282
+ * Once updated the notification will be moved at the begin
283
+ * of the notification stack.
284
+ *
285
+ * #### Notes
286
+ * The message will be truncated if longer than 140 characters.
287
+ *
288
+ * @param args Update options
289
+ * @returns Whether the update was successful or not.
290
+ */
291
+ function update(args) {
292
+ return Notification.manager.update(args);
293
+ }
294
+ Notification.update = update;
295
+ /**
296
+ * Helper function to emit a warning notification.
297
+ *
298
+ * #### Notes
299
+ * The message will be truncated if longer than 140 characters.
300
+ *
301
+ * @param message Notification message
302
+ * @param options Options for the warning notification
303
+ * @returns Notification unique id
304
+ */
305
+ function warning(message, options = {}) {
306
+ return Notification.manager.notify(message, 'warning', options);
307
+ }
308
+ Notification.warning = warning;
309
+ })(Notification || (Notification = {}));
310
+ //# sourceMappingURL=notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../src/notification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAqB,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAC9B;QACE,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,MAAM,CAA4C,IAAI,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,EAAW;QACjB,IAAI,OAAO,EAAE,KAAK,WAAW,EAAE;YAC7B,M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,CAAC,CAAC;aACD,KAAK,CAAC,MAAM,CAAC,EAAE;;YACd,aAAA,OAAO,CAAC,MAAM,CAAQ;gBACpB,EAAE;gBACF,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,IAAI,CAAC;gBACnD,IAAI,EAAE,OAAO;gBACb,GAAG,KAAK,CAAC,OAAO;gBAChB,IAAI,EAAE,MAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,IAAI,mCAAI,MAAM;aACpC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACL,OAAO,EAAE,CAAC;IACZ,CAAC;IAlCe,oBAAO,UAkCtB,CAAA;IAED;;;;;;;;;OASG;IACH,SAAgB,OAAO,CACrB,OAAe,EACf,UAAuB,EAAE;QAEzB,OAAO,aAAA,OAAO,CAAC,MAAM,CAAI,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IALe,oBAAO,UAKtB,CAAA;IAED;;;;;;;;;;;;;OAaG;IACH,SAAgB,MAAM,CACpB,IAAgB;QAEhB,OAAO,aAAA,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAJe,mBAAM,SAIrB,CAAA;IAED;;;;;;;;;OASG;IACH,SAAgB,OAAO,CACrB,OAAe,EACf,UAAuB,EAAE;QAEzB,OAAO,aAAA,OAAO,CAAC,MAAM,CAAI,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IALe,oBAAO,UAKtB,CAAA;AACH,CAAC,EAzWgB,YAAY,KAAZ,YAAY,QAyW5B"}
@@ -3,7 +3,7 @@
3
3
  import { nullTranslator } from '@jupyterlab/translation';
4
4
  import { kernelIcon, terminalIcon, VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
5
5
  import React from 'react';
6
- import { GroupItem, interactiveItem, TextItem } from '@jupyterlab/statusbar';
6
+ import { GroupItem, TextItem } from '@jupyterlab/statusbar';
7
7
  /**
8
8
  * Half spacing between subitems in a status item.
9
9
  */
@@ -39,7 +39,7 @@ export class RunningSessions extends VDomRenderer {
39
39
  this._trans = this.translator.load('jupyterload');
40
40
  this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged, this);
41
41
  this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged, this);
42
- this.addClass(interactiveItem);
42
+ this.addClass('jp-mod-highlighted');
43
43
  }
44
44
  /**
45
45
  * Render the running sessions widget.
@@ -1 +1 @@
1
- {"version":3,"file":"runningSessions.js","sourceRoot":"","sources":["../src/runningSessions.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAS3D,OAAO,EAEL,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,SAAS,EACT,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE7E;;GAEG;AACH,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB;;;;;;GAMG;AACH,SAAS,wBAAwB,CAC/B,KAAsC;IAEtC,OAAO,CACL,oBAAC,SAAS,IAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,CAAC,WAAW;QAC1D,oBAAC,SAAS,IAAC,OAAO,EAAE,YAAY;YAC9B,oBAAC,QAAQ,IAAC,MAAM,EAAE,KAAK,CAAC,SAAS,GAAI;YACrC,oBAAC,YAAY,CAAC,KAAK,IAAC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,GAAI,CAC9D;QACZ,oBAAC,SAAS,IAAC,OAAO,EAAE,YAAY;YAC9B,oBAAC,QAAQ,IAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,GAAI;YACpC,oBAAC,UAAU,CAAC,KAAK,IAA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