@omujs/omu 0.9.30 → 0.9.32
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/CHANGELOG.md +16 -0
- package/dist/dts/api/dashboard/extension.d.ts +4 -1
- package/dist/dts/api/registry/registry.d.ts +13 -0
- package/dist/dts/api/server/extension.d.ts +9 -1
- package/dist/dts/version.d.ts +1 -1
- package/dist/esm/api/dashboard/extension.js +8 -2
- package/dist/esm/api/dashboard/index.js +8 -2
- package/dist/esm/api/i18n/extension.js +46 -2
- package/dist/esm/api/i18n/index.js +46 -2
- package/dist/esm/api/registry/extension.js +46 -2
- package/dist/esm/api/registry/index.js +46 -2
- package/dist/esm/api/registry/registry.js +1 -1
- package/dist/esm/api/server/extension.js +50 -4
- package/dist/esm/api/server/index.js +50 -4
- package/dist/esm/api/session/extension.js +46 -2
- package/dist/esm/api/session/index.js +46 -2
- package/dist/esm/index.js +53 -3
- package/dist/esm/network/index.js +3 -3
- package/dist/esm/network/network.js +3 -3
- package/dist/esm/omu.js +53 -3
- package/dist/esm/version.js +3 -3
- package/package.json +1 -1
- package/src/api/dashboard/extension.ts +11 -1
- package/src/api/registry/extension.ts +46 -1
- package/src/api/registry/registry.ts +23 -0
- package/src/api/server/extension.ts +10 -0
- package/src/version.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.9.32 (2025-11-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @omujs/omu
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 0.9.31 (2025-11-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @omujs/omu
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## 0.9.30 (2025-11-15)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @omujs/omu
|
|
@@ -5,6 +5,7 @@ import { ExtensionType } from "../extension.js";
|
|
|
5
5
|
import { PermissionTypeJson } from "../permission/permission.js";
|
|
6
6
|
import { PackageInfo } from "../plugin/package-info.js";
|
|
7
7
|
import { Registry } from "../registry/registry.js";
|
|
8
|
+
import { AppIndexRegistryMeta } from "../server/extension.js";
|
|
8
9
|
import type { Table } from "../table/table.js";
|
|
9
10
|
import type { DashboardHandler } from "./handler.js";
|
|
10
11
|
import { AppInstallResponse, DragDrop, DragDropReadResponse, DragEnter, DragLeave, DragOver, FileDragPacket } from "./packets.js";
|
|
@@ -152,9 +153,10 @@ export interface PromptRequestAppUpdate extends PromptRequestBase<"app/update">
|
|
|
152
153
|
}
|
|
153
154
|
export interface PromptRequestIndexInstall extends PromptRequestBase<"index/install"> {
|
|
154
155
|
index_url: string;
|
|
156
|
+
meta?: AppIndexRegistryMeta;
|
|
155
157
|
}
|
|
156
158
|
export type PromptRequest = (PromptRequestAppPermissions | PromptRequestAppPlugins | PromptRequestAppInstall | PromptRequestAppUpdate | PromptRequestIndexInstall);
|
|
157
|
-
export type PromptResult = "accept" | "deny";
|
|
159
|
+
export type PromptResult = "accept" | "deny" | "block";
|
|
158
160
|
export declare class DashboardExtension {
|
|
159
161
|
private readonly omu;
|
|
160
162
|
readonly type: ExtensionType<DashboardExtension>;
|
|
@@ -179,6 +181,7 @@ export declare class DashboardExtension {
|
|
|
179
181
|
getCookies(options: GetCookiesRequest): Promise<UserResult<Cookie[]>>;
|
|
180
182
|
openApp(app: App): Promise<void>;
|
|
181
183
|
installApp(app: App): Promise<AppInstallResponse>;
|
|
184
|
+
clearBlockedPrompts(): Promise<null>;
|
|
182
185
|
requireDragDrop(): Promise<DragDropHandler>;
|
|
183
186
|
notifyDropDragState(packet: FileDragPacket): Promise<void>;
|
|
184
187
|
speechRecognitionStart(): Promise<void>;
|
|
@@ -41,4 +41,17 @@ export interface Registry<T> {
|
|
|
41
41
|
update(fn: (value: T) => PromiseLike<T> | T): Promise<T>;
|
|
42
42
|
modify(fn: (value: T) => PromiseLike<T> | T): Promise<T>;
|
|
43
43
|
listen(fn: (value: T) => void): Unlisten;
|
|
44
|
+
compatSvelte(): Writable<T>;
|
|
45
|
+
}
|
|
46
|
+
export type Subscriber<T> = (value: T) => void;
|
|
47
|
+
export type Unsubscriber = () => void;
|
|
48
|
+
export type Updater<T> = (value: T) => T;
|
|
49
|
+
export type StartStopNotifier<T> = (set: (value: T) => void, update: (fn: Updater<T>) => void) => void | (() => void);
|
|
50
|
+
export interface Readable<T> {
|
|
51
|
+
subscribe(this: void, run: Subscriber<T>): Unsubscriber;
|
|
52
|
+
}
|
|
53
|
+
export interface Writable<T> extends Readable<T> {
|
|
54
|
+
set(this: void, value: T): void;
|
|
55
|
+
update(this: void, updater: Updater<T>): void;
|
|
56
|
+
wait(): Promise<T>;
|
|
44
57
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { App, AppJson } from "../../app.js";
|
|
2
2
|
import { Identifier, IdentifierMap } from "../../identifier";
|
|
3
|
+
import { LocalizedText } from "../../localization/localization.js";
|
|
3
4
|
import { Omu } from "../../omu.js";
|
|
4
5
|
import { ExtensionType, type Extension } from "../extension.js";
|
|
5
6
|
import { Registry, RegistryType } from "../registry";
|
|
@@ -7,6 +8,7 @@ import { type Table } from "../table";
|
|
|
7
8
|
export declare const SERVER_EXTENSION_TYPE: ExtensionType<ServerExtension>;
|
|
8
9
|
export interface AppIndexEntry {
|
|
9
10
|
url: string;
|
|
11
|
+
meta?: AppIndexRegistryMeta;
|
|
10
12
|
added_at: string;
|
|
11
13
|
}
|
|
12
14
|
export interface AppIndex {
|
|
@@ -35,13 +37,19 @@ export declare class SessionObserver {
|
|
|
35
37
|
onConnect(callback: (app: App) => Promise<void> | void): void;
|
|
36
38
|
onDisconnect(callback: (app: App) => Promise<void> | void): void;
|
|
37
39
|
}
|
|
40
|
+
export type AppIndexRegistryMeta = {
|
|
41
|
+
name: LocalizedText;
|
|
42
|
+
note: LocalizedText;
|
|
43
|
+
};
|
|
38
44
|
export interface AppIndexRegistryJSON {
|
|
39
45
|
id: string;
|
|
46
|
+
meta?: AppIndexRegistryMeta;
|
|
40
47
|
apps: Record<string, AppJson>;
|
|
41
48
|
}
|
|
42
49
|
export declare class AppIndexRegistry {
|
|
43
50
|
id: Identifier;
|
|
44
51
|
apps: IdentifierMap<App>;
|
|
45
|
-
|
|
52
|
+
meta: AppIndexRegistryMeta | undefined;
|
|
53
|
+
constructor(id: Identifier, apps: IdentifierMap<App>, meta: AppIndexRegistryMeta | undefined);
|
|
46
54
|
static fromJSON(json: AppIndexRegistryJSON): AppIndexRegistry;
|
|
47
55
|
}
|
package/dist/dts/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.9.
|
|
1
|
+
export declare const VERSION = "0.9.31";
|