@theia/messages 1.67.0-next.13 → 1.67.0-next.56

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 (50) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -3
  3. package/lib/browser/messages-frontend-module.d.ts +0 -5
  4. package/lib/browser/messages-frontend-module.d.ts.map +0 -1
  5. package/lib/browser/messages-frontend-module.js +0 -42
  6. package/lib/browser/messages-frontend-module.js.map +0 -1
  7. package/lib/browser/notification-center-component.d.ts +0 -19
  8. package/lib/browser/notification-center-component.d.ts.map +0 -1
  9. package/lib/browser/notification-center-component.js +0 -68
  10. package/lib/browser/notification-center-component.js.map +0 -1
  11. package/lib/browser/notification-component.d.ts +0 -16
  12. package/lib/browser/notification-component.d.ts.map +0 -1
  13. package/lib/browser/notification-component.js +0 -89
  14. package/lib/browser/notification-component.js.map +0 -1
  15. package/lib/browser/notification-content-renderer.d.ts +0 -6
  16. package/lib/browser/notification-content-renderer.d.ts.map +0 -1
  17. package/lib/browser/notification-content-renderer.js +0 -36
  18. package/lib/browser/notification-content-renderer.js.map +0 -1
  19. package/lib/browser/notification-content-renderer.spec.d.ts +0 -2
  20. package/lib/browser/notification-content-renderer.spec.d.ts.map +0 -1
  21. package/lib/browser/notification-content-renderer.spec.js +0 -42
  22. package/lib/browser/notification-content-renderer.spec.js.map +0 -1
  23. package/lib/browser/notification-toasts-component.d.ts +0 -19
  24. package/lib/browser/notification-toasts-component.d.ts.map +0 -1
  25. package/lib/browser/notification-toasts-component.js +0 -49
  26. package/lib/browser/notification-toasts-component.js.map +0 -1
  27. package/lib/browser/notifications-commands.d.ts +0 -8
  28. package/lib/browser/notifications-commands.d.ts.map +0 -1
  29. package/lib/browser/notifications-commands.js +0 -48
  30. package/lib/browser/notifications-commands.js.map +0 -1
  31. package/lib/browser/notifications-contribution.d.ts +0 -22
  32. package/lib/browser/notifications-contribution.d.ts.map +0 -1
  33. package/lib/browser/notifications-contribution.js +0 -204
  34. package/lib/browser/notifications-contribution.js.map +0 -1
  35. package/lib/browser/notifications-manager.d.ts +0 -72
  36. package/lib/browser/notifications-manager.d.ts.map +0 -1
  37. package/lib/browser/notifications-manager.js +0 -279
  38. package/lib/browser/notifications-manager.js.map +0 -1
  39. package/lib/browser/notifications-renderer.d.ts +0 -15
  40. package/lib/browser/notifications-renderer.d.ts.map +0 -1
  41. package/lib/browser/notifications-renderer.js +0 -69
  42. package/lib/browser/notifications-renderer.js.map +0 -1
  43. package/lib/common/notification-preferences.d.ts +0 -12
  44. package/lib/common/notification-preferences.d.ts.map +0 -1
  45. package/lib/common/notification-preferences.js +0 -46
  46. package/lib/common/notification-preferences.js.map +0 -1
  47. package/lib/node/messages-backend-module.d.ts +0 -4
  48. package/lib/node/messages-backend-module.d.ts.map +0 -1
  49. package/lib/node/messages-backend-module.js +0 -23
  50. package/lib/node/messages-backend-module.js.map +0 -1
