@jay-framework/editor-protocol 0.6.2 → 0.6.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -4
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -42,15 +42,17 @@ interface HasImageResponse extends BaseResponse {
42
42
  exists: boolean;
43
43
  imageUrl?: string;
44
44
  }
45
+ type EditorProtocolMessageTypes = PublishMessage | SaveImageMessage | HasImageMessage;
46
+ type EditorProtocolResponseTypes = PublishResponse | SaveImageResponse | HasImageResponse;
45
47
  interface ProtocolMessage {
46
48
  id: string;
47
49
  timestamp: number;
48
- payload: PublishMessage | SaveImageMessage | HasImageMessage;
50
+ payload: EditorProtocolMessageTypes;
49
51
  }
50
52
  interface ProtocolResponse {
51
53
  id: string;
52
54
  timestamp: number;
53
- payload: PublishResponse | SaveImageResponse | HasImageResponse;
55
+ payload: EditorProtocolResponseTypes;
54
56
  }
55
57
  interface EditorProtocol {
56
58
  publish(params: PublishMessage): Promise<PublishResponse>;
@@ -73,7 +75,7 @@ interface EditorConfig {
73
75
  }
74
76
  type ConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error';
75
77
  interface PortDiscoveryResponse {
76
- status: 'init' | 'configured';
78
+ status: 'init' | 'match' | 'no-match';
77
79
  id?: string;
78
80
  port: number;
79
81
  }
@@ -87,4 +89,4 @@ declare function createHasImageResponse(exists: boolean, imageUrl?: string): Has
87
89
  declare function createProtocolMessage(payload: PublishMessage | SaveImageMessage | HasImageMessage): ProtocolMessage;
88
90
  declare function createProtocolResponse(id: string, payload: PublishResponse | SaveImageResponse | HasImageResponse): ProtocolResponse;
89
91
 
90
- export { type BaseMessage, type BaseResponse, type ConnectionState, type DevServerProtocol, type EditorConfig, type EditorProtocol, type HasImageMessage, type HasImageResponse, type PortDiscoveryResponse, type ProtocolMessage, type ProtocolResponse, type PublishMessage, type PublishResponse, type SaveImageMessage, type SaveImageResponse, createHasImageMessage, createHasImageResponse, createProtocolMessage, createProtocolResponse, createPublishMessage, createPublishResponse, createSaveImageMessage, createSaveImageResponse };
92
+ export { type BaseMessage, type BaseResponse, type ConnectionState, type DevServerProtocol, type EditorConfig, type EditorProtocol, type EditorProtocolMessageTypes, type EditorProtocolResponseTypes, type HasImageMessage, type HasImageResponse, type PortDiscoveryResponse, type ProtocolMessage, type ProtocolResponse, type PublishMessage, type PublishResponse, type SaveImageMessage, type SaveImageResponse, createHasImageMessage, createHasImageResponse, createProtocolMessage, createProtocolResponse, createPublishMessage, createPublishResponse, createSaveImageMessage, createSaveImageResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/editor-protocol",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -27,8 +27,8 @@
27
27
  "test:watch": ":"
28
28
  },
29
29
  "devDependencies": {
30
- "@jay-framework/dev-environment": "^0.6.2",
31
- "@jay-framework/jay-cli": "^0.6.2",
30
+ "@jay-framework/dev-environment": "^0.6.4",
31
+ "@jay-framework/jay-cli": "^0.6.4",
32
32
  "@types/node": "^22.15.21",
33
33
  "rimraf": "^5.0.5",
34
34
  "tsup": "^8.0.1",