@amityco/ts-sdk-react-native 7.27.1-a54028e.0 → 7.27.1-d6964077.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/dist/channelRepository/api/createChannel.d.ts.map +1 -1
- package/dist/channelRepository/observers/getChannels/ChannelLiveCollectionController.d.ts.map +1 -1
- package/dist/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.d.ts.map +1 -1
- package/dist/index.cjs.js +26 -0
- package/dist/index.esm.js +26 -0
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/api/createChannel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createChannel.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/api/createChannel.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;;;;;;yIAmDzB,CAAC"}
|
package/dist/channelRepository/observers/getChannels/ChannelLiveCollectionController.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/observers/getChannels/ChannelLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AA4C1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AAcvF,qBAAa,+BAAgC,SAAQ,wBAAwB,CAC3E,SAAS,EACT,KAAK,CAAC,qBAAqB,EAC3B,KAAK,CAAC,OAAO,EACb,2BAA2B,GAAG,iCAAiC,CAChE;IACC,OAAO,CAAC,qBAAqB,CAA+B;IAE5D,OAAO,CAAC,KAAK,CAA8B;gBAGzC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC;IAgCvD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,UAAU;IAI9E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC;IAI1D,iBAAiB;IAIjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAkCzE,OAAO,CAAC,WAAW;IA4DnB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAKvC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAQtC,OAAO,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"ChannelLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/observers/getChannels/ChannelLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AA4C1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AAcvF,qBAAa,+BAAgC,SAAQ,wBAAwB,CAC3E,SAAS,EACT,KAAK,CAAC,qBAAqB,EAC3B,KAAK,CAAC,OAAO,EACb,2BAA2B,GAAG,iCAAiC,CAChE;IACC,OAAO,CAAC,qBAAqB,CAA+B;IAE5D,OAAO,CAAC,KAAK,CAA8B;gBAGzC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC;IAgCvD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,UAAU;IAI9E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC;IAI1D,iBAAiB;IAIjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAkCzE,OAAO,CAAC,WAAW;IA4DnB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAKvC,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAQtC,OAAO,CAAC,gBAAgB;CA+YzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchChannelLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAiC1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAQxF,qBAAa,qCAAsC,SAAQ,wBAAwB,CACjF,SAAS,EACT,KAAK,CAAC,2BAA2B,EACjC,KAAK,CAAC,OAAO,EACb,iCAAiC,CAClC;IACC,OAAO,CAAC,qBAAqB,CAAqC;gBAGhE,KAAK,EAAE,KAAK,CAAC,2BAA2B,EACxC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC;IAkBvD,iBAAiB;IAIjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAqBzE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,UAAU;IAI9E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC;IAI1D,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"SearchChannelLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAiC1F,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAQxF,qBAAa,qCAAsC,SAAQ,wBAAwB,CACjF,SAAS,EACT,KAAK,CAAC,2BAA2B,EACjC,KAAK,CAAC,OAAO,EACb,iCAAiC,CAClC;IACC,OAAO,CAAC,qBAAqB,CAAqC;gBAGhE,KAAK,EAAE,KAAK,CAAC,2BAA2B,EACxC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC;IAkBvD,iBAAiB;IAIjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAqBzE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,UAAU;IAI9E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC;IAI1D,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,gBAAgB;CA0TzB"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -12335,6 +12335,16 @@ const createChannel = async (bundle) => {
|
|
|
12335
12335
|
/* c8 ignore next */
|
|
12336
12336
|
isPublic: (bundle === null || bundle === void 0 ? void 0 : bundle.type) === 'community' ? isPublic : undefined }));
|
|
12337
12337
|
}
|
|
12338
|
+
// Fire the event locally, the same way createCommunity and createPost do.
|
|
12339
|
+
// Without it a running getChannels collection never inserts the new channel:
|
|
12340
|
+
// its query stream controller inserts an id only on OnCreate / OnJoin /
|
|
12341
|
+
// OnResolveChannel / OnUnarchived, and the first sent message arrives as an
|
|
12342
|
+
// OnUpdate, which only re-notifies. Reusing the MQTT event name means the
|
|
12343
|
+
// already-wired onChannelCreated -> OnCreate path does the insert, so the
|
|
12344
|
+
// list updates without a re-query. onChannelCreated re-runs
|
|
12345
|
+
// prepareChannelPayload + ingestInCache itself, so this is idempotent with
|
|
12346
|
+
// the ingest below.
|
|
12347
|
+
fireEvent('channel.created', payload.data);
|
|
12338
12348
|
const data = await prepareChannelPayload(payload.data);
|
|
12339
12349
|
const cachedAt = client.cache && Date.now();
|
|
12340
12350
|
if (client.cache)
|
|
@@ -21244,6 +21254,14 @@ class ChannelLiveCollectionController extends LiveCollectionController {
|
|
|
21244
21254
|
return;
|
|
21245
21255
|
if (messagePreviewSetting ===
|
|
21246
21256
|
"message-preview-not-include-deleted" /* Amity.MessagePreviewSetting.MESSAGE_PREVIEW_NOT_INCLUDE_DELETED */) {
|
|
21257
|
+
// The replacement preview the server sends back is an OLDER
|
|
21258
|
+
// message than the one just deleted, and
|
|
21259
|
+
// updateChannelMessagePreviewCache drops any preview that is not
|
|
21260
|
+
// newer than what is cached — so without clearing the entry
|
|
21261
|
+
// first the refetch is a no-op and the channel keeps showing the
|
|
21262
|
+
// deleted message. getChannel's own live object already does
|
|
21263
|
+
// this; the live collections did not.
|
|
21264
|
+
dropFromCache(['messagePreviewChannel', 'get', message.channelId]);
|
|
21247
21265
|
await getChannel$1(message.channelId);
|
|
21248
21266
|
}
|
|
21249
21267
|
callback(message);
|
|
@@ -21968,6 +21986,14 @@ class SearchChannelLiveCollectionController extends LiveCollectionController {
|
|
|
21968
21986
|
return;
|
|
21969
21987
|
if (messagePreviewSetting ===
|
|
21970
21988
|
"message-preview-not-include-deleted" /* Amity.MessagePreviewSetting.MESSAGE_PREVIEW_NOT_INCLUDE_DELETED */) {
|
|
21989
|
+
// The replacement preview the server sends back is an OLDER
|
|
21990
|
+
// message than the one just deleted, and
|
|
21991
|
+
// updateChannelMessagePreviewCache drops any preview that is not
|
|
21992
|
+
// newer than what is cached — so without clearing the entry
|
|
21993
|
+
// first the refetch is a no-op and the channel keeps showing the
|
|
21994
|
+
// deleted message. getChannel's own live object already does
|
|
21995
|
+
// this; the live collections did not.
|
|
21996
|
+
dropFromCache(['messagePreviewChannel', 'get', message.channelId]);
|
|
21971
21997
|
await getChannel$1(message.channelId);
|
|
21972
21998
|
}
|
|
21973
21999
|
callback(message);
|
package/dist/index.esm.js
CHANGED
|
@@ -12316,6 +12316,16 @@ const createChannel = async (bundle) => {
|
|
|
12316
12316
|
/* c8 ignore next */
|
|
12317
12317
|
isPublic: (bundle === null || bundle === void 0 ? void 0 : bundle.type) === 'community' ? isPublic : undefined }));
|
|
12318
12318
|
}
|
|
12319
|
+
// Fire the event locally, the same way createCommunity and createPost do.
|
|
12320
|
+
// Without it a running getChannels collection never inserts the new channel:
|
|
12321
|
+
// its query stream controller inserts an id only on OnCreate / OnJoin /
|
|
12322
|
+
// OnResolveChannel / OnUnarchived, and the first sent message arrives as an
|
|
12323
|
+
// OnUpdate, which only re-notifies. Reusing the MQTT event name means the
|
|
12324
|
+
// already-wired onChannelCreated -> OnCreate path does the insert, so the
|
|
12325
|
+
// list updates without a re-query. onChannelCreated re-runs
|
|
12326
|
+
// prepareChannelPayload + ingestInCache itself, so this is idempotent with
|
|
12327
|
+
// the ingest below.
|
|
12328
|
+
fireEvent('channel.created', payload.data);
|
|
12319
12329
|
const data = await prepareChannelPayload(payload.data);
|
|
12320
12330
|
const cachedAt = client.cache && Date.now();
|
|
12321
12331
|
if (client.cache)
|
|
@@ -21225,6 +21235,14 @@ class ChannelLiveCollectionController extends LiveCollectionController {
|
|
|
21225
21235
|
return;
|
|
21226
21236
|
if (messagePreviewSetting ===
|
|
21227
21237
|
"message-preview-not-include-deleted" /* Amity.MessagePreviewSetting.MESSAGE_PREVIEW_NOT_INCLUDE_DELETED */) {
|
|
21238
|
+
// The replacement preview the server sends back is an OLDER
|
|
21239
|
+
// message than the one just deleted, and
|
|
21240
|
+
// updateChannelMessagePreviewCache drops any preview that is not
|
|
21241
|
+
// newer than what is cached — so without clearing the entry
|
|
21242
|
+
// first the refetch is a no-op and the channel keeps showing the
|
|
21243
|
+
// deleted message. getChannel's own live object already does
|
|
21244
|
+
// this; the live collections did not.
|
|
21245
|
+
dropFromCache(['messagePreviewChannel', 'get', message.channelId]);
|
|
21228
21246
|
await getChannel$1(message.channelId);
|
|
21229
21247
|
}
|
|
21230
21248
|
callback(message);
|
|
@@ -21949,6 +21967,14 @@ class SearchChannelLiveCollectionController extends LiveCollectionController {
|
|
|
21949
21967
|
return;
|
|
21950
21968
|
if (messagePreviewSetting ===
|
|
21951
21969
|
"message-preview-not-include-deleted" /* Amity.MessagePreviewSetting.MESSAGE_PREVIEW_NOT_INCLUDE_DELETED */) {
|
|
21970
|
+
// The replacement preview the server sends back is an OLDER
|
|
21971
|
+
// message than the one just deleted, and
|
|
21972
|
+
// updateChannelMessagePreviewCache drops any preview that is not
|
|
21973
|
+
// newer than what is cached — so without clearing the entry
|
|
21974
|
+
// first the refetch is a no-op and the channel keeps showing the
|
|
21975
|
+
// deleted message. getChannel's own live object already does
|
|
21976
|
+
// this; the live collections did not.
|
|
21977
|
+
dropFromCache(['messagePreviewChannel', 'get', message.channelId]);
|
|
21952
21978
|
await getChannel$1(message.channelId);
|
|
21953
21979
|
}
|
|
21954
21980
|
callback(message);
|