stream-chat-react-native-core 9.9.2 → 9.9.3-beta.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "9.9.2"
2
+ "version": "9.9.3-beta.2"
3
3
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "9.9.2"
2
+ "version": "9.9.3-beta.2"
3
3
  }
@@ -3,5 +3,5 @@
3
3
  * failure notification. Shared by `EndVoteButton` and the rotor accessibility
4
4
  * action so both paths produce identical side effects.
5
5
  */
6
- export declare const useEndVote: () => import("../../..").StableCallback<[], Promise<import("stream-chat").APIResponse & import("stream-chat").UpdatePollAPIResponse>>;
6
+ export declare const useEndVote: () => import("../../..").StableCallback<[], Promise<(import("stream-chat").APIResponse & import("stream-chat").UpdatePollAPIResponse) | undefined>>;
7
7
  //# sourceMappingURL=useEndVote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useEndVote.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/hooks/useEndVote.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,UAAU,uIA2BtB,CAAC"}
1
+ {"version":3,"file":"useEndVote.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/hooks/useEndVote.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,UAAU,qJA2BtB,CAAC"}
@@ -20,7 +20,7 @@ export type UsePollStateSelectorReturnType = {
20
20
  export type UsePollStateReturnType = UsePollStateSelectorReturnType & {
21
21
  addComment: (answerText: string) => Promise<APIResponse & CastVoteAPIResponse>;
22
22
  addOption: (optionText: string) => Promise<void>;
23
- endVote: () => Promise<APIResponse & UpdatePollAPIResponse>;
23
+ endVote: () => Promise<(APIResponse & UpdatePollAPIResponse) | undefined>;
24
24
  };
25
25
  export declare const usePollState: () => UsePollStateReturnType;
26
26
  //# sourceMappingURL=usePollState.d.ts.map
@@ -1 +1 @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KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,WAAW,GAAG,qBAAqB,CAAC,GAAG,SAAS,CAAC,CAAC;CAC3E,CAAC;AAqBF,eAAO,MAAM,YAAY,QAAO,sBAsD/B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { LocalMessage, MessageResponse, TranslationLanguages } from 'stream-chat';
1
+ import type { LocalMessage, MessageResponse } from 'stream-chat';
2
2
  export declare const useTranslatedMessage: (message?: LocalMessage | MessageResponse) => {
3
3
  id: string;
4
4
  html?: string | undefined;
@@ -25,9 +25,7 @@ export declare const useTranslatedMessage: (message?: LocalMessage | MessageResp
25
25
  name?: string;
26
26
  } | undefined;
27
27
  deleted_reply_count?: number | undefined;
28
- i18n?: (import("stream-chat").RequireAtLeastOne<Record<`${TranslationLanguages}_text`, string>> & {
29
- language: TranslationLanguages;
30
- }) | undefined;
28
+ i18n?: import("stream-chat").TranslatedField | undefined;
31
29
  latest_reactions?: import("stream-chat").ReactionResponse[] | undefined;
32
30
  member?: import("stream-chat").ChannelMemberResponse | undefined;
33
31
  mentioned_users?: import("stream-chat").UserResponse[] | undefined;
@@ -93,9 +91,7 @@ export declare const useTranslatedMessage: (message?: LocalMessage | MessageResp
93
91
  created_at?: string;
94
92
  deleted_at?: string;
95
93
  deleted_reply_count?: number;
96
- i18n?: import("stream-chat").RequireAtLeastOne<Record<`${TranslationLanguages}_text`, string>> & {
97
- language: TranslationLanguages;
98
- };
94
+ i18n?: import("stream-chat").TranslatedField;
99
95
  latest_reactions?: import("stream-chat").ReactionResponse[];
100
96
  member?: import("stream-chat").ChannelMemberResponse;
101
97
  mentioned_users?: import("stream-chat").UserResponse[];
@@ -1 +1 @@
1
- {"version":3,"file":"useTranslatedMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTranslatedMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAMvF,eAAO,MAAM,oBAAoB,GAAI,UAAU,YAAY,GAAG,eAAe;;;;;;;;;;;;;;;;;;;;;;;YAkBu8nB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aADphoB,CAAC"}
1
+ {"version":3,"file":"useTranslatedMessage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTranslatedMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAwB,MAAM,aAAa,CAAC;AAMvF,eAAO,MAAM,oBAAoB,GAAI,UAAU,YAAY,GAAG,eAAe;;;;;;;;;;;;;;;;;;;;;;;YAkBo6oB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aADj/oB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "9.9.2",
4
+ "version": "9.9.3-beta.2",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -78,7 +78,7 @@
78
78
  "path": "0.12.7",
79
79
  "react-native-markdown-package": "1.8.2",
80
80
  "react-native-url-polyfill": "^2.0.0",
81
- "stream-chat": "^9.51.0",
81
+ "stream-chat": "^9.54.0",
82
82
  "use-sync-external-store": "^1.5.0"
83
83
  },
84
84
  "peerDependencies": {
@@ -115,7 +115,7 @@
115
115
  "@react-native-community/netinfo": "^12.0.1",
116
116
  "@react-native/babel-preset": "0.87.0",
117
117
  "@react-native/jest-preset": "0.87.0",
118
- "@shopify/flash-list": "^2.3.2",
118
+ "@shopify/flash-list": "^2.3.3",
119
119
  "@stream-io/typescript-config": "workspace:^",
120
120
  "@testing-library/jest-native": "^5.4.3",
121
121
  "@testing-library/react-native": "13.2.0",
@@ -39,7 +39,7 @@ export type UsePollStateSelectorReturnType = {
39
39
  export type UsePollStateReturnType = UsePollStateSelectorReturnType & {
40
40
  addComment: (answerText: string) => Promise<APIResponse & CastVoteAPIResponse>;
41
41
  addOption: (optionText: string) => Promise<void>;
42
- endVote: () => Promise<APIResponse & UpdatePollAPIResponse>;
42
+ endVote: () => Promise<(APIResponse & UpdatePollAPIResponse) | undefined>;
43
43
  };
44
44
 
45
45
  const selector = (nextValue: PollState): UsePollStateSelectorReturnType => ({
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "9.9.2"
2
+ "version": "9.9.3-beta.2"
3
3
  }