plusui-native 0.2.18 → 0.2.19

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.18",
3
+ "version": "0.2.19",
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.17",
31
- "plusui-native-bindgen": "^0.1.17"
30
+ "plusui-native-builder": "^0.1.18",
31
+ "plusui-native-bindgen": "^0.1.18"
32
32
  },
33
33
  "peerDependencies": {
34
- "plusui-native-bindgen": "^0.1.17"
34
+ "plusui-native-bindgen": "^0.1.18"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -3,6 +3,8 @@
3
3
  #include <iostream>
4
4
  #include "generated/assets.h"
5
5
 
6
+ using namespace plusui;
7
+
6
8
  // ============================================================================
7
9
  // {{PROJECT_NAME}} - Configuration
8
10
  // ============================================================================
@@ -104,7 +106,7 @@ struct WebGPUConfig {
104
106
  // ============================================================================
105
107
  int main() {
106
108
  // Use your app name as the variable name
107
- auto {{PROJECT_NAME_LOWER}} = plusui::createApp()
109
+ auto {{PROJECT_NAME_LOWER}} = createApp()
108
110
  .title(appConfig.name)
109
111
  .width(windowConfig.width)
110
112
  .height(windowConfig.height)
@@ -172,24 +174,24 @@ int main() {
172
174
  // FILE DROP EVENTS (Drag & Drop)
173
175
  // ========================================
174
176
  // Listen for files dropped into the window
175
- plusui::event::on("fileDrop.filesDropped", [](const std::string& data) {
177
+ event::on("fileDrop.filesDropped", [](const std::string& data) {
176
178
  std::cout << "Files dropped: " << data << std::endl;
177
179
  // Parse the JSON data to get file info
178
180
  // You can process files here in C++
179
181
  });
180
182
 
181
- plusui::event::on("fileDrop.dragEnter", [](const std::string&) {
183
+ event::on("fileDrop.dragEnter", [](const std::string&) {
182
184
  std::cout << "Drag entered window" << std::endl;
183
185
  });
184
186
 
185
- plusui::event::on("fileDrop.dragLeave", [](const std::string&) {
187
+ event::on("fileDrop.dragLeave", [](const std::string&) {
186
188
  std::cout << "Drag left window" << std::endl;
187
189
  });
188
190
 
189
191
  // ========================================
190
192
  // RUN APPLICATION
191
193
  // ========================================
192
- plusui::App runtime;
194
+ App runtime;
193
195
  runtime.run();
194
196
 
195
197
  return 0;
@@ -3,6 +3,8 @@
3
3
  #include <iostream>
4
4
  #include "generated/assets.h"
5
5
 
6
+ using namespace plusui;
7
+
6
8
  // ============================================================================
7
9
  // {{PROJECT_NAME}} - Configuration
8
10
  // ============================================================================
@@ -104,7 +106,7 @@ struct WebGPUConfig {
104
106
  // ============================================================================
105
107
  int main() {
106
108
  // Use your app name as the variable name
107
- auto {{PROJECT_NAME_LOWER}} = plusui::createApp()
109
+ auto {{PROJECT_NAME_LOWER}} = createApp()
108
110
  .title(appConfig.name)
109
111
  .width(windowConfig.width)
110
112
  .height(windowConfig.height)
@@ -167,24 +169,24 @@ int main() {
167
169
  // FILE DROP EVENTS (Drag & Drop)
168
170
  // ========================================
169
171
  // Listen for files dropped into the window
170
- plusui::event::on("fileDrop.filesDropped", [](const std::string& data) {
172
+ event::on("fileDrop.filesDropped", [](const std::string& data) {
171
173
  std::cout << "Files dropped: " << data << std::endl;
172
174
  // Parse the JSON data to get file info
173
175
  // You can process files here in C++
174
176
  });
175
177
 
176
- plusui::event::on("fileDrop.dragEnter", [](const std::string&) {
178
+ event::on("fileDrop.dragEnter", [](const std::string&) {
177
179
  std::cout << "Drag entered window" << std::endl;
178
180
  });
179
181
 
180
- plusui::event::on("fileDrop.dragLeave", [](const std::string&) {
182
+ event::on("fileDrop.dragLeave", [](const std::string&) {
181
183
  std::cout << "Drag left window" << std::endl;
182
184
  });
183
185
 
184
186
  // ========================================
185
187
  // RUN APPLICATION
186
188
  // ========================================
187
- plusui::App runtime;
189
+ App runtime;
188
190
  runtime.run();
189
191
 
190
192
  return 0;