@theia/messages 1.48.1 → 1.48.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.
Files changed (37) hide show
  1. package/README.md +30 -30
  2. package/lib/browser/messages-frontend-module.d.ts +4 -4
  3. package/lib/browser/messages-frontend-module.js +41 -41
  4. package/lib/browser/notification-center-component.d.ts +18 -18
  5. package/lib/browser/notification-center-component.js +67 -67
  6. package/lib/browser/notification-component.d.ts +15 -15
  7. package/lib/browser/notification-component.js +88 -88
  8. package/lib/browser/notification-content-renderer.d.ts +5 -5
  9. package/lib/browser/notification-content-renderer.js +35 -35
  10. package/lib/browser/notification-content-renderer.spec.d.ts +1 -1
  11. package/lib/browser/notification-content-renderer.spec.js +41 -41
  12. package/lib/browser/notification-preferences.d.ts +11 -11
  13. package/lib/browser/notification-preferences.js +46 -46
  14. package/lib/browser/notification-toasts-component.d.ts +18 -18
  15. package/lib/browser/notification-toasts-component.js +48 -48
  16. package/lib/browser/notifications-commands.d.ts +7 -7
  17. package/lib/browser/notifications-commands.js +47 -47
  18. package/lib/browser/notifications-contribution.d.ts +21 -21
  19. package/lib/browser/notifications-contribution.js +203 -203
  20. package/lib/browser/notifications-manager.d.ts +71 -71
  21. package/lib/browser/notifications-manager.js +274 -274
  22. package/lib/browser/notifications-renderer.d.ts +13 -13
  23. package/lib/browser/notifications-renderer.js +67 -67
  24. package/package.json +4 -4
  25. package/src/browser/messages-frontend-module.ts +42 -42
  26. package/src/browser/notification-center-component.tsx +95 -95
  27. package/src/browser/notification-component.tsx +128 -128
  28. package/src/browser/notification-content-renderer.spec.ts +73 -73
  29. package/src/browser/notification-content-renderer.ts +31 -31
  30. package/src/browser/notification-preferences.ts +58 -58
  31. package/src/browser/notification-toasts-component.tsx +67 -67
  32. package/src/browser/notifications-commands.ts +50 -50
  33. package/src/browser/notifications-contribution.ts +218 -218
  34. package/src/browser/notifications-manager.ts +305 -305
  35. package/src/browser/notifications-renderer.tsx +61 -61
  36. package/src/browser/style/index.css +17 -17
  37. package/src/browser/style/notifications.css +283 -283
@@ -1,61 +1,61 @@
1
- // *****************************************************************************
2
- // Copyright (C) 2019 TypeFox and others.
3
- //
4
- // This program and the accompanying materials are made available under the
5
- // terms of the Eclipse Public License v. 2.0 which is available at
6
- // http://www.eclipse.org/legal/epl-2.0.
7
- //
8
- // This Source Code may also be made available under the following Secondary
9
- // Licenses when the conditions for such availability set forth in the Eclipse
10
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- // with the GNU Classpath Exception which is available at
12
- // https://www.gnu.org/software/classpath/license.html.
13
- //
14
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- // *****************************************************************************
16
-
17
- import * as React from '@theia/core/shared/react';
18
- import { createRoot, Root } from '@theia/core/shared/react-dom/client';
19
- import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
20
- import { ApplicationShell, CorePreferences } from '@theia/core/lib/browser';
21
- import { NotificationManager } from './notifications-manager';
22
- import { NotificationCenterComponent } from './notification-center-component';
23
- import { NotificationToastsComponent } from './notification-toasts-component';
24
-
25
- @injectable()
26
- export class NotificationsRenderer {
27
-
28
- @inject(ApplicationShell)
29
- protected readonly shell: ApplicationShell;
30
-
31
- @inject(NotificationManager)
32
- protected readonly manager: NotificationManager;
33
-
34
- @inject(CorePreferences)
35
- protected readonly corePreferences: CorePreferences;
36
- protected containerRoot: Root;
37
-
38
- @postConstruct()
39
- protected init(): void {
40
- this.createOverlayContainer();
41
- this.render();
42
- }
43
-
44
- protected container: HTMLDivElement;
45
- protected createOverlayContainer(): void {
46
- this.container = window.document.createElement('div');
47
- this.container.className = 'theia-notifications-overlay';
48
- if (window.document.body) {
49
- window.document.body.appendChild(this.container);
50
- }
51
- this.containerRoot = createRoot(this.container);
52
- }
53
-
54
- protected render(): void {
55
- this.containerRoot.render(<div>
56
- <NotificationToastsComponent manager={this.manager} corePreferences={this.corePreferences} />
57
- <NotificationCenterComponent manager={this.manager} />
58
- </div>);
59
- }
60
-
61
- }
1
+ // *****************************************************************************
2
+ // Copyright (C) 2019 TypeFox and others.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import * as React from '@theia/core/shared/react';
18
+ import { createRoot, Root } from '@theia/core/shared/react-dom/client';
19
+ import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
20
+ import { ApplicationShell, CorePreferences } from '@theia/core/lib/browser';
21
+ import { NotificationManager } from './notifications-manager';
22
+ import { NotificationCenterComponent } from './notification-center-component';
23
+ import { NotificationToastsComponent } from './notification-toasts-component';
24
+
25
+ @injectable()
26
+ export class NotificationsRenderer {
27
+
28
+ @inject(ApplicationShell)
29
+ protected readonly shell: ApplicationShell;
30
+
31
+ @inject(NotificationManager)
32
+ protected readonly manager: NotificationManager;
33
+
34
+ @inject(CorePreferences)
35
+ protected readonly corePreferences: CorePreferences;
36
+ protected containerRoot: Root;
37
+
38
+ @postConstruct()
39
+ protected init(): void {
40
+ this.createOverlayContainer();
41
+ this.render();
42
+ }
43
+
44
+ protected container: HTMLDivElement;
45
+ protected createOverlayContainer(): void {
46
+ this.container = window.document.createElement('div');
47
+ this.container.className = 'theia-notifications-overlay';
48
+ if (window.document.body) {
49
+ window.document.body.appendChild(this.container);
50
+ }
51
+ this.containerRoot = createRoot(this.container);
52
+ }
53
+
54
+ protected render(): void {
55
+ this.containerRoot.render(<div>
56
+ <NotificationToastsComponent manager={this.manager} corePreferences={this.corePreferences} />
57
+ <NotificationCenterComponent manager={this.manager} />
58
+ </div>);
59
+ }
60
+
61
+ }
@@ -1,17 +1,17 @@
1
- /********************************************************************************
2
- * Copyright (C) 2017 TypeFox and others.
3
- *
4
- * This program and the accompanying materials are made available under the
5
- * terms of the Eclipse Public License v. 2.0 which is available at
6
- * http://www.eclipse.org/legal/epl-2.0.
7
- *
8
- * This Source Code may also be made available under the following Secondary
9
- * Licenses when the conditions for such availability set forth in the Eclipse
10
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
- * with the GNU Classpath Exception which is available at
12
- * https://www.gnu.org/software/classpath/license.html.
13
- *
14
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
- ********************************************************************************/
16
-
17
- @import "./notifications.css";
1
+ /********************************************************************************
2
+ * Copyright (C) 2017 TypeFox and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ @import "./notifications.css";