@ansible-flow/designer 0.0.0-stage → 0.85.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/LICENSE +21 -0
- package/README.md +9 -2
- package/THIRD_PARTY_NOTICES.md +41 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +200 -0
- package/dist/transport.d.ts +16 -0
- package/package.json +31 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HostMessage, WebviewMessage } from '@ansible-flow/core/protocol';
|
|
2
|
+
export interface DesignerTransport {
|
|
3
|
+
/** Named when a request goes unanswered ("VS Code did not answer…"). Default: "The host". */
|
|
4
|
+
hostName?: string;
|
|
5
|
+
/** Sends a message to the host. */
|
|
6
|
+
post(message: WebviewMessage): void;
|
|
7
|
+
/** Calls `listener` with every message from the host, until the returned function is called. */
|
|
8
|
+
subscribe(listener: (message: HostMessage) => void): () => void;
|
|
9
|
+
/** UI-only state the host keeps for this designer (viewport, panel widths), or undefined. */
|
|
10
|
+
getState(): unknown;
|
|
11
|
+
setState(state: unknown): void;
|
|
12
|
+
}
|
|
13
|
+
/** True inside a VS Code webview (and wherever a host defines the same function). */
|
|
14
|
+
export declare const inVsCode: () => boolean;
|
|
15
|
+
/** The VS Code webview API as a transport. VS Code hands the API out once: call this once. */
|
|
16
|
+
export declare function vscodeTransport(): DesignerTransport;
|
package/package.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ansible-flow/designer",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.85.0",
|
|
4
|
+
"description": "Ansible Flow Designer for a web page: the flow canvas and its panels, talking to a host over a transport the page supplies.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/ChistokhinSV/ansible-flow-designer/blob/main/docs/packages.md",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/ChistokhinSV/ansible-flow-designer.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/ChistokhinSV/ansible-flow-designer/issues"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./index.css": "./dist/index.css",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"THIRD_PARTY_NOTICES.md"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@ansible-flow/core": "0.85.0"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|