@rocket.chat/desktop-api 1.1.0-rc.0 → 1.1.1-rc.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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +13 -0
- package/package.json +6 -7
- package/src/index.ts +14 -0
- package/.eslintrc.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @rocket.chat/desktop-api
|
|
2
2
|
|
|
3
|
+
## 1.1.1-rc.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ([#38989](https://github.com/RocketChat/Rocket.Chat/pull/38989)) chore(eslint): Upgrades ESLint and its configuration
|
|
8
|
+
|
|
9
|
+
## 1.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- ([#36912](https://github.com/RocketChat/Rocket.Chat/pull/36912)) Defines `reloadServer()` method for the context bridge object type.
|
|
14
|
+
|
|
3
15
|
## 1.1.0-rc.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,20 @@ export type VideoChatWindowOptions = {
|
|
|
9
9
|
export type OutlookEventsResponse = {
|
|
10
10
|
status: 'success' | 'canceled';
|
|
11
11
|
};
|
|
12
|
+
export type CustomNotificationOptions = {
|
|
13
|
+
type: 'voice' | 'text';
|
|
14
|
+
id?: string;
|
|
15
|
+
payload: {
|
|
16
|
+
title: string;
|
|
17
|
+
body: string;
|
|
18
|
+
avatar?: string;
|
|
19
|
+
silent?: boolean;
|
|
20
|
+
requireInteraction?: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
12
23
|
export interface IRocketChatDesktop {
|
|
24
|
+
dispatchCustomNotification: (options: CustomNotificationOptions) => void;
|
|
25
|
+
closeCustomNotification: (id: string) => void;
|
|
13
26
|
onReady: (cb: (serverInfo: ServerInfo) => void) => void;
|
|
14
27
|
setServerInfo: (serverInfo: ServerInfo) => void;
|
|
15
28
|
setUrlResolver: (getAbsoluteUrl: (relativePath?: string) => string) => void;
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package",
|
|
3
3
|
"name": "@rocket.chat/desktop-api",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1-rc.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "rimraf dist && tsc -p tsconfig.json",
|
|
15
|
-
"lint": "eslint",
|
|
15
|
+
"lint": "eslint .",
|
|
16
16
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"
|
|
20
|
-
"eslint": "~8.45.0",
|
|
19
|
+
"eslint": "~9.39.3",
|
|
21
20
|
"rimraf": "~6.0.1",
|
|
22
|
-
"typescript": "~5.9.
|
|
21
|
+
"typescript": "~5.9.3"
|
|
23
22
|
},
|
|
24
23
|
"volta": {
|
|
25
24
|
"extends": "../../package.json"
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,21 @@ export type OutlookEventsResponse = {
|
|
|
14
14
|
status: 'success' | 'canceled';
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
export type CustomNotificationOptions = {
|
|
18
|
+
type: 'voice' | 'text';
|
|
19
|
+
id?: string;
|
|
20
|
+
payload: {
|
|
21
|
+
title: string;
|
|
22
|
+
body: string;
|
|
23
|
+
avatar?: string;
|
|
24
|
+
silent?: boolean;
|
|
25
|
+
requireInteraction?: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
17
29
|
export interface IRocketChatDesktop {
|
|
30
|
+
dispatchCustomNotification: (options: CustomNotificationOptions) => void;
|
|
31
|
+
closeCustomNotification: (id: string) => void;
|
|
18
32
|
onReady: (cb: (serverInfo: ServerInfo) => void) => void;
|
|
19
33
|
setServerInfo: (serverInfo: ServerInfo) => void;
|
|
20
34
|
setUrlResolver: (getAbsoluteUrl: (relativePath?: string) => string) => void;
|
package/.eslintrc.json
DELETED