webtau 0.2.1 → 0.3.0

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/app.d.ts ADDED
@@ -0,0 +1,65 @@
1
+ /**
2
+ * webtau/app — Web shim for @tauri-apps/api/app.
3
+ *
4
+ * Provides getName(), getVersion(), getTauriVersion(), show(), and hide().
5
+ * In web mode, name and version are read from a configurable source
6
+ * (defaults to document.title / "0.0.0"). show() and hide() are no-ops
7
+ * since browser tabs cannot be hidden programmatically.
8
+ */
9
+ /**
10
+ * Override the app name returned by `getName()`.
11
+ * Useful for setting metadata early in your web entry point.
12
+ * Pass `null` to reset to the default fallback behavior.
13
+ *
14
+ * ```ts
15
+ * import { setAppName } from "webtau/app";
16
+ * setAppName("My Game");
17
+ * setAppName(null); // reset
18
+ * ```
19
+ */
20
+ export declare function setAppName(name: string | null): void;
21
+ /**
22
+ * Override the app version returned by `getVersion()`.
23
+ * Pass `null` to reset to the default fallback behavior.
24
+ *
25
+ * ```ts
26
+ * import { setAppVersion } from "webtau/app";
27
+ * setAppVersion("1.2.0");
28
+ * setAppVersion(null); // reset
29
+ * ```
30
+ */
31
+ export declare function setAppVersion(version: string | null): void;
32
+ /**
33
+ * Returns the application name.
34
+ *
35
+ * Web fallback: returns the value set via `setAppName()`, or
36
+ * `document.title` if available, or `"gametau-app"`.
37
+ */
38
+ export declare function getName(): Promise<string>;
39
+ /**
40
+ * Returns the application version.
41
+ *
42
+ * Web fallback: returns the value set via `setAppVersion()`,
43
+ * or `"0.0.0"`.
44
+ */
45
+ export declare function getVersion(): Promise<string>;
46
+ /**
47
+ * Returns the Tauri version.
48
+ *
49
+ * Web fallback: always returns `"web"` since there is no Tauri runtime.
50
+ * Callers can use this to distinguish desktop vs web at runtime.
51
+ */
52
+ export declare function getTauriVersion(): Promise<string>;
53
+ /**
54
+ * Shows the application window.
55
+ *
56
+ * No-op on web — browser tabs are always visible.
57
+ */
58
+ export declare function show(): Promise<void>;
59
+ /**
60
+ * Hides the application window.
61
+ *
62
+ * No-op on web — browser tabs cannot be hidden programmatically.
63
+ */
64
+ export declare function hide(): Promise<void>;
65
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAEpD;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAE1D;AAED;;;;;GAKG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAM/C;AAED;;;;;GAKG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAGlD;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAEvD;AAED;;;;GAIG;AACH,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG;AAE9C;;;;GAIG;AACH,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG"}
package/dist/app.js ADDED
@@ -0,0 +1,84 @@
1
+ /**
2
+ * webtau/app — Web shim for @tauri-apps/api/app.
3
+ *
4
+ * Provides getName(), getVersion(), getTauriVersion(), show(), and hide().
5
+ * In web mode, name and version are read from a configurable source
6
+ * (defaults to document.title / "0.0.0"). show() and hide() are no-ops
7
+ * since browser tabs cannot be hidden programmatically.
8
+ */
9
+ let appName = null;
10
+ let appVersion = null;
11
+ /**
12
+ * Override the app name returned by `getName()`.
13
+ * Useful for setting metadata early in your web entry point.
14
+ * Pass `null` to reset to the default fallback behavior.
15
+ *
16
+ * ```ts
17
+ * import { setAppName } from "webtau/app";
18
+ * setAppName("My Game");
19
+ * setAppName(null); // reset
20
+ * ```
21
+ */
22
+ export function setAppName(name) {
23
+ appName = name;
24
+ }
25
+ /**
26
+ * Override the app version returned by `getVersion()`.
27
+ * Pass `null` to reset to the default fallback behavior.
28
+ *
29
+ * ```ts
30
+ * import { setAppVersion } from "webtau/app";
31
+ * setAppVersion("1.2.0");
32
+ * setAppVersion(null); // reset
33
+ * ```
34
+ */
35
+ export function setAppVersion(version) {
36
+ appVersion = version;
37
+ }
38
+ /**
39
+ * Returns the application name.
40
+ *
41
+ * Web fallback: returns the value set via `setAppName()`, or
42
+ * `document.title` if available, or `"gametau-app"`.
43
+ */
44
+ export async function getName() {
45
+ if (appName !== null)
46
+ return appName;
47
+ if (typeof document !== "undefined" && document.title) {
48
+ return document.title;
49
+ }
50
+ return "gametau-app";
51
+ }
52
+ /**
53
+ * Returns the application version.
54
+ *
55
+ * Web fallback: returns the value set via `setAppVersion()`,
56
+ * or `"0.0.0"`.
57
+ */
58
+ export async function getVersion() {
59
+ if (appVersion !== null)
60
+ return appVersion;
61
+ return "0.0.0";
62
+ }
63
+ /**
64
+ * Returns the Tauri version.
65
+ *
66
+ * Web fallback: always returns `"web"` since there is no Tauri runtime.
67
+ * Callers can use this to distinguish desktop vs web at runtime.
68
+ */
69
+ export async function getTauriVersion() {
70
+ return "web";
71
+ }
72
+ /**
73
+ * Shows the application window.
74
+ *
75
+ * No-op on web — browser tabs are always visible.
76
+ */
77
+ export async function show() { }
78
+ /**
79
+ * Hides the application window.
80
+ *
81
+ * No-op on web — browser tabs cannot be hidden programmatically.
82
+ */
83
+ export async function hide() { }
84
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,IAAI,OAAO,GAAkB,IAAI,CAAC;AAClC,IAAI,UAAU,GAAkB,IAAI,CAAC;AAErC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CAAC,IAAmB;IAC5C,OAAO,GAAG,IAAI,CAAC;AACjB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,OAAsB;IAClD,UAAU,GAAG,OAAO,CAAC;AACvB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO;IAC3B,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,OAAO,CAAC;IACrC,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;QACtD,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,IAAI,UAAU,KAAK,IAAI;QAAE,OAAO,UAAU,CAAC;IAC3C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,KAAmB,CAAC;AAE9C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,IAAI,KAAmB,CAAC"}
package/dist/path.d.ts ADDED
@@ -0,0 +1,98 @@
1
+ /**
2
+ * webtau/path — Web shim for @tauri-apps/api/path.
3
+ *
4
+ * Provides virtual directory resolvers and POSIX-style path utilities.
5
+ * On the web there is no real filesystem, so directory functions return
6
+ * virtual paths under `/app/*` that pair naturally with the IndexedDB-backed
7
+ * `webtau/fs` module. Path manipulation functions use `/` as the separator.
8
+ */
9
+ /** Path separator for the current platform. Always `/` on web. */
10
+ export declare function sep(): string;
11
+ /** Application data directory. */
12
+ export declare function appDataDir(): Promise<string>;
13
+ /** Application local data directory. */
14
+ export declare function appLocalDataDir(): Promise<string>;
15
+ /** Application config directory. */
16
+ export declare function appConfigDir(): Promise<string>;
17
+ /** Application cache directory. */
18
+ export declare function appCacheDir(): Promise<string>;
19
+ /** Application log directory. */
20
+ export declare function appLogDir(): Promise<string>;
21
+ /** Desktop directory. Unsupported on web — returns virtual path. */
22
+ export declare function desktopDir(): Promise<string>;
23
+ /** Documents directory. Unsupported on web — returns virtual path. */
24
+ export declare function documentDir(): Promise<string>;
25
+ /** Downloads directory. Unsupported on web — returns virtual path. */
26
+ export declare function downloadDir(): Promise<string>;
27
+ /** Home directory. */
28
+ export declare function homeDir(): Promise<string>;
29
+ /** Audio directory. Unsupported on web — returns virtual path. */
30
+ export declare function audioDir(): Promise<string>;
31
+ /** Picture directory. Unsupported on web — returns virtual path. */
32
+ export declare function pictureDir(): Promise<string>;
33
+ /** Public directory. Unsupported on web — returns virtual path. */
34
+ export declare function publicDir(): Promise<string>;
35
+ /** Video directory. Unsupported on web — returns virtual path. */
36
+ export declare function videoDir(): Promise<string>;
37
+ /** Resource directory (bundled assets). */
38
+ export declare function resourceDir(): Promise<string>;
39
+ /** Temporary directory. */
40
+ export declare function tempDir(): Promise<string>;
41
+ /**
42
+ * Returns the last component of a path.
43
+ *
44
+ * ```ts
45
+ * basename("/app/data/save.json") // "save.json"
46
+ * basename("/app/data/save.json", ".json") // "save"
47
+ * ```
48
+ */
49
+ export declare function basename(path: string, ext?: string): Promise<string>;
50
+ /**
51
+ * Returns the directory portion of a path.
52
+ *
53
+ * ```ts
54
+ * dirname("/app/data/save.json") // "/app/data"
55
+ * ```
56
+ */
57
+ export declare function dirname(path: string): Promise<string>;
58
+ /**
59
+ * Returns the extension of a path, including the leading dot.
60
+ *
61
+ * ```ts
62
+ * extname("/app/data/save.json") // ".json"
63
+ * extname("readme") // ""
64
+ * ```
65
+ */
66
+ export declare function extname(path: string): Promise<string>;
67
+ /**
68
+ * Joins path segments with the platform separator.
69
+ *
70
+ * ```ts
71
+ * join("/app", "data", "save.json") // "/app/data/save.json"
72
+ * ```
73
+ */
74
+ export declare function join(...paths: string[]): Promise<string>;
75
+ /**
76
+ * Normalizes a path, resolving `.` and `..` segments and collapsing
77
+ * repeated separators.
78
+ *
79
+ * ```ts
80
+ * normalize("/app/data/../config/./settings.json") // "/app/config/settings.json"
81
+ * ```
82
+ */
83
+ export declare function normalize(path: string): Promise<string>;
84
+ /**
85
+ * Resolves a sequence of paths into an absolute path.
86
+ * If the last absolute path wins; relative segments are appended.
87
+ *
88
+ * ```ts
89
+ * resolve("/app", "data", "save.json") // "/app/data/save.json"
90
+ * resolve("data", "/other", "file.txt") // "/other/file.txt"
91
+ * ```
92
+ */
93
+ export declare function resolve(...paths: string[]): Promise<string>;
94
+ /**
95
+ * Returns `true` if the path is absolute (starts with `/`).
96
+ */
97
+ export declare function isAbsolute(path: string): Promise<boolean>;
98
+ //# sourceMappingURL=path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../src/path.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,kEAAkE;AAClE,wBAAgB,GAAG,IAAI,MAAM,CAE5B;AAMD,kCAAkC;AAClC,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAElD;AAED,wCAAwC;AACxC,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,CAEvD;AAED,oCAAoC;AACpC,wBAAsB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAEpD;AAED,mCAAmC;AACnC,wBAAsB,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAEnD;AAED,iCAAiC;AACjC,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAEjD;AAED,oEAAoE;AACpE,wBAAsB,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAElD;AAED,sEAAsE;AACtE,wBAAsB,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAEnD;AAED,sEAAsE;AACtE,wBAAsB,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAEnD;AAED,sBAAsB;AACtB,wBAAsB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAE/C;AAED,kEAAkE;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/path.
3
+ *
4
+ * Provides virtual directory resolvers and POSIX-style path utilities.
5
+ * On the web there is no real filesystem, so directory functions return
6
+ * virtual paths under `/app/*` that pair naturally with the IndexedDB-backed
7
+ * `webtau/fs` module. Path manipulation functions use `/` as the separator.
8
+ */
9
+ // ── Path separator ──
10
+ /** Path separator for the current platform. Always `/` on web. */
11
+ export function sep() {
12
+ return "/";
13
+ }
14
+ // ── Directory resolvers ──
15
+ // Virtual paths that map to logical locations. Consumers can use these
16
+ // with webtau/fs (IndexedDB-backed) for persistent storage on the web.
17
+ /** Application data directory. */
18
+ export async function appDataDir() {
19
+ return "/app/data";
20
+ }
21
+ /** Application local data directory. */
22
+ export async function appLocalDataDir() {
23
+ return "/app/local-data";
24
+ }
25
+ /** Application config directory. */
26
+ export async function appConfigDir() {
27
+ return "/app/config";
28
+ }
29
+ /** Application cache directory. */
30
+ export async function appCacheDir() {
31
+ return "/app/cache";
32
+ }
33
+ /** Application log directory. */
34
+ export async function appLogDir() {
35
+ return "/app/log";
36
+ }
37
+ /** Desktop directory. Unsupported on web — returns virtual path. */
38
+ export async function desktopDir() {
39
+ return "/app/desktop";
40
+ }
41
+ /** Documents directory. Unsupported on web — returns virtual path. */
42
+ export async function documentDir() {
43
+ return "/app/documents";
44
+ }
45
+ /** Downloads directory. Unsupported on web — returns virtual path. */
46
+ export async function downloadDir() {
47
+ return "/app/downloads";
48
+ }
49
+ /** Home directory. */
50
+ export async function homeDir() {
51
+ return "/app/home";
52
+ }
53
+ /** Audio directory. Unsupported on web — returns virtual path. */
54
+ export async function audioDir() {
55
+ return "/app/audio";
56
+ }
57
+ /** Picture directory. Unsupported on web — returns virtual path. */
58
+ export async function pictureDir() {
59
+ return "/app/pictures";
60
+ }
61
+ /** Public directory. Unsupported on web — returns virtual path. */
62
+ export async function publicDir() {
63
+ return "/app/public";
64
+ }
65
+ /** Video directory. Unsupported on web — returns virtual path. */
66
+ export async function videoDir() {
67
+ return "/app/videos";
68
+ }
69
+ /** Resource directory (bundled assets). */
70
+ export async function resourceDir() {
71
+ return "/app/resources";
72
+ }
73
+ /** Temporary directory. */
74
+ export async function tempDir() {
75
+ return "/app/temp";
76
+ }
77
+ // ── Path utilities ──
78
+ // POSIX-style path manipulation. These are synchronous helpers that
79
+ // mirror the Tauri path API's async signatures for compatibility.
80
+ /**
81
+ * Returns the last component of a path.
82
+ *
83
+ * ```ts
84
+ * basename("/app/data/save.json") // "save.json"
85
+ * basename("/app/data/save.json", ".json") // "save"
86
+ * ```
87
+ */
88
+ export async function basename(path, ext) {
89
+ const segments = path.replace(/\/+$/, "").split("/");
90
+ let name = segments[segments.length - 1] || "";
91
+ if (ext && name.endsWith(ext)) {
92
+ name = name.slice(0, -ext.length);
93
+ }
94
+ return name;
95
+ }
96
+ /**
97
+ * Returns the directory portion of a path.
98
+ *
99
+ * ```ts
100
+ * dirname("/app/data/save.json") // "/app/data"
101
+ * ```
102
+ */
103
+ export async function dirname(path) {
104
+ const segments = path.replace(/\/+$/, "").split("/");
105
+ segments.pop();
106
+ return segments.join("/") || "/";
107
+ }
108
+ /**
109
+ * Returns the extension of a path, including the leading dot.
110
+ *
111
+ * ```ts
112
+ * extname("/app/data/save.json") // ".json"
113
+ * extname("readme") // ""
114
+ * ```
115
+ */
116
+ export async function extname(path) {
117
+ const base = path.replace(/\/+$/, "").split("/").pop() || "";
118
+ const dotIndex = base.lastIndexOf(".");
119
+ if (dotIndex <= 0)
120
+ return "";
121
+ return base.slice(dotIndex);
122
+ }
123
+ /**
124
+ * Joins path segments with the platform separator.
125
+ *
126
+ * ```ts
127
+ * join("/app", "data", "save.json") // "/app/data/save.json"
128
+ * ```
129
+ */
130
+ export async function join(...paths) {
131
+ return normalizePath(paths.join("/"));
132
+ }
133
+ /**
134
+ * Normalizes a path, resolving `.` and `..` segments and collapsing
135
+ * repeated separators.
136
+ *
137
+ * ```ts
138
+ * normalize("/app/data/../config/./settings.json") // "/app/config/settings.json"
139
+ * ```
140
+ */
141
+ export async function normalize(path) {
142
+ return normalizePath(path);
143
+ }
144
+ /**
145
+ * Resolves a sequence of paths into an absolute path.
146
+ * If the last absolute path wins; relative segments are appended.
147
+ *
148
+ * ```ts
149
+ * resolve("/app", "data", "save.json") // "/app/data/save.json"
150
+ * resolve("data", "/other", "file.txt") // "/other/file.txt"
151
+ * ```
152
+ */
153
+ export async function resolve(...paths) {
154
+ let resolved = "";
155
+ for (let i = paths.length - 1; i >= 0; i--) {
156
+ resolved = paths[i] + (resolved ? "/" + resolved : "");
157
+ if (paths[i].startsWith("/"))
158
+ break;
159
+ }
160
+ return normalizePath(resolved);
161
+ }
162
+ /**
163
+ * Returns `true` if the path is absolute (starts with `/`).
164
+ */
165
+ export async function isAbsolute(path) {
166
+ return path.startsWith("/");
167
+ }
168
+ // ── Internal helpers ──
169
+ function normalizePath(path) {
170
+ const isAbs = path.startsWith("/");
171
+ const segments = path.split("/").filter(Boolean);
172
+ const result = [];
173
+ for (const segment of segments) {
174
+ if (segment === ".")
175
+ continue;
176
+ if (segment === "..") {
177
+ if (result.length > 0 && result[result.length - 1] !== "..") {
178
+ result.pop();
179
+ }
180
+ else if (!isAbs) {
181
+ result.push("..");
182
+ }
183
+ }
184
+ else {
185
+ result.push(segment);
186
+ }
187
+ }
188
+ const normalized = result.join("/");
189
+ return isAbs ? "/" + normalized : normalized || ".";
190
+ }
191
+ //# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sourceRoot":"","sources":["../src/path.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,uBAAuB;AAEvB,kEAAkE;AAClE,MAAM,UAAU,GAAG;IACjB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,4BAA4B;AAC5B,uEAAuE;AACvE,uEAAuE;AAEvE,kCAAkC;AAClC,MAAM,CAAC,KAAK,UAAU,UAAU;IAC9B,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,wCAAwC;AACxC,MAAM,CAAC,KAAK,UAAU,eAAe;IACnC,OAAO,i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M,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;gBAC5D,MAAM,CAAC,GAAG,EAAE,CAAC;YACf,CAAC;iBAAM,IAAI,CAAC,KAAK,EAAE,CAAC;gBAClB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;IAED,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,IAAI,GAAG,CAAC;AACtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webtau",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Deploy Tauri games to web + desktop from one codebase",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -49,6 +49,14 @@
49
49
  "./assets": {
50
50
  "types": "./dist/assets.d.ts",
51
51
  "import": "./dist/assets.js"
52
+ },
53
+ "./app": {
54
+ "types": "./dist/app.d.ts",
55
+ "import": "./dist/app.js"
56
+ },
57
+ "./path": {
58
+ "types": "./dist/path.d.ts",
59
+ "import": "./dist/path.js"
52
60
  }
53
61
  },
54
62
  "files": [