@theia/messages 1.75.0-next.8 → 1.76.0-next.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.
- package/lib/browser/notification-center-component.js +4 -11
- package/lib/browser/notification-center-component.js.map +1 -1
- package/lib/browser/notification-component.js +10 -23
- package/lib/browser/notification-component.js.map +1 -1
- package/lib/browser/notification-toasts-component.js +4 -4
- package/lib/browser/notification-toasts-component.js.map +1 -1
- package/lib/browser/notifications-renderer.d.ts.map +1 -1
- package/lib/browser/notifications-renderer.js +5 -7
- package/lib/browser/notifications-renderer.js.map +1 -1
- package/package.json +4 -4
- package/src/browser/notifications-renderer.tsx +0 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationCenterComponent = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
2
5
|
// *****************************************************************************
|
|
3
6
|
// Copyright (C) 2019 TypeFox and others.
|
|
4
7
|
//
|
|
@@ -14,8 +17,6 @@
|
|
|
14
17
|
//
|
|
15
18
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
19
|
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotificationCenterComponent = void 0;
|
|
19
20
|
const React = require("@theia/core/shared/react");
|
|
20
21
|
const core_1 = require("@theia/core");
|
|
21
22
|
const notification_component_1 = require("./notification-component");
|
|
@@ -53,15 +54,7 @@ class NotificationCenterComponent extends React.Component {
|
|
|
53
54
|
const title = empty
|
|
54
55
|
? nls_1.nls.localizeByDefault('No New Notifications')
|
|
55
56
|
: nls_1.nls.localizeByDefault('Notifications');
|
|
56
|
-
return (
|
|
57
|
-
React.createElement("div", { className: 'theia-notification-center-header' },
|
|
58
|
-
React.createElement("div", { className: 'theia-notification-center-header-title' }, title),
|
|
59
|
-
React.createElement("div", { className: 'theia-notification-center-header-actions' },
|
|
60
|
-
React.createElement("ul", { className: 'theia-notification-actions' },
|
|
61
|
-
React.createElement("li", { className: (0, browser_1.codicon)('clear-all', true), title: nls_1.nls.localizeByDefault('Clear All Notifications'), onClick: this.onClearAll }),
|
|
62
|
-
React.createElement("li", { className: (0, browser_1.codicon)('chevron-down', true), title: nls_1.nls.localizeByDefault('Hide Notifications'), onClick: this.onHide })))),
|
|
63
|
-
React.createElement(PerfectScrollbar, { className: 'theia-notification-list-scroll-container' },
|
|
64
|
-
React.createElement("div", { className: 'theia-notification-list' }, this.state.notifications.map(notification => React.createElement(notification_component_1.NotificationComponent, { key: notification.messageId, notification: notification, manager: this.props.manager, contextMenuRenderer: this.props.contextMenuRenderer }))))));
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `theia-notifications-container theia-notification-center ${this.state.visibilityState === 'center' ? 'open' : 'closed'}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'theia-notification-center-header', children: [(0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-center-header-title', children: title }), (0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-center-header-actions', children: (0, jsx_runtime_1.jsxs)("ul", { className: 'theia-notification-actions', children: [(0, jsx_runtime_1.jsx)("li", { className: (0, browser_1.codicon)('clear-all', true), title: nls_1.nls.localizeByDefault('Clear All Notifications'), onClick: this.onClearAll }), (0, jsx_runtime_1.jsx)("li", { className: (0, browser_1.codicon)('chevron-down', true), title: nls_1.nls.localizeByDefault('Hide Notifications'), onClick: this.onHide })] }) })] }), (0, jsx_runtime_1.jsx)(PerfectScrollbar, { className: 'theia-notification-list-scroll-container', children: (0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-list', children: this.state.notifications.map(notification => (0, jsx_runtime_1.jsx)(notification_component_1.NotificationComponent, { notification: notification, manager: this.props.manager, contextMenuRenderer: this.props.contextMenuRenderer }, notification.messageId)) }) })] }));
|
|
65
58
|
}
|
|
66
59
|
}
|
|
67
60
|
exports.NotificationCenterComponent = NotificationCenterComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-center-component.js","sourceRoot":"","sources":["../../src/browser/notification-center-component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-center-component.js","sourceRoot":"","sources":["../../src/browser/notification-center-component.tsx"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,kDAAkD;AAClD,sCAAmD;AAEnD,qEAAiE;AACjE,qDAAuE;AACvE,oDAAiD;AAEjD,MAAM,gBAAgB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAS5D,MAAa,2BAA4B,SAAQ,KAAK,CAAC,SAA6E;IAEhI,YAAY,KAAuC;QAC/C,KAAK,CAAC,KAAK,CAAC,CAAC;QAOE,uBAAkB,GAAG,IAAI,2BAAoB,EAAE,CAAC;QA8CzD,WAAM,GAAG,GAAG,EAAE;YACpB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACpC,CAAC,CAAC;QAEQ,eAAU,GAAG,GAAG,EAAE;YACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC,CAAC;QA1DE,IAAI,CAAC,KAAK,GAAG;YACT,aAAa,EAAE,EAAE;YACjB,eAAe,EAAE,QAAQ;SAC5B,CAAC;IACN,CAAC;IAIQ,KAAK,CAAC,iBAAiB;QAC5B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CACxB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,aAAa,EAAE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,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CACzC,uBAAC,8CAAqB,IAA8B,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EACvG,mBAAmB,EAAE,IAAI,CAAC,KAAK,CAAC,mBAAmB,IAD3B,YAAY,CAAC,SAAS,CACS,CAC9D,GACC,GACS,IACjB,CACT,CAAC;IACN,CAAC;CAUJ;AAhED,kEAgEC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationComponent = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
2
5
|
// *****************************************************************************
|
|
3
6
|
// Copyright (C) 2019 TypeFox and others.
|
|
4
7
|
//
|
|
@@ -14,8 +17,6 @@
|
|
|
14
17
|
//
|
|
15
18
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
19
|
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotificationComponent = void 0;
|
|
19
20
|
const React = require("@theia/core/shared/react");
|
|
20
21
|
const DOMPurify = require("@theia/core/shared/dompurify");
|
|
21
22
|
const browser_1 = require("@theia/core/lib/browser");
|
|
@@ -75,27 +76,13 @@ class NotificationComponent extends React.Component {
|
|
|
75
76
|
const { messageId, message, type, progress, collapsed, expandable, source, actions } = this.props.notification;
|
|
76
77
|
const isProgress = type === 'progress' || typeof progress === 'number';
|
|
77
78
|
const icon = type === 'progress' ? 'info' : type;
|
|
78
|
-
return (
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// eslint-disable-next-line react/no-danger
|
|
86
|
-
dangerouslySetInnerHTML: {
|
|
87
|
-
__html: DOMPurify.sanitize(message, {
|
|
88
|
-
ALLOW_UNKNOWN_PROTOCOLS: true // DOMPurify usually strips non http(s) links from hrefs
|
|
89
|
-
})
|
|
90
|
-
}, onClick: this.onMessageClick })),
|
|
91
|
-
React.createElement("ul", { className: 'theia-notification-actions' },
|
|
92
|
-
expandable && (React.createElement("li", { className: (0, browser_1.codicon)('chevron-down', true) + (collapsed ? ' expand' : ' collapse'), title: collapsed ? 'Expand' : 'Collapse', "data-message-id": messageId, onClick: this.onToggleExpansion })),
|
|
93
|
-
!isProgress && (React.createElement("li", { className: (0, browser_1.codicon)('close', true), title: nls_1.nls.localizeByDefault('Clear'), "data-message-id": messageId, onClick: this.onClear })))),
|
|
94
|
-
(source || !!actions.length) && (React.createElement("div", { className: 'theia-notification-list-item-content-bottom' },
|
|
95
|
-
React.createElement("div", { className: 'theia-notification-source' }, source && (React.createElement("span", null, source))),
|
|
96
|
-
React.createElement("div", { className: 'theia-notification-buttons' }, actions && actions.map((action, index) => (React.createElement("button", { key: messageId + `-action-${index}`, className: 'theia-button', "data-message-id": messageId, "data-action": action, onClick: this.onAction }, action))))))),
|
|
97
|
-
isProgress && (React.createElement("div", { className: 'theia-notification-item-progress' },
|
|
98
|
-
React.createElement("div", { className: `theia-notification-item-progressbar ${progress ? 'determinate' : 'indeterminate'}`, style: { width: `${progress ?? '100'}%` } }))))));
|
|
79
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-list-item-container', onContextMenu: this.onContextMenu, children: (0, jsx_runtime_1.jsxs)("div", { className: 'theia-notification-list-item', tabIndex: 0, children: [(0, jsx_runtime_1.jsxs)("div", { className: `theia-notification-list-item-content ${collapsed ? 'collapsed' : ''}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'theia-notification-list-item-content-main', children: [(0, jsx_runtime_1.jsx)("div", { className: `theia-notification-icon ${(0, browser_1.codicon)(icon)} ${icon}` }), (0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-message', children: (0, jsx_runtime_1.jsx)("span", {
|
|
80
|
+
// eslint-disable-next-line react/no-danger
|
|
81
|
+
dangerouslySetInnerHTML: {
|
|
82
|
+
__html: DOMPurify.sanitize(message, {
|
|
83
|
+
ALLOW_UNKNOWN_PROTOCOLS: true // DOMPurify usually strips non http(s) links from hrefs
|
|
84
|
+
})
|
|
85
|
+
}, onClick: this.onMessageClick }) }), (0, jsx_runtime_1.jsxs)("ul", { className: 'theia-notification-actions', children: [expandable && ((0, jsx_runtime_1.jsx)("li", { className: (0, browser_1.codicon)('chevron-down', true) + (collapsed ? ' expand' : ' collapse'), title: collapsed ? 'Expand' : 'Collapse', "data-message-id": messageId, onClick: this.onToggleExpansion })), !isProgress && ((0, jsx_runtime_1.jsx)("li", { className: (0, browser_1.codicon)('close', true), title: nls_1.nls.localizeByDefault('Clear'), "data-message-id": messageId, onClick: this.onClear }))] })] }), (source || !!actions.length) && ((0, jsx_runtime_1.jsxs)("div", { className: 'theia-notification-list-item-content-bottom', children: [(0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-source', children: source && ((0, jsx_runtime_1.jsx)("span", { children: source })) }), (0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-buttons', children: actions && actions.map((action, index) => ((0, jsx_runtime_1.jsx)("button", { className: 'theia-button', "data-message-id": messageId, "data-action": action, onClick: this.onAction, children: action }, messageId + `-action-${index}`))) })] }))] }), isProgress && ((0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-item-progress', children: (0, jsx_runtime_1.jsx)("div", { className: `theia-notification-item-progressbar ${progress ? 'determinate' : 'indeterminate'}`, style: { width: `${progress ?? '100'}%` } }) }))] }) }, messageId));
|
|
99
86
|
}
|
|
100
87
|
}
|
|
101
88
|
exports.NotificationComponent = NotificationComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-component.js","sourceRoot":"","sources":["../../src/browser/notification-component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-component.js","sourceRoot":"","sources":["../../src/browser/notification-component.tsx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AAE,IAAA,iBAAO,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,KAAK,EAAE,SAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAmB,SAAS,EACrH,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CAAC,IAC7B,IACH,EACL,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAC7B,iCAAK,SAAS,EAAC,6CAA6C,aACxD,gCAAK,SAAS,EAAC,2BAA2B,YACrC,MAAM,IAAI,CAAC,2CAAO,MAAM,GAAQ,CAAC,GAChC,EACN,gCAAK,SAAS,EAAC,4BAA4B,YACtC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,mCAA6C,SAAS,EAAC,cAAc,qBAChD,SAAS,iBAAe,MAAM,EAC/C,OAAO,EAAE,IAAI,CAAC,QAAQ,YACrB,MAAM,IAHE,SAAS,GAAG,WAAW,KAAK,EAAE,CAIlC,CACZ,CAAC,GACA,IACJ,CACT,IACC,EACL,UAAU,IAAI,CACX,gCAAK,SAAS,EAAC,kCAAkC,YAC7C,gCAAK,SAAS,EAAE,uCAAuC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAAE,EAC/F,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,QAAQ,IAAI,KAAK,GAAG,EAAE,GAAI,GAC/C,CACT,IACC,IAhDQ,SAAS,CAiDrB,CAAC,CAAC;IACZ,CAAC;CAEJ;AAjHD,sDAiHC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationToastsComponent = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
2
5
|
// *****************************************************************************
|
|
3
6
|
// Copyright (C) 2019 TypeFox and others.
|
|
4
7
|
//
|
|
@@ -14,8 +17,6 @@
|
|
|
14
17
|
//
|
|
15
18
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
19
|
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NotificationToastsComponent = void 0;
|
|
19
20
|
const React = require("@theia/core/shared/react");
|
|
20
21
|
const core_1 = require("@theia/core");
|
|
21
22
|
const notification_component_1 = require("./notification-component");
|
|
@@ -41,8 +42,7 @@ class NotificationToastsComponent extends React.Component {
|
|
|
41
42
|
this.toDisposeOnUnmount.dispose();
|
|
42
43
|
}
|
|
43
44
|
render() {
|
|
44
|
-
return (
|
|
45
|
-
React.createElement("div", { className: 'theia-notification-list' }, this.state.toasts.map(notification => React.createElement(notification_component_1.NotificationComponent, { key: notification.messageId, notification: notification, manager: this.props.manager, contextMenuRenderer: this.props.contextMenuRenderer })))));
|
|
45
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `theia-notifications-container theia-notification-toasts ${this.state.visibilityState === 'toasts' ? 'open' : 'closed'}`, children: (0, jsx_runtime_1.jsx)("div", { className: 'theia-notification-list', children: this.state.toasts.map(notification => (0, jsx_runtime_1.jsx)(notification_component_1.NotificationComponent, { notification: notification, manager: this.props.manager, contextMenuRenderer: this.props.contextMenuRenderer }, notification.messageId)) }) }));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
exports.NotificationToastsComponent = NotificationToastsComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-toasts-component.js","sourceRoot":"","sources":["../../src/browser/notification-toasts-component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-toasts-component.js","sourceRoot":"","sources":["../../src/browser/notification-toasts-component.tsx"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE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IAA8B,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC9I,mBAAmB,EAAE,IAAI,CAAC,KAAK,CAAC,mBAAmB,IADY,YAAY,CAAC,SAAS,CAC9B,CAAC,GAC1D,GACJ,CACT,CAAC;IACN,CAAC;CAEJ;AAtCD,kEAsCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-renderer.d.ts","sourceRoot":"","sources":["../../src/browser/notifications-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifications-renderer.d.ts","sourceRoot":"","sources":["../../src/browser/notifications-renderer.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAc,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBACa,qBAAqB;IAG9B,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IAG3C,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAGpD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAE5D,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC;IAG9B,SAAS,CAAC,IAAI,IAAI,IAAI;IAKtB,SAAS,CAAC,SAAS,EAAE,cAAc,CAAC;IACpC,SAAS,CAAC,sBAAsB,IAAI,IAAI;IASxC,SAAS,CAAC,MAAM,IAAI,IAAI;CAO3B"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationsRenderer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
|
|
2
6
|
// *****************************************************************************
|
|
3
7
|
// Copyright (C) 2019 TypeFox and others.
|
|
4
8
|
//
|
|
@@ -14,10 +18,6 @@
|
|
|
14
18
|
//
|
|
15
19
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
20
|
// *****************************************************************************
|
|
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
21
|
const client_1 = require("@theia/core/shared/react-dom/client");
|
|
22
22
|
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
23
|
const browser_1 = require("@theia/core/lib/browser");
|
|
@@ -39,9 +39,7 @@ let NotificationsRenderer = class NotificationsRenderer {
|
|
|
39
39
|
this.containerRoot = (0, client_1.createRoot)(this.container);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
this.containerRoot.render(
|
|
43
|
-
React.createElement(notification_toasts_component_1.NotificationToastsComponent, { manager: this.manager, corePreferences: this.corePreferences, contextMenuRenderer: this.contextMenuRenderer }),
|
|
44
|
-
React.createElement(notification_center_component_1.NotificationCenterComponent, { manager: this.manager, contextMenuRenderer: this.contextMenuRenderer })));
|
|
42
|
+
this.containerRoot.render((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(notification_toasts_component_1.NotificationToastsComponent, { manager: this.manager, corePreferences: this.corePreferences, contextMenuRenderer: this.contextMenuRenderer }), (0, jsx_runtime_1.jsx)(notification_center_component_1.NotificationCenterComponent, { manager: this.manager, contextMenuRenderer: this.contextMenuRenderer })] }));
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
exports.NotificationsRenderer = NotificationsRenderer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications-renderer.js","sourceRoot":"","sources":["../../src/browser/notifications-renderer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifications-renderer.js","sourceRoot":"","sources":["../../src/browser/notifications-renderer.tsx"],"names":[],"mappings":";;;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,gEAAuE;AACvE,4DAAiF;AACjF,qDAAgF;AAChF,mEAA8D;AAC9D,mFAA8E;AAC9E,mFAA8E;AAC9E,sCAA8C;AAGvC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAiBpB,IAAI;QACV,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAGS,sBAAsB;QAC5B,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,6BAA6B,CAAC;QACzD,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACvB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrD,CAAC;QACD,IAAI,CAAC,aAAa,GAAG,IAAA,mBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;IAES,MAAM;QACZ,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,4CACtB,uBAAC,2DAA2B,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,GAAI,EAC5I,uBAAC,2DAA2B,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,GAAI,IACnG,CAAC,CAAC;IACZ,CAAC;CAEJ,CAAA;AAvCY,sDAAqB;AAGX;IADlB,IAAA,kBAAM,EAAC,0BAAgB,CAAC;sCACC,0BAAgB;oDAAC;AAGxB;IADlB,IAAA,kBAAM,EAAC,2CAAmB,CAAC;sCACA,2CAAmB;sDAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,sBAAe,CAAC;;8DAC4B;AAGjC;IADlB,IAAA,kBAAM,EAAC,6BAAmB,CAAC;sCACY,6BAAmB;kEAAC;AAKlD;IADT,IAAA,yBAAa,GAAE;;;;iDAIf;gCApBQ,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAuCjC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/messages",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.76.0-next.0+52f32db6e",
|
|
4
4
|
"description": "Theia - Messages Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
6
|
+
"@theia/core": "1.76.0-next.0+52f32db6e",
|
|
7
7
|
"react-perfect-scrollbar": "^1.5.8",
|
|
8
8
|
"ts-md5": "^1.3.1",
|
|
9
9
|
"tslib": "^2.8.1"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"watch": "theiaext watch"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@theia/ext-scripts": "1.
|
|
45
|
+
"@theia/ext-scripts": "1.75.0"
|
|
46
46
|
},
|
|
47
47
|
"nyc": {
|
|
48
48
|
"extends": "../../configs/nyc.json"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "52f32db6e32d1f88dbbbbde08c8a01ad75c53e11"
|
|
51
51
|
}
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import * as React from '@theia/core/shared/react';
|
|
18
17
|
import { createRoot, Root } from '@theia/core/shared/react-dom/client';
|
|
19
18
|
import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
|
|
20
19
|
import { ApplicationShell, ContextMenuRenderer } from '@theia/core/lib/browser';
|