@eclipse-glsp/protocol
Advanced tools
Comparing version 2.3.0-next.390 to 2.3.0-next.391
@@ -0,1 +1,17 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2021-2023 STMicroelectronics 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 * as sprotty from 'sprotty-protocol/lib/actions'; | ||
import { Action, RequestAction, ResponseAction } from './base-protocol'; | ||
@@ -52,4 +68,5 @@ /** | ||
*/ | ||
export interface RequestExportSvgAction extends RequestAction<ExportSvgAction> { | ||
export interface RequestExportSvgAction extends RequestAction<ExportSvgAction>, sprotty.RequestExportSvgAction { | ||
kind: typeof RequestExportSvgAction.KIND; | ||
options?: ExportSvgOptions; | ||
} | ||
@@ -60,5 +77,10 @@ export declare namespace RequestExportSvgAction { | ||
function create(options?: { | ||
options?: ExportSvgOptions; | ||
requestId?: string; | ||
}): RequestExportSvgAction; | ||
} | ||
/** Configuration options for the {@link RequestExportSvgAction */ | ||
export interface ExportSvgOptions extends sprotty.ExportSvgOptions { | ||
skipCopyStyles?: boolean; | ||
} | ||
/** | ||
@@ -71,6 +93,6 @@ * The client sends an `ExportSvgAction` to indicate that the diagram, which represents the current model state, | ||
*/ | ||
export interface ExportSvgAction extends ResponseAction { | ||
export interface ExportSvgAction extends ResponseAction, sprotty.ExportSvgAction { | ||
kind: typeof ExportSvgAction.KIND; | ||
svg: string; | ||
responseId: string; | ||
options?: ExportSvgOptions; | ||
} | ||
@@ -81,2 +103,3 @@ export declare namespace ExportSvgAction { | ||
function create(svg: string, options?: { | ||
options?: ExportSvgOptions; | ||
responseId?: string; | ||
@@ -83,0 +106,0 @@ }): ExportSvgAction; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ExportSvgAction = exports.RequestExportSvgAction = exports.SetDirtyStateAction = exports.SaveModelAction = void 0; | ||
/******************************************************************************** | ||
* Copyright (c) 2021-2023 STMicroelectronics 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 | ||
********************************************************************************/ | ||
const type_util_1 = require("../utils/type-util"); | ||
@@ -20,0 +5,0 @@ const base_protocol_1 = require("./base-protocol"); |
{ | ||
"name": "@eclipse-glsp/protocol", | ||
"version": "2.3.0-next.390+accf3f9", | ||
"version": "2.3.0-next.391+dd011ea", | ||
"description": "The protocol definition for client-server communication in GLSP", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"dependencies": { | ||
"sprotty-protocol": "1.2.0", | ||
"sprotty-protocol": "1.3.0", | ||
"uuid": "~10.0.0", | ||
@@ -62,3 +62,3 @@ "vscode-jsonrpc": "8.2.0" | ||
}, | ||
"gitHead": "accf3f92b6b1691c4be6414f4f49525c6572d6af" | ||
"gitHead": "dd011eae4f7a629cc2431e5e6d832ddb9483554b" | ||
} |
@@ -16,2 +16,3 @@ /******************************************************************************** | ||
********************************************************************************/ | ||
import * as sprotty from 'sprotty-protocol/lib/actions'; | ||
import { hasBooleanProp, hasStringProp } from '../utils/type-util'; | ||
@@ -91,4 +92,5 @@ import { Action, RequestAction, ResponseAction } from './base-protocol'; | ||
*/ | ||
export interface RequestExportSvgAction extends RequestAction<ExportSvgAction> { | ||
export interface RequestExportSvgAction extends RequestAction<ExportSvgAction>, sprotty.RequestExportSvgAction { | ||
kind: typeof RequestExportSvgAction.KIND; | ||
options?: ExportSvgOptions; | ||
} | ||
@@ -102,3 +104,3 @@ export namespace RequestExportSvgAction { | ||
export function create(options: { requestId?: string } = {}): RequestExportSvgAction { | ||
export function create(options: { options?: ExportSvgOptions; requestId?: string } = {}): RequestExportSvgAction { | ||
return { | ||
@@ -112,2 +114,8 @@ kind: KIND, | ||
/** Configuration options for the {@link RequestExportSvgAction */ | ||
export interface ExportSvgOptions extends sprotty.ExportSvgOptions { | ||
// If set to false applied diagram styles will not be copied to the exported SVG | ||
skipCopyStyles?: boolean; | ||
} | ||
/** | ||
@@ -120,7 +128,8 @@ * The client sends an `ExportSvgAction` to indicate that the diagram, which represents the current model state, | ||
*/ | ||
export interface ExportSvgAction extends ResponseAction { | ||
export interface ExportSvgAction extends ResponseAction, sprotty.ExportSvgAction { | ||
kind: typeof ExportSvgAction.KIND; | ||
svg: string; | ||
responseId: string; | ||
options?: ExportSvgOptions; | ||
} | ||
export namespace ExportSvgAction { | ||
@@ -133,3 +142,3 @@ export const KIND = 'exportSvg'; | ||
export function create(svg: string, options: { responseId?: string } = {}): ExportSvgAction { | ||
export function create(svg: string, options: { options?: ExportSvgOptions; responseId?: string } = {}): ExportSvgAction { | ||
return { | ||
@@ -136,0 +145,0 @@ kind: KIND, |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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 9 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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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 9 instances in 1 package
1123612
19680
+ Addedsprotty-protocol@1.3.0(transitive)
- Removedsprotty-protocol@1.2.0(transitive)
Updatedsprotty-protocol@1.3.0