@gedit/application-common
Advanced tools
Comparing version 0.1.61 to 0.1.62
@@ -24,5 +24,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -36,24 +41,24 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
(function (CommonMenus) { | ||
CommonMenus.FILE = __spread(common_1.MAIN_MENU_BAR, ['1_file']); | ||
CommonMenus.FILE_NEW = __spread(CommonMenus.FILE, ['1_new']); | ||
CommonMenus.FILE_OPEN = __spread(CommonMenus.FILE, ['2_open']); | ||
CommonMenus.FILE_SAVE = __spread(CommonMenus.FILE, ['3_save']); | ||
CommonMenus.FILE_AUTOSAVE = __spread(CommonMenus.FILE, ['4_autosave']); | ||
CommonMenus.FILE_SETTINGS = __spread(CommonMenus.FILE, ['5_settings']); | ||
CommonMenus.FILE_SETTINGS_SUBMENU = __spread(CommonMenus.FILE_SETTINGS, ['1_settings_submenu']); | ||
CommonMenus.FILE_SETTINGS_SUBMENU_OPEN = __spread(CommonMenus.FILE_SETTINGS_SUBMENU, ['1_settings_submenu_open']); | ||
CommonMenus.FILE_SETTINGS_SUBMENU_THEME = __spread(CommonMenus.FILE_SETTINGS_SUBMENU, ['2_settings_submenu_theme']); | ||
CommonMenus.FILE_CLOSE = __spread(CommonMenus.FILE, ['6_close']); | ||
CommonMenus.EDIT = __spread(common_1.MAIN_MENU_BAR, ['2_edit']); | ||
CommonMenus.EDIT_UNDO = __spread(CommonMenus.EDIT, ['1_undo']); | ||
CommonMenus.EDIT_CLIPBOARD = __spread(CommonMenus.EDIT, ['2_clipboard']); | ||
CommonMenus.EDIT_FIND = __spread(CommonMenus.EDIT, ['3_find']); | ||
CommonMenus.VIEW = __spread(common_1.MAIN_MENU_BAR, ['4_view']); | ||
CommonMenus.VIEW_PRIMARY = __spread(CommonMenus.VIEW, ['0_primary']); | ||
CommonMenus.VIEW_VIEWS = __spread(CommonMenus.VIEW, ['1_views']); | ||
CommonMenus.VIEW_LAYOUT = __spread(CommonMenus.VIEW, ['2_layout']); | ||
CommonMenus.VIEW_TOGGLE = __spread(CommonMenus.VIEW, ['3_toggle']); | ||
CommonMenus.FILE = __spreadArray(__spreadArray([], __read(common_1.MAIN_MENU_BAR), false), ['1_file'], false); | ||
CommonMenus.FILE_NEW = __spreadArray(__spreadArray([], __read(CommonMenus.FILE), false), ['1_new'], false); | ||
CommonMenus.FILE_OPEN = __spreadArray(__spreadArray([], __read(CommonMenus.FILE), false), ['2_open'], false); | ||
CommonMenus.FILE_SAVE = __spreadArray(__spreadArray([], __read(CommonMenus.FILE), false), ['3_save'], false); | ||
CommonMenus.FILE_AUTOSAVE = __spreadArray(__spreadArray([], __read(CommonMenus.FILE), false), ['4_autosave'], false); | ||
CommonMenus.FILE_SETTINGS = __spreadArray(__spreadArray([], __read(CommonMenus.FILE), false), ['5_settings'], false); | ||
CommonMenus.FILE_SETTINGS_SUBMENU = __spreadArray(__spreadArray([], __read(CommonMenus.FILE_SETTINGS), false), ['1_settings_submenu'], false); | ||
CommonMenus.FILE_SETTINGS_SUBMENU_OPEN = __spreadArray(__spreadArray([], __read(CommonMenus.FILE_SETTINGS_SUBMENU), false), ['1_settings_submenu_open'], false); | ||
CommonMenus.FILE_SETTINGS_SUBMENU_THEME = __spreadArray(__spreadArray([], __read(CommonMenus.FILE_SETTINGS_SUBMENU), false), ['2_settings_submenu_theme'], false); | ||
CommonMenus.FILE_CLOSE = __spreadArray(__spreadArray([], __read(CommonMenus.FILE), false), ['6_close'], false); | ||
CommonMenus.EDIT = __spreadArray(__spreadArray([], __read(common_1.MAIN_MENU_BAR), false), ['2_edit'], false); | ||
CommonMenus.EDIT_UNDO = __spreadArray(__spreadArray([], __read(CommonMenus.EDIT), false), ['1_undo'], false); | ||
CommonMenus.EDIT_CLIPBOARD = __spreadArray(__spreadArray([], __read(CommonMenus.EDIT), false), ['2_clipboard'], false); | ||
CommonMenus.EDIT_FIND = __spreadArray(__spreadArray([], __read(CommonMenus.EDIT), false), ['3_find'], false); | ||
CommonMenus.VIEW = __spreadArray(__spreadArray([], __read(common_1.MAIN_MENU_BAR), false), ['4_view'], false); | ||
CommonMenus.VIEW_PRIMARY = __spreadArray(__spreadArray([], __read(CommonMenus.VIEW), false), ['0_primary'], false); | ||
CommonMenus.VIEW_VIEWS = __spreadArray(__spreadArray([], __read(CommonMenus.VIEW), false), ['1_views'], false); | ||
CommonMenus.VIEW_LAYOUT = __spreadArray(__spreadArray([], __read(CommonMenus.VIEW), false), ['2_layout'], false); | ||
CommonMenus.VIEW_TOGGLE = __spreadArray(__spreadArray([], __read(CommonMenus.VIEW), false), ['3_toggle'], false); | ||
// last menu item | ||
CommonMenus.HELP = __spread(common_1.MAIN_MENU_BAR, ['9_help']); | ||
CommonMenus.EXPORT = __spread(common_1.MAIN_MENU_BAR, ['10_export']); | ||
CommonMenus.HELP = __spreadArray(__spreadArray([], __read(common_1.MAIN_MENU_BAR), false), ['9_help'], false); | ||
CommonMenus.EXPORT = __spreadArray(__spreadArray([], __read(common_1.MAIN_MENU_BAR), false), ['10_export'], false); | ||
})(CommonMenus = exports.CommonMenus || (exports.CommonMenus = {})); | ||
@@ -240,3 +245,3 @@ var CommonCommands; | ||
CommonFrontendContribution = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], CommonFrontendContribution); | ||
@@ -243,0 +248,0 @@ return CommonFrontendContribution; |
@@ -58,3 +58,3 @@ "use strict"; | ||
ConnectionStatusOptions = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], ConnectionStatusOptions); | ||
@@ -106,3 +106,3 @@ return ConnectionStatusOptions; | ||
this.timer = this.setTimeout(function () { | ||
_this.logger.trace("No activity for " + _this.options.offlineTimeout + " ms. We are offline."); | ||
_this.logger.trace("No activity for ".concat(_this.options.offlineTimeout, " ms. We are offline.")); | ||
_this.updateStatus(false); | ||
@@ -122,8 +122,9 @@ }, this.options.offlineTimeout); | ||
__decorate([ | ||
inversify_1.inject(utils_1.Logger), | ||
(0, inversify_1.inject)(utils_1.Logger), | ||
__metadata("design:type", Object) | ||
], AbstractConnectionStatusService.prototype, "logger", void 0); | ||
AbstractConnectionStatusService = __decorate([ | ||
inversify_1.injectable(), | ||
__param(0, inversify_1.inject(ConnectionStatusOptions)), __param(0, inversify_1.optional()), | ||
(0, inversify_1.injectable)(), | ||
__param(0, (0, inversify_1.inject)(ConnectionStatusOptions)), | ||
__param(0, (0, inversify_1.optional)()), | ||
__metadata("design:paramtypes", [ConnectionStatusOptions]) | ||
@@ -130,0 +131,0 @@ ], AbstractConnectionStatusService); |
@@ -62,3 +62,3 @@ "use strict"; | ||
ContextKeyService = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], ContextKeyService); | ||
@@ -65,0 +65,0 @@ return ContextKeyService; |
@@ -63,6 +63,6 @@ "use strict"; | ||
ExternalUriService.prototype.toRemoteHost = function (localhost) { | ||
return window.location.hostname + ":" + localhost.port; | ||
return "".concat(window.location.hostname, ":").concat(localhost.port); | ||
}; | ||
ExternalUriService = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], ExternalUriService); | ||
@@ -69,0 +69,0 @@ return ExternalUriService; |
@@ -13,5 +13,5 @@ "use strict"; | ||
exports.default = new inversify_1.ContainerModule((function (bind) { | ||
utils_1.bindContributionProvider(bind, frontend_application_1.FrontendApplicationContribution); | ||
utils_1.bindContributionProvider(bind, opener_service_1.OpenHandler); | ||
utils_1.bindContributionProvider(bind, common_1.CommandContribution); | ||
(0, utils_1.bindContributionProvider)(bind, frontend_application_1.FrontendApplicationContribution); | ||
(0, utils_1.bindContributionProvider)(bind, opener_service_1.OpenHandler); | ||
(0, utils_1.bindContributionProvider)(bind, common_1.CommandContribution); | ||
bind(common_frontend_contribution_1.CommonFrontendContribution).toSelf().inSingletonScope(); | ||
@@ -18,0 +18,0 @@ bind(opener_service_1.DefaultOpenerService).toSelf().inSingletonScope(); |
@@ -51,3 +51,3 @@ "use strict"; | ||
this.deferred[state].resolve(); | ||
this.logger.info("Changed application state from '" + oldState + "' to '" + this._state + "'."); | ||
this.logger.info("Changed application state from '".concat(oldState, "' to '").concat(this._state, "'.")); | ||
this.stateChanged.fire(state); | ||
@@ -81,7 +81,7 @@ } | ||
__decorate([ | ||
inversify_1.inject(utils_1.Logger), | ||
(0, inversify_1.inject)(utils_1.Logger), | ||
__metadata("design:type", Object) | ||
], FrontendApplicationStateService.prototype, "logger", void 0); | ||
FrontendApplicationStateService = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], FrontendApplicationStateService); | ||
@@ -88,0 +88,0 @@ return FrontendApplicationStateService; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -34,3 +34,3 @@ "use strict"; | ||
MimeService = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], MimeService); | ||
@@ -37,0 +37,0 @@ return MimeService; |
@@ -78,5 +78,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -117,3 +122,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
return [4 /*yield*/, (_a = this.commands).executeCommand.apply(_a, __spread([uri.path.toString()], args))]; | ||
return [4 /*yield*/, (_a = this.commands).executeCommand.apply(_a, __spreadArray([uri.path.toString()], __read(args), false))]; | ||
case 1: | ||
@@ -127,7 +132,7 @@ _b.sent(); | ||
__decorate([ | ||
inversify_1.inject(command_1.CommandService), | ||
(0, inversify_1.inject)(command_1.CommandService), | ||
__metadata("design:type", Object) | ||
], CommandOpenHandler.prototype, "commands", void 0); | ||
CommandOpenHandler = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], CommandOpenHandler); | ||
@@ -134,0 +139,0 @@ return CommandOpenHandler; |
@@ -88,11 +88,11 @@ "use strict"; | ||
__decorate([ | ||
inversify_1.inject(window_service_1.WindowService), | ||
(0, inversify_1.inject)(window_service_1.WindowService), | ||
__metadata("design:type", Object) | ||
], HttpOpenHandler.prototype, "windowService", void 0); | ||
__decorate([ | ||
inversify_1.inject(external_uri_service_1.ExternalUriService), | ||
(0, inversify_1.inject)(external_uri_service_1.ExternalUriService), | ||
__metadata("design:type", external_uri_service_1.ExternalUriService) | ||
], HttpOpenHandler.prototype, "externalUriService", void 0); | ||
HttpOpenHandler = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], HttpOpenHandler); | ||
@@ -99,0 +99,0 @@ return HttpOpenHandler; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -107,3 +107,3 @@ "use strict"; | ||
} | ||
return [2 /*return*/, Promise.reject(new Error("There is no opener for " + uri + "."))]; | ||
return [2 /*return*/, Promise.reject(new Error("There is no opener for ".concat(uri, ".")))]; | ||
} | ||
@@ -152,4 +152,5 @@ }); | ||
DefaultOpenerService = __decorate([ | ||
inversify_1.injectable(), | ||
__param(0, inversify_1.inject(utils_1.ContributionProvider)), __param(0, inversify_1.named(exports.OpenHandler)), | ||
(0, inversify_1.injectable)(), | ||
__param(0, (0, inversify_1.inject)(utils_1.ContributionProvider)), | ||
__param(0, (0, inversify_1.named)(exports.OpenHandler)), | ||
__metadata("design:paramtypes", [Object]) | ||
@@ -156,0 +157,0 @@ ], DefaultOpenerService); |
@@ -21,6 +21,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -47,5 +49,10 @@ function __() { this.constructor = d; } | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -59,3 +66,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (codes.indexOf(code) !== -1) { | ||
throw new Error("An application error for '" + code + "' code is already declared"); | ||
throw new Error("An application error for '".concat(code, "' code is already declared")); | ||
} | ||
@@ -67,3 +74,3 @@ var constructorOpt = Object.assign(function () { | ||
} | ||
return new Impl(code, factory.apply(void 0, __spread(args)), constructorOpt); | ||
return new Impl(code, factory.apply(void 0, __spreadArray([], __read(args), false)), constructorOpt); | ||
}, { | ||
@@ -70,0 +77,0 @@ code: code, |
@@ -16,3 +16,2 @@ /******************************************************************************** | ||
********************************************************************************/ | ||
import type { BrowserWindowConstructorOptions } from 'electron'; | ||
/** | ||
@@ -50,3 +49,3 @@ * Base configuration for the gedit application. | ||
*/ | ||
readonly windowOptions?: BrowserWindowConstructorOptions; | ||
readonly windowOptions?: any; | ||
} | ||
@@ -53,0 +52,0 @@ /** |
"use strict"; | ||
/******************************************************************************** | ||
* Copyright (C) 2018 TypeFox and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0. | ||
* | ||
* This Source Code may also be made available under the following Secondary | ||
* Licenses when the conditions for such availability set forth in the Eclipse | ||
* Public License v. 2.0 are satisfied: GNU General Public License, version 2 | ||
* with the GNU Classpath Exception which is available at | ||
* https://www.gnu.org/software/classpath/license.html. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
// import type { BrowserWindowConstructorOptions } from 'electron'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=application-props.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -183,3 +183,3 @@ "use strict"; | ||
if (sub) { | ||
throw new Error("'" + menuId + "' is not a menu group."); | ||
throw new Error("'".concat(menuId, "' is not a menu group.")); | ||
} | ||
@@ -191,5 +191,6 @@ var newSub = new CompositeMenuNode(menuId); | ||
MenuModelRegistry = __decorate([ | ||
inversify_1.injectable(), | ||
__param(0, inversify_1.inject(utils_1.ContributionProvider)), __param(0, inversify_1.named(exports.MenuContribution)), | ||
__param(1, inversify_1.inject(command_1.CommandRegistry)), | ||
(0, inversify_1.injectable)(), | ||
__param(0, (0, inversify_1.inject)(utils_1.ContributionProvider)), | ||
__param(0, (0, inversify_1.named)(exports.MenuContribution)), | ||
__param(1, (0, inversify_1.inject)(command_1.CommandRegistry)), | ||
__metadata("design:paramtypes", [Object, command_1.CommandRegistry]) | ||
@@ -295,3 +296,3 @@ ], MenuModelRegistry); | ||
if (!cmd) { | ||
throw new Error("A command with id '" + this.action.commandId + "' does not exist."); | ||
throw new Error("A command with id '".concat(this.action.commandId, "' does not exist.")); | ||
} | ||
@@ -298,0 +299,0 @@ return cmd.label || cmd.id; |
@@ -33,5 +33,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -47,3 +52,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fileMenu = ['main', 'File']; | ||
var fileOpenMenu = __spread(fileMenu, ['0_open']); | ||
var fileOpenMenu = __spreadArray(__spreadArray([], __read(fileMenu), false), ['0_open'], false); | ||
var service = createMenuRegistry({ | ||
@@ -50,0 +55,0 @@ registerMenus: function (menuRegistry) { |
@@ -21,6 +21,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -27,0 +29,0 @@ function __() { this.constructor = d; } |
@@ -33,5 +33,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -63,4 +68,4 @@ var __values = (this && this.__values) || function(o) { | ||
} | ||
var selection = this.getSelection.apply(this, __spread(args)); | ||
return selection ? (_a = this.options).execute.apply(_a, __spread([selection], args)) : undefined; | ||
var selection = this.getSelection.apply(this, __spreadArray([], __read(args), false)); | ||
return selection ? (_a = this.options).execute.apply(_a, __spreadArray([selection], __read(args), false)) : undefined; | ||
}; | ||
@@ -73,4 +78,4 @@ SelectionCommandHandler.prototype.isVisible = function () { | ||
} | ||
var selection = this.getSelection.apply(this, __spread(args)); | ||
return !!selection && (!this.options.isVisible || (_a = this.options).isVisible.apply(_a, __spread([selection], args))); | ||
var selection = this.getSelection.apply(this, __spreadArray([], __read(args), false)); | ||
return !!selection && (!this.options.isVisible || (_a = this.options).isVisible.apply(_a, __spreadArray([selection], __read(args), false))); | ||
}; | ||
@@ -83,4 +88,4 @@ SelectionCommandHandler.prototype.isEnabled = function () { | ||
} | ||
var selection = this.getSelection.apply(this, __spread(args)); | ||
return !!selection && (!this.options.isEnabled || (_a = this.options).isEnabled.apply(_a, __spread([selection], args))); | ||
var selection = this.getSelection.apply(this, __spreadArray([], __read(args), false)); | ||
return !!selection && (!this.options.isEnabled || (_a = this.options).isEnabled.apply(_a, __spreadArray([selection], __read(args), false))); | ||
}; | ||
@@ -87,0 +92,0 @@ SelectionCommandHandler.prototype.isMulti = function () { |
@@ -46,3 +46,3 @@ "use strict"; | ||
SelectionService = __decorate([ | ||
inversify_1.injectable() | ||
(0, inversify_1.injectable)() | ||
], SelectionService); | ||
@@ -49,0 +49,0 @@ return SelectionService; |
@@ -33,5 +33,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -62,4 +67,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
var uri = this.getUri.apply(this, __spread(args)); | ||
return uri ? (_a = this.handler).execute.apply(_a, __spread([uri], args)) : undefined; | ||
var uri = this.getUri.apply(this, __spreadArray([], __read(args), false)); | ||
return uri ? (_a = this.handler).execute.apply(_a, __spreadArray([uri], __read(args), false)) : undefined; | ||
}; | ||
@@ -73,6 +78,6 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
} | ||
var uri = this.getUri.apply(this, __spread(args)); | ||
var uri = this.getUri.apply(this, __spreadArray([], __read(args), false)); | ||
if (uri) { | ||
if (this.handler.isVisible) { | ||
return (_a = this.handler).isVisible.apply(_a, __spread([uri], args)); | ||
return (_a = this.handler).isVisible.apply(_a, __spreadArray([uri], __read(args), false)); | ||
} | ||
@@ -90,6 +95,6 @@ return true; | ||
} | ||
var uri = this.getUri.apply(this, __spread(args)); | ||
var uri = this.getUri.apply(this, __spreadArray([], __read(args), false)); | ||
if (uri) { | ||
if (this.handler.isEnabled) { | ||
return (_a = this.handler).isEnabled.apply(_a, __spread([uri], args)); | ||
return (_a = this.handler).isEnabled.apply(_a, __spreadArray([uri], __read(args), false)); | ||
} | ||
@@ -96,0 +101,0 @@ return true; |
{ | ||
"name": "@gedit/application-common", | ||
"version": "0.1.61", | ||
"version": "0.1.62", | ||
"license": "MIT", | ||
@@ -12,4 +12,4 @@ "main": "lib/common/index", | ||
"dependencies": { | ||
"@gedit/command": "^0.1.60", | ||
"@gedit/utils": "^0.1.63" | ||
"@gedit/command": "^0.1.61", | ||
"@gedit/utils": "^0.1.64" | ||
}, | ||
@@ -31,3 +31,3 @@ "geditExtensions": [ | ||
}, | ||
"gitHead": "9b41f77f8ae3b6aa3bf567402f699b5faaff532b" | ||
"gitHead": "db74e452a213a016b3be82938fe68df8fdde2e6b" | ||
} |
@@ -16,3 +16,3 @@ /******************************************************************************** | ||
********************************************************************************/ | ||
import type { BrowserWindowConstructorOptions } from 'electron'; | ||
// import type { BrowserWindowConstructorOptions } from 'electron'; | ||
@@ -59,3 +59,4 @@ /** | ||
*/ | ||
readonly windowOptions?: BrowserWindowConstructorOptions; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
readonly windowOptions?: any; | ||
} | ||
@@ -62,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 6 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 6 instances in 1 package
327872
5961
Updated@gedit/command@^0.1.61
Updated@gedit/utils@^0.1.64