@fractal-solutions/qflow 1.0.56 → 1.0.58

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/README.md +16 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -248,6 +248,20 @@ await asyncFlow.runAsync({});
248
248
 
249
249
  See [documentation/examples.md](documentation/examples.md) for a full list of examples.
250
250
 
251
+ ## Advanced Examples
252
+
253
+ ### Interactive Webview Form with Validation
254
+
255
+ This example demonstrates how to create a persistent interactive webview for a multi-field form, perform data validation using `DataValidationNode`, and provide dynamic feedback to the user within the webview.
256
+
257
+ See [examples/advanced_interactive_webview_form.js](examples/advanced_interactive_webview_form.js) for the full example.
258
+
259
+ ### Webview Data Visualization
260
+
261
+ This example demonstrates how to generate data within a qflow, create dynamic HTML content with embedded JavaScript (using Chart.js) for data visualization, and display this visualization in a `WebviewNode`.
262
+
263
+ See [examples/webview_data_visualization.js](examples/webview_data_visualization.js) for the full example.
264
+
251
265
  ## Observability (Event System)
252
266
 
253
267
  `qflow` includes a built-in event system for `AsyncFlow` that provides detailed insights into the execution of your workflows. This allows for powerful, real-time monitoring, logging, and debugging.
@@ -588,6 +602,8 @@ Here's a comprehensive list of integrated nodes available in qflow, along with a
588
602
  * **[WebSocketsNode](documentation/nodes/websockets.md)**: Provides real-time, two-way communication with web services.
589
603
  * **[WebhookNode](documentation/nodes/webhook.md)**: Exposes an HTTP endpoint to receive webhooks, triggering a specified qflow flow.
590
604
  * **[HttpServerNode](documentation/nodes/http_server.md)**: Creates a web server and handles HTTP requests by triggering a qflow flow.
605
+ * **[InteractiveWebviewNode](documentation/nodes/interactive_webview.md)**: Displays an interactive webview window for notifications, dialogs, or user input.
606
+ * **[WebviewNode](documentation/nodes/webview.md)**: Displays a webview window with custom HTML content.
591
607
 
592
608
  ### Flow Control
593
609
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractal-solutions/qflow",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "A lightweight and flexible JavaScript library for creating and managing workflows and agents.",
5
5
  "main": "dist/qflow.js",
6
6
  "types": "dist/qflow.d.ts",
@@ -20,7 +20,8 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "test": "bun test",
23
- "build": "tsc --project tsconfig.build.json"
23
+ "build": "tsc --project tsconfig.build.json",
24
+ "postinstall": "bun scripts/postinstall.js"
24
25
  },
25
26
  "keywords": [
26
27
  "workflow",
@@ -51,6 +52,7 @@
51
52
  "serialport": "^13.0.0",
52
53
  "simple-git": "^3.28.0",
53
54
  "ssh2": "^1.17.0",
55
+ "webview-bun": "^2.4.0",
54
56
  "ws": "^8.18.3",
55
57
  "xlsx": "^0.18.5"
56
58
  },