@@ -1,69 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.NotificationsRenderer = void 0;
19
- const tslib_1 = require("tslib");
20
- const React = require("@theia/core/shared/react");
21
- const client_1 = require("@theia/core/shared/react-dom/client");
22
- const inversify_1 = require("@theia/core/shared/inversify");
23
- const browser_1 = require("@theia/core/lib/browser");
24
- const notifications_manager_1 = require("./notifications-manager");
25
- const notification_center_component_1 = require("./notification-center-component");
26
- const notification_toasts_component_1 = require("./notification-toasts-component");
27
- const core_1 = require("@theia/core");
28
- let NotificationsRenderer = class NotificationsRenderer {
29
- init() {
30
- this.createOverlayContainer();
31
- this.render();
32
- }
33
- createOverlayContainer() {
34
- this.container = window.document.createElement('div');
35
- this.container.className = 'theia-notifications-overlay';
36
- if (window.document.body) {
37
- window.document.body.appendChild(this.container);
38
- }
39
- this.containerRoot = (0, client_1.createRoot)(this.container);
40
- }
41
- render() {
42
- this.containerRoot.render(React.createElement("div", null,
43
- React.createElement(notification_toasts_component_1.NotificationToastsComponent, { manager: this.manager, corePreferences: this.corePreferences }),
44
- React.createElement(notification_center_component_1.NotificationCenterComponent, { manager: this.manager })));
45
- }
46
- };
47
- exports.NotificationsRenderer = NotificationsRenderer;
48
- tslib_1.__decorate([
49
- (0, inversify_1.inject)(browser_1.ApplicationShell),
50
- tslib_1.__metadata("design:type", browser_1.ApplicationShell)
51
- ], NotificationsRenderer.prototype, "shell", void 0);
52
- tslib_1.__decorate([
53
- (0, inversify_1.inject)(notifications_manager_1.NotificationManager),
54
- tslib_1.__metadata("design:type", notifications_manager_1.NotificationManager)
55
- ], NotificationsRenderer.prototype, "manager", void 0);
56
- tslib_1.__decorate([
57
- (0, inversify_1.inject)(core_1.CorePreferences),
58
- tslib_1.__metadata("design:type", Object)
59
- ], NotificationsRenderer.prototype, "corePreferences", void 0);
60
- tslib_1.__decorate([
61
- (0, inversify_1.postConstruct)(),
62
- tslib_1.__metadata("design:type", Function),
63
- tslib_1.__metadata("design:paramtypes", []),
64
- tslib_1.__metadata("design:returntype", void 0)
65
- ], NotificationsRenderer.prototype, "init", null);
66
- exports.NotificationsRenderer = NotificationsRenderer = tslib_1.__decorate([
67
- (0, inversify_1.injectable)()
68
- ], NotificationsRenderer);
69
- //# sourceMappingURL=notifications-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notifications-renderer.js","sourceRoot":"","sources":["../../src/browser/notifications-renderer.tsx"],"names":[],"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xB;IADlB,IAAA,kBAAM,EAAC,2CAAmB,CAAC;sCACA,2CAAmB;sDAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,sBAAe,CAAC;;8DAC4B;AAI1C;IADT,IAAA,yBAAa,GAAE;;;;iDAIf;gCAhBQ,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAmCjC"}
@@ -1,12 +0,0 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/common/preferences';
3
- export declare const NotificationConfigSchema: PreferenceSchema;
4
- export interface NotificationConfiguration {
5
- 'notification.timeout': number;
6
- }
7
- export declare const NotificationPreferenceContribution: unique symbol;
8
- export declare const NotificationPreferences: unique symbol;
9
- export type NotificationPreferences = PreferenceProxy<NotificationConfiguration>;
10
- export declare function createNotificationPreferences(preferences: PreferenceService, schema?: PreferenceSchema): NotificationPreferences;
11
- export declare function bindNotificationPreferences(bind: interfaces.Bind): void;
12
- //# sourceMappingURL=notification-preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-preferences.d.ts","sourceRoot":"","sources":["../../src/common/notification-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAGH,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACpB,MAAM,oCAAoC,CAAC;AAG5C,eAAO,MAAM,wBAAwB,EAAE,gBAQtC,CAAC;AAEF,MAAM,WAAW,yBAAyB;IACtC,sBAAsB,EAAE,MAAM,CAAA;CACjC;AAED,eAAO,MAAM,kCAAkC,eAA+C,CAAC;AAC/F,eAAO,MAAM,uBAAuB,eAAoC,CAAC;AACzE,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAEjF,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAA2C,GAAG,uBAAuB,CAE1J;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQvE"}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 Ericsson and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.bindNotificationPreferences = exports.createNotificationPreferences = exports.NotificationPreferences = exports.NotificationPreferenceContribution = exports.NotificationConfigSchema = void 0;
19
- const preferences_1 = require("@theia/core/lib/common/preferences");
20
- const nls_1 = require("@theia/core/lib/common/nls");
21
- exports.NotificationConfigSchema = {
22
- 'properties': {
23
- 'notification.timeout': {
24
- 'type': 'number',
25
- 'description': nls_1.nls.localize('theia/messages/notificationTimeout', 'Informative notifications will be hidden after this timeout.'),
26
- 'default': 30 * 1000 // `0` and negative values are treated as no timeout.
27
- }
28
- }
29
- };
30
- exports.NotificationPreferenceContribution = Symbol('NotificationPreferenceContribution');
31
- exports.NotificationPreferences = Symbol('NotificationPreferences');
32
- function createNotificationPreferences(preferences, schema = exports.NotificationConfigSchema) {
33
- return (0, preferences_1.createPreferenceProxy)(preferences, schema);
34
- }
35
- exports.createNotificationPreferences = createNotificationPreferences;
36
- function bindNotificationPreferences(bind) {
37
- bind(exports.NotificationPreferences).toDynamicValue(ctx => {
38
- const preferences = ctx.container.get(preferences_1.PreferenceService);
39
- const contribution = ctx.container.get(exports.NotificationPreferenceContribution);
40
- return createNotificationPreferences(preferences, contribution.schema);
41
- }).inSingletonScope();
42
- bind(exports.NotificationPreferenceContribution).toConstantValue({ schema: exports.NotificationConfigSchema });
43
- bind(preferences_1.PreferenceContribution).toService(exports.NotificationPreferenceContribution);
44
- }
45
- exports.bindNotificationPreferences = bindNotificationPreferences;
46
- //# sourceMappingURL=notification-preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-preferences.js","sourceRoot":"","sources":["../../src/common/notification-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,oEAM4C;AAC5C,oDAAiD;AAEpC,QAAA,wBAAwB,GAAqB;IACtD,YAAY,EAAE;QACV,sBAAsB,EAAE;YACpB,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,SAAG,CAAC,QAAQ,CAAC,oCAAoC,EAAE,8DAA8D,CAAC;YACjI,SAAS,EAAE,EAAE,GAAG,IAAI,CAAC,qDAAqD;SAC7E;KACJ;CACJ,CAAC;AAMW,QAAA,kCAAkC,GAAG,MAAM,CAAC,oCAAoC,CAAC,CAAC;AAClF,QAAA,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAGzE,SAAgB,6BAA6B,CAAC,WAA8B,EAAE,SAA2B,gCAAwB;IAC7H,OAAO,IAAA,mCAAqB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,sEAEC;AAED,SAAgB,2BAA2B,CAAC,IAAqB;IAC7D,IAAI,CAAC,+BAAuB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QAC/C,MAAM,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAoB,+BAAiB,CAAC,CAAC;QAC5E,MAAM,YAAY,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAyB,0CAAkC,CAAC,CAAC;QACnG,OAAO,6BAA6B,CAAC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,0CAAkC,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,gCAAwB,EAAE,CAAC,CAAC;IAC/F,IAAI,CAAC,oCAAsB,CAAC,CAAC,SAAS,CAAC,0CAAkC,CAAC,CAAC;AAC/E,CAAC;AARD,kEAQC"}
@@ -1,4 +0,0 @@
1
- import { ContainerModule } from '@theia/core/shared/inversify';
2
- declare const _default: ContainerModule;
3
- export default _default;
4
- //# sourceMappingURL=messages-backend-module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/messages-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAG/D,wBAEG"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 STMicroelectronics and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const inversify_1 = require("@theia/core/shared/inversify");
19
- const notification_preferences_1 = require("../common/notification-preferences");
20
- exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
21
- (0, notification_preferences_1.bindNotificationPreferences)(bind);
22
- });
23
- //# sourceMappingURL=messages-backend-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages-backend-module.js","sourceRoot":"","sources":["../../src/node/messages-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,iFAAiF;AAEjF,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACjE,IAAA,sDAA2B,EAAC,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC,CAAC"}