@stacksjs/desktop 0.2.5 → 0.2.6
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/dist/alerts.d.ts +5 -5
- package/dist/components.d.ts +1 -14
- package/dist/dialogs.d.ts +1 -11
- package/dist/index.d.ts +37 -1
- package/dist/modals.d.ts +1 -1
- package/dist/system-tray.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/window.d.ts +1 -1
- package/package.json +1 -1
package/dist/alerts.d.ts
CHANGED
|
@@ -27,19 +27,19 @@ export declare function showToast(options: ToastOptions): Promise<void>;
|
|
|
27
27
|
/**
|
|
28
28
|
* Show an info toast
|
|
29
29
|
*/
|
|
30
|
-
export declare function showInfoToast(message: string, duration?:
|
|
30
|
+
export declare function showInfoToast(message: string, duration?: number): Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
* Show a success toast
|
|
33
33
|
*/
|
|
34
|
-
export declare function showSuccessToast(message: string, duration?:
|
|
34
|
+
export declare function showSuccessToast(message: string, duration?: number): Promise<void>;
|
|
35
35
|
/**
|
|
36
36
|
* Show a warning toast
|
|
37
37
|
*/
|
|
38
|
-
export declare function showWarningToast(message: string, duration?:
|
|
38
|
+
export declare function showWarningToast(message: string, duration?: number): Promise<void>;
|
|
39
39
|
/**
|
|
40
40
|
* Show an error toast
|
|
41
41
|
*/
|
|
42
|
-
export declare function showErrorToast(message: string, duration?:
|
|
42
|
+
export declare function showErrorToast(message: string, duration?: number): Promise<void>;
|
|
43
43
|
/**
|
|
44
44
|
* Show a notification with title
|
|
45
45
|
*/
|
|
@@ -161,4 +161,4 @@ export declare const TOAST_STYLES: `
|
|
|
161
161
|
.stx-toast.success { border-left: 4px solid #27ae60; }
|
|
162
162
|
.stx-toast.warning { border-left: 4px solid #f39c12; }
|
|
163
163
|
.stx-toast.error { border-left: 4px solid #e74c3c; }
|
|
164
|
-
`;
|
|
164
|
+
`;
|
package/dist/components.d.ts
CHANGED
|
@@ -500,19 +500,6 @@ export declare const COMPONENT_STYLES: `
|
|
|
500
500
|
.stx-chip--error { background: #3a1a1a; }
|
|
501
501
|
}
|
|
502
502
|
`;
|
|
503
|
-
/**
|
|
504
|
-
* Native Components for Desktop Applications
|
|
505
|
-
*
|
|
506
|
-
* This module provides TypeScript wrappers for native UI components.
|
|
507
|
-
* Components work in both browser (web-based) and desktop (native) environments.
|
|
508
|
-
*
|
|
509
|
-
* Categories:
|
|
510
|
-
* - Input: Button, TextInput, Checkbox, RadioButton, Slider, ColorPicker, DatePicker, TimePicker, Autocomplete
|
|
511
|
-
* - Display: Label, ImageView, ProgressBar, Avatar, Badge, Chip, Card, Tooltip, Toast
|
|
512
|
-
* - Layout: ScrollView, SplitView, Accordion, Stepper, Modal, Tabs, Dropdown
|
|
513
|
-
* - Data: ListView, Table, TreeView, DataGrid, Chart
|
|
514
|
-
* - Advanced: Rating, CodeEditor, MediaPlayer, FileExplorer, WebView
|
|
515
|
-
*/
|
|
516
503
|
/**
|
|
517
504
|
* Button component properties
|
|
518
505
|
*/
|
|
@@ -939,4 +926,4 @@ export declare interface WebViewProps extends ComponentProps {
|
|
|
939
926
|
onLoad?: () => void
|
|
940
927
|
onError?: (error: Error) => void
|
|
941
928
|
}
|
|
942
|
-
export type ComponentName = typeof AVAILABLE_COMPONENTS[number]
|
|
929
|
+
export type ComponentName = typeof AVAILABLE_COMPONENTS[number];
|
package/dist/dialogs.d.ts
CHANGED
|
@@ -123,16 +123,6 @@ export declare function showWarningDialog(message: string, title?: string): Prom
|
|
|
123
123
|
* This provides convenient wrappers around the Craft dialog bridge.
|
|
124
124
|
*/
|
|
125
125
|
export declare function getDialogBridgeScript(): string;
|
|
126
|
-
/**
|
|
127
|
-
* Native Dialog Integration
|
|
128
|
-
*
|
|
129
|
-
* Provides native file dialogs, message boxes, and other system dialogs
|
|
130
|
-
* using Craft's Dialog Bridge APIs.
|
|
131
|
-
*
|
|
132
|
-
* When running inside a Craft native window, these dialogs use the native
|
|
133
|
-
* OS dialogs (NSOpenPanel on macOS, etc.). When running in a browser,
|
|
134
|
-
* they fall back to web alternatives where possible.
|
|
135
|
-
*/
|
|
136
126
|
/**
|
|
137
127
|
* Options for opening a file dialog
|
|
138
128
|
*/
|
|
@@ -210,4 +200,4 @@ export declare interface ColorPickerOptions {
|
|
|
210
200
|
export declare interface ColorPickerResult {
|
|
211
201
|
canceled: boolean
|
|
212
202
|
color?: string
|
|
213
|
-
}
|
|
203
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,9 @@ export type {
|
|
|
55
55
|
SaveDialogOptions,
|
|
56
56
|
SaveDialogResult,
|
|
57
57
|
} from './dialogs';
|
|
58
|
+
// =============================================================================
|
|
59
|
+
// Core Types
|
|
60
|
+
// =============================================================================
|
|
58
61
|
export type {
|
|
59
62
|
AlertOptions,
|
|
60
63
|
ComponentProps,
|
|
@@ -70,6 +73,24 @@ export type {
|
|
|
70
73
|
WindowOptions,
|
|
71
74
|
} from './types';
|
|
72
75
|
export type { DesktopConfig } from './window';
|
|
76
|
+
/**
|
|
77
|
+
* @stacksjs/desktop
|
|
78
|
+
*
|
|
79
|
+
* Native desktop application framework for stx
|
|
80
|
+
*
|
|
81
|
+
* This package provides a TypeScript API for creating native desktop applications
|
|
82
|
+
* with the stx framework. Powered by Craft (~/Code/craft).
|
|
83
|
+
*
|
|
84
|
+
* ## Features
|
|
85
|
+
* - Window Management: Create and control native windows
|
|
86
|
+
* - System Tray: Build menubar applications
|
|
87
|
+
* - Modals & Alerts: Native dialogs and notifications
|
|
88
|
+
* - 35 UI Components: Complete component library
|
|
89
|
+
* - Hot Reload: Development mode support
|
|
90
|
+
*/
|
|
91
|
+
// =============================================================================
|
|
92
|
+
// Alerts / Toast Notifications
|
|
93
|
+
// =============================================================================
|
|
73
94
|
export {
|
|
74
95
|
dismissAlertById,
|
|
75
96
|
dismissAllAlerts,
|
|
@@ -84,6 +105,9 @@ export {
|
|
|
84
105
|
showWarningToast,
|
|
85
106
|
TOAST_STYLES,
|
|
86
107
|
} from './alerts';
|
|
108
|
+
// =============================================================================
|
|
109
|
+
// Components (35 total)
|
|
110
|
+
// =============================================================================
|
|
87
111
|
export {
|
|
88
112
|
// Component list and styles
|
|
89
113
|
AVAILABLE_COMPONENTS,
|
|
@@ -133,6 +157,9 @@ export {
|
|
|
133
157
|
createTreeView,
|
|
134
158
|
createWebView,
|
|
135
159
|
} from './components';
|
|
160
|
+
// =============================================================================
|
|
161
|
+
// Modal Dialogs
|
|
162
|
+
// =============================================================================
|
|
136
163
|
export {
|
|
137
164
|
alert,
|
|
138
165
|
closeAllModals,
|
|
@@ -147,6 +174,9 @@ export {
|
|
|
147
174
|
showSuccessModal,
|
|
148
175
|
showWarningModal,
|
|
149
176
|
} from './modals';
|
|
177
|
+
// =============================================================================
|
|
178
|
+
// System Tray / Menubar
|
|
179
|
+
// =============================================================================
|
|
150
180
|
export {
|
|
151
181
|
createMenubar,
|
|
152
182
|
createSystemTray,
|
|
@@ -157,6 +187,9 @@ export {
|
|
|
157
187
|
TRAY_MENU_STYLES,
|
|
158
188
|
triggerTrayAction,
|
|
159
189
|
} from './system-tray';
|
|
190
|
+
// =============================================================================
|
|
191
|
+
// Native Dialogs
|
|
192
|
+
// =============================================================================
|
|
160
193
|
export {
|
|
161
194
|
getDialogBridgeScript,
|
|
162
195
|
showAlertDialog,
|
|
@@ -168,6 +201,9 @@ export {
|
|
|
168
201
|
showSaveDialog,
|
|
169
202
|
showWarningDialog,
|
|
170
203
|
} from './dialogs';
|
|
204
|
+
// =============================================================================
|
|
205
|
+
// Window Management
|
|
206
|
+
// =============================================================================
|
|
171
207
|
export {
|
|
172
208
|
closeAllWindows,
|
|
173
209
|
createWindow,
|
|
@@ -180,4 +216,4 @@ export {
|
|
|
180
216
|
openDevWindow,
|
|
181
217
|
resetDesktopConfig,
|
|
182
218
|
setDesktopConfig,
|
|
183
|
-
} from './window';
|
|
219
|
+
} from './window';
|
package/dist/modals.d.ts
CHANGED
package/dist/system-tray.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/window.d.ts
CHANGED
package/package.json
CHANGED