@unif/react-native-chat 3.0.0 → 3.1.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.
Files changed (59) hide show
  1. package/lib/module/components/Composer/Composer.js +12 -7
  2. package/lib/module/components/Composer/Composer.js.map +1 -1
  3. package/lib/module/components/Composer/ComposerIconAction.js +2 -2
  4. package/lib/module/components/Composer/ComposerIconAction.js.map +1 -1
  5. package/lib/module/components/Composer/ComposerVoiceWave.js +44 -0
  6. package/lib/module/components/Composer/ComposerVoiceWave.js.map +1 -0
  7. package/lib/module/components/Composer/constants.js +20 -1
  8. package/lib/module/components/Composer/constants.js.map +1 -1
  9. package/lib/module/components/Composer/styles.js +30 -3
  10. package/lib/module/components/Composer/styles.js.map +1 -1
  11. package/lib/module/components/Message/MarkdownContent/MarkdownContent.js +9 -3
  12. package/lib/module/components/Message/MarkdownContent/MarkdownContent.js.map +1 -1
  13. package/lib/module/components/Message/MarkdownContent/styles.js +21 -11
  14. package/lib/module/components/Message/MarkdownContent/styles.js.map +1 -1
  15. package/lib/module/components/Message/Message.js +16 -4
  16. package/lib/module/components/Message/Message.js.map +1 -1
  17. package/lib/module/components/Message/styles.js +20 -14
  18. package/lib/module/components/Message/styles.js.map +1 -1
  19. package/lib/module/components/MessageList/MessageList.js +29 -8
  20. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  21. package/lib/module/components/MessageList/styles.js +14 -4
  22. package/lib/module/components/MessageList/styles.js.map +1 -1
  23. package/lib/typescript/src/components/Composer/Composer.d.ts.map +1 -1
  24. package/lib/typescript/src/components/Composer/ComposerIconAction.d.ts.map +1 -1
  25. package/lib/typescript/src/components/Composer/ComposerVoiceWave.d.ts +2 -0
  26. package/lib/typescript/src/components/Composer/ComposerVoiceWave.d.ts.map +1 -0
  27. package/lib/typescript/src/components/Composer/constants.d.ts +29 -0
  28. package/lib/typescript/src/components/Composer/constants.d.ts.map +1 -1
  29. package/lib/typescript/src/components/Composer/styles.d.ts +27 -0
  30. package/lib/typescript/src/components/Composer/styles.d.ts.map +1 -1
  31. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownContent.d.ts +1 -1
  32. package/lib/typescript/src/components/Message/MarkdownContent/MarkdownContent.d.ts.map +1 -1
  33. package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts +104 -0
  34. package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts.map +1 -1
  35. package/lib/typescript/src/components/Message/MarkdownContent/types.d.ts +1 -0
  36. package/lib/typescript/src/components/Message/MarkdownContent/types.d.ts.map +1 -1
  37. package/lib/typescript/src/components/Message/Message.d.ts.map +1 -1
  38. package/lib/typescript/src/components/Message/styles.d.ts +11 -5
  39. package/lib/typescript/src/components/Message/styles.d.ts.map +1 -1
  40. package/lib/typescript/src/components/MessageList/MessageList.d.ts +1 -1
  41. package/lib/typescript/src/components/MessageList/MessageList.d.ts.map +1 -1
  42. package/lib/typescript/src/components/MessageList/styles.d.ts +26 -1
  43. package/lib/typescript/src/components/MessageList/styles.d.ts.map +1 -1
  44. package/lib/typescript/src/components/MessageList/types.d.ts +6 -2
  45. package/lib/typescript/src/components/MessageList/types.d.ts.map +1 -1
  46. package/package.json +3 -3
  47. package/src/components/Composer/Composer.tsx +21 -14
  48. package/src/components/Composer/ComposerIconAction.tsx +6 -1
  49. package/src/components/Composer/ComposerVoiceWave.tsx +67 -0
  50. package/src/components/Composer/constants.ts +14 -1
  51. package/src/components/Composer/styles.ts +23 -2
  52. package/src/components/Message/MarkdownContent/MarkdownContent.tsx +15 -3
  53. package/src/components/Message/MarkdownContent/styles.ts +23 -11
  54. package/src/components/Message/MarkdownContent/types.ts +1 -0
  55. package/src/components/Message/Message.tsx +46 -15
  56. package/src/components/Message/styles.ts +23 -12
  57. package/src/components/MessageList/MessageList.tsx +33 -12
  58. package/src/components/MessageList/styles.ts +22 -6
  59. package/src/components/MessageList/types.ts +6 -2
