@jay-framework/editor-client 0.15.5 → 0.16.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/dist/index.d.ts +6 -1
- package/dist/index.js +17 -0
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _jay_framework_editor_protocol from '@jay-framework/editor-protocol';
|
|
2
|
-
import { ConnectionState, EditorProtocolMessageTypes, PublishMessage, PublishResponse, SaveImageMessage, SaveImageResponse, HasImageMessage, HasImageResponse, GetProjectInfoMessage, GetProjectInfoResponse, ExportMessage, ExportResponse, ImportMessage, ImportResponse, EditorProtocol, EditorProtocolResponseTypes } from '@jay-framework/editor-protocol';
|
|
2
|
+
import { ConnectionState, EditorProtocolMessageTypes, PublishMessage, PublishResponse, SaveImageMessage, SaveImageResponse, HasImageMessage, HasImageResponse, GetProjectInfoMessage, GetProjectInfoResponse, ExportMessage, ExportResponse, ImportMessage, ImportResponse, EditorProtocol, ListRoutesMessage, ListRoutesResponse, ListFreezesMessage, ListFreezesResponse, RenameFreezeMessage, RenameFreezeResponse, DeleteFreezeMessage, DeleteFreezeResponse, LoadRouteParamsMessage, LoadRouteParamsResponse, EditorProtocolResponseTypes } from '@jay-framework/editor-protocol';
|
|
3
3
|
|
|
4
4
|
interface ConnectionManagerOptions {
|
|
5
5
|
portRange?: [number, number];
|
|
@@ -55,6 +55,11 @@ declare class EditorClient implements EditorProtocol {
|
|
|
55
55
|
getProjectInfo(params: GetProjectInfoMessage): Promise<GetProjectInfoResponse>;
|
|
56
56
|
export<TVendorDoc>(params: ExportMessage<TVendorDoc>): Promise<ExportResponse>;
|
|
57
57
|
import<TVendorDoc>(params: ImportMessage<TVendorDoc>): Promise<ImportResponse<TVendorDoc>>;
|
|
58
|
+
listRoutes(params: ListRoutesMessage): Promise<ListRoutesResponse>;
|
|
59
|
+
listFreezes(params: ListFreezesMessage): Promise<ListFreezesResponse>;
|
|
60
|
+
renameFreeze(params: RenameFreezeMessage): Promise<RenameFreezeResponse>;
|
|
61
|
+
deleteFreeze(params: DeleteFreezeMessage): Promise<DeleteFreezeResponse>;
|
|
62
|
+
loadRouteParams(params: LoadRouteParamsMessage): Promise<LoadRouteParamsResponse>;
|
|
58
63
|
send(params: EditorProtocolMessageTypes<any>): Promise<EditorProtocolResponseTypes<any>>;
|
|
59
64
|
getConnectionManager(): ConnectionManager;
|
|
60
65
|
}
|
package/dist/index.js
CHANGED
|
@@ -261,6 +261,23 @@ class EditorClient {
|
|
|
261
261
|
async import(params) {
|
|
262
262
|
return this.connectionManager.sendMessage(params);
|
|
263
263
|
}
|
|
264
|
+
// Freeze management (DL#128)
|
|
265
|
+
async listRoutes(params) {
|
|
266
|
+
return this.connectionManager.sendMessage(params);
|
|
267
|
+
}
|
|
268
|
+
async listFreezes(params) {
|
|
269
|
+
return this.connectionManager.sendMessage(params);
|
|
270
|
+
}
|
|
271
|
+
async renameFreeze(params) {
|
|
272
|
+
return this.connectionManager.sendMessage(params);
|
|
273
|
+
}
|
|
274
|
+
async deleteFreeze(params) {
|
|
275
|
+
return this.connectionManager.sendMessage(params);
|
|
276
|
+
}
|
|
277
|
+
// Route params discovery
|
|
278
|
+
async loadRouteParams(params) {
|
|
279
|
+
return this.connectionManager.sendMessage(params);
|
|
280
|
+
}
|
|
264
281
|
async send(params) {
|
|
265
282
|
return this.connectionManager.sendMessage(params);
|
|
266
283
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/editor-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"test:watch": "vitest"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@jay-framework/editor-protocol": "^0.
|
|
28
|
-
"@jay-framework/logger": "^0.
|
|
27
|
+
"@jay-framework/editor-protocol": "^0.16.0",
|
|
28
|
+
"@jay-framework/logger": "^0.16.0",
|
|
29
29
|
"get-port": "^7.0.0",
|
|
30
30
|
"socket.io-client": "^4.7.4",
|
|
31
31
|
"uuid": "^9.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@jay-framework/dev-environment": "^0.
|
|
35
|
-
"@jay-framework/jay-cli": "^0.
|
|
34
|
+
"@jay-framework/dev-environment": "^0.16.0",
|
|
35
|
+
"@jay-framework/jay-cli": "^0.16.0",
|
|
36
36
|
"@types/node": "^22.15.21",
|
|
37
37
|
"@types/uuid": "^9.0.7",
|
|
38
38
|
"rimraf": "^5.0.5",
|