plusui-native-core 0.1.105 → 0.1.107

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 (77) hide show
  1. package/Core/.cache/clangd/index/api.hpp.016B34C8046EF490.idx +0 -0
  2. package/Core/.cache/clangd/index/app.cpp.1E6FAF043D496421.idx +0 -0
  3. package/Core/.cache/clangd/index/app.hpp.FA0E5D412C4E6148.idx +0 -0
  4. package/Core/.cache/clangd/index/browser.cpp.9461A2CAF129F1D9.idx +0 -0
  5. package/Core/.cache/clangd/index/browser.hpp.BE40AE80881B3107.idx +0 -0
  6. package/Core/.cache/clangd/index/clipboard.cpp.2399913537B2A7AD.idx +0 -0
  7. package/Core/.cache/clangd/index/clipboard.hpp.C1095DDACD7149E9.idx +0 -0
  8. package/Core/.cache/clangd/index/connect.cpp.518C66C7C28B30A9.idx +0 -0
  9. package/Core/.cache/clangd/index/connect.hpp.08E2F7CD13B78601.idx +0 -0
  10. package/Core/.cache/clangd/index/connection.hpp.849FAEF1523BF2C3.idx +0 -0
  11. package/Core/.cache/clangd/index/display.cpp.F6F6D932BF9F8D8E.idx +0 -0
  12. package/Core/.cache/clangd/index/display.hpp.0C1A9CAD11EE4404.idx +0 -0
  13. package/Core/.cache/clangd/index/filedrop.cpp.669B524B3C501C52.idx +0 -0
  14. package/Core/.cache/clangd/index/filedrop.hpp.48460099C3F35F2D.idx +0 -0
  15. package/Core/.cache/clangd/index/keyboard.cpp.DC6D34E4A4F798DD.idx +0 -0
  16. package/Core/.cache/clangd/index/keyboard.hpp.F016CB68D7DE5A46.idx +0 -0
  17. package/Core/.cache/clangd/index/keyboard_linux.cpp.B403FDCEA7A6CA53.idx +0 -0
  18. package/Core/.cache/clangd/index/menu.cpp.3059F08D8D2DF265.idx +0 -0
  19. package/Core/.cache/clangd/index/menu.hpp.8716DCCC573910D4.idx +0 -0
  20. package/Core/.cache/clangd/index/plusui.hpp.8CFCDFDC2E3F41DD.idx +0 -0
  21. package/Core/.cache/clangd/index/router.cpp.EAC9EAD34C59E573.idx +0 -0
  22. package/Core/.cache/clangd/index/router.hpp.2B06E2EE9998468D.idx +0 -0
  23. package/Core/.cache/clangd/index/stb_image.h.E26CF48FE089A0D3.idx +0 -0
  24. package/Core/.cache/clangd/index/tray.cpp.92F244E7E1D7F0EC.idx +0 -0
  25. package/Core/.cache/clangd/index/tray.hpp.0D881B0601BBBD25.idx +0 -0
  26. package/Core/.cache/clangd/index/webgpu.cpp.FC656FA8BE10FE15.idx +0 -0
  27. package/Core/.cache/clangd/index/webgpu.hpp.5AF1A5E9DF9E5AE0.idx +0 -0
  28. package/Core/.cache/clangd/index/window.cpp.191D8C9ADF874B22.idx +0 -0
  29. package/Core/.cache/clangd/index/window.hpp.B9811B43AA295697.idx +0 -0
  30. package/Core/.claude/settings.local.json +7 -0
  31. package/Core/CMakeLists.txt +1 -1
  32. package/Core/Features/API/app-api.ts +28 -28
  33. package/Core/Features/API/browser-api.ts +38 -38
  34. package/Core/Features/API/clipboard-api.ts +21 -21
  35. package/Core/Features/API/display-api.ts +33 -33
  36. package/Core/Features/API/keyboard-api.ts +33 -33
  37. package/Core/Features/API/menu-api.ts +39 -39
  38. package/Core/Features/API/router-api.ts +23 -23
  39. package/Core/Features/API/tray-api.ts +22 -22
  40. package/Core/Features/API/webgpu-api.ts +55 -55
  41. package/Core/Features/App/app.cpp +135 -102
  42. package/Core/Features/Browser/browser.cpp +227 -227
  43. package/Core/Features/Browser/browser.ts +161 -161
  44. package/Core/Features/Clipboard/clipboard.cpp +235 -235
  45. package/Core/Features/Display/display.cpp +212 -212
  46. package/Core/Features/FileDrop/filedrop.cpp +448 -324
  47. package/Core/Features/FileDrop/filedrop.css +421 -421
  48. package/Core/Features/FileDrop/filedrop.ts +0 -7
  49. package/Core/Features/Keyboard/keyboard_linux.cpp +4 -0
  50. package/Core/Features/Router/router.cpp +62 -62
  51. package/Core/Features/Router/router.ts +113 -113
  52. package/Core/Features/Tray/tray.cpp +437 -324
  53. package/Core/Features/WebGPU/webgpu.cpp +948 -948
  54. package/Core/Features/Window/webview.cpp +1009 -1009
  55. package/Core/Features/Window/webview.ts +516 -516
  56. package/Core/Features/Window/window.cpp +2240 -1986
  57. package/Core/include/plusui/api.hpp +237 -237
  58. package/Core/include/plusui/app.hpp +36 -34
  59. package/Core/include/plusui/browser.hpp +67 -67
  60. package/Core/include/plusui/clipboard.hpp +41 -41
  61. package/Core/include/plusui/connect.hpp +340 -340
  62. package/Core/include/plusui/connection.hpp +3 -3
  63. package/Core/include/plusui/display.hpp +90 -90
  64. package/Core/include/plusui/filedrop.hpp +92 -77
  65. package/Core/include/plusui/keyboard.hpp +112 -112
  66. package/Core/include/plusui/menu.hpp +153 -153
  67. package/Core/include/plusui/plusui +18 -18
  68. package/Core/include/plusui/router.hpp +42 -42
  69. package/Core/include/plusui/tray.hpp +94 -94
  70. package/Core/include/plusui/webgpu.hpp +434 -434
  71. package/Core/include/plusui/window.hpp +180 -177
  72. package/Core/scripts/generate-umbrella-header.mjs +77 -77
  73. package/Core/vendor/WebView2EnvironmentOptions.h +406 -406
  74. package/Core/vendor/webview.h +487 -487
  75. package/Core/vendor/webview2.h +52079 -52079
  76. package/README.md +19 -19
  77. 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