@fractal-solutions/qflow 1.0.76 → 1.0.77
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.
|
@@ -16,8 +16,8 @@ export class InteractiveWebviewNode extends AsyncNode {
|
|
|
16
16
|
properties: {
|
|
17
17
|
mode: {
|
|
18
18
|
type: "string",
|
|
19
|
-
enum: ["
|
|
20
|
-
description: "The mode of the webview.
|
|
19
|
+
enum: ["notification", "dialog", "input", "custom", "custom-dialog", "custom-input"],
|
|
20
|
+
description: "The mode of the webview. For 'custom-dialog' and 'custom-input' modes, the tool generates the interactive elements (buttons or input field) based on 'options' or 'multilineInput' parameters; the 'html' parameter is for additional display content only. For 'custom' mode, you provide the full HTML and JavaScript, and must call the globally available JavaScript function `qflow(result)` directly from your HTML/JavaScript to return data. Do NOT use `window.qflow.send()` or similar custom mechanisms. Other modes are 'notification' (message with close button), 'dialog' (message with options), 'input' (message with text input)."
|
|
21
21
|
},
|
|
22
22
|
message: {
|
|
23
23
|
type: "string",
|
|
@@ -55,7 +55,7 @@ export class InteractiveWebviewNode extends AsyncNode {
|
|
|
55
55
|
},
|
|
56
56
|
html: {
|
|
57
57
|
type: "string",
|
|
58
|
-
description: "Required for 'custom' mode. The full HTML content to display in the webview."
|
|
58
|
+
description: "Required for 'custom' mode. The full HTML content to display in the webview. For 'custom-dialog' and 'custom-input' modes, this HTML should be for display purposes only and should NOT contain interactive elements (like buttons or input fields) that attempt to return data to the flow, as these are handled by the tool's 'options' or 'multilineInput' parameters."
|
|
59
59
|
},
|
|
60
60
|
multilineInput: {
|
|
61
61
|
type: "boolean",
|
package/package.json
CHANGED