plusui-native-core 0.1.105 → 0.1.106

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 (48) hide show
  1. package/Core/.claude/settings.local.json +7 -0
  2. package/Core/CMakeLists.txt +1 -1
  3. package/Core/Features/API/app-api.ts +28 -28
  4. package/Core/Features/API/browser-api.ts +38 -38
  5. package/Core/Features/API/clipboard-api.ts +21 -21
  6. package/Core/Features/API/display-api.ts +33 -33
  7. package/Core/Features/API/keyboard-api.ts +33 -33
  8. package/Core/Features/API/menu-api.ts +39 -39
  9. package/Core/Features/API/router-api.ts +23 -23
  10. package/Core/Features/API/tray-api.ts +22 -22
  11. package/Core/Features/API/webgpu-api.ts +55 -55
  12. package/Core/Features/App/app.cpp +128 -102
  13. package/Core/Features/Browser/browser.cpp +227 -227
  14. package/Core/Features/Browser/browser.ts +161 -161
  15. package/Core/Features/Clipboard/clipboard.cpp +235 -235
  16. package/Core/Features/Display/display.cpp +212 -212
  17. package/Core/Features/FileDrop/filedrop.cpp +448 -324
  18. package/Core/Features/FileDrop/filedrop.css +421 -421
  19. package/Core/Features/FileDrop/filedrop.ts +0 -7
  20. package/Core/Features/Keyboard/keyboard_linux.cpp +4 -0
  21. package/Core/Features/Router/router.cpp +62 -62
  22. package/Core/Features/Router/router.ts +113 -113
  23. package/Core/Features/Tray/tray.cpp +328 -324
  24. package/Core/Features/WebGPU/webgpu.cpp +948 -948
  25. package/Core/Features/Window/webview.cpp +1009 -1009
  26. package/Core/Features/Window/webview.ts +516 -516
  27. package/Core/Features/Window/window.cpp +2240 -1986
  28. package/Core/include/plusui/api.hpp +237 -237
  29. package/Core/include/plusui/app.hpp +33 -33
  30. package/Core/include/plusui/browser.hpp +67 -67
  31. package/Core/include/plusui/clipboard.hpp +41 -41
  32. package/Core/include/plusui/connect.hpp +340 -340
  33. package/Core/include/plusui/connection.hpp +3 -3
  34. package/Core/include/plusui/display.hpp +90 -90
  35. package/Core/include/plusui/filedrop.hpp +92 -77
  36. package/Core/include/plusui/keyboard.hpp +112 -112
  37. package/Core/include/plusui/menu.hpp +153 -153
  38. package/Core/include/plusui/plusui +18 -18
  39. package/Core/include/plusui/router.hpp +42 -42
  40. package/Core/include/plusui/tray.hpp +94 -94
  41. package/Core/include/plusui/webgpu.hpp +434 -434
  42. package/Core/include/plusui/window.hpp +180 -177
  43. package/Core/scripts/generate-umbrella-header.mjs +77 -77
  44. package/Core/vendor/WebView2EnvironmentOptions.h +406 -406
  45. package/Core/vendor/webview.h +487 -487
  46. package/Core/vendor/webview2.h +52079 -52079
  47. package/README.md +19 -19
  48. package/package.json +1 -1
