@nethesis/chat-island 0.1.4 → 0.1.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/README.md +1 -1
- package/dist/events.d.ts +6 -0
- package/dist/index.js +181 -166
- package/dist/xmpp.d.ts +1 -0
- package/dist-widget/index.widget.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Serve `dist/chat-island-sw.js` from the host for notifications with the tab clos
|
|
|
31
31
|
| `chat-island-error` | out | `{ scope, message }` |
|
|
32
32
|
| `chat-island-push` | out | `{ enabled }` |
|
|
33
33
|
| `chat-island-call` | out | `{ username, number }` |
|
|
34
|
-
| `chat-island-notify` | out | `{ peer, name, body }` message not in view |
|
|
34
|
+
| `chat-island-notify` | out | `{ peer, name, body, kind, author, text, attachment, avatar, ts }` message not in view |
|
|
35
35
|
|
|
36
36
|
## Develop
|
|
37
37
|
|
package/dist/events.d.ts
CHANGED
|
@@ -27,6 +27,12 @@ export declare function emit(name: 'chat-island-notify', detail: {
|
|
|
27
27
|
peer: string;
|
|
28
28
|
name: string;
|
|
29
29
|
body: string;
|
|
30
|
+
kind: 'chat' | 'group';
|
|
31
|
+
author: string;
|
|
32
|
+
text: string;
|
|
33
|
+
attachment: boolean;
|
|
34
|
+
avatar?: string;
|
|
35
|
+
ts: number;
|
|
30
36
|
}): void;
|
|
31
37
|
export declare function listen<T>(name: string, handler: (detail: T) => void): () => void;
|
|
32
38
|
export type ContactsEvent = {
|