@lynkoria/react 0.1.1 → 0.1.2
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 +8 -0
- package/README.md +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lynkoria/react
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c1c6ff1: README: the client needs no API URL (pass your backend's whole `messagingToken()` result), and calls-only apps can use `createLynkoria()` with no options.
|
|
8
|
+
- Updated dependencies [0ee4045]
|
|
9
|
+
- @lynkoria/client@0.2.0
|
|
10
|
+
|
|
3
11
|
## 0.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ import { createLynkoria } from '@lynkoria/client';
|
|
|
26
26
|
import { LynkoriaProvider, useConversation, usePresence } from '@lynkoria/react';
|
|
27
27
|
|
|
28
28
|
const client = createLynkoria({
|
|
29
|
-
|
|
29
|
+
// Return your backend's whole messagingToken() result; it carries the API URL.
|
|
30
30
|
getMessagingToken: () => myBackend.fetchLynkoriaMessagingToken(),
|
|
31
31
|
});
|
|
32
32
|
|
|
@@ -38,6 +38,9 @@ export function App() {
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
// Calls only? createLynkoria() with no options works with LynkoriaProvider and useCall; it opens no
|
|
42
|
+
// messaging connection.
|
|
43
|
+
|
|
41
44
|
function Chat({ conversationId }: { conversationId: string }) {
|
|
42
45
|
const { messages, loading, hasMore, loadOlder, send } = useConversation(conversationId);
|
|
43
46
|
const presence = usePresence('user_456');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynkoria/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "React hooks for Lynkoria calls, messages and presence",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@lynkoria/client": "0.
|
|
26
|
+
"@lynkoria/client": "0.2.0",
|
|
27
27
|
"@lynkoria/config": "0.0.0",
|
|
28
28
|
"@testing-library/react": "^16.3.3",
|
|
29
29
|
"@types/react": "^19.3.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vitest": "^5.1.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@lynkoria/client": "^0.
|
|
39
|
+
"@lynkoria/client": "^0.2.0",
|
|
40
40
|
"react": "^18.2.0 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|