UNPKG

@eclipse-glsp/client

Version:

A sprotty-based client for GLSP

41 lines 2.4 kB
/******************************************************************************** * Copyright (c) 2023-2025 EclipseSource 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 { Action, FeatureModule, GModelElement, IActionHandler, ICommand, ILogger, KeyListener, ModuleConfiguration } from '@eclipse-glsp/sprotty'; export declare const standaloneDefaultModule: FeatureModule; /** * A fallback action handler for actions sent by features that are currently not supported by * default in the standalone context. Unhandled actions will be simply forwarded to the {@link ILogger}. */ export declare class FallbackActionHandler implements IActionHandler { protected logger: ILogger; handle(action: Action): void | Action | ICommand; } export declare class LayoutKeyListener extends KeyListener { keyDown(_element: GModelElement, event: KeyboardEvent): Action[]; } /** * Configuration of all `standalone` modules. * * Standalone modules compose additional features/services that are intended for the standalone deployment of GLSP (i.e. plain webapp) * When integrated into an application frame (e.g Theia/VS Code) this module is typically omitted and/or replaced * with an application native module. * * Typically standalone modules built on top of (i.e require ) a default module and are therefore conditionally loaded if the * required default modules have been loaded beforehand. */ export declare const STANDALONE_MODULES: readonly [FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule, FeatureModule]; export declare const STANDALONE_MODULE_CONFIG: ModuleConfiguration; //# sourceMappingURL=standalone-modules.d.ts.map