Socket
Socket
Sign inDemoInstall

@gedit/application-common

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gedit/application-common - npm Package Compare versions

Comparing version 0.1.58 to 0.1.59

63

lib/browser/common-frontend-contribution.d.ts

@@ -1,2 +0,63 @@

import { CommandContribution, CommandRegistry } from '@gedit/command';
import { Command, CommandContribution, CommandRegistry } from '@gedit/command';
export declare namespace CommonMenus {
const FILE: string[];
const FILE_NEW: string[];
const FILE_OPEN: string[];
const FILE_SAVE: string[];
const FILE_AUTOSAVE: string[];
const FILE_SETTINGS: string[];
const FILE_SETTINGS_SUBMENU: string[];
const FILE_SETTINGS_SUBMENU_OPEN: string[];
const FILE_SETTINGS_SUBMENU_THEME: string[];
const FILE_CLOSE: string[];
const EDIT: string[];
const EDIT_UNDO: string[];
const EDIT_CLIPBOARD: string[];
const EDIT_FIND: string[];
const VIEW: string[];
const VIEW_PRIMARY: string[];
const VIEW_VIEWS: string[];
const VIEW_LAYOUT: string[];
const VIEW_TOGGLE: string[];
const HELP: string[];
const EXPORT: string[];
}
export declare namespace CommonCommands {
const OPEN: Command;
const CUT: Command;
const COPY: Command;
const PASTE: Command;
const COPY_PATH: Command;
const UNDO: Command;
const REDO: Command;
const SELECT_ALL: Command;
const FIND: Command;
const REPLACE: Command;
const NEXT_TAB: Command;
const PREVIOUS_TAB: Command;
const NEXT_TAB_IN_GROUP: Command;
const PREVIOUS_TAB_IN_GROUP: Command;
const NEXT_TAB_GROUP: Command;
const PREVIOUS_TAB_GROUP: Command;
const CLOSE_TAB: Command;
const CLOSE_OTHER_TABS: Command;
const CLOSE_RIGHT_TABS: Command;
const CLOSE_ALL_TABS: Command;
const CLOSE_MAIN_TAB: Command;
const CLOSE_OTHER_MAIN_TABS: Command;
const CLOSE_ALL_MAIN_TABS: Command;
const COLLAPSE_PANEL: Command;
const COLLAPSE_ALL_PANELS: Command;
const TOGGLE_BOTTOM_PANEL: Command;
const TOGGLE_MAXIMIZED: Command;
const OPEN_VIEW: Command;
const SAVE: Command;
const SAVE_ALL: Command;
const AUTO_SAVE: Command;
const ABOUT_COMMAND: Command;
const EXPORT: Command;
const OPEN_PREFERENCES: Command;
const SELECT_COLOR_THEME: Command;
const SELECT_ICON_THEME: Command;
}
export declare class CommonFrontendContribution implements CommandContribution {

@@ -3,0 +64,0 @@ registerCommands(commands: CommandRegistry): void;

@@ -8,5 +8,226 @@ "use strict";

};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommonFrontendContribution = void 0;
exports.CommonFrontendContribution = exports.CommonCommands = exports.CommonMenus = void 0;
var inversify_1 = require("inversify");
var common_1 = require("../common");
var nls_1 = require("@gedit/nls");
var CommonMenus;
(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']);
// last menu item
CommonMenus.HELP = __spread(common_1.MAIN_MENU_BAR, ['9_help']);
CommonMenus.EXPORT = __spread(common_1.MAIN_MENU_BAR, ['10_export']);
})(CommonMenus = exports.CommonMenus || (exports.CommonMenus = {}));
var CommonCommands;
(function (CommonCommands) {
var FILE_CATEGORY = 'File';
var VIEW_CATEGORY = 'View';
CommonCommands.OPEN = {
id: 'core.open',
category: FILE_CATEGORY,
label: nls_1.nls.localize('file.open', 'Open'),
};
CommonCommands.CUT = {
id: 'core.cut',
label: nls_1.nls.localize('edit.cut', 'Cut')
};
CommonCommands.COPY = {
id: 'core.copy',
label: nls_1.nls.localize('edit.copy', 'Copy')
};
CommonCommands.PASTE = {
id: 'core.paste',
label: nls_1.nls.localize('edit.paste', 'Paste')
};
CommonCommands.COPY_PATH = {
id: 'core.copy.path',
label: nls_1.nls.localize('edit.copy.path', 'Copy Path'),
};
CommonCommands.UNDO = {
id: 'core.undo',
label: nls_1.nls.localize('edit.undo', 'Undo')
};
CommonCommands.REDO = {
id: 'core.redo',
label: nls_1.nls.localize('edit.redo', 'Redo')
};
CommonCommands.SELECT_ALL = {
id: 'core.selectAll',
label: nls_1.nls.localize('edit.selectAll', 'Select All'),
};
CommonCommands.FIND = {
id: 'core.find',
label: nls_1.nls.localize('edit.find', 'Find')
};
CommonCommands.REPLACE = {
id: 'core.replace',
label: nls_1.nls.localize('edit.replace', 'Replace')
};
CommonCommands.NEXT_TAB = {
id: 'core.nextTab',
category: VIEW_CATEGORY,
label: 'Switch to Next Tab'
};
CommonCommands.PREVIOUS_TAB = {
id: 'core.previousTab',
category: VIEW_CATEGORY,
label: 'Switch to Previous Tab'
};
CommonCommands.NEXT_TAB_IN_GROUP = {
id: 'core.nextTabInGroup',
category: VIEW_CATEGORY,
label: 'Switch to Next Tab in Group'
};
CommonCommands.PREVIOUS_TAB_IN_GROUP = {
id: 'core.previousTabInGroup',
category: VIEW_CATEGORY,
label: 'Switch to Previous Tab in Group'
};
CommonCommands.NEXT_TAB_GROUP = {
id: 'core.nextTabGroup',
category: VIEW_CATEGORY,
label: 'Switch to Next Tab Group'
};
CommonCommands.PREVIOUS_TAB_GROUP = {
id: 'core.previousTabBar',
category: VIEW_CATEGORY,
label: 'Switch to Previous Tab Group'
};
CommonCommands.CLOSE_TAB = {
id: 'core.close.tab',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('tabs.closeTab', 'Close Tab')
};
CommonCommands.CLOSE_OTHER_TABS = {
id: 'core.close.other.tabs',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('tabs.closeOtherTabs', 'Close Other Tabs')
};
CommonCommands.CLOSE_RIGHT_TABS = {
id: 'core.close.right.tabs',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('tabs.closeRightTabs', 'Close Tabs to the Right')
};
CommonCommands.CLOSE_ALL_TABS = {
id: 'core.close.all.tabs',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('tabs.closeAllTabs', 'Close All Tabs')
};
CommonCommands.CLOSE_MAIN_TAB = {
id: 'core.close.main.tab',
category: VIEW_CATEGORY,
label: 'Close Tab in Main Area'
};
CommonCommands.CLOSE_OTHER_MAIN_TABS = {
id: 'core.close.other.main.tabs',
category: VIEW_CATEGORY,
label: 'Close Other Tabs in Main Area'
};
CommonCommands.CLOSE_ALL_MAIN_TABS = {
id: 'core.close.all.main.tabs',
category: VIEW_CATEGORY,
label: 'Close All Tabs in Main Area'
};
CommonCommands.COLLAPSE_PANEL = {
id: 'core.collapse.tab',
category: VIEW_CATEGORY,
label: 'Collapse Side Panel'
};
CommonCommands.COLLAPSE_ALL_PANELS = {
id: 'core.collapse.all.tabs',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('view.collapseAllTabs', 'Collapse All Side Panels')
};
CommonCommands.TOGGLE_BOTTOM_PANEL = {
id: 'core.toggle.bottom.panel',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('view.toggleBottomPanel', 'Toggle Bottom Panel')
};
CommonCommands.TOGGLE_MAXIMIZED = {
id: 'core.toggleMaximized',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('view.toggleMaximized', 'Toggle Maximized')
};
CommonCommands.OPEN_VIEW = {
id: 'core.openView',
category: VIEW_CATEGORY,
label: nls_1.nls.localize('view.open', 'Open View') + '...'
};
CommonCommands.SAVE = {
id: 'core.save',
category: FILE_CATEGORY,
label: nls_1.nls.localize('file.save', 'Save'),
};
CommonCommands.SAVE_ALL = {
id: 'core.saveAll',
category: FILE_CATEGORY,
label: nls_1.nls.localize('file.saveAll', 'Save All'),
};
CommonCommands.AUTO_SAVE = {
id: 'editor.commands.autosave',
category: FILE_CATEGORY,
label: nls_1.nls.localize('file.autosave', 'Auto Save'),
};
CommonCommands.ABOUT_COMMAND = {
id: 'core.about',
label: nls_1.nls.localize('about', 'About')
};
CommonCommands.EXPORT = {
id: 'core.export',
label: nls_1.nls.localize('export', 'Export')
};
CommonCommands.OPEN_PREFERENCES = {
id: 'preferences:open',
category: 'Settings',
label: 'Open Preferences',
};
CommonCommands.SELECT_COLOR_THEME = {
id: 'workbench.action.selectTheme',
label: 'Color Theme',
category: 'Preferences'
};
CommonCommands.SELECT_ICON_THEME = {
id: 'workbench.action.selectIconTheme',
label: 'File Icon Theme',
category: 'Preferences'
};
})(CommonCommands = exports.CommonCommands || (exports.CommonCommands = {}));
var CommonFrontendContribution = /** @class */ (function () {

@@ -13,0 +234,0 @@ function CommonFrontendContribution() {

@@ -0,1 +1,2 @@

export * from './common-frontend-contribution';
export * from './frontend-application-config-provider';

@@ -2,0 +3,0 @@ export * from './frontend-application';

@@ -13,2 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./common-frontend-contribution"), exports);
__exportStar(require("./frontend-application-config-provider"), exports);

@@ -15,0 +16,0 @@ __exportStar(require("./frontend-application"), exports);

8

package.json
{
"name": "@gedit/application-common",
"version": "0.1.58",
"version": "0.1.59",
"license": "MIT",

@@ -12,4 +12,4 @@ "main": "lib/common/index",

"dependencies": {
"@gedit/command": "^0.1.58",
"@gedit/utils": "^0.1.58"
"@gedit/command": "^0.1.59",
"@gedit/utils": "^0.1.60"
},

@@ -31,3 +31,3 @@ "geditExtensions": [

},
"gitHead": "a6f1e817d460d94998321db21b0acac6cd189303"
"gitHead": "4dfdc68e89ce9aeb3c38a970cfb38456f08f285f"
}
import { injectable } from 'inversify';
import { CommandContribution, CommandRegistry } from '@gedit/command';
import { Command, CommandContribution, CommandRegistry } from '@gedit/command';
import { MAIN_MENU_BAR } from '../common';
import { nls } from '@gedit/nls';
export namespace CommonMenus {
export const FILE = [...MAIN_MENU_BAR, '1_file'];
export const FILE_NEW = [...FILE, '1_new'];
export const FILE_OPEN = [...FILE, '2_open'];
export const FILE_SAVE = [...FILE, '3_save'];
export const FILE_AUTOSAVE = [...FILE, '4_autosave'];
export const FILE_SETTINGS = [...FILE, '5_settings'];
export const FILE_SETTINGS_SUBMENU = [...FILE_SETTINGS, '1_settings_submenu'];
export const FILE_SETTINGS_SUBMENU_OPEN = [...FILE_SETTINGS_SUBMENU, '1_settings_submenu_open'];
export const FILE_SETTINGS_SUBMENU_THEME = [...FILE_SETTINGS_SUBMENU, '2_settings_submenu_theme'];
export const FILE_CLOSE = [...FILE, '6_close'];
export const EDIT = [...MAIN_MENU_BAR, '2_edit'];
export const EDIT_UNDO = [...EDIT, '1_undo'];
export const EDIT_CLIPBOARD = [...EDIT, '2_clipboard'];
export const EDIT_FIND = [...EDIT, '3_find'];
export const VIEW = [...MAIN_MENU_BAR, '4_view'];
export const VIEW_PRIMARY = [...VIEW, '0_primary'];
export const VIEW_VIEWS = [...VIEW, '1_views'];
export const VIEW_LAYOUT = [...VIEW, '2_layout'];
export const VIEW_TOGGLE = [...VIEW, '3_toggle'];
// last menu item
export const HELP = [...MAIN_MENU_BAR, '9_help'];
export const EXPORT = [...MAIN_MENU_BAR, '10_export'];
}
export namespace CommonCommands {
const FILE_CATEGORY = 'File';
const VIEW_CATEGORY = 'View';
export const OPEN: Command = {
id: 'core.open',
category: FILE_CATEGORY,
label: nls.localize('file.open', 'Open'),
};
export const CUT: Command = {
id: 'core.cut',
label: nls.localize('edit.cut', 'Cut')
};
export const COPY: Command = {
id: 'core.copy',
label: nls.localize('edit.copy', 'Copy')
};
export const PASTE: Command = {
id: 'core.paste',
label: nls.localize('edit.paste', 'Paste')
};
export const COPY_PATH: Command = {
id: 'core.copy.path',
label: nls.localize('edit.copy.path', 'Copy Path'),
};
export const UNDO: Command = {
id: 'core.undo',
label: nls.localize('edit.undo', 'Undo')
};
export const REDO: Command = {
id: 'core.redo',
label: nls.localize('edit.redo', 'Redo')
};
export const SELECT_ALL: Command = {
id: 'core.selectAll',
label: nls.localize('edit.selectAll', 'Select All'),
};
export const FIND: Command = {
id: 'core.find',
label: nls.localize('edit.find', 'Find')
};
export const REPLACE: Command = {
id: 'core.replace',
label: nls.localize('edit.replace', 'Replace')
};
export const NEXT_TAB: Command = {
id: 'core.nextTab',
category: VIEW_CATEGORY,
label: 'Switch to Next Tab'
};
export const PREVIOUS_TAB: Command = {
id: 'core.previousTab',
category: VIEW_CATEGORY,
label: 'Switch to Previous Tab'
};
export const NEXT_TAB_IN_GROUP: Command = {
id: 'core.nextTabInGroup',
category: VIEW_CATEGORY,
label: 'Switch to Next Tab in Group'
};
export const PREVIOUS_TAB_IN_GROUP: Command = {
id: 'core.previousTabInGroup',
category: VIEW_CATEGORY,
label: 'Switch to Previous Tab in Group'
};
export const NEXT_TAB_GROUP: Command = {
id: 'core.nextTabGroup',
category: VIEW_CATEGORY,
label: 'Switch to Next Tab Group'
};
export const PREVIOUS_TAB_GROUP: Command = {
id: 'core.previousTabBar',
category: VIEW_CATEGORY,
label: 'Switch to Previous Tab Group'
};
export const CLOSE_TAB: Command = {
id: 'core.close.tab',
category: VIEW_CATEGORY,
label: nls.localize('tabs.closeTab', 'Close Tab')
};
export const CLOSE_OTHER_TABS: Command = {
id: 'core.close.other.tabs',
category: VIEW_CATEGORY,
label: nls.localize('tabs.closeOtherTabs', 'Close Other Tabs')
};
export const CLOSE_RIGHT_TABS: Command = {
id: 'core.close.right.tabs',
category: VIEW_CATEGORY,
label: nls.localize('tabs.closeRightTabs', 'Close Tabs to the Right')
};
export const CLOSE_ALL_TABS: Command = {
id: 'core.close.all.tabs',
category: VIEW_CATEGORY,
label: nls.localize('tabs.closeAllTabs', 'Close All Tabs')
};
export const CLOSE_MAIN_TAB: Command = {
id: 'core.close.main.tab',
category: VIEW_CATEGORY,
label: 'Close Tab in Main Area'
};
export const CLOSE_OTHER_MAIN_TABS: Command = {
id: 'core.close.other.main.tabs',
category: VIEW_CATEGORY,
label: 'Close Other Tabs in Main Area'
};
export const CLOSE_ALL_MAIN_TABS: Command = {
id: 'core.close.all.main.tabs',
category: VIEW_CATEGORY,
label: 'Close All Tabs in Main Area'
};
export const COLLAPSE_PANEL: Command = {
id: 'core.collapse.tab',
category: VIEW_CATEGORY,
label: 'Collapse Side Panel'
};
export const COLLAPSE_ALL_PANELS: Command = {
id: 'core.collapse.all.tabs',
category: VIEW_CATEGORY,
label: nls.localize('view.collapseAllTabs', 'Collapse All Side Panels')
};
export const TOGGLE_BOTTOM_PANEL: Command = {
id: 'core.toggle.bottom.panel',
category: VIEW_CATEGORY,
label: nls.localize('view.toggleBottomPanel', 'Toggle Bottom Panel')
};
export const TOGGLE_MAXIMIZED: Command = {
id: 'core.toggleMaximized',
category: VIEW_CATEGORY,
label: nls.localize('view.toggleMaximized', 'Toggle Maximized')
};
export const OPEN_VIEW: Command = {
id: 'core.openView',
category: VIEW_CATEGORY,
label: nls.localize('view.open', 'Open View') + '...'
};
export const SAVE: Command = {
id: 'core.save',
category: FILE_CATEGORY,
label: nls.localize('file.save', 'Save'),
};
export const SAVE_ALL: Command = {
id: 'core.saveAll',
category: FILE_CATEGORY,
label: nls.localize('file.saveAll', 'Save All'),
};
export const AUTO_SAVE: Command = {
id: 'editor.commands.autosave',
category: FILE_CATEGORY,
label: nls.localize('file.autosave', 'Auto Save'),
};
export const ABOUT_COMMAND: Command = {
id: 'core.about',
label: nls.localize('about', 'About')
};
export const EXPORT: Command = {
id: 'core.export',
label: nls.localize('export', 'Export')
};
export const OPEN_PREFERENCES: Command = {
id: 'preferences:open',
category: 'Settings',
label: 'Open Preferences',
};
export const SELECT_COLOR_THEME: Command = {
id: 'workbench.action.selectTheme',
label: 'Color Theme',
category: 'Preferences'
};
export const SELECT_ICON_THEME: Command = {
id: 'workbench.action.selectIconTheme',
label: 'File Icon Theme',
category: 'Preferences'
};
}
@injectable()

@@ -5,0 +225,0 @@ export class CommonFrontendContribution implements CommandContribution {

@@ -0,1 +1,2 @@

export * from './common-frontend-contribution';
export * from './frontend-application-config-provider';

@@ -2,0 +3,0 @@ export * from './frontend-application';

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc