plusui-native-core 0.1.82 → 0.1.85
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/Core/API/index.ts +73 -30
- package/package.json +1 -1
package/Core/API/index.ts
CHANGED
|
@@ -31,36 +31,41 @@ export { fileDrop } from '../Features/FileDrop/filedrop';
|
|
|
31
31
|
export { menu } from '../Features/Menu/menu';
|
|
32
32
|
export { app } from '../Features/App/app';
|
|
33
33
|
export { gpu } from '../Features/WebGPU/webgpu';
|
|
34
|
+
export { browser } from '../Features/Browser/browser';
|
|
35
|
+
export { router } from '../Features/Router/router';
|
|
34
36
|
|
|
35
37
|
// ============================================================
|
|
36
38
|
// CUSTOM CHANNELS - For user-defined events (uses .on/.emit)
|
|
37
39
|
// ============================================================
|
|
38
40
|
|
|
39
|
-
export {
|
|
40
|
-
connect,
|
|
41
|
-
createChannel,
|
|
41
|
+
export {
|
|
42
|
+
connect,
|
|
43
|
+
createChannel,
|
|
42
44
|
createFeatureConnect,
|
|
43
|
-
type Channel
|
|
45
|
+
type Channel
|
|
44
46
|
} from './Connect_API';
|
|
45
47
|
|
|
48
|
+
// Internal export for connection generator
|
|
49
|
+
export { _client } from '../Features/Connection/connect';
|
|
50
|
+
|
|
46
51
|
// ============================================================
|
|
47
52
|
// TYPES - Re-exported for convenience
|
|
48
53
|
// ============================================================
|
|
49
54
|
|
|
50
|
-
export type {
|
|
51
|
-
WindowSize,
|
|
52
|
-
WindowPosition,
|
|
53
|
-
WindowRect,
|
|
55
|
+
export type {
|
|
56
|
+
WindowSize,
|
|
57
|
+
WindowPosition,
|
|
58
|
+
WindowRect,
|
|
54
59
|
WindowState,
|
|
55
60
|
WindowId
|
|
56
61
|
} from '../Features/Window/window';
|
|
57
62
|
|
|
58
|
-
export type {
|
|
59
|
-
ClipboardAPI
|
|
63
|
+
export type {
|
|
64
|
+
ClipboardAPI
|
|
60
65
|
} from '../Features/Clipboard/clipboard';
|
|
61
66
|
|
|
62
|
-
export type {
|
|
63
|
-
KeyEvent,
|
|
67
|
+
export type {
|
|
68
|
+
KeyEvent,
|
|
64
69
|
Shortcut,
|
|
65
70
|
KeyEventCallback,
|
|
66
71
|
ShortcutCallback,
|
|
@@ -68,34 +73,34 @@ export type {
|
|
|
68
73
|
KeyMod
|
|
69
74
|
} from '../Features/Keyboard/keyboard';
|
|
70
75
|
|
|
71
|
-
export type {
|
|
72
|
-
TrayMenuItem,
|
|
73
|
-
TrayIconData
|
|
76
|
+
export type {
|
|
77
|
+
TrayMenuItem,
|
|
78
|
+
TrayIconData
|
|
74
79
|
} from '../Features/Tray/tray';
|
|
75
80
|
|
|
76
|
-
export type {
|
|
77
|
-
Display,
|
|
78
|
-
DisplayMode,
|
|
79
|
-
DisplayBounds,
|
|
80
|
-
DisplayResolution
|
|
81
|
+
export type {
|
|
82
|
+
Display,
|
|
83
|
+
DisplayMode,
|
|
84
|
+
DisplayBounds,
|
|
85
|
+
DisplayResolution
|
|
81
86
|
} from '../Features/Display/display';
|
|
82
87
|
|
|
83
|
-
export type {
|
|
84
|
-
FileInfo,
|
|
88
|
+
export type {
|
|
89
|
+
FileInfo,
|
|
85
90
|
DragEvent,
|
|
86
|
-
FileDropAPI
|
|
91
|
+
FileDropAPI
|
|
87
92
|
} from '../Features/FileDrop/filedrop';
|
|
88
93
|
|
|
89
|
-
export type {
|
|
90
|
-
MenuItem,
|
|
94
|
+
export type {
|
|
95
|
+
MenuItem,
|
|
91
96
|
MenuItemType,
|
|
92
|
-
MenuBarData,
|
|
93
|
-
ContextMenuOptions,
|
|
94
|
-
ContextInfo
|
|
97
|
+
MenuBarData,
|
|
98
|
+
ContextMenuOptions,
|
|
99
|
+
ContextInfo
|
|
95
100
|
} from '../Features/Menu/menu';
|
|
96
101
|
|
|
97
|
-
export type {
|
|
98
|
-
AppConfig
|
|
102
|
+
export type {
|
|
103
|
+
AppConfig
|
|
99
104
|
} from '../Features/App/app';
|
|
100
105
|
|
|
101
106
|
export type {
|
|
@@ -125,3 +130,41 @@ export {
|
|
|
125
130
|
isTextFile,
|
|
126
131
|
formatFileSize
|
|
127
132
|
} from '../Features/FileDrop/filedrop';
|
|
133
|
+
|
|
134
|
+
// ============================================================
|
|
135
|
+
// DEFAULT EXPORT - For `import plusui from 'plusui'` convenience
|
|
136
|
+
// ============================================================
|
|
137
|
+
|
|
138
|
+
import { window } from '../Features/Window/window';
|
|
139
|
+
import { clipboard } from '../Features/Clipboard/clipboard';
|
|
140
|
+
import { keyboard } from '../Features/Keyboard/keyboard';
|
|
141
|
+
import { tray } from '../Features/Tray/tray';
|
|
142
|
+
import { display } from '../Features/Display/display';
|
|
143
|
+
import { fileDrop, formatFileSize } from '../Features/FileDrop/filedrop';
|
|
144
|
+
import { menu } from '../Features/Menu/menu';
|
|
145
|
+
import { app } from '../Features/App/app';
|
|
146
|
+
import { gpu } from '../Features/WebGPU/webgpu';
|
|
147
|
+
import { browser } from '../Features/Browser/browser';
|
|
148
|
+
import { router } from '../Features/Router/router';
|
|
149
|
+
import { connect, createChannel, createFeatureConnect } from './Connect_API';
|
|
150
|
+
|
|
151
|
+
const plusui = {
|
|
152
|
+
window,
|
|
153
|
+
win: window, // Alias for backward compatibility
|
|
154
|
+
clipboard,
|
|
155
|
+
keyboard,
|
|
156
|
+
tray,
|
|
157
|
+
display,
|
|
158
|
+
fileDrop,
|
|
159
|
+
menu,
|
|
160
|
+
app,
|
|
161
|
+
gpu,
|
|
162
|
+
browser,
|
|
163
|
+
router,
|
|
164
|
+
connect,
|
|
165
|
+
createChannel,
|
|
166
|
+
createFeatureConnect,
|
|
167
|
+
formatFileSize
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export default plusui;
|