@stacksjs/desktop 0.58.48 → 0.58.49

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/desktop",
3
3
  "type": "module",
4
- "version": "0.58.48",
4
+ "version": "0.58.49",
5
5
  "description": "The Stacks Desktop engine.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
@@ -47,7 +47,8 @@
47
47
  ],
48
48
  "files": [
49
49
  "README.md",
50
- "dist"
50
+ "dist",
51
+ "src"
51
52
  ],
52
53
  "scripts": {
53
54
  "dev": "bunx vite ../../dashboard -c ../vite/src/desktop.ts",
package/src/index.ts ADDED
@@ -0,0 +1,43 @@
1
+ import { open as shellOpen } from '@tauri-apps/api/shell'
2
+
3
+ import * as app from '@tauri-apps/api/app'
4
+ import * as event from '@tauri-apps/api/event'
5
+ import * as clipboard from '@tauri-apps/api/clipboard'
6
+ import * as dialog from '@tauri-apps/api/dialog'
7
+ import * as fs from '@tauri-apps/api/fs'
8
+ import * as globalShortcut from '@tauri-apps/api/globalShortcut'
9
+ import * as http from '@tauri-apps/api/http'
10
+ import * as mocks from '@tauri-apps/api/mocks'
11
+ import * as notification from '@tauri-apps/api/notification'
12
+ import * as os from '@tauri-apps/api/os'
13
+ import * as path from '@tauri-apps/api/path'
14
+ import * as process from '@tauri-apps/api/process'
15
+ import * as shell from '@tauri-apps/api/shell'
16
+ import * as tauri from '@tauri-apps/api/tauri'
17
+ import * as updater from '@tauri-apps/api/updater'
18
+ import * as window from '@tauri-apps/api/window'
19
+
20
+ export const desktop = {
21
+ app,
22
+ event,
23
+ clipboard,
24
+ dialog,
25
+ fs,
26
+ globalShortcut,
27
+ http,
28
+ mocks,
29
+ notification,
30
+ os,
31
+ path,
32
+ process,
33
+ shell,
34
+ tauri,
35
+ updater,
36
+ window,
37
+ }
38
+
39
+ export async function openShell(link: string) {
40
+ await shellOpen(link)
41
+ }
42
+
43
+ export * from './system-tray'
@@ -0,0 +1 @@
1
+ export const testingThis = 'testing this'