@@ -1,68 +1,68 @@
1
- #pragma once
2
-
3
- #include <functional>
4
- #include <map>
5
- #include <memory>
6
- #include <string>
7
-
8
- namespace plusui {
9
-
10
- class Window;
11
-
12
- struct BrowserState {
13
- std::string url;
14
- std::string title;
15
- bool canGoBack = false;
16
- bool canGoForward = false;
17
- bool isLoading = false;
18
- };
19
-
20
- struct RouteConfig {
21
- std::string path;
22
- std::string url;
23
- };
24
-
25
- class Browser {
26
- public:
27
- using NavigateCallback = std::function<void(const std::string &url)>;
28
- using StateCallback = std::function<void(const BrowserState &state)>;
29
- using LoadCallback = std::function<void()>;
30
-
31
- Browser();
32
- ~Browser();
33
-
34
- static Browser create(Window *window);
35
- void navigate(const std::string &url);
36
- void goBack();
37
- void goForward();
38
- void reload();
39
- void stop();
40
-
41
- void openExternal(const std::string &url);
42
- void openNewWindow(const std::string &url);
43
-
44
- std::string getURL() const;
45
- std::string getTitle() const;
46
- BrowserState getState() const;
47
-
48
- bool canGoBack() const;
49
- bool canGoForward() const;
50
- bool isLoading() const;
51
-
52
- void onNavigate(NavigateCallback callback);
53
- void onStateChange(StateCallback callback);
54
- void onLoadStart(LoadCallback callback);
55
- void onLoadEnd(LoadCallback callback);
56
- void onLoadError(std::function<void(const std::string &error)> callback);
57
-
58
- void setRoutes(const std::map<std::string, std::string> &routes);
59
- void push(const std::string &route);
60
- void replace(const std::string &route);
61
- std::string getCurrentRoute() const;
62
-
63
- private:
64
- struct Impl;
65
- std::shared_ptr<Impl> pImpl;
66
- };
67
-
1
+ #pragma once
2
+
3
+ #include <functional>
4
+ #include <map>
5
+ #include <memory>
6
+ #include <string>
7
+
8
+ namespace plusui {
9
+
10
+ class Window;
11
+
12
+ struct BrowserState {
13
+ std::string url;
14
+ std::string title;
15
+ bool canGoBack = false;
16
+ bool canGoForward = false;
17
+ bool isLoading = false;
18
+ };
19
+
20
+ struct RouteConfig {
21
+ std::string path;
22
+ std::string url;
23
+ };
24
+
25
+ class Browser {
26
+ public:
27
+ using NavigateCallback = std::function<void(const std::string &url)>;
28
+ using StateCallback = std::function<void(const BrowserState &state)>;
29
+ using LoadCallback = std::function<void()>;
30
+
31
+ Browser();
32
+ ~Browser();
33
+
34
+ static Browser create(Window *window);
35
+ void navigate(const std::string &url);
36
+ void goBack();
37
+ void goForward();
38
+ void reload();
39
+ void stop();
40
+
41
+ void openExternal(const std::string &url);
42
+ void openNewWindow(const std::string &url);
43
+
44
+ std::string getURL() const;
45
+ std::string getTitle() const;
46
+ BrowserState getState() const;
47
+
48
+ bool canGoBack() const;
49
+ bool canGoForward() const;
50
+ bool isLoading() const;
51
+
52
+ void onNavigate(NavigateCallback callback);
53
+ void onStateChange(StateCallback callback);
54
+ void onLoadStart(LoadCallback callback);
55
+ void onLoadEnd(LoadCallback callback);
56
+ void onLoadError(std::function<void(const std::string &error)> callback);
57
+
58
+ void setRoutes(const std::map<std::string, std::string> &routes);
59
+ void push(const std::string &route);
60
+ void replace(const std::string &route);
61
+ std::string getCurrentRoute() const;
62
+
63
+ private:
64
+ struct Impl;
65
+ std::shared_ptr<Impl> pImpl;
66
+ };
67
+
68
68
  } // namespace plusui
@@ -1,41 +1,41 @@
1
- #pragma once
2
-
3
- #include <string>
4
- #include <vector>
5
- #include <functional>
6
-
7
- namespace PlusUI {
8
-
9
- /**
10
- * Clipboard - Cross-platform clipboard management
11
- *
12
- * Provides access to system clipboard for text and images.
13
- * Supports clipboard change events.
14
- */
15
- class Clipboard {
16
- public:
17
- Clipboard();
18
- ~Clipboard();
19
-
20
- // Text operations
21
- std::string getText();
22
- void setText(const std::string& text);
23
- bool hasText();
24
-
25
- // Image operations (base64 encoded)
26
- std::string getImage();
27
- void setImage(const std::string& base64Data);
28
- bool hasImage();
29
-
30
- // Clear clipboard
31
- void clear();
32
-
33
- // Clipboard change events
34
- void onClipboardChange(std::function<void(const std::string&)> callback);
35
-
36
- private:
37
- struct Impl;
38
- Impl* pImpl;
39
- };
40
-
41
- } // namespace PlusUI
1
+ #pragma once
2
+
3
+ #include <string>
4
+ #include <vector>
5
+ #include <functional>
6
+
7
+ namespace PlusUI {
8
+
9
+ /**
10
+ * Clipboard - Cross-platform clipboard management
11
+ *
12
+ * Provides access to system clipboard for text and images.
13
+ * Supports clipboard change events.
14
+ */
15
+ class Clipboard {
16
+ public:
17
+ Clipboard();
18
+ ~Clipboard();
19
+
20
+ // Text operations
21
+ std::string getText();
22
+ void setText(const std::string& text);
23
+ bool hasText();
24
+
25
+ // Image operations (base64 encoded)
26
+ std::string getImage();
27
+ void setImage(const std::string& base64Data);
28
+ bool hasImage();
29
+
30
+ // Clear clipboard
31
+ void clear();
32
+
33
+ // Clipboard change events
34
+ void onClipboardChange(std::function<void(const std::string&)> callback);
35
+
36
+ private:
37
+ struct Impl;
38
+ Impl* pImpl;
39
+ };
40
+
41
+ } // namespace PlusUI