stream-chat-react-native-core 9.3.1-beta.3 → 9.3.1-beta.5
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/lib/commonjs/components/Message/MessageItemView/MessageBubble.js +2 -3
- package/lib/commonjs/components/Message/MessageItemView/MessageBubble.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js +22 -29
- package/lib/commonjs/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js +2 -3
- package/lib/commonjs/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js +24 -0
- package/lib/commonjs/components/Message/MessageItemView/utils/renderText.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js +10 -5
- package/lib/commonjs/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js +10 -5
- package/lib/commonjs/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/commonjs/components/Poll/Poll.js +21 -1
- package/lib/commonjs/components/Poll/Poll.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollButtons.js +39 -55
- package/lib/commonjs/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/commonjs/components/Poll/components/PollOption.js +6 -19
- package/lib/commonjs/components/Poll/components/PollOption.js.map +1 -1
- package/lib/commonjs/components/Poll/contexts/PollUIStateContext.js +147 -0
- package/lib/commonjs/components/Poll/contexts/PollUIStateContext.js.map +1 -0
- package/lib/commonjs/components/Poll/contexts/index.js +15 -0
- package/lib/commonjs/components/Poll/contexts/index.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/useEndVote.js +48 -0
- package/lib/commonjs/components/Poll/hooks/useEndVote.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollAccessibilityActions.js +153 -0
- package/lib/commonjs/components/Poll/hooks/usePollAccessibilityActions.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollAccessibilityLabel.js +64 -0
- package/lib/commonjs/components/Poll/hooks/usePollAccessibilityLabel.js.map +1 -0
- package/lib/commonjs/components/Poll/hooks/usePollState.js +2 -35
- package/lib/commonjs/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/commonjs/components/Poll/hooks/usePollVoteToggle.js +41 -0
- package/lib/commonjs/components/Poll/hooks/usePollVoteToggle.js.map +1 -0
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js +40 -0
- package/lib/commonjs/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js +15 -0
- package/lib/commonjs/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/commonjs/i18n/ar.json +9 -1
- package/lib/commonjs/i18n/en.json +8 -0
- package/lib/commonjs/i18n/es.json +9 -1
- package/lib/commonjs/i18n/fr.json +9 -1
- package/lib/commonjs/i18n/he.json +9 -1
- package/lib/commonjs/i18n/hi.json +9 -1
- package/lib/commonjs/i18n/it.json +9 -1
- package/lib/commonjs/i18n/ja.json +9 -1
- package/lib/commonjs/i18n/ko.json +9 -1
- package/lib/commonjs/i18n/nl.json +9 -1
- package/lib/commonjs/i18n/pt-br.json +9 -1
- package/lib/commonjs/i18n/ru.json +9 -1
- package/lib/commonjs/i18n/tr.json +9 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Message/MessageItemView/MessageBubble.js +2 -3
- package/lib/module/components/Message/MessageItemView/MessageBubble.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageContent.js +22 -29
- package/lib/module/components/Message/MessageItemView/MessageContent.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js +2 -3
- package/lib/module/components/Message/MessageItemView/MessageWrapper.js.map +1 -1
- package/lib/module/components/Message/MessageItemView/utils/renderText.js +24 -0
- package/lib/module/components/Message/MessageItemView/utils/renderText.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js +10 -5
- package/lib/module/components/Message/hooks/useMessageDeliveryData.js.map +1 -1
- package/lib/module/components/Message/hooks/useMessageReadData.js +10 -5
- package/lib/module/components/Message/hooks/useMessageReadData.js.map +1 -1
- package/lib/module/components/Poll/Poll.js +21 -1
- package/lib/module/components/Poll/Poll.js.map +1 -1
- package/lib/module/components/Poll/components/PollButtons.js +39 -55
- package/lib/module/components/Poll/components/PollButtons.js.map +1 -1
- package/lib/module/components/Poll/components/PollOption.js +6 -19
- package/lib/module/components/Poll/components/PollOption.js.map +1 -1
- package/lib/module/components/Poll/contexts/PollUIStateContext.js +147 -0
- package/lib/module/components/Poll/contexts/PollUIStateContext.js.map +1 -0
- package/lib/module/components/Poll/contexts/index.js +15 -0
- package/lib/module/components/Poll/contexts/index.js.map +1 -0
- package/lib/module/components/Poll/hooks/useEndVote.js +48 -0
- package/lib/module/components/Poll/hooks/useEndVote.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollAccessibilityActions.js +153 -0
- package/lib/module/components/Poll/hooks/usePollAccessibilityActions.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollAccessibilityLabel.js +64 -0
- package/lib/module/components/Poll/hooks/usePollAccessibilityLabel.js.map +1 -0
- package/lib/module/components/Poll/hooks/usePollState.js +2 -35
- package/lib/module/components/Poll/hooks/usePollState.js.map +1 -1
- package/lib/module/components/Poll/hooks/usePollVoteToggle.js +41 -0
- package/lib/module/components/Poll/hooks/usePollVoteToggle.js.map +1 -0
- package/lib/module/components/UIComponents/BottomSheetModal.js +40 -0
- package/lib/module/components/UIComponents/BottomSheetModal.js.map +1 -1
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js +15 -0
- package/lib/module/contexts/overlayContext/MessageOverlayHostLayer.js.map +1 -1
- package/lib/module/i18n/ar.json +9 -1
- package/lib/module/i18n/en.json +8 -0
- package/lib/module/i18n/es.json +9 -1
- package/lib/module/i18n/fr.json +9 -1
- package/lib/module/i18n/he.json +9 -1
- package/lib/module/i18n/hi.json +9 -1
- package/lib/module/i18n/it.json +9 -1
- package/lib/module/i18n/ja.json +9 -1
- package/lib/module/i18n/ko.json +9 -1
- package/lib/module/i18n/nl.json +9 -1
- package/lib/module/i18n/pt-br.json +9 -1
- package/lib/module/i18n/ru.json +9 -1
- package/lib/module/i18n/tr.json +9 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageBubble.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageContent.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts +1 -1
- package/lib/typescript/components/Message/MessageItemView/MessageWrapper.d.ts.map +1 -1
- package/lib/typescript/components/Message/MessageItemView/utils/renderText.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageDeliveryData.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useMessageReadData.d.ts.map +1 -1
- package/lib/typescript/components/Poll/Poll.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollButtons.d.ts.map +1 -1
- package/lib/typescript/components/Poll/components/PollOption.d.ts.map +1 -1
- package/lib/typescript/components/Poll/contexts/PollUIStateContext.d.ts +31 -0
- package/lib/typescript/components/Poll/contexts/PollUIStateContext.d.ts.map +1 -0
- package/lib/typescript/components/Poll/contexts/index.d.ts +2 -0
- package/lib/typescript/components/Poll/contexts/index.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/useEndVote.d.ts +7 -0
- package/lib/typescript/components/Poll/hooks/useEndVote.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollAccessibilityActions.d.ts +25 -0
- package/lib/typescript/components/Poll/hooks/usePollAccessibilityActions.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollAccessibilityLabel.d.ts +8 -0
- package/lib/typescript/components/Poll/hooks/usePollAccessibilityLabel.d.ts.map +1 -0
- package/lib/typescript/components/Poll/hooks/usePollState.d.ts.map +1 -1
- package/lib/typescript/components/Poll/hooks/usePollVoteToggle.d.ts +8 -0
- package/lib/typescript/components/Poll/hooks/usePollVoteToggle.d.ts.map +1 -0
- package/lib/typescript/components/UIComponents/BottomSheetModal.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/MessageOverlayHostLayer.d.ts.map +1 -1
- package/lib/typescript/i18n/ar.json +9 -1
- package/lib/typescript/i18n/en.json +8 -0
- package/lib/typescript/i18n/es.json +9 -1
- package/lib/typescript/i18n/fr.json +9 -1
- package/lib/typescript/i18n/he.json +9 -1
- package/lib/typescript/i18n/hi.json +9 -1
- package/lib/typescript/i18n/it.json +9 -1
- package/lib/typescript/i18n/ja.json +9 -1
- package/lib/typescript/i18n/ko.json +9 -1
- package/lib/typescript/i18n/nl.json +9 -1
- package/lib/typescript/i18n/pt-br.json +9 -1
- package/lib/typescript/i18n/ru.json +9 -1
- package/lib/typescript/i18n/tr.json +9 -1
- package/lib/typescript/utils/i18n/Streami18n.d.ts +8 -0
- package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Message/MessageItemView/MessageBubble.tsx +3 -1
- package/src/components/Message/MessageItemView/MessageContent.tsx +36 -36
- package/src/components/Message/MessageItemView/MessageWrapper.tsx +1 -1
- package/src/components/Message/MessageItemView/utils/renderText.tsx +31 -0
- package/src/components/Message/hooks/useMessageDeliveryData.ts +11 -6
- package/src/components/Message/hooks/useMessageReadData.ts +11 -6
- package/src/components/Poll/Poll.tsx +29 -2
- package/src/components/Poll/components/PollButtons.tsx +37 -44
- package/src/components/Poll/components/PollOption.tsx +4 -13
- package/src/components/Poll/contexts/PollUIStateContext.tsx +105 -0
- package/src/components/Poll/contexts/index.ts +1 -0
- package/src/components/Poll/hooks/__tests__/usePollAccessibilityActions.test.tsx +358 -0
- package/src/components/Poll/hooks/__tests__/usePollAccessibilityLabel.test.tsx +142 -0
- package/src/components/Poll/hooks/useEndVote.ts +37 -0
- package/src/components/Poll/hooks/usePollAccessibilityActions.ts +191 -0
- package/src/components/Poll/hooks/usePollAccessibilityLabel.ts +75 -0
- package/src/components/Poll/hooks/usePollState.ts +3 -26
- package/src/components/Poll/hooks/usePollVoteToggle.ts +34 -0
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.tsx.snap +4 -4
- package/src/components/UIComponents/BottomSheetModal.tsx +44 -1
- package/src/contexts/overlayContext/MessageOverlayHostLayer.tsx +17 -1
- package/src/i18n/ar.json +9 -1
- package/src/i18n/en.json +8 -0
- package/src/i18n/es.json +9 -1
- package/src/i18n/fr.json +9 -1
- package/src/i18n/he.json +9 -1
- package/src/i18n/hi.json +9 -1
- package/src/i18n/it.json +9 -1
- package/src/i18n/ja.json +9 -1
- package/src/i18n/ko.json +9 -1
- package/src/i18n/nl.json +9 -1
- package/src/i18n/pt-br.json +9 -1
- package/src/i18n/ru.json +9 -1
- package/src/i18n/tr.json +9 -1
- package/src/version.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { StateStore } from 'stream-chat';
|
|
3
|
+
export type PollUIState = {
|
|
4
|
+
addCommentOpen: boolean;
|
|
5
|
+
allCommentsOpen: boolean;
|
|
6
|
+
allOptionsOpen: boolean;
|
|
7
|
+
suggestOptionOpen: boolean;
|
|
8
|
+
viewResultsOpen: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type PollUIStateContextValue = {
|
|
11
|
+
closeAddComment: () => void;
|
|
12
|
+
closeAllComments: () => void;
|
|
13
|
+
closeAllOptions: () => void;
|
|
14
|
+
closeSuggestOption: () => void;
|
|
15
|
+
closeViewResults: () => void;
|
|
16
|
+
openAddComment: () => void;
|
|
17
|
+
openAllComments: () => void;
|
|
18
|
+
openAllOptions: () => void;
|
|
19
|
+
openSuggestOption: () => void;
|
|
20
|
+
openViewResults: () => void;
|
|
21
|
+
store: StateStore<PollUIState>;
|
|
22
|
+
};
|
|
23
|
+
export declare const PollUIStateContext: React.Context<PollUIStateContextValue>;
|
|
24
|
+
export declare const PollUIStateProvider: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
25
|
+
export declare const usePollUIStateContext: () => PollUIStateContextValue;
|
|
26
|
+
export declare const useAddCommentOpen: () => boolean;
|
|
27
|
+
export declare const useAllCommentsOpen: () => boolean;
|
|
28
|
+
export declare const useAllOptionsOpen: () => boolean;
|
|
29
|
+
export declare const useSuggestOptionOpen: () => boolean;
|
|
30
|
+
export declare const useViewResultsOpen: () => boolean;
|
|
31
|
+
//# sourceMappingURL=PollUIStateContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PollUIStateContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/contexts/PollUIStateContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAwB,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzC,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAUF,MAAM,MAAM,uBAAuB,GAAG;IACpC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,kBAAkB,wCAE9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,iBAAiB,sBAmBlE,CAAC;AAEF,eAAO,MAAM,qBAAqB,+BAUjC,CAAC;AAQF,eAAO,MAAM,iBAAiB,eAG7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAG9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAG7B,CAAC;AAEF,eAAO,MAAM,oBAAoB,eAGhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAG9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a stable callback that closes the current poll and emits a success or
|
|
3
|
+
* failure notification. Shared by `EndVoteButton` and the rotor accessibility
|
|
4
|
+
* action so both paths produce identical side effects.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useEndVote: () => import("../../..").StableCallback<[], Promise<import("stream-chat").APIResponse & import("stream-chat").UpdatePollAPIResponse>>;
|
|
7
|
+
//# sourceMappingURL=useEndVote.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AccessibilityProps } from 'react-native';
|
|
2
|
+
type AccessibilityAction = NonNullable<AccessibilityProps['accessibilityActions']>[number];
|
|
3
|
+
type OnAccessibilityAction = NonNullable<AccessibilityProps['onAccessibilityAction']>;
|
|
4
|
+
export type UsePollAccessibilityActionsResult = {
|
|
5
|
+
accessibilityActions: readonly AccessibilityAction[] | undefined;
|
|
6
|
+
onAccessibilityAction: OnAccessibilityAction | undefined;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Returns the `accessibilityActions` array and `onAccessibilityAction` handler
|
|
10
|
+
* for the poll composite container. Action set is gated by poll state +
|
|
11
|
+
* capabilities so each rotor entry corresponds to an interaction the user is
|
|
12
|
+
* actually allowed to perform. Returns `undefined`s when a11y is disabled.
|
|
13
|
+
*
|
|
14
|
+
* NOTE: We set both `name` and `label` to the same human-readable string on
|
|
15
|
+
* every action. iOS Fabric (new architecture, on by default in RN 0.81+) uses
|
|
16
|
+
* `accessibilityAction.name` as the string VoiceOver reads — `label` is
|
|
17
|
+
* ignored on that path (RCTViewComponentView.mm). iOS legacy (Paper) and
|
|
18
|
+
* Android both read `label`. Using the same value for both fields means the
|
|
19
|
+
* announcement is human-readable on every platform/architecture. Dispatch
|
|
20
|
+
* uses the action name as the lookup key into an internal kind map, so the
|
|
21
|
+
* raw strings never need to be exposed to consumers.
|
|
22
|
+
*/
|
|
23
|
+
export declare const usePollAccessibilityActions: () => UsePollAccessibilityActionsResult;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=usePollAccessibilityActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePollAccessibilityActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/hooks/usePollAccessibilityActions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA4B,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAoBjF,KAAK,mBAAmB,GAAG,WAAW,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3F,KAAK,qBAAqB,GAAG,WAAW,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAoBtF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,oBAAoB,EAAE,SAAS,mBAAmB,EAAE,GAAG,SAAS,CAAC;IACjE,qBAAqB,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC1D,CAAC;AAWF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,QAAO,iCAsH9C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the composite accessibility label for a poll bubble: name, status,
|
|
3
|
+
* up to `defaultPollOptionCount` options with vote counts, an overflow hint,
|
|
4
|
+
* and the primary-tap hint. Returns `undefined` when a11y is disabled so the
|
|
5
|
+
* Poll container can leave its `accessibilityLabel` unset.
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePollAccessibilityLabel: () => string | undefined;
|
|
8
|
+
//# sourceMappingURL=usePollAccessibilityLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePollAccessibilityLabel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/hooks/usePollAccessibilityLabel.ts"],"names":[],"mappings":"AA6BA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,QAAO,MAAM,GAAG,SAuCrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePollState.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/hooks/usePollState.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,UAAU,EAEV,QAAQ,EACR,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAOrB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,yBAAyB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CA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;IACrB,SAAS,EAAE,YAAY,GAAG,IAAI,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAChD,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,UAAU,GAAG,SAAS,CAAC;IAClC,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,8BAA8B,GAAG;IACpE,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,GAAG,mBAAmB,CAAC,CAAC;IAC/E,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,OAAO,CAAC,WAAW,GAAG,qBAAqB,CAAC,CAAC;CAC7D,CAAC;AAqBF,eAAO,MAAM,YAAY,QAAO,sBAsD/B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a stable callback that toggles the current user's vote on a poll option
|
|
3
|
+
* by id: casts a vote if none exists, removes it if one does. Shared by the
|
|
4
|
+
* visible vote button and the rotor accessibility action so both paths use
|
|
5
|
+
* identical logic.
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePollVoteToggle: () => import("../../..").StableCallback<[optionId: string], Promise<void>>;
|
|
8
|
+
//# sourceMappingURL=usePollVoteToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePollVoteToggle.d.ts","sourceRoot":"","sources":["../../../../../src/components/Poll/hooks/usePollVoteToggle.ts"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,4EAe7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/BottomSheetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheetModal.d.ts","sourceRoot":"","sources":["../../../../src/components/UIComponents/BottomSheetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAyCf,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AA6gBF,eAAO,MAAM,gBAAgB,GAAI,OAAO,iBAAiB,CAAC,qBAAqB,CAAC,6BAM/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageOverlayHostLayer.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/MessageOverlayHostLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageOverlayHostLayer.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/MessageOverlayHostLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAKL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AA6BtB,eAAO,MAAM,+BAA+B,yBAkB3C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,eAAe,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBA4PnC,CAAC"}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "تم إلغاء كتم {{ user }}",
|
|
352
352
|
"size limit": "حد الحجم",
|
|
353
353
|
"unknown error": "خطأ غير معروف",
|
|
354
|
-
"unsupported file type": "نوع ملف غير مدعوم"
|
|
354
|
+
"unsupported file type": "نوع ملف غير مدعوم",
|
|
355
|
+
"a11y/Activate to view results": "فعّل لعرض النتائج",
|
|
356
|
+
"a11y/End vote": "إنهاء التصويت",
|
|
357
|
+
"a11y/Show all options": "إظهار جميع الخيارات",
|
|
358
|
+
"a11y/Vote on {{option}}": "صوّت على {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "انقر نقرًا مزدوجًا مع الاستمرار لتفعيل قائمة السياق",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "اسحب لليمين للتنقل بين الإجراءات المختلفة",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -308,6 +308,14 @@
|
|
|
308
308
|
"a11y/Stop voice recording": "Stop voice recording",
|
|
309
309
|
"a11y/Notifications": "Notifications",
|
|
310
310
|
"a11y/Dismiss notification": "Dismiss notification",
|
|
311
|
+
"a11y/Activate to view results": "Activate to view results",
|
|
312
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.",
|
|
313
|
+
"a11y/Close": "Close",
|
|
314
|
+
"a11y/Double tap and hold to activate contextual menu": "Double tap and hold to activate contextual menu",
|
|
315
|
+
"a11y/End vote": "End vote",
|
|
316
|
+
"a11y/Show all options": "Show all options",
|
|
317
|
+
"a11y/Swipe right to go through different actions": "Swipe right to go through different actions",
|
|
318
|
+
"a11y/Vote on {{option}}": "Vote on {{option}}",
|
|
311
319
|
"Attachment upload blocked due to {{reason}}": "Attachment upload blocked due to {{reason}}",
|
|
312
320
|
"Attachment upload failed due to {{reason}}": "Attachment upload failed due to {{reason}}",
|
|
313
321
|
"Command not available": "Command not available",
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} ya no está silenciado",
|
|
352
352
|
"size limit": "límite de tamaño",
|
|
353
353
|
"unknown error": "error desconocido",
|
|
354
|
-
"unsupported file type": "tipo de archivo no compatible"
|
|
354
|
+
"unsupported file type": "tipo de archivo no compatible",
|
|
355
|
+
"a11y/Activate to view results": "Activa para ver los resultados",
|
|
356
|
+
"a11y/End vote": "Finalizar votación",
|
|
357
|
+
"a11y/Show all options": "Mostrar todas las opciones",
|
|
358
|
+
"a11y/Vote on {{option}}": "Votar por {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Toca dos veces y mantén pulsado para activar el menú contextual",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Desliza a la derecha para recorrer las diferentes acciones",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} n’est plus en sourdine",
|
|
352
352
|
"size limit": "limite de taille",
|
|
353
353
|
"unknown error": "erreur inconnue",
|
|
354
|
-
"unsupported file type": "type de fichier non pris en charge"
|
|
354
|
+
"unsupported file type": "type de fichier non pris en charge",
|
|
355
|
+
"a11y/Activate to view results": "Activer pour voir les résultats",
|
|
356
|
+
"a11y/End vote": "Terminer le vote",
|
|
357
|
+
"a11y/Show all options": "Afficher toutes les options",
|
|
358
|
+
"a11y/Vote on {{option}}": "Voter pour {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Appuyez deux fois et maintenez pour activer le menu contextuel",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Glissez vers la droite pour parcourir les différentes actions",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} כבר לא מושתק/ת",
|
|
352
352
|
"size limit": "מגבלת גודל",
|
|
353
353
|
"unknown error": "שגיאה לא ידועה",
|
|
354
|
-
"unsupported file type": "סוג קובץ לא נתמך"
|
|
354
|
+
"unsupported file type": "סוג קובץ לא נתמך",
|
|
355
|
+
"a11y/Activate to view results": "הפעל כדי לראות את התוצאות",
|
|
356
|
+
"a11y/End vote": "סיים הצבעה",
|
|
357
|
+
"a11y/Show all options": "הצג את כל האפשרויות",
|
|
358
|
+
"a11y/Vote on {{option}}": "הצבע עבור {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "הקש פעמיים והחזק כדי להפעיל את התפריט ההקשרי",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "החלק ימינה כדי לעבור בין הפעולות השונות",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} को अनम्यूट किया गया",
|
|
352
352
|
"size limit": "आकार सीमा",
|
|
353
353
|
"unknown error": "अज्ञात त्रुटि",
|
|
354
|
-
"unsupported file type": "असमर्थित फ़ाइल प्रकार"
|
|
354
|
+
"unsupported file type": "असमर्थित फ़ाइल प्रकार",
|
|
355
|
+
"a11y/Activate to view results": "परिणाम देखने के लिए सक्रिय करें",
|
|
356
|
+
"a11y/End vote": "मतदान समाप्त करें",
|
|
357
|
+
"a11y/Show all options": "सभी विकल्प दिखाएं",
|
|
358
|
+
"a11y/Vote on {{option}}": "{{option}} पर वोट करें",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "संदर्भ मेनू सक्रिय करने के लिए दो बार टैप करें और होल्ड करें",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "विभिन्न क्रियाओं के बीच जाने के लिए दाएं स्वाइप करें",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} non è più silenziato",
|
|
352
352
|
"size limit": "limite di dimensione",
|
|
353
353
|
"unknown error": "errore sconosciuto",
|
|
354
|
-
"unsupported file type": "tipo di file non supportato"
|
|
354
|
+
"unsupported file type": "tipo di file non supportato",
|
|
355
|
+
"a11y/Activate to view results": "Attiva per vedere i risultati",
|
|
356
|
+
"a11y/End vote": "Termina sondaggio",
|
|
357
|
+
"a11y/Show all options": "Mostra tutte le opzioni",
|
|
358
|
+
"a11y/Vote on {{option}}": "Vota per {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Tocca due volte e tieni premuto per attivare il menu contestuale",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Scorri a destra per passare in rassegna le diverse azioni",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} のミュートを解除しました",
|
|
352
352
|
"size limit": "サイズ制限",
|
|
353
353
|
"unknown error": "不明なエラー",
|
|
354
|
-
"unsupported file type": "サポートされていないファイル形式"
|
|
354
|
+
"unsupported file type": "サポートされていないファイル形式",
|
|
355
|
+
"a11y/Activate to view results": "結果を表示するには有効化",
|
|
356
|
+
"a11y/End vote": "投票を終了",
|
|
357
|
+
"a11y/Show all options": "すべてのオプションを表示",
|
|
358
|
+
"a11y/Vote on {{option}}": "{{option}}に投票",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "コンテキストメニューを表示するにはダブルタップして長押し",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "右にスワイプして異なるアクションを切り替えます",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }}님의 음소거가 해제되었습니다",
|
|
352
352
|
"size limit": "크기 제한",
|
|
353
353
|
"unknown error": "알 수 없는 오류",
|
|
354
|
-
"unsupported file type": "지원되지 않는 파일 형식"
|
|
354
|
+
"unsupported file type": "지원되지 않는 파일 형식",
|
|
355
|
+
"a11y/Activate to view results": "결과를 보려면 활성화",
|
|
356
|
+
"a11y/End vote": "투표 종료",
|
|
357
|
+
"a11y/Show all options": "모든 옵션 표시",
|
|
358
|
+
"a11y/Vote on {{option}}": "{{option}}에 투표",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "컨텍스트 메뉴를 활성화하려면 두 번 탭하고 길게 누르세요",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "다른 작업을 탐색하려면 오른쪽으로 스와이프하세요",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} is niet meer gedempt",
|
|
352
352
|
"size limit": "groottelimiet",
|
|
353
353
|
"unknown error": "onbekende fout",
|
|
354
|
-
"unsupported file type": "niet-ondersteund bestandstype"
|
|
354
|
+
"unsupported file type": "niet-ondersteund bestandstype",
|
|
355
|
+
"a11y/Activate to view results": "Activeer om resultaten te bekijken",
|
|
356
|
+
"a11y/End vote": "Stemming beëindigen",
|
|
357
|
+
"a11y/Show all options": "Alle opties weergeven",
|
|
358
|
+
"a11y/Vote on {{option}}": "Stem op {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Dubbeltik en houd vast om het contextmenu te openen",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Veeg naar rechts om door verschillende acties te bladeren",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} teve o silenciamento removido",
|
|
352
352
|
"size limit": "limite de tamanho",
|
|
353
353
|
"unknown error": "erro desconhecido",
|
|
354
|
-
"unsupported file type": "tipo de arquivo não compatível"
|
|
354
|
+
"unsupported file type": "tipo de arquivo não compatível",
|
|
355
|
+
"a11y/Activate to view results": "Ative para ver os resultados",
|
|
356
|
+
"a11y/End vote": "Encerrar votação",
|
|
357
|
+
"a11y/Show all options": "Mostrar todas as opções",
|
|
358
|
+
"a11y/Vote on {{option}}": "Votar em {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Toque duas vezes e segure para ativar o menu contextual",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Deslize para a direita para percorrer as diferentes ações",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} включен(а)",
|
|
352
352
|
"size limit": "лимит размера",
|
|
353
353
|
"unknown error": "неизвестная ошибка",
|
|
354
|
-
"unsupported file type": "неподдерживаемый тип файла"
|
|
354
|
+
"unsupported file type": "неподдерживаемый тип файла",
|
|
355
|
+
"a11y/Activate to view results": "Активируйте, чтобы увидеть результаты",
|
|
356
|
+
"a11y/End vote": "Завершить голосование",
|
|
357
|
+
"a11y/Show all options": "Показать все варианты",
|
|
358
|
+
"a11y/Vote on {{option}}": "Голосовать за {{option}}",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Дважды коснитесь и удерживайте, чтобы открыть контекстное меню",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Смахните вправо, чтобы переключаться между действиями",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -351,5 +351,13 @@
|
|
|
351
351
|
"{{ user }} has been unmuted": "{{ user }} kullanıcısının sesi açıldı",
|
|
352
352
|
"size limit": "boyut sınırı",
|
|
353
353
|
"unknown error": "bilinmeyen hata",
|
|
354
|
-
"unsupported file type": "desteklenmeyen dosya türü"
|
|
354
|
+
"unsupported file type": "desteklenmeyen dosya türü",
|
|
355
|
+
"a11y/Activate to view results": "Sonuçları görmek için etkinleştir",
|
|
356
|
+
"a11y/End vote": "Oylamayı sonlandır",
|
|
357
|
+
"a11y/Show all options": "Tüm seçenekleri göster",
|
|
358
|
+
"a11y/Vote on {{option}}": "{{option}} için oy ver",
|
|
359
|
+
"a11y/Double tap and hold to activate contextual menu": "Bağlam menüsünü etkinleştirmek için çift dokunup basılı tut",
|
|
360
|
+
"a11y/Swipe right to go through different actions": "Farklı eylemler arasında geçiş yapmak için sağa kaydır",
|
|
361
|
+
"a11y/Close": "Close",
|
|
362
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": "Bottom sheet opened. Activate the close action or use the escape gesture to dismiss."
|
|
355
363
|
}
|
|
@@ -444,6 +444,14 @@ export declare class Streami18n {
|
|
|
444
444
|
"a11y/Stop voice recording": string;
|
|
445
445
|
"a11y/Notifications": string;
|
|
446
446
|
"a11y/Dismiss notification": string;
|
|
447
|
+
"a11y/Activate to view results": string;
|
|
448
|
+
"a11y/Bottom sheet opened. Activate the close action or use the escape gesture to dismiss.": string;
|
|
449
|
+
"a11y/Close": string;
|
|
450
|
+
"a11y/Double tap and hold to activate contextual menu": string;
|
|
451
|
+
"a11y/End vote": string;
|
|
452
|
+
"a11y/Show all options": string;
|
|
453
|
+
"a11y/Swipe right to go through different actions": string;
|
|
454
|
+
"a11y/Vote on {{option}}": string;
|
|
447
455
|
"Attachment upload blocked due to {{reason}}": string;
|
|
448
456
|
"Attachment upload failed due to {{reason}}": string;
|
|
449
457
|
"Command not available": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Streami18n.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n/Streami18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAa,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAElF,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAIlD,OAAO,EAAE,gBAAgB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA2B;IAE1C;;OAEG;IACG,cAAc;;;;IAmBpB;;OAEG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,OAAO,CAAC,OAAO,cAAc,CAAC,EAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IA+BtC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC;IASvD;;;OAGG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM;IAsBlC,2BAA2B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW5D,8BAA8B,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,IAAI;;;IAW/D,iBAAiB,CAAC,SAAS,EAAE,SAAS;CAQvC"}
|
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.3.1-beta.
|
|
4
|
+
"version": "9.3.1-beta.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -27,7 +27,9 @@ type SwipableMessageWrapperProps = Pick<
|
|
|
27
27
|
onSwipe: () => void;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export const SwipableMessageWrapper = React.memo((
|
|
30
|
+
export const SwipableMessageWrapper = React.memo(function SwipableMessageWrapper(
|
|
31
|
+
props: SwipableMessageWrapperProps,
|
|
32
|
+
) {
|
|
31
33
|
const { children, messageSwipeToReplyHitSlop, onSwipe } = props;
|
|
32
34
|
const { MessageSwipeContent } = useComponentsContext();
|
|
33
35
|
const isRTL = I18nManager.isRTL;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ColorValue, Pressable, StyleSheet, View, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { MessageTextContainer } from './MessageTextContainer';
|
|
5
5
|
|
|
6
|
+
import { useA11yLabel } from '../../../a11y/hooks/useA11yLabel';
|
|
6
7
|
import { useChatContext } from '../../../contexts';
|
|
7
8
|
import { useComponentsContext } from '../../../contexts/componentsContext/ComponentsContext';
|
|
8
9
|
import {
|
|
@@ -127,6 +128,7 @@ const MessageContentWithContext = (props: MessageContentPropsWithContext) => {
|
|
|
127
128
|
hidePaddingBottom,
|
|
128
129
|
} = props;
|
|
129
130
|
const { client } = useChatContext();
|
|
131
|
+
const accessibilityHint = useA11yLabel('a11y/Double tap and hold to activate contextual menu');
|
|
130
132
|
const {
|
|
131
133
|
Attachment,
|
|
132
134
|
FileAttachmentGroup,
|
|
@@ -169,47 +171,46 @@ const MessageContentWithContext = (props: MessageContentPropsWithContext) => {
|
|
|
169
171
|
[message, isMessageAIGenerated],
|
|
170
172
|
);
|
|
171
173
|
|
|
172
|
-
|
|
174
|
+
// Merged background-color + border-radius object passed directly into the
|
|
175
|
+
// bubble's style array (no spread at the call site). Theme-defined radii
|
|
176
|
+
// override the group-position-computed defaults; theme-undefined radii are
|
|
177
|
+
// omitted so they don't override the computed defaults.
|
|
178
|
+
const bubbleColorAndRadius = useMemo<ViewStyle>(() => {
|
|
173
179
|
// enum('top', 'middle', 'bottom', 'single')
|
|
174
180
|
const groupPosition = groupStyles?.[0];
|
|
175
|
-
|
|
176
181
|
const isBottomOrSingle = groupPosition === 'single' || groupPosition === 'bottom';
|
|
177
|
-
let borderBottomLeftRadius = components.messageBubbleRadiusGroupBottom;
|
|
178
|
-
let borderBottomRightRadius = components.messageBubbleRadiusGroupBottom;
|
|
179
182
|
|
|
183
|
+
let computedBottomLeftRadius = components.messageBubbleRadiusGroupBottom;
|
|
184
|
+
let computedBottomRightRadius = components.messageBubbleRadiusGroupBottom;
|
|
180
185
|
if (isBottomOrSingle) {
|
|
181
|
-
// add relevant sharp corner
|
|
186
|
+
// add relevant sharp corner (the "tail")
|
|
182
187
|
if (isMyMessage) {
|
|
183
|
-
|
|
188
|
+
computedBottomRightRadius = components.messageBubbleRadiusTail;
|
|
184
189
|
} else {
|
|
185
|
-
|
|
190
|
+
computedBottomLeftRadius = components.messageBubbleRadiusTail;
|
|
186
191
|
}
|
|
187
192
|
}
|
|
188
193
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
const getBorderRadiusFromTheme = () => {
|
|
196
|
-
const bordersFromTheme: Record<string, string | AnimatableNumericValue | undefined> = {
|
|
197
|
-
borderBottomLeftRadius,
|
|
198
|
-
borderBottomRightRadius,
|
|
199
|
-
borderRadius,
|
|
200
|
-
borderTopLeftRadius,
|
|
201
|
-
borderTopRightRadius,
|
|
194
|
+
const style: ViewStyle = {
|
|
195
|
+
backgroundColor,
|
|
196
|
+
borderBottomLeftRadius: borderBottomLeftRadius ?? computedBottomLeftRadius,
|
|
197
|
+
borderBottomRightRadius: borderBottomRightRadius ?? computedBottomRightRadius,
|
|
202
198
|
};
|
|
199
|
+
if (borderRadius !== undefined) style.borderRadius = borderRadius;
|
|
200
|
+
if (borderTopLeftRadius !== undefined) style.borderTopLeftRadius = borderTopLeftRadius;
|
|
201
|
+
if (borderTopRightRadius !== undefined) style.borderTopRightRadius = borderTopRightRadius;
|
|
203
202
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
203
|
+
return style;
|
|
204
|
+
}, [
|
|
205
|
+
backgroundColor,
|
|
206
|
+
borderBottomLeftRadius,
|
|
207
|
+
borderBottomRightRadius,
|
|
208
|
+
borderRadius,
|
|
209
|
+
borderTopLeftRadius,
|
|
210
|
+
borderTopRightRadius,
|
|
211
|
+
groupStyles,
|
|
212
|
+
isMyMessage,
|
|
213
|
+
]);
|
|
213
214
|
|
|
214
215
|
const { setNativeScrollability } = useMessageListItemContext();
|
|
215
216
|
const hasContentSideViews = !!(MessageContentLeadingView || MessageContentTrailingView);
|
|
@@ -319,6 +320,8 @@ const MessageContentWithContext = (props: MessageContentPropsWithContext) => {
|
|
|
319
320
|
|
|
320
321
|
return (
|
|
321
322
|
<Pressable
|
|
323
|
+
accessibilityHint={accessibilityHint}
|
|
324
|
+
accessible={message.poll_id ? false : undefined}
|
|
322
325
|
disabled={preventPress}
|
|
323
326
|
onLongPress={(event) => {
|
|
324
327
|
if (onLongPress) {
|
|
@@ -357,12 +360,8 @@ const MessageContentWithContext = (props: MessageContentPropsWithContext) => {
|
|
|
357
360
|
<View
|
|
358
361
|
style={[
|
|
359
362
|
styles.containerInner,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
...getBorderRadius(),
|
|
363
|
-
...getBorderRadiusFromTheme(),
|
|
364
|
-
},
|
|
365
|
-
noBorder ? { borderWidth: 0 } : {},
|
|
363
|
+
bubbleColorAndRadius,
|
|
364
|
+
noBorder ? styles.noBorder : null,
|
|
366
365
|
containerInner,
|
|
367
366
|
messageGroupedSingleOrBottom
|
|
368
367
|
? isVeryLastMessage && enableMessageGroupingByUser
|
|
@@ -684,6 +683,7 @@ const styles = StyleSheet.create({
|
|
|
684
683
|
alignSelf: 'center',
|
|
685
684
|
},
|
|
686
685
|
galleryContainer: {},
|
|
686
|
+
noBorder: { borderWidth: 0 },
|
|
687
687
|
rightAlignContent: {
|
|
688
688
|
justifyContent: 'flex-end',
|
|
689
689
|
},
|
|
@@ -30,7 +30,7 @@ export type MessageWrapperProps = {
|
|
|
30
30
|
nextMessage?: LocalMessage;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const MessageWrapper = React.memo((props: MessageWrapperProps)
|
|
33
|
+
export const MessageWrapper = React.memo(function MessageWrapper(props: MessageWrapperProps) {
|
|
34
34
|
const { message, previousMessage, nextMessage } = props;
|
|
35
35
|
const { client } = useChatContext();
|
|
36
36
|
const {
|
|
@@ -101,6 +101,37 @@ const defaultMarkdownStyles: MarkdownStyle = {
|
|
|
101
101
|
fontSize: primitives.typographyFontSizeMd,
|
|
102
102
|
lineHeight: primitives.typographyLineHeightNormal,
|
|
103
103
|
},
|
|
104
|
+
// Heading sizes are derived from the body font size (`typographyFontSizeMd`) so they
|
|
105
|
+
// scale with the integrator's typography settings. lineHeight = fontSize × 1.25 to
|
|
106
|
+
// give headings room to breathe. Both fields are required here: without lineHeight,
|
|
107
|
+
// the inherited `lineHeight: typographyLineHeightNormal` (20) from `styles.text` (set
|
|
108
|
+
// in renderText below) leaks into the heading's inner Text via the markdown library's
|
|
109
|
+
// text rule (`{...styles.text, ...state.style}`) and squishes larger heading fontSizes
|
|
110
|
+
// into a 20px line box.
|
|
111
|
+
heading1: {
|
|
112
|
+
fontSize: primitives.typographyFontSizeMd * 2,
|
|
113
|
+
lineHeight: primitives.typographyFontSizeMd * 2 * 1.25,
|
|
114
|
+
},
|
|
115
|
+
heading2: {
|
|
116
|
+
fontSize: primitives.typographyFontSizeMd * 1.5,
|
|
117
|
+
lineHeight: primitives.typographyFontSizeMd * 1.5 * 1.25,
|
|
118
|
+
},
|
|
119
|
+
heading3: {
|
|
120
|
+
fontSize: primitives.typographyFontSizeMd * 1.25,
|
|
121
|
+
lineHeight: primitives.typographyFontSizeMd * 1.25 * 1.25,
|
|
122
|
+
},
|
|
123
|
+
heading4: {
|
|
124
|
+
fontSize: primitives.typographyFontSizeMd,
|
|
125
|
+
lineHeight: primitives.typographyFontSizeMd * 1.25,
|
|
126
|
+
},
|
|
127
|
+
heading5: {
|
|
128
|
+
fontSize: primitives.typographyFontSizeMd * 0.875,
|
|
129
|
+
lineHeight: primitives.typographyFontSizeMd * 0.875 * 1.25,
|
|
130
|
+
},
|
|
131
|
+
heading6: {
|
|
132
|
+
fontSize: primitives.typographyFontSizeMd * 0.75,
|
|
133
|
+
lineHeight: primitives.typographyFontSizeMd * 0.75 * 1.25,
|
|
134
|
+
},
|
|
104
135
|
inlineCode: {
|
|
105
136
|
padding: primitives.spacingXxs,
|
|
106
137
|
paddingHorizontal: primitives.spacingXxs,
|