tauri-remote-ui 0.26.0 → 0.28.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/README.md CHANGED
@@ -1,15 +1,19 @@
1
1
  # Tauri Remote UI
2
2
 
3
- **Tauri Remote UI** is a plugin that allows you to expose your Tauri application's UI to any web browser, enabling seamless remote interaction and end-to-end testing. The plugin bridges your native app and commercial browsers, letting you use standard web automation tools for testing and debugging—without modifying your app's logic.
3
+ **Tauri Remote UI** is a plugin that allows you to expose your Tauri application's UI to any web browser, enabling seamless remote interaction for development and end-to-end testing. The plugin bridges your native app and commercial browsers, letting you use standard web automation tools for testing and debugging—without modifying your app's logic.
4
+
5
+ ## Badges
6
+ ![Crates.io Version](https://img.shields.io/crates/v/tauri-remote-ui?style=flat&label=crates.io%20%3A%20tauri-remote-ui) ![NPM Version](https://img.shields.io/npm/v/tauri-remote-ui?label=npm%20%3A%20tauri-remote-ui)
7
+
4
8
 
5
9
  ## Features
6
10
 
7
11
  - **Remote UI Exposure:** Interact with your Tauri app from any browser.
12
+ - **Seamless Development:** Enable Development debug attachment for fronend debugging.
8
13
  - **Seamless E2E Testing:** Use existing web automation/testing tools.
9
14
  - **Automatic Transport Switching:** IPC for WebView, WebSocket for browsers—handled transparently.
10
15
  - **Customizable Security:** Control and secure remote access as needed.
11
- - **Zero App Changes:** No additional changes required to your app after plugin setup.
12
- - **Future Compatibility:** When [CEF-RS](https://github.com/cef-rs/cef) becomes available, the same E2E tests (e.g., written with Playwright or similar tools that use the Chromium debug port) will work seamlessly in debug mode, ensuring long-term support for modern testing workflows.
16
+ - **Future Compatibility For Test Migration:** When [CEF-RS](https://github.com/tauri-apps/cef-rs) becomes available, the same E2E tests (e.g., written with Playwright or similar tools that use the Chromium debug port) will work seamlessly in debug mode, ensuring long-term support for modern testing workflows.
13
17
 
14
18
  ## Completed Features
15
19
 
@@ -57,22 +61,24 @@ pub fn run() {
57
61
  ```
58
62
  3. **Replace Emitter trait**
59
63
  ```rust
60
- use tauri::Emitter
64
+ use tauri::Emitter;
65
+ webview_window.emit(data)
61
66
  ```
62
67
  To
63
68
  ```rust
64
69
  use tauri_remote_ui::EmitterExt;
70
+ webview_window.emit(data).await
65
71
  ```
66
72
  4. **Start/Stop Server**
67
73
  ```rust
68
- fn enable_server(app: AppHandle) -> String {
69
- match app.start_remote_ui(RemoteUiConfig::default().set_port(Some(9090))) {
74
+ async fn enable_server(app: AppHandle) -> String {
75
+ match app.start_remote_ui(RemoteUiConfig::default().set_port(Some(9090))).await {
70
76
  Ok(()) => format!("Server Started."),
71
77
  Err(err) => format!("Server Error {:?}", err),
72
78
  }
73
79
  }
74
- fn disable_server(app: AppHandle) -> String {
75
- match app.stop_remote_ui() {
80
+ async fn disable_server(app: AppHandle) -> String {
81
+ match app.stop_remote_ui().await {
76
82
  Ok(()) => format!("Server Stoped"),
77
83
  Err(err) => format!("Server Error {:?}", err),
78
84
  }
@@ -89,12 +95,13 @@ To
89
95
  import { invoke } from "tauri-remote-ui/api/core";
90
96
  import { listen } from "tauri-remote-ui/api/event";
91
97
  ```
92
- 3. **Access the UI remotely** via the provided web interface when activated.
98
+ 7. **Development WebSocket Proxy** `/remote_ui_ws` proxy remote_ui url ws to your dev server like vite.
99
+ 8. **Enable Source Map and update lauch.json setup in vscode to debug frontend**
93
100
 
94
- ## Development
101
+ ## Plugin Development
95
102
 
96
103
  - Build Rust: `cargo build`
97
- - Build JS: `pnpm build`
104
+ - Build JS: `cd guest-js && pnpm build`
98
105
  - Example app: See `examples/tauri-app/`
99
106
 
100
107
  ## License
@@ -4,6 +4,7 @@
4
4
  * This module handles listening to events from the Tauri application via WebSocket
5
5
  */
6
6
  import { EventCallback, EventName, Options, UnlistenFn } from '@tauri-apps/api/event';
7
+ export type { UnlistenFn } from '@tauri-apps/api/event';
7
8
  /**
8
9
  * Listen to events from the Tauri application
9
10
  * Falls back to WebSocket if Tauri Event API is not available
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tauri-remote-ui",
3
3
  "license": "MIT",
4
- "version": "0.26.0",
4
+ "version": "0.28.0",
5
5
  "author": "DraviaVemal",
6
6
  "description": "A Tauri plugin that exposes the application's UI to a web browser, allowing full interaction while the native app continues running. This enables end-to-end UI testing using existing web-based testing tools without requiring modifications to the app itself.",
7
7
  "type": "module",