plusui-native 0.2.56 → 0.2.59
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plusui-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.59",
|
|
4
4
|
"description": "PlusUI CLI - Build C++ desktop apps modern UI ",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"semver": "^7.6.0",
|
|
28
28
|
"which": "^4.0.0",
|
|
29
29
|
"execa": "^8.0.1",
|
|
30
|
-
"plusui-native-builder": "^0.1.
|
|
31
|
-
"plusui-native-connect": "^0.1.
|
|
30
|
+
"plusui-native-builder": "^0.1.58",
|
|
31
|
+
"plusui-native-connect": "^0.1.58"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"plusui-native-connect": "^0.1.
|
|
34
|
+
"plusui-native-connect": "^0.1.58"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/index.js
CHANGED
|
@@ -174,23 +174,14 @@ int main() {
|
|
|
174
174
|
// ========================================
|
|
175
175
|
// FILE DROP EVENTS (Native Drag & Drop API)
|
|
176
176
|
// ========================================
|
|
177
|
-
// Native FileDrop API - handles OS-level file drag-and-drop
|
|
178
|
-
//
|
|
179
|
-
|
|
180
|
-
event::on("fileDrop.filesDropped", [](const std::string& data) {
|
|
177
|
+
// Native FileDrop API - handles OS-level file drag-and-drop.
|
|
178
|
+
// Frontend dragEnter/dragLeave events are dispatched from injected WebView script.
|
|
179
|
+
mainWindow.onFileDrop([](const std::string& data) {
|
|
181
180
|
std::cout << "Files dropped: " << data << std::endl;
|
|
182
181
|
// Parse the JSON data to get file info
|
|
183
182
|
// You can process files here in C++
|
|
184
183
|
});
|
|
185
184
|
|
|
186
|
-
event::on("fileDrop.dragEnter", [](const std::string&) {
|
|
187
|
-
std::cout << "Drag entered window" << std::endl;
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
event::on("fileDrop.dragLeave", [](const std::string&) {
|
|
191
|
-
std::cout << "Drag left window" << std::endl;
|
|
192
|
-
});
|
|
193
|
-
|
|
194
185
|
// ========================================
|
|
195
186
|
// RUN APPLICATION
|
|
196
187
|
// ========================================
|
|
@@ -168,23 +168,14 @@ int main() {
|
|
|
168
168
|
// ========================================
|
|
169
169
|
// FILE DROP EVENTS (Native Drag & Drop API)
|
|
170
170
|
// ========================================
|
|
171
|
-
// Native FileDrop API - handles OS-level file drag-and-drop
|
|
172
|
-
//
|
|
173
|
-
|
|
174
|
-
event::on("fileDrop.filesDropped", [](const std::string& data) {
|
|
171
|
+
// Native FileDrop API - handles OS-level file drag-and-drop.
|
|
172
|
+
// Frontend dragEnter/dragLeave events are dispatched from injected WebView script.
|
|
173
|
+
mainWindow.onFileDrop([](const std::string& data) {
|
|
175
174
|
std::cout << "Files dropped: " << data << std::endl;
|
|
176
175
|
// Parse the JSON data to get file info
|
|
177
176
|
// You can process files here in C++
|
|
178
177
|
});
|
|
179
178
|
|
|
180
|
-
event::on("fileDrop.dragEnter", [](const std::string&) {
|
|
181
|
-
std::cout << "Drag entered window" << std::endl;
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
event::on("fileDrop.dragLeave", [](const std::string&) {
|
|
185
|
-
std::cout << "Drag left window" << std::endl;
|
|
186
|
-
});
|
|
187
|
-
|
|
188
179
|
// ========================================
|
|
189
180
|
// RUN APPLICATION
|
|
190
181
|
// ========================================
|