@convokitapp/react-native 0.4.0 → 0.5.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/README.md +10 -0
- package/lib/commonjs/exports.js +12 -0
- package/lib/commonjs/exports.js.map +1 -1
- package/lib/module/exports.js +1 -1
- package/lib/module/exports.js.map +1 -1
- package/lib/typescript/commonjs/exports.d.ts +2 -2
- package/lib/typescript/commonjs/exports.d.ts.map +1 -1
- package/lib/typescript/module/exports.d.ts +2 -2
- package/lib/typescript/module/exports.d.ts.map +1 -1
- package/package.json +11 -3
- package/src/exports.ts +7 -4
package/README.md
CHANGED
|
@@ -19,5 +19,15 @@ JavaScript SDK client. The default entry installs mobile-safe URL, random,
|
|
|
19
19
|
base64, and text-encoding fallbacks. The Expo entry uses Expo Crypto and
|
|
20
20
|
FileSystem without making Expo a dependency of bare React Native consumers.
|
|
21
21
|
|
|
22
|
+
Read receipts follow the shared SDK: `markConversationRead(conversationId,
|
|
23
|
+
{ throughMessageId })` acknowledges through the newest rendered message, and
|
|
24
|
+
`Participant.readPosition` / `ReadEvent.readPosition` carry the precise
|
|
25
|
+
position (`null` on legacy rows). `ReadPosition`, `covers` and `readThrough`
|
|
26
|
+
are re-exported here so React Native code does not import `@convokitapp/sdk`
|
|
27
|
+
directly. Version 0.5.0 requires `@convokitapp/sdk` 0.5.x. Mixed fleet: precise
|
|
28
|
+
receipts need the sender and the reader on 0.5 with the backend read-position
|
|
29
|
+
migration; 0.4 receivers keep timestamp semantics but keep parsing the additive
|
|
30
|
+
payload.
|
|
31
|
+
|
|
22
32
|
Tested matrix: Node 22, React 19.2, React Native 0.86–0.87, Hermes, and the New
|
|
23
33
|
Architecture. Publish `@convokitapp/sdk` before this package.
|
package/lib/commonjs/exports.js
CHANGED
|
@@ -33,6 +33,12 @@ Object.defineProperty(exports, "assertReactNativeRuntime", {
|
|
|
33
33
|
return _runtime.assertReactNativeRuntime;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "covers", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _sdk.covers;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
36
42
|
Object.defineProperty(exports, "createClientMessageId", {
|
|
37
43
|
enumerable: true,
|
|
38
44
|
get: function () {
|
|
@@ -51,6 +57,12 @@ Object.defineProperty(exports, "installEncodingPolyfills", {
|
|
|
51
57
|
return _encoding.installEncodingPolyfills;
|
|
52
58
|
}
|
|
53
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "readThrough", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _sdk.readThrough;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
54
66
|
var _client = require("./client.js");
|
|
55
67
|
var _runtime = require("./runtime.js");
|
|
56
68
|
var _encoding = require("./encoding.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_client","require","_runtime","_encoding","_sdk"],"sourceRoot":"../../src","sources":["exports.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_client","require","_runtime","_encoding","_sdk"],"sourceRoot":"../../src","sources":["exports.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAMA,IAAAG,IAAA,GAAAH,OAAA","ignoreList":[]}
|
package/lib/module/exports.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
export { ConvoKitClient } from "./client.js";
|
|
4
4
|
export { assertReactNativeRuntime, fetchRuntimeAdapter } from "./runtime.js";
|
|
5
5
|
export { installEncodingPolyfills } from "./encoding.js";
|
|
6
|
-
export { CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, createClientMessageId } from '@convokitapp/sdk';
|
|
6
|
+
export { CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, covers, createClientMessageId, readThrough } from '@convokitapp/sdk';
|
|
7
7
|
//# sourceMappingURL=exports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ConvoKitClient","assertReactNativeRuntime","fetchRuntimeAdapter","installEncodingPolyfills","CONVOKIT_API_URL","ConvoKitError","ConvoKitRealtime","createClientMessageId"],"sourceRoot":"../../src","sources":["exports.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,aAAU;AAEzC,SAASC,wBAAwB,EAAEC,mBAAmB,QAAQ,cAAW;AACzE,SAASC,wBAAwB,QAAQ,eAAY;AAMrD,
|
|
1
|
+
{"version":3,"names":["ConvoKitClient","assertReactNativeRuntime","fetchRuntimeAdapter","installEncodingPolyfills","CONVOKIT_API_URL","ConvoKitError","ConvoKitRealtime","covers","createClientMessageId","readThrough"],"sourceRoot":"../../src","sources":["exports.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,aAAU;AAEzC,SAASC,wBAAwB,EAAEC,mBAAmB,QAAQ,cAAW;AACzE,SAASC,wBAAwB,QAAQ,eAAY;AAMrD,SACEC,gBAAgB,EAAEC,aAAa,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,qBAAqB,EAAEC,WAAW,QACxF,kBAAkB","ignoreList":[]}
|
|
@@ -3,6 +3,6 @@ export type { NativeMessageMediaInput, ReactNativeClientOptions } from './client
|
|
|
3
3
|
export { assertReactNativeRuntime, fetchRuntimeAdapter } from './runtime';
|
|
4
4
|
export { installEncodingPolyfills } from './encoding';
|
|
5
5
|
export type { DownloadedMediaInput, NativeFileInput, ReactNativeRuntimeAdapter, } from './runtime';
|
|
6
|
-
export { CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, createClientMessageId } from '@convokitapp/sdk';
|
|
7
|
-
export type { AppUser, ContactMedia, Conversation, ConversationListOptions, ConvoKitClientOptions, CreateConversationInput, FetchImplementation, FileMedia, ImageMedia, JsonPrimitive, JsonValue, LocationMedia, Message, MessageDeletedEvent, MessageEvent, MessageListOptions, MessageMedia, Page, PaginationOptions, Participant, PresenceEvent, ReadEvent, RealtimeConnectionEvent, RealtimeConnectionHandlers, RealtimeHandlers, RealtimeStatus, RealtimeSubscription, SendMessageInput, TokenProvider, TypingEvent, UploadBody, UploadConversationImageInput, UploadInput, UploadMessageMediaInput, UploadUserAvatarInput, } from '@convokitapp/sdk';
|
|
6
|
+
export { CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, covers, createClientMessageId, readThrough, } from '@convokitapp/sdk';
|
|
7
|
+
export type { AppUser, ContactMedia, Conversation, ConversationListOptions, ConvoKitClientOptions, CreateConversationInput, FetchImplementation, FileMedia, ImageMedia, JsonPrimitive, JsonValue, LocationMedia, MarkConversationReadOptions, Message, MessageDeletedEvent, MessageEvent, MessageListOptions, MessageMedia, Page, PaginationOptions, Participant, PresenceEvent, ReadEvent, ReadPosition, ReadPositionTarget, ReadThroughSource, RealtimeConnectionEvent, RealtimeConnectionHandlers, RealtimeHandlers, RealtimeStatus, RealtimeSubscription, SendMessageInput, TokenProvider, TypingEvent, UploadBody, UploadConversationImageInput, UploadInput, UploadMessageMediaInput, UploadUserAvatarInput, } from '@convokitapp/sdk';
|
|
8
8
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AACjF,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,yBAAyB,GAC1B,MAAM,WAAW,CAAA;AAClB,OAAO,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AACjF,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,yBAAyB,GAC1B,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE,WAAW,GAC9F,MAAM,kBAAkB,CAAA;AACzB,YAAY,EACV,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EACnF,uBAAuB,EAAE,mBAAmB,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAClF,SAAS,EAAE,aAAa,EAAE,2BAA2B,EAAE,OAAO,EAAE,mBAAmB,EACnF,YAAY,EAAE,kBAAkB,EAAE,YAAY,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EACpF,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAC7E,uBAAuB,EAAE,0BAA0B,EAAE,gBAAgB,EACrE,cAAc,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAClF,UAAU,EAAE,4BAA4B,EAAE,WAAW,EAAE,uBAAuB,EAC9E,qBAAqB,GACtB,MAAM,kBAAkB,CAAA"}
|
|
@@ -3,6 +3,6 @@ export type { NativeMessageMediaInput, ReactNativeClientOptions } from './client
|
|
|
3
3
|
export { assertReactNativeRuntime, fetchRuntimeAdapter } from './runtime';
|
|
4
4
|
export { installEncodingPolyfills } from './encoding';
|
|
5
5
|
export type { DownloadedMediaInput, NativeFileInput, ReactNativeRuntimeAdapter, } from './runtime';
|
|
6
|
-
export { CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, createClientMessageId } from '@convokitapp/sdk';
|
|
7
|
-
export type { AppUser, ContactMedia, Conversation, ConversationListOptions, ConvoKitClientOptions, CreateConversationInput, FetchImplementation, FileMedia, ImageMedia, JsonPrimitive, JsonValue, LocationMedia, Message, MessageDeletedEvent, MessageEvent, MessageListOptions, MessageMedia, Page, PaginationOptions, Participant, PresenceEvent, ReadEvent, RealtimeConnectionEvent, RealtimeConnectionHandlers, RealtimeHandlers, RealtimeStatus, RealtimeSubscription, SendMessageInput, TokenProvider, TypingEvent, UploadBody, UploadConversationImageInput, UploadInput, UploadMessageMediaInput, UploadUserAvatarInput, } from '@convokitapp/sdk';
|
|
6
|
+
export { CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, covers, createClientMessageId, readThrough, } from '@convokitapp/sdk';
|
|
7
|
+
export type { AppUser, ContactMedia, Conversation, ConversationListOptions, ConvoKitClientOptions, CreateConversationInput, FetchImplementation, FileMedia, ImageMedia, JsonPrimitive, JsonValue, LocationMedia, MarkConversationReadOptions, Message, MessageDeletedEvent, MessageEvent, MessageListOptions, MessageMedia, Page, PaginationOptions, Participant, PresenceEvent, ReadEvent, ReadPosition, ReadPositionTarget, ReadThroughSource, RealtimeConnectionEvent, RealtimeConnectionHandlers, RealtimeHandlers, RealtimeStatus, RealtimeSubscription, SendMessageInput, TokenProvider, TypingEvent, UploadBody, UploadConversationImageInput, UploadInput, UploadMessageMediaInput, UploadUserAvatarInput, } from '@convokitapp/sdk';
|
|
8
8
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAA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B,EAC9E,qBAAqB,GACtB,MAAM,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convokitapp/react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "React Native runtime adapters for the ConvoKit JavaScript SDK.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/ConvoKitApp/Convokit-React-Native-SDK.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://convokit.app/docs/react-native-sdk",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/ConvoKitApp/Convokit-React-Native-SDK/issues"
|
|
12
|
+
},
|
|
5
13
|
"license": "MIT",
|
|
6
14
|
"type": "module",
|
|
7
15
|
"source": "./src/index.ts",
|
|
@@ -36,7 +44,7 @@
|
|
|
36
44
|
"files": ["src", "lib", "README.md"],
|
|
37
45
|
"engines": { "node": ">=22.13.0" },
|
|
38
46
|
"peerDependencies": {
|
|
39
|
-
"@convokitapp/sdk": ">=0.
|
|
47
|
+
"@convokitapp/sdk": ">=0.5.0 <0.6.0",
|
|
40
48
|
"expo": ">=57.0.0 <58.0.0",
|
|
41
49
|
"expo-crypto": ">=15.0.0",
|
|
42
50
|
"expo-file-system": ">=19.0.0",
|
|
@@ -53,7 +61,7 @@
|
|
|
53
61
|
"react-native-url-polyfill": "^2.0.0"
|
|
54
62
|
},
|
|
55
63
|
"devDependencies": {
|
|
56
|
-
"@convokitapp/sdk": "^0.
|
|
64
|
+
"@convokitapp/sdk": "^0.5.0",
|
|
57
65
|
"@types/react": "^19.2.0",
|
|
58
66
|
"expo": "~57.0.0",
|
|
59
67
|
"expo-crypto": "~57.0.0",
|
package/src/exports.ts
CHANGED
|
@@ -7,13 +7,16 @@ export type {
|
|
|
7
7
|
NativeFileInput,
|
|
8
8
|
ReactNativeRuntimeAdapter,
|
|
9
9
|
} from './runtime'
|
|
10
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
CONVOKIT_API_URL, ConvoKitError, ConvoKitRealtime, covers, createClientMessageId, readThrough,
|
|
12
|
+
} from '@convokitapp/sdk'
|
|
11
13
|
export type {
|
|
12
14
|
AppUser, ContactMedia, Conversation, ConversationListOptions, ConvoKitClientOptions,
|
|
13
15
|
CreateConversationInput, FetchImplementation, FileMedia, ImageMedia, JsonPrimitive,
|
|
14
|
-
JsonValue, LocationMedia, Message, MessageDeletedEvent,
|
|
15
|
-
MessageMedia, Page, PaginationOptions, Participant,
|
|
16
|
-
ReadEvent,
|
|
16
|
+
JsonValue, LocationMedia, MarkConversationReadOptions, Message, MessageDeletedEvent,
|
|
17
|
+
MessageEvent, MessageListOptions, MessageMedia, Page, PaginationOptions, Participant,
|
|
18
|
+
PresenceEvent, ReadEvent, ReadPosition, ReadPositionTarget, ReadThroughSource,
|
|
19
|
+
RealtimeConnectionEvent, RealtimeConnectionHandlers, RealtimeHandlers,
|
|
17
20
|
RealtimeStatus, RealtimeSubscription, SendMessageInput, TokenProvider, TypingEvent,
|
|
18
21
|
UploadBody, UploadConversationImageInput, UploadInput, UploadMessageMediaInput,
|
|
19
22
|
UploadUserAvatarInput,
|