@@ -6,15 +6,14 @@ export const createStyles = colors => StyleSheet.create({
6
6
  root: {
7
7
  flexDirection: 'row',
8
8
  alignItems: 'flex-start',
9
- gap: space[2],
10
- minWidth: 0,
11
- paddingVertical: space[2]
9
+ gap: space[3],
10
+ minWidth: 0
12
11
  },
13
12
  end: {
14
13
  flexDirection: 'row-reverse'
15
14
  },
16
15
  column: {
17
- flexShrink: 1,
16
+ flex: 1,
18
17
  maxWidth: '100%',
19
18
  gap: space[1],
20
19
  alignItems: 'flex-start'
@@ -23,25 +22,30 @@ export const createStyles = colors => StyleSheet.create({
23
22
  alignItems: 'flex-end'
24
23
  },
25
24
  fullWidth: {
26
- flex: 1,
27
- alignSelf: 'stretch'
25
+ alignSelf: 'stretch',
26
+ maxWidth: '100%'
28
27
  },
29
28
  content: {
30
29
  minWidth: 0,
31
- maxWidth: '100%',
30
+ maxWidth: '78%',
32
31
  gap: space[2]
33
32
  },
34
33
  bubble: {
35
- padding: space[3],
36
- borderRadius: radius.lg,
34
+ paddingHorizontal: space[5],
35
+ paddingVertical: space[4],
36
+ borderRadius: radius['2xl'],
37
37
  backgroundColor: colors.surface
38
38
  },
39
39
  outgoing: {
40
- backgroundColor: colors.primaryContainer
40
+ backgroundColor: colors.primary
41
+ },
42
+ outgoingText: {
43
+ color: colors.onPrimary
41
44
  },
42
45
  outlined: {
43
- padding: space[3],
44
- borderRadius: radius.lg,
46
+ paddingHorizontal: space[5],
47
+ paddingVertical: space[4],
48
+ borderRadius: radius['2xl'],
45
49
  borderWidth: 1,
46
50
  borderColor: colors.outline
47
51
  },
@@ -50,7 +54,8 @@ export const createStyles = colors => StyleSheet.create({
50
54
  borderColor: colors.error
51
55
  },
52
56
  text: {
53
- fontSize: type.body,
57
+ fontSize: type.sm,
58
+ lineHeight: type.sm * 1.5,
54
59
  color: colors.foreground
55
60
  },
56
61
  name: {
@@ -67,7 +72,8 @@ export const createStyles = colors => StyleSheet.create({
67
72
  actions: {
68
73
  flexDirection: 'row',
69
74
  flexWrap: 'wrap',
70
- gap: space[2]
75
+ gap: space[1],
76
+ marginTop: space[1]
71
77
  }
72
78
  });
73
79
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","radius","space","type","createStyles","colors","create","root","flexDirection","alignItems","gap","minWidth","paddingVertical","end","column","flexShrink","maxWidth","columnEnd","fullWidth","flex","alignSelf","content","bubble","padding","borderRadius","lg","backgroundColor","surface","outgoing","primaryContainer","outlined","borderWidth","borderColor","outline","failed","error","text","fontSize","body","color","foreground","name","sm","foregroundMuted","status","errorText","actions","flexWrap"],"sourceRoot":"../../../../src","sources":["components/Message/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,MAAM,EAAEC,KAAK,EAAEC,IAAI,QAAQ,2BAA2B;AAG/D,OAAO,MAAMC,YAAY,GAAIC,MAAmB,IAC9CL,UAAU,CAACM,MAAM,CAAC;EAChBC,IAAI,EAAE;IACJC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,YAAY;IACxBC,GAAG,EAAER,KAAK,CAAC,CAAC,CAAC;IACbS,QAAQ,EAAE,CAAC;IACXC,eAAe,EAAEV,KAAK,CAAC,CAAC;EAC1B,CAAC;EACDW,GAAG,EAAE;IAAEL,aAAa,EAAE;EAAc,CAAC;EACrCM,MAAM,EAAE;IACNC,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE,MAAM;IAChBN,GAAG,EAAER,KAAK,CAAC,CAAC,CAAC;IACbO,UAAU,EAAE;EACd,CAAC;EACDQ,SAAS,EAAE;IAAER,UAAU,EAAE;EAAW,CAAC;EACrCS,SAAS,EAAE;IAAEC,IAAI,EAAE,CAAC;IAAEC,SAAS,EAAE;EAAU,CAAC;EAC5CC,OAAO,EAAE;IAAEV,QAAQ,EAAE,CAAC;IAAEK,QAAQ,EAAE,MAAM;IAAEN,GAAG,EAAER,KAAK,CAAC,CAAC;EAAE,CAAC;EACzDoB,MAAM,EAAE;IACNC,OAAO,EAAErB,KAAK,CAAC,CAAC,CAAC;IACjBsB,YAAY,EAAEvB,MAAM,CAACwB,EAAE;IACvBC,eAAe,EAAErB,MAAM,CAACsB;EAC1B,CAAC;EACDC,QAAQ,EAAE;IAAEF,eAAe,EAAErB,MAAM,CAACwB;EAAiB,CAAC;EACtDC,QAAQ,EAAE;IACRP,OAAO,EAAErB,KAAK,CAAC,CAAC,CAAC;IACjBsB,YAAY,EAAEvB,MAAM,CAACwB,EAAE;IACvBM,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE3B,MAAM,CAAC4B;EACtB,CAAC;EACDC,MAAM,EAAE;IAAEH,WAAW,EAAE,CAAC;IAAEC,WAAW,EAAE3B,MAAM,CAAC8B;EAAM,CAAC;EACrDC,IAAI,EAAE;IAAEC,QAAQ,EAAElC,IAAI,CAACmC,IAAI;IAAEC,KAAK,EAAElC,MAAM,CAACmC;EAAW,CAAC;EACvDC,IAAI,EAAE;IAAEJ,QAAQ,EAAElC,IAAI,CAACuC,EAAE;IAAEH,KAAK,EAAElC,MAAM,CAACsC;EAAgB,CAAC;EAC1DC,MAAM,EAAE;IAAEP,QAAQ,EAAElC,IAAI,CAACuC,EAAE;IAAEH,KAAK,EAAElC,MAAM,CAACsC;EAAgB,CAAC;EAC5DE,SAAS,EAAE;IAAEN,KAAK,EAAElC,MAAM,CAAC8B;EAAM,CAAC;EAClCW,OAAO,EAAE;IAAEtC,aAAa,EAAE,KAAK;IAAEuC,QAAQ,EAAE,MAAM;IAAErC,GAAG,EAAER,KAAK,CAAC,CAAC;EAAE;AACnE,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["StyleSheet","radius","space","type","createStyles","colors","create","root","flexDirection","alignItems","gap","minWidth","end","column","flex","maxWidth","columnEnd","fullWidth","alignSelf","content","bubble","paddingHorizontal","paddingVertical","borderRadius","backgroundColor","surface","outgoing","primary","outgoingText","color","onPrimary","outlined","borderWidth","borderColor","outline","failed","error","text","fontSize","sm","lineHeight","foreground","name","foregroundMuted","status","errorText","actions","flexWrap","marginTop"],"sourceRoot":"../../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AC,CAAC;IACzBqB,YAAY,EAAEtB,MAAM,CAAC,KAAK,CAAC;IAC3B+B,WAAW,EAAE,CAAC;IACdC,WAAW,EAAE5B,MAAM,CAAC6B;EACtB,CAAC;EACDC,MAAM,EAAE;IAAEH,WAAW,EAAE,CAAC;IAAEC,WAAW,EAAE5B,MAAM,CAAC+B;EAAM,CAAC;EACrDC,IAAI,EAAE;IACJC,QAAQ,EAAEnC,IAAI,CAACoC,EAAE;IACjBC,UAAU,EAAErC,IAAI,CAACoC,EAAE,GAAG,GAAG;IACzBV,KAAK,EAAExB,MAAM,CAACoC;EAChB,CAAC;EACDC,IAAI,EAAE;IAAEJ,QAAQ,EAAEnC,IAAI,CAACoC,EAAE;IAAEV,KAAK,EAAExB,MAAM,CAACsC;EAAgB,CAAC;EAC1DC,MAAM,EAAE;IAAEN,QAAQ,EAAEnC,IAAI,CAACoC,EAAE;IAAEV,KAAK,EAAExB,MAAM,CAACsC;EAAgB,CAAC;EAC5DE,SAAS,EAAE;IAAEhB,KAAK,EAAExB,MAAM,CAAC+B;EAAM,CAAC;EAClCU,OAAO,EAAE;IACPtC,aAAa,EAAE,KAAK;IACpBuC,QAAQ,EAAE,MAAM;IAChBrC,GAAG,EAAER,KAAK,CAAC,CAAC,CAAC;IACb8C,SAAS,EAAE9C,KAAK,CAAC,CAAC;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -2,13 +2,13 @@
2
2
 
3
3
  import { useCallback, useImperativeHandle, useMemo, useRef } from 'react';
4
4
  import { FlatList, View } from 'react-native';
5
- import { Button } from '@unif/react-native-design';
5
+ import { Button, IconButton, Spinner, useThemedStyles } from '@unif/react-native-design';
6
6
  import { DEFAULT_END_THRESHOLD } from "./constants.js";
7
- import { styles } from "./styles.js";
7
+ import { createStyles } from "./styles.js";
8
8
  import { useWebPrependAnchor } from "./webPrependAnchor/index.js";
9
9
  import { useMessageListScroll } from "./useMessageListScroll.js";
10
10
  import { MessageListRow } from "./MessageListRow.js";
11
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
12
12
  const MAINTAIN_VISIBLE_POSITION = {
13
13
  minIndexForVisible: 0
14
14
  };
@@ -25,15 +25,19 @@ export function MessageList({
25
25
  followOutput = 'whenAtEnd',
26
26
  endThreshold = DEFAULT_END_THRESHOLD,
27
27
  showScrollToEnd = true,
28
+ scrollToEndBusy = false,
28
29
  onAtEndChange,
29
30
  hasEarlier = false,
30
31
  loadingEarlier = false,
31
32
  onRequestEarlier,
32
33
  keyboardDismissMode = 'on-drag',
34
+ contentContainerStyle,
35
+ showsVerticalScrollIndicator = false,
33
36
  style,
34
37
  testID,
35
38
  ref
36
39
  }) {
40
+ const styles = useThemedStyles(createStyles);
37
41
  const listRef = useRef(null);
38
42
  const keys = useMemo(() => items.map(keyExtractor), [items, keyExtractor]);
39
43
  const {
@@ -92,7 +96,7 @@ export function MessageList({
92
96
  const listFooter = useMemo(() => footer ? /*#__PURE__*/_jsx(View, {
93
97
  children: footer
94
98
  }) : undefined, [footer]);
95
- const listEmpty = useMemo(() => empty ? /*#__PURE__*/_jsx(View, {
99
+ const listEmpty = useMemo(() => empty ? /*#__PURE__*/_jsx(_Fragment, {
96
100
  children: empty
97
101
  }) : undefined, [empty]);
98
102
  return /*#__PURE__*/_jsxs(View, {
@@ -111,6 +115,8 @@ export function MessageList({
111
115
  ListEmptyComponent: listEmpty,
112
116
  maintainVisibleContentPosition: MAINTAIN_VISIBLE_POSITION,
113
117
  keyboardDismissMode: keyboardDismissMode,
118
+ contentContainerStyle: contentContainerStyle,
119
+ showsVerticalScrollIndicator: showsVerticalScrollIndicator,
114
120
  keyboardShouldPersistTaps: "handled",
115
121
  scrollEventThrottle: 16,
116
122
  onLayout: onLayout,
@@ -120,11 +126,26 @@ export function MessageList({
120
126
  onMomentumScrollBegin: onUserScrollBegin,
121
127
  onScrollEndDrag: onScrollEndDrag,
122
128
  onMomentumScrollEnd: onMomentumScrollEnd
123
- }), showScrollToEnd && items.length > 0 && !atEnd ? /*#__PURE__*/_jsx(Button, {
124
- label: "\u56DE\u5230\u6700\u65B0\u6D88\u606F",
125
- variant: "secondary",
129
+ }), showScrollToEnd && items.length > 0 && !atEnd ? /*#__PURE__*/_jsxs(View, {
126
130
  style: styles.returnToEnd,
127
- onPress: () => scrollToEnd()
131
+ pointerEvents: "box-none",
132
+ children: [scrollToEndBusy ? /*#__PURE__*/_jsx(View, {
133
+ style: styles.returnProgress,
134
+ pointerEvents: "none",
135
+ children: /*#__PURE__*/_jsx(Spinner, {
136
+ size: 44,
137
+ thickness: 2
138
+ })
139
+ }) : null, /*#__PURE__*/_jsx(IconButton, {
140
+ icon: "arrow-down",
141
+ accessibilityLabel: scrollToEndBusy ? '回到最新消息,正在处理' : '回到最新消息',
142
+ variant: "ghost",
143
+ size: "md",
144
+ surfaceSize: 36,
145
+ iconSize: 18,
146
+ style: styles.returnButton,
147
+ onPress: () => scrollToEnd()
148
+ })]
128
149
  }) : null]
129
150
  });
130
151
  }
@@ -1 +1 @@
1
- {"version":3,"names":["useCallback","useImperativeHandle","useMemo","useRef","FlatList","View","Button","DEFAULT_END_THRESHOLD","styles","useWebPrependAnchor","useMessageListScroll","MessageListRow","jsx","_jsx","jsxs","_jsxs","MAINTAIN_VISIBLE_POSITION","minIndexForVisible","MessageList","items","keyExtractor","renderItem","extraData","header","footer","empty","renderSeparator","initialPosition","followOutput","endThreshold","showScrollToEnd","onAtEndChange","hasEarlier","loadingEarlier","onRequestEarlier","keyboardDismissMode","style","testID","ref","listRef","keys","map","getRowNativeID","preservingPrependRef","cancelPrependPreservation","itemsIdentity","atEnd","scrollToEnd","onLayout","onContentSizeChange","onScroll","onUserScrollBegin","onScrollEndDrag","onMomentumScrollEnd","renderRow","item","index","previous","undefined","nativeID","history","hasHeader","Boolean","listHeader","children","label","variant","loading","onPress","listFooter","listEmpty","root","list","data","ListHeaderComponent","ListFooterComponent","ListEmptyComponent","maintainVisibleContentPosition","keyboardShouldPersistTaps","scrollEventThrottle","onScrollBeginDrag","onMomentumScrollBegin","length","returnToEnd"],"sourceRoot":"../../../../src","sources":["components/MessageList/MessageList.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,mBAAmB,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAEzE,SAASC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAE7C,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,qBAAqB,QAAQ,gBAAa;AACnD,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,mBAAmB,QAAQ,6BAAoB;AACxD,SAASC,oBAAoB,QAAQ,2BAAwB;AAC7D,SAASC,cAAc,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlD,MAAMC,yBAAyB,GAAG;EAAEC,kBAAkB,EAAE;AAAE,CAAC;AAE3D,OAAO,SAASC,WAAWA,CAAI;EAC7BC,KAAK;EACLC,YAAY;EACZC,UAAU;EACVC,SAAS;EACTC,MAAM;EACNC,MAAM;EACNC,KAAK;EACLC,eAAe;EACfC,eAAe,GAAG,KAAK;EACvBC,YAAY,GAAG,WAAW;EAC1BC,YAAY,GAAGtB,qBAAqB;EACpCuB,eAAe,GAAG,IAAI;EACtBC,aAAa;EACbC,UAAU,GAAG,KAAK;EAClBC,cAAc,GAAG,KAAK;EACtBC,gBAAgB;EAChBC,mBAAmB,GAAG,SAAS;EAC/BC,KAAK;EACLC,MAAM;EACNC;AACsD,CAAC,EAAE;EACzD,MAAMC,OAAO,GAAGpC,MAAM,CAAc,IAAI,CAAC;EACzC,MAAMqC,IAAI,GAAGtC,OAAO,CAAC,MAAMiB,KAAK,CAACsB,GAAG,CAACrB,YAAY,CAAC,EAAE,CAACD,KAAK,EAAEC,YAAY,CAAC,CAAC;EAC1E,MAAM;IAAEsB,cAAc;IAAEC,oBAAoB;IAAEC;EAA0B,CAAC,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AAQ,EAAEA,QAAS;MACnBC,mBAAmB,EAAEA,mBAAoB;MACzCC,QAAQ,EAAEA,QAAS;MACnB8B,iBAAiB,EAAE7B,iBAAkB;MACrC8B,qBAAqB,EAAE9B,iBAAkB;MACzCC,eAAe,EAAEA,eAAgB;MACjCC,mBAAmB,EAAEA;IAAoB,CAC1C,CAAC,EACDvB,eAAe,IAAIX,KAAK,CAAC+D,MAAM,GAAG,CAAC,IAAI,CAACpC,KAAK,gBAC5CjC,IAAA,CAACP,MAAM;MACL2D,KAAK,EAAC,sCAAQ;MACdC,OAAO,EAAC,WAAW;MACnB9B,KAAK,EAAE5B,MAAM,CAAC2E,WAAY;MAC1Bf,OAAO,EAAEA,CAAA,KAAMrB,WAAW,CAAC;IAAE,CAC9B,CAAC,GACA,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
1
+ {"version":3,"names":["useCallback","useImperativeHandle","useMemo","useRef","FlatList","View","Button","IconButton","Spinner","useThemedStyles","DEFAULT_END_THRESHOLD","createStyles","useWebPrependAnchor","useMessageListScroll","MessageListRow","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","MAINTAIN_VISIBLE_POSITION","minIndexForVisible","MessageList","items","keyExtractor","renderItem","extraData","header","footer","empty","renderSeparator","initialPosition","followOutput","endThreshold","showScrollToEnd","scrollToEndBusy","onAtEndChange","hasEarlier","loadingEarlier","onRequestEarlier","keyboardDismissMode","contentContainerStyle","showsVerticalScrollIndicator","style","testID","ref","styles","listRef","keys","map","getRowNativeID","preservingPrependRef","cancelPrependPreservation","itemsIdentity","atEnd","scrollToEnd","onLayout","onContentSizeChange","onScroll","onUserScrollBegin","onScrollEndDrag","onMomentumScrollEnd","renderRow","item","index","previous","undefined","nativeID","history","hasHeader","Boolean","listHeader","children","label","variant","loading","onPress","listFooter","listEmpty","root","list","data","ListHeaderComponent","ListFooterComponent","ListEmptyComponent","maintainVisibleContentPosition","keyboardShouldPersistTaps","scrollEventThrottle","onScrollBeginDrag","onMomentumScrollBegin","length","returnToEnd","pointerEvents","returnProgress","size","thickness","icon","accessibilityLabel","surfaceSize","iconSize","returnButton"],"sourceRoot":"../../../../src","sources":["components/MessageList/MessageList.tsx"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,mBAAmB,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAEzE,SAASC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAE7C,SACEC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,eAAe,QACV,2BAA2B;AAClC,SAASC,qBAAqB,QAAQ,gBAAa;AACnD,SAASC,YAAY,QAAQ,aAAU;AACvC,SAASC,mBAAmB,QAAQ,6BAAoB;AACxD,SAASC,oBAAoB,QAAQ,2BAAwB;AAC7D,SAASC,cAAc,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAGlD,MAAMC,yBAAyB,GAAG;EAAEC,kBAAkB,EAAE;AAAE,CAAC;AAE3D,OAAO,SAASC,WAAWA,CAAI;EAC7BC,KAAK;EACLC,YAAY;EACZC,UAAU;EACVC,SAAS;EACTC,MAAM;EACNC,MAAM;EACNC,KAAK;EACLC,eAAe;EACfC,eAAe,GAAG,KAAK;EACvBC,YAAY,GAAG,WAAW;EAC1BC,YAAY,GAAGxB,qBAAqB;EACpCyB,eAAe,GAAG,IAAI;EACtBC,eAAe,GAAG,KAAK;EACvBC,aAAa;EACbC,UAAU,GAAG,KAAK;EAClBC,cAAc,GAAG,KAAK;EACtBC,gBAAgB;EAChBC,mBAAmB,GAAG,SAAS;EAC/BC,qBAAqB;EACrBC,4BAA4B,GAAG,KAAK;EACpCC,KAAK;EACLC,MAAM;EACNC;AACsD,CAAC,EAAE;EACzD,MAAMC,MAAM,GAAGtC,eAAe,CAACE,YAAY,CAAC;EAC5C,MAAMqC,OAAO,GAAG7C,MAAM,CAAc,IAAI,CAAC;EACzC,MAAM8C,IAAI,GA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EX","ignoreList":[]}
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { StyleSheet } from 'react-native';
4
- import { space } from '@unif/react-native-design';
5
- export const styles = StyleSheet.create({
4
+ export const createStyles = (colors, shadows) => StyleSheet.create({
6
5
  root: {
7
6
  flex: 1,
8
7
  minHeight: 0,
@@ -13,8 +12,19 @@ export const styles = StyleSheet.create({
13
12
  },
14
13
  returnToEnd: {
15
14
  position: 'absolute',
16
- bottom: space[3],
17
- alignSelf: 'center'
15
+ bottom: 0,
16
+ alignSelf: 'center',
17
+ width: 44,
18
+ height: 44,
19
+ alignItems: 'center',
20
+ justifyContent: 'center'
21
+ },
22
+ returnProgress: StyleSheet.absoluteFill,
23
+ returnButton: {
24
+ alignSelf: 'center',
25
+ borderRadius: 18,
26
+ backgroundColor: colors.surface,
27
+ ...shadows.card
18
28
  }
19
29
  });
20
30
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","space","styles","create","root","flex","minHeight","minWidth","list","returnToEnd","position","bottom","alignSelf"],"sourceRoot":"../../../../src","sources":["components/MessageList/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,2BAA2B;AACjD,OAAO,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EACtCC,IAAI,EAAE;IAAEC,IAAI,EAAE,CAAC;IAAEC,SAAS,EAAE,CAAC;IAAEC,QAAQ,EAAE;EAAE,CAAC;EAC5CC,IAAI,EAAE;IAAEH,IAAI,EAAE;EAAE,CAAC;EACjBI,WAAW,EAAE;IAAEC,QAAQ,EAAE,UAAU;IAAEC,MAAM,EAAEV,KAAK,CAAC,CAAC,CAAC;IAAEW,SAAS,EAAE;EAAS;AAC7E,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["StyleSheet","createStyles","colors","shadows","create","root","flex","minHeight","minWidth","list","returnToEnd","position","bottom","alignSelf","width","height","alignItems","justifyContent","returnProgress","absoluteFill","returnButton","borderRadius","backgroundColor","surface","card"],"sourceRoot":"../../../../src","sources":["components/MessageList/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,OAAO,MAAMC,YAAY,GAAGA,CAACC,MAAmB,EAAEC,OAAqB,KACrEH,UAAU,CAACI,MAAM,CAAC;EAChBC,IAAI,EAAE;IAAEC,IAAI,EAAE,CAAC;IAAEC,SAAS,EAAE,CAAC;IAAEC,QAAQ,EAAE;EAAE,CAAC;EAC5CC,IAAI,EAAE;IAAEH,IAAI,EAAE;EAAE,CAAC;EACjBI,WAAW,EAAE;IACXC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE,QAAQ;IACnBC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,cAAc,EAAElB,UAAU,CAACmB,YAAY;EACvCC,YAAY,EAAE;IACZP,SAAS,EAAE,QAAQ;IACnBQ,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAEpB,MAAM,CAACqB,OAAO;IAC/B,GAAGpB,OAAO,CAACqB;EACb;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/Composer.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAWjE,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7D,eAAO,MAAM,QAAQ,2GA0PpB,CAAC"}
1
+ {"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/Composer.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAYjE,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7D,eAAO,MAAM,QAAQ,2GAgQpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComposerIconAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/ComposerIconAction.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAS,CAAC;AAEvD,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,IAAY,EACZ,QAAQ,EACR,MAAe,GAChB,EAAE,uBAAuB,+BAoDzB"}
1
+ {"version":3,"file":"ComposerIconAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/ComposerIconAction.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAS,CAAC;AAEvD,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,IAAY,EACZ,QAAQ,EACR,MAAe,GAChB,EAAE,uBAAuB,+BAwDzB"}
@@ -0,0 +1,2 @@
1
+ export declare function ComposerVoiceWave(): import("react").JSX.Element;
2
+ //# sourceMappingURL=ComposerVoiceWave.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComposerVoiceWave.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/ComposerVoiceWave.tsx"],"names":[],"mappings":"AAYA,wBAAgB,iBAAiB,gCAsDhC"}
@@ -4,6 +4,35 @@ export declare const COMPOSER_PLAIN_VERTICAL_INSET: number;
4
4
  export declare const COMPOSER_ACTION_VISUAL_SIZE = 34;
5
5
  export declare const COMPOSER_ACTION_ICON_SIZE = 22;
6
6
  export declare const COMPOSER_PRIMARY_ICON_SIZE = 18;
7
+ export declare const COMPOSER_CANCEL_ICON_SIZE = 20;
8
+ export declare const COMPOSER_VOICE_WAVE_COUNT = 5;
9
+ export declare const COMPOSER_VOICE_WAVE_STAGGER_MS = 90;
10
+ export declare const COMPOSER_VOICE_WAVE_GROUPS: readonly [{
11
+ readonly from: 6;
12
+ readonly to: 20;
13
+ readonly duration: 1100;
14
+ }, {
15
+ readonly from: 14;
16
+ readonly to: 5;
17
+ readonly duration: 1000;
18
+ }, {
19
+ readonly from: 8;
20
+ readonly to: 18;
21
+ readonly duration: 900;
22
+ }];
23
+ export declare const COMPOSER_VOICE_WAVE_PATTERN: ({
24
+ readonly from: 6;
25
+ readonly to: 20;
26
+ readonly duration: 1100;
27
+ } | {
28
+ readonly from: 14;
29
+ readonly to: 5;
30
+ readonly duration: 1000;
31
+ } | {
32
+ readonly from: 8;
33
+ readonly to: 18;
34
+ readonly duration: 900;
35
+ })[];
7
36
  export declare const COMPOSER_MENU_ICON_CONTAINER_SIZE = 40;
8
37
  export declare const COMPOSER_MENU_ICON_SIZE = 20;
9
38
  export declare const PRIMARY_LABELS: {
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,QAA8B,CAAC;AACtE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,6BAA6B,QAAe,CAAC;AAC1D,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,iCAAiC,KAAK,CAAC;AACpD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AACX,eAAO,MAAM,YAAY;;;;CAIf,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,QAA8B,CAAC;AACtE,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,eAAO,MAAM,6BAA6B,QAAe,CAAC;AAC1D,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAI7B,CAAC;AACX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;IAIvC,CAAC;AACF,eAAO,MAAM,iCAAiC,KAAK,CAAC;AACpD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AACX,eAAO,MAAM,YAAY;;;;CAIf,CAAC"}
@@ -21,6 +21,10 @@ export declare const createStyles: (colors: ColorTokens, shadows: ShadowTokens)
21
21
  accessory: {
22
22
  padding: number;
23
23
  };
24
+ header: {
25
+ borderBottomWidth: number;
26
+ borderBottomColor: string;
27
+ };
24
28
  regular: {
25
29
  flexDirection: "row";
26
30
  alignItems: "flex-end";
@@ -39,6 +43,8 @@ export declare const createStyles: (colors: ColorTokens, shadows: ShadowTokens)
39
43
  input: {
40
44
  flex: number;
41
45
  minWidth: number;
46
+ alignSelf: "stretch";
47
+ justifyContent: "center";
42
48
  };
43
49
  inputExpanded: {
44
50
  flex: number;
@@ -169,6 +175,8 @@ export declare const createStyles: (colors: ColorTokens, shadows: ShadowTokens)
169
175
  paddingHorizontal: number;
170
176
  borderRadius: number;
171
177
  backgroundColor: string;
178
+ borderWidth: number;
179
+ borderColor: string;
172
180
  };
173
181
  transcript: {
174
182
  flex: number;
@@ -176,6 +184,25 @@ export declare const createStyles: (colors: ColorTokens, shadows: ShadowTokens)
176
184
  color: string;
177
185
  fontSize: number;
178
186
  };
187
+ voiceBody: {
188
+ flex: number;
189
+ minWidth: number;
190
+ flexDirection: "row";
191
+ alignItems: "center";
192
+ gap: number;
193
+ minHeight: number;
194
+ };
195
+ wave: {
196
+ flexDirection: "row";
197
+ alignItems: "center";
198
+ gap: number;
199
+ height: number;
200
+ };
201
+ waveBar: {
202
+ width: number;
203
+ borderRadius: number;
204
+ backgroundColor: string;
205
+ };
179
206
  transcriptPlaceholder: {
180
207
  color: string;
181
208
  };
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM3E,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW,EAAE,SAAS,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8HnE,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAM3E,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW,EAAE,SAAS,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmJnE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { MarkdownContentProps } from './types.js';
2
- export declare function MarkdownContent({ text, onLinkPress }: MarkdownContentProps): import("react").JSX.Element;
2
+ export declare function MarkdownContent({ text, onLinkPress, outgoing, }: MarkdownContentProps): import("react").JSX.Element;
3
3
  //# sourceMappingURL=MarkdownContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/MarkdownContent.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAyB,MAAM,YAAS,CAAC;AAG3E,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,oBAAoB,+BAwE1E"}
1
+ {"version":3,"file":"MarkdownContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/MarkdownContent.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAyB,MAAM,YAAS,CAAC;AAG3E,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,WAAW,EACX,QAAgB,GACjB,EAAE,oBAAoB,+BAgFtB"}
@@ -25,6 +25,7 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
25
25
  };
26
26
  link: {
27
27
  color: string;
28
+ textDecorationLine: "underline";
28
29
  fontSize: number;
29
30
  lineHeight: number;
30
31
  };
@@ -35,11 +36,108 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
35
36
  };
36
37
  codespan: {
37
38
  fontFamily: string;
39
+ color: string;
38
40
  backgroundColor: string;
39
41
  fontSize: number;
40
42
  lineHeight: number;
43
+ };
44
+ h1: {
45
+ fontSize: number;
46
+ lineHeight: number;
47
+ color: string;
48
+ borderBottomColor: string;
49
+ };
50
+ h2: {
51
+ fontSize: number;
52
+ lineHeight: number;
53
+ color: string;
54
+ borderBottomColor: string;
55
+ };
56
+ h3: {
57
+ fontSize: number;
58
+ lineHeight: number;
59
+ color: string;
60
+ };
61
+ h4: {
62
+ fontSize: number;
63
+ lineHeight: number;
64
+ color: string;
65
+ };
66
+ h5: {
67
+ fontSize: number;
68
+ lineHeight: number;
69
+ color: string;
70
+ };
71
+ h6: {
72
+ fontSize: number;
73
+ lineHeight: number;
41
74
  color: string;
42
75
  };
76
+ paragraph: {
77
+ paddingVertical: number;
78
+ };
79
+ code: {
80
+ padding: number;
81
+ backgroundColor: string;
82
+ };
83
+ codeText: {
84
+ color: string;
85
+ fontFamily: string;
86
+ fontSize: number;
87
+ lineHeight: number;
88
+ };
89
+ blockquote: {
90
+ borderLeftColor: string;
91
+ };
92
+ hr: {
93
+ borderBottomColor: string;
94
+ };
95
+ table: {
96
+ borderColor: string;
97
+ };
98
+ }>;
99
+ export declare const createOutgoingStyles: (colors: ColorTokens) => Readonly<{
100
+ text: {
101
+ fontSize: number;
102
+ lineHeight: number;
103
+ color: string;
104
+ };
105
+ em: {
106
+ fontStyle: "italic";
107
+ fontSize: number;
108
+ lineHeight: number;
109
+ color: string;
110
+ };
111
+ strong: {
112
+ fontWeight: "bold";
113
+ fontSize: number;
114
+ lineHeight: number;
115
+ color: string;
116
+ };
117
+ strikethrough: {
118
+ textDecorationLine: "line-through";
119
+ fontSize: number;
120
+ lineHeight: number;
121
+ color: string;
122
+ };
123
+ link: {
124
+ color: string;
125
+ textDecorationLine: "underline";
126
+ fontSize: number;
127
+ lineHeight: number;
128
+ };
129
+ li: {
130
+ fontSize: number;
131
+ lineHeight: number;
132
+ color: string;
133
+ };
134
+ codespan: {
135
+ fontFamily: string;
136
+ color: string;
137
+ backgroundColor: string;
138
+ fontSize: number;
139
+ lineHeight: number;
140
+ };
43
141
  h1: {
44
142
  fontSize: number;
45
143
  lineHeight: number;
@@ -79,6 +177,12 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
79
177
  padding: number;
80
178
  backgroundColor: string;
81
179
  };
180
+ codeText: {
181
+ color: string;
182
+ fontFamily: string;
183
+ fontSize: number;
184
+ lineHeight: number;
185
+ };
82
186
  blockquote: {
83
187
  borderLeftColor: string;
84
188
  };
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwD/C,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAmE7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACb,CAAC;AACpC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACtB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export interface MarkdownContentProps {
2
2
  text: string;
3
3
  onLinkPress?(url: string): void;
4
+ outgoing?: boolean;
4
5
  }
5
6
  export interface MarkdownSvgLabelProps {
6
7
  alt?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/MarkdownContent/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAE5C,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAiI1C"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/Message.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAE5C,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BA0J1C"}
@@ -5,13 +5,12 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
5
5
  alignItems: "flex-start";
6
6
  gap: number;
7
7
  minWidth: number;
8
- paddingVertical: number;
9
8
  };
10
9
  end: {
11
10
  flexDirection: "row-reverse";
12
11
  };
13
12
  column: {
14
- flexShrink: number;
13
+ flex: number;
15
14
  maxWidth: string;
16
15
  gap: number;
17
16
  alignItems: "flex-start";
@@ -20,8 +19,8 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
20
19
  alignItems: "flex-end";
21
20
  };
22
21
  fullWidth: {
23
- flex: number;
24
22
  alignSelf: "stretch";
23
+ maxWidth: string;
25
24
  };
26
25
  content: {
27
26
  minWidth: number;
@@ -29,15 +28,20 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
29
28
  gap: number;
30
29
  };
31
30
  bubble: {
32
- padding: number;
31
+ paddingHorizontal: number;
32
+ paddingVertical: number;
33
33
  borderRadius: number;
34
34
  backgroundColor: string;
35
35
  };
36
36
  outgoing: {
37
37
  backgroundColor: string;
38
38
  };
39
+ outgoingText: {
40
+ color: string;
41
+ };
39
42
  outlined: {
40
- padding: number;
43
+ paddingHorizontal: number;
44
+ paddingVertical: number;
41
45
  borderRadius: number;
42
46
  borderWidth: number;
43
47
  borderColor: string;
@@ -48,6 +52,7 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
48
52
  };
49
53
  text: {
50
54
  fontSize: number;
55
+ lineHeight: number;
51
56
  color: string;
52
57
  };
53
58
  name: {
@@ -65,6 +70,7 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
65
70
  flexDirection: "row";
66
71
  flexWrap: "wrap";
67
72
  gap: number;
73
+ marginTop: number;
68
74
  };
69
75
  }>;
70
76
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC5C,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgD5C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { RefAttributes } from 'react';
2
2
  import type { MessageListHandle, MessageListProps } from './types.js';
3
- export declare function MessageList<T>({ items, keyExtractor, renderItem, extraData, header, footer, empty, renderSeparator, initialPosition, followOutput, endThreshold, showScrollToEnd, onAtEndChange, hasEarlier, loadingEarlier, onRequestEarlier, keyboardDismissMode, style, testID, ref, }: MessageListProps<T> & RefAttributes<MessageListHandle>): import("react").JSX.Element;
3
+ export declare function MessageList<T>({ items, keyExtractor, renderItem, extraData, header, footer, empty, renderSeparator, initialPosition, followOutput, endThreshold, showScrollToEnd, scrollToEndBusy, onAtEndChange, hasEarlier, loadingEarlier, onRequestEarlier, keyboardDismissMode, contentContainerStyle, showsVerticalScrollIndicator, style, testID, ref, }: MessageListProps<T> & RefAttributes<MessageListHandle>): import("react").JSX.Element;
4
4
  //# sourceMappingURL=MessageList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAInE,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAC7B,KAAK,EACL,YAAY,EACZ,UAAU,EACV,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,EACL,eAAe,EACf,eAAuB,EACvB,YAA0B,EAC1B,YAAoC,EACpC,eAAsB,EACtB,aAAa,EACb,UAAkB,EAClB,cAAsB,EACtB,gBAAgB,EAChB,mBAA+B,EAC/B,KAAK,EACL,MAAM,EACN,GAAG,GACJ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,iBAAiB,CAAC,+BAuGxD"}
1
+ {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageList/MessageList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAc3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAInE,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAC7B,KAAK,EACL,YAAY,EACZ,UAAU,EACV,SAAS,EACT,MAAM,EACN,MAAM,EACN,KAAK,EACL,eAAe,EACf,eAAuB,EACvB,YAA0B,EAC1B,YAAoC,EACpC,eAAsB,EACtB,eAAuB,EACvB,aAAa,EACb,UAAkB,EAClB,cAAsB,EACtB,gBAAgB,EAChB,mBAA+B,EAC/B,qBAAqB,EACrB,4BAAoC,EACpC,KAAK,EACL,MAAM,EACN,GAAG,GACJ,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,iBAAiB,CAAC,+BAoHxD"}