@unif/react-native-chat 3.2.3 → 3.3.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/lib/module/components/Attachments/AttachmentItem.js +3 -2
- package/lib/module/components/Attachments/AttachmentItem.js.map +1 -1
- package/lib/module/components/Attachments/Attachments.js +1 -0
- package/lib/module/components/Attachments/Attachments.js.map +1 -1
- package/lib/module/components/Attachments/styles.js +4 -0
- package/lib/module/components/Attachments/styles.js.map +1 -1
- package/lib/module/components/Composer/Composer.js +13 -9
- package/lib/module/components/Composer/Composer.js.map +1 -1
- package/lib/module/components/Confirmation/Confirmation.js +29 -13
- package/lib/module/components/Confirmation/Confirmation.js.map +1 -1
- package/lib/module/components/Confirmation/styles.js +17 -6
- package/lib/module/components/Confirmation/styles.js.map +1 -1
- package/lib/module/components/Message/MarkdownContent/styles.js +29 -33
- package/lib/module/components/Message/MarkdownContent/styles.js.map +1 -1
- package/lib/module/components/Message/Message.js +37 -24
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/Message/MessageWaiting.js +53 -0
- package/lib/module/components/Message/MessageWaiting.js.map +1 -0
- package/lib/module/components/Message/constants.js +3 -0
- package/lib/module/components/Message/constants.js.map +1 -1
- package/lib/module/components/Message/styles.js +41 -3
- package/lib/module/components/Message/styles.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +60 -31
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/MessageListEndButton.js +60 -0
- package/lib/module/components/MessageList/MessageListEndButton.js.map +1 -0
- package/lib/module/components/MessageList/MessageListRow.js +9 -2
- package/lib/module/components/MessageList/MessageListRow.js.map +1 -1
- package/lib/module/components/MessageList/styles.js +6 -0
- package/lib/module/components/MessageList/styles.js.map +1 -1
- package/lib/module/components/MessageList/useMessageListScroll.js +218 -13
- package/lib/module/components/MessageList/useMessageListScroll.js.map +1 -1
- package/lib/module/components/Process/Process.js +15 -5
- package/lib/module/components/Process/Process.js.map +1 -1
- package/lib/module/components/Process/ProcessCompactStep.js +21 -7
- package/lib/module/components/Process/ProcessCompactStep.js.map +1 -1
- package/lib/module/components/Process/ProcessTimelineStep.js +79 -0
- package/lib/module/components/Process/ProcessTimelineStep.js.map +1 -0
- package/lib/module/components/Process/styles.js +63 -3
- package/lib/module/components/Process/styles.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/Attachments/AttachmentItem.d.ts +1 -1
- package/lib/typescript/src/components/Attachments/AttachmentItem.d.ts.map +1 -1
- package/lib/typescript/src/components/Attachments/Attachments.d.ts.map +1 -1
- package/lib/typescript/src/components/Attachments/styles.d.ts +4 -0
- package/lib/typescript/src/components/Attachments/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/Attachments/types.d.ts +2 -1
- package/lib/typescript/src/components/Attachments/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Composer/Composer.d.ts.map +1 -1
- package/lib/typescript/src/components/Confirmation/Confirmation.d.ts.map +1 -1
- package/lib/typescript/src/components/Confirmation/styles.d.ts +13 -2
- package/lib/typescript/src/components/Confirmation/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts +32 -66
- package/lib/typescript/src/components/Message/MarkdownContent/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/Message/Message.d.ts.map +1 -1
- package/lib/typescript/src/components/Message/MessageWaiting.d.ts +3 -0
- package/lib/typescript/src/components/Message/MessageWaiting.d.ts.map +1 -0
- package/lib/typescript/src/components/Message/constants.d.ts +3 -0
- package/lib/typescript/src/components/Message/constants.d.ts.map +1 -1
- package/lib/typescript/src/components/Message/styles.d.ts +40 -2
- package/lib/typescript/src/components/Message/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/Message/types.d.ts +5 -0
- package/lib/typescript/src/components/Message/types.d.ts.map +1 -1
- package/lib/typescript/src/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/src/components/MessageList/MessageListEndButton.d.ts +3 -0
- package/lib/typescript/src/components/MessageList/MessageListEndButton.d.ts.map +1 -0
- package/lib/typescript/src/components/MessageList/MessageListRow.d.ts +2 -8
- package/lib/typescript/src/components/MessageList/MessageListRow.d.ts.map +1 -1
- package/lib/typescript/src/components/MessageList/index.d.ts +1 -1
- package/lib/typescript/src/components/MessageList/index.d.ts.map +1 -1
- package/lib/typescript/src/components/MessageList/styles.d.ts +6 -0
- package/lib/typescript/src/components/MessageList/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/MessageList/types.d.ts +41 -2
- package/lib/typescript/src/components/MessageList/types.d.ts.map +1 -1
- package/lib/typescript/src/components/MessageList/useMessageListScroll.d.ts +14 -3
- package/lib/typescript/src/components/MessageList/useMessageListScroll.d.ts.map +1 -1
- package/lib/typescript/src/components/Process/Process.d.ts.map +1 -1
- package/lib/typescript/src/components/Process/ProcessCompactStep.d.ts +1 -1
- package/lib/typescript/src/components/Process/ProcessCompactStep.d.ts.map +1 -1
- package/lib/typescript/src/components/Process/ProcessTimelineStep.d.ts +5 -0
- package/lib/typescript/src/components/Process/ProcessTimelineStep.d.ts.map +1 -0
- package/lib/typescript/src/components/Process/styles.d.ts +62 -2
- package/lib/typescript/src/components/Process/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/Process/types.d.ts +7 -2
- package/lib/typescript/src/components/Process/types.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Attachments/AttachmentItem.tsx +11 -3
- package/src/components/Attachments/Attachments.tsx +1 -0
- package/src/components/Attachments/styles.ts +1 -0
- package/src/components/Attachments/types.ts +2 -1
- package/src/components/Composer/Composer.tsx +34 -8
- package/src/components/Confirmation/Confirmation.tsx +50 -14
- package/src/components/Confirmation/styles.ts +13 -6
- package/src/components/Message/MarkdownContent/styles.ts +18 -44
- package/src/components/Message/Message.tsx +53 -33
- package/src/components/Message/MessageWaiting.tsx +68 -0
- package/src/components/Message/constants.ts +4 -0
- package/src/components/Message/styles.ts +25 -2
- package/src/components/Message/types.ts +6 -0
- package/src/components/MessageList/MessageList.tsx +107 -35
- package/src/components/MessageList/MessageListEndButton.tsx +61 -0
- package/src/components/MessageList/MessageListRow.tsx +12 -12
- package/src/components/MessageList/index.ts +1 -0
- package/src/components/MessageList/styles.ts +6 -0
- package/src/components/MessageList/types.ts +52 -2
- package/src/components/MessageList/useMessageListScroll.ts +296 -21
- package/src/components/Process/Process.tsx +38 -5
- package/src/components/Process/ProcessCompactStep.tsx +32 -13
- package/src/components/Process/ProcessTimelineStep.tsx +109 -0
- package/src/components/Process/styles.ts +48 -3
- package/src/components/Process/types.ts +7 -2
- package/src/index.tsx +1 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Text, View } from 'react-native';
|
|
4
|
+
import { Button, Icon, StatusDot, icon, useColors, useThemedStyles } from '@unif/react-native-design';
|
|
5
|
+
import { PROCESS_STATUS_LABELS } from "./constants.js";
|
|
6
|
+
import { createStyles } from "./styles.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
export function ProcessTimelineStep({
|
|
9
|
+
step,
|
|
10
|
+
last,
|
|
11
|
+
expanded,
|
|
12
|
+
elapsed,
|
|
13
|
+
onToggle
|
|
14
|
+
}) {
|
|
15
|
+
const styles = useThemedStyles(createStyles);
|
|
16
|
+
const colors = useColors();
|
|
17
|
+
const status = step.status === 'running' ? 'active' : step.status === 'completed' ? 'done' : step.status === 'failed' ? 'error' : 'pending';
|
|
18
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
19
|
+
style: styles.timelineStep,
|
|
20
|
+
accessibilityLabel: `${step.title},${step.statusText ?? PROCESS_STATUS_LABELS[step.status]}`,
|
|
21
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
22
|
+
style: styles.timelineGutter,
|
|
23
|
+
children: [step.status === 'cancelled' ? /*#__PURE__*/_jsx(Icon, {
|
|
24
|
+
name: "close",
|
|
25
|
+
size: icon.xs,
|
|
26
|
+
color: colors.foregroundSubtle
|
|
27
|
+
}) : /*#__PURE__*/_jsx(StatusDot, {
|
|
28
|
+
status: status,
|
|
29
|
+
tone: "soft",
|
|
30
|
+
size: icon.xs,
|
|
31
|
+
accessibilityLabel: ""
|
|
32
|
+
}), !last ? /*#__PURE__*/_jsx(View, {
|
|
33
|
+
style: styles.timelineLine
|
|
34
|
+
}) : null]
|
|
35
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
36
|
+
style: [styles.timelineBody, !last && styles.timelineBodyNotLast],
|
|
37
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
38
|
+
style: styles.stepHeader,
|
|
39
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
40
|
+
testID: `process-step-title-${step.id}`,
|
|
41
|
+
style: [styles.timelineTitle, step.status === 'running' && styles.timelineActive, step.status === 'pending' && styles.timelinePending],
|
|
42
|
+
numberOfLines: 1,
|
|
43
|
+
children: step.title
|
|
44
|
+
}), step.description ? /*#__PURE__*/_jsx(Text, {
|
|
45
|
+
style: [styles.timelineDescription, step.status === 'failed' && styles.timelineError],
|
|
46
|
+
numberOfLines: 1,
|
|
47
|
+
children: step.description
|
|
48
|
+
}) : null]
|
|
49
|
+
}), elapsed ? /*#__PURE__*/_jsx(Text, {
|
|
50
|
+
style: styles.elapsed,
|
|
51
|
+
children: elapsed
|
|
52
|
+
}) : null, step.details != null ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
53
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
54
|
+
label: expanded ? '收起详情' : '展开详情',
|
|
55
|
+
onPress: onToggle,
|
|
56
|
+
size: "sm",
|
|
57
|
+
variant: "text",
|
|
58
|
+
testID: `process-step-${step.id}-toggle`
|
|
59
|
+
}), expanded ? /*#__PURE__*/_jsx(View, {
|
|
60
|
+
style: styles.details,
|
|
61
|
+
children: step.details
|
|
62
|
+
}) : null]
|
|
63
|
+
}) : null, step.actions?.length ? /*#__PURE__*/_jsx(View, {
|
|
64
|
+
style: styles.actions,
|
|
65
|
+
children: step.actions.map(action => /*#__PURE__*/_jsx(Button, {
|
|
66
|
+
label: action.label,
|
|
67
|
+
leftIcon: action.icon,
|
|
68
|
+
onPress: action.onPress,
|
|
69
|
+
disabled: action.disabled,
|
|
70
|
+
loading: action.loading,
|
|
71
|
+
accessibilityHint: action.accessibilityHint,
|
|
72
|
+
size: "sm",
|
|
73
|
+
variant: "text"
|
|
74
|
+
}, action.id))
|
|
75
|
+
}) : null]
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=ProcessTimelineStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Text","View","Button","Icon","StatusDot","icon","useColors","useThemedStyles","PROCESS_STATUS_LABELS","createStyles","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ProcessTimelineStep","step","last","expanded","elapsed","onToggle","styles","colors","status","style","timelineStep","accessibilityLabel","title","statusText","children","timelineGutter","name","size","xs","color","foregroundSubtle","tone","timelineLine","timelineBody","timelineBodyNotLast","stepHeader","testID","id","timelineTitle","timelineActive","timelinePending","numberOfLines","description","timelineDescription","timelineError","details","label","onPress","variant","actions","length","map","action","leftIcon","disabled","loading","accessibilityHint"],"sourceRoot":"../../../../src","sources":["components/Process/ProcessTimelineStep.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzC,SACEC,MAAM,EACNC,IAAI,EACJC,SAAS,EACTC,IAAI,EACJC,SAAS,EACTC,eAAe,QACV,2BAA2B;AAClC,SAASC,qBAAqB,QAAQ,gBAAa;AACnD,SAASC,YAAY,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAGxC,OAAO,SAASC,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AK,EAAEH,MAAM,CAAC6B,OAAQ;UAAArB,QAAA,EAAEb,IAAI,CAACkC;QAAO,CAAO,CAAC,GAChD,IAAI;MAAA,CACR,CAAC,GACD,IAAI,EACPlC,IAAI,CAACsC,OAAO,EAAEC,MAAM,gBACnB7C,IAAA,CAACV,IAAI;QAACwB,KAAK,EAAEH,MAAM,CAACiC,OAAQ;QAAAzB,QAAA,EACzBb,IAAI,CAACsC,OAAO,CAACE,GAAG,CAAEC,MAAM,iBACvB/C,IAAA,CAACT,MAAM;UAELkD,KAAK,EAAEM,MAAM,CAACN,KAAM;UACpBO,QAAQ,EAAED,MAAM,CAACrD,IAAK;UACtBgD,OAAO,EAAEK,MAAM,CAACL,OAAQ;UACxBO,QAAQ,EAAEF,MAAM,CAACE,QAAS;UAC1BC,OAAO,EAAEH,MAAM,CAACG,OAAQ;UACxBC,iBAAiB,EAAEJ,MAAM,CAACI,iBAAkB;UAC5C7B,IAAI,EAAC,IAAI;UACTqB,OAAO,EAAC;QAAM,GARTI,MAAM,CAACf,EASb,CACF;MAAC,CACE,CAAC,GACL,IAAI;IAAA,CACJ,CAAC;EAAA,CACH,CAAC;AAEX","ignoreList":[]}
|
|
@@ -1,8 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
|
-
import { fw, r, radius, space, type } from '@unif/react-native-design';
|
|
4
|
+
import { fw, icon, r, radius, space, type } from '@unif/react-native-design';
|
|
5
5
|
export const createStyles = colors => StyleSheet.create({
|
|
6
|
+
timelineRoot: {
|
|
7
|
+
backgroundColor: colors.surface,
|
|
8
|
+
borderRadius: radius.lg,
|
|
9
|
+
padding: space[5]
|
|
10
|
+
},
|
|
11
|
+
timelineStep: {
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
alignItems: 'flex-start',
|
|
14
|
+
gap: space[4]
|
|
15
|
+
},
|
|
16
|
+
timelineGutter: {
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
width: icon.xs,
|
|
19
|
+
alignSelf: 'stretch'
|
|
20
|
+
},
|
|
21
|
+
timelineLine: {
|
|
22
|
+
width: r(1.5),
|
|
23
|
+
flex: 1,
|
|
24
|
+
backgroundColor: colors.outline,
|
|
25
|
+
marginTop: r(2),
|
|
26
|
+
minHeight: space[5]
|
|
27
|
+
},
|
|
28
|
+
timelineBody: {
|
|
29
|
+
flex: 1
|
|
30
|
+
},
|
|
31
|
+
timelineBodyNotLast: {
|
|
32
|
+
paddingBottom: space[7]
|
|
33
|
+
},
|
|
34
|
+
timelineTitle: {
|
|
35
|
+
flex: 1,
|
|
36
|
+
fontSize: type.xs,
|
|
37
|
+
fontWeight: fw.medium,
|
|
38
|
+
color: colors.foreground,
|
|
39
|
+
lineHeight: type.xs * 1.4
|
|
40
|
+
},
|
|
41
|
+
timelineActive: {
|
|
42
|
+
color: colors.primary
|
|
43
|
+
},
|
|
44
|
+
timelinePending: {
|
|
45
|
+
color: colors.foregroundSubtle,
|
|
46
|
+
fontWeight: fw.regular
|
|
47
|
+
},
|
|
48
|
+
timelineDescription: {
|
|
49
|
+
flexShrink: 0,
|
|
50
|
+
fontSize: type.xs,
|
|
51
|
+
color: colors.foregroundSubtle
|
|
52
|
+
},
|
|
53
|
+
timelineError: {
|
|
54
|
+
color: colors.error
|
|
55
|
+
},
|
|
6
56
|
compactRoot: {
|
|
7
57
|
gap: space[2]
|
|
8
58
|
},
|
|
@@ -27,16 +77,26 @@ export const createStyles = colors => StyleSheet.create({
|
|
|
27
77
|
fontSize: type.xs,
|
|
28
78
|
fontWeight: fw.medium
|
|
29
79
|
},
|
|
80
|
+
spacer: {
|
|
81
|
+
flex: 1
|
|
82
|
+
},
|
|
83
|
+
compactStatus: {
|
|
84
|
+
fontSize: type.xs,
|
|
85
|
+
fontWeight: fw.medium,
|
|
86
|
+
color: colors.foregroundMuted
|
|
87
|
+
},
|
|
30
88
|
compactDescription: {
|
|
31
89
|
color: colors.foregroundMuted,
|
|
32
90
|
fontSize: type.xs,
|
|
33
91
|
lineHeight: type.xs * 1.6
|
|
34
92
|
},
|
|
35
|
-
|
|
36
|
-
maxHeight: r(180),
|
|
93
|
+
compactDetailsContainer: {
|
|
37
94
|
paddingTop: space[3],
|
|
38
95
|
paddingBottom: space[2]
|
|
39
96
|
},
|
|
97
|
+
compactDetails: {
|
|
98
|
+
maxHeight: r(180)
|
|
99
|
+
},
|
|
40
100
|
root: {
|
|
41
101
|
gap: space[4],
|
|
42
102
|
padding: space[5],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","fw","r","radius","space","type","createStyles","colors","create","
|
|
1
|
+
{"version":3,"names":["StyleSheet","fw","icon","r","radius","space","type","createStyles","colors","create","timelineRoot","backgroundColor","surface","borderRadius","lg","padding","timelineStep","flexDirection","alignItems","gap","timelineGutter","width","xs","alignSelf","timelineLine","flex","outline","marginTop","minHeight","timelineBody","timelineBodyNotLast","paddingBottom","timelineTitle","fontSize","fontWeight","medium","color","foreground","lineHeight","timelineActive","primary","timelinePending","foregroundSubtle","regular","timelineDescription","flexShrink","timelineError","error","compactRoot","compactSteps","compactAction","minWidth","compactHeader","paddingVertical","compactTitle","foregroundMuted","spacer","compactStatus","compactDescription","compactDetailsContainer","paddingTop","compactDetails","maxHeight","root","xl","borderWidth","borderColor","heading","headingTitle","h3","semi","steps","step","borderBottomWidth","hairlineWidth","borderBottomColor","stepLast","stepHeader","stepTitle","sm","status","statusText","xxs","description","elapsed","details","md","surfaceContainer","actions","flexWrap"],"sourceRoot":"../../../../src","sources":["components/Process/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,EAAE,EAAEC,IAAI,EAAEC,CAAC,EAAEC,MAAM,EAAEC,KAAK,EAAEC,IAAI,QAAQ,2BAA2B;AAG5E,OAAO,MAAMC,YAAY,GAAIC,MAAmB,IAC9CR,UAAU,CAACS,MAAM,CAAC;EAChBC,YAAY,EAAE;IACZC,eAAe,EAAEH,M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ACD6C,MAAM,EAAE;IACN/D,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,GAAG,EAAEd,KAAK,CAAC,CAAC;EACd,CAAC;EACD4E,UAAU,EAAE;IACV7C,KAAK,EAAE5B,MAAM,CAAC+C,eAAe;IAC7BtB,QAAQ,EAAE3B,IAAI,CAAC4E;EACjB,CAAC;EACDC,WAAW,EAAE;IACX/C,KAAK,EAAE5B,MAAM,CAAC+C,eAAe;IAC7BtB,QAAQ,EAAE3B,IAAI,CAACyE;EACjB,CAAC;EACDK,OAAO,EAAE;IACPhD,KAAK,EAAE5B,MAAM,CAACkC,gBAAgB;IAC9BT,QAAQ,EAAE3B,IAAI,CAAC4E;EACjB,CAAC;EACDG,OAAO,EAAE;IACPtE,OAAO,EAAEV,KAAK,CAAC,CAAC,CAAC;IACjBQ,YAAY,EAAET,MAAM,CAACkF,EAAE;IACvB3E,eAAe,EAAEH,MAAM,CAAC+E;EAC1B,CAAC;EACDC,OAAO,EAAE;IACPvE,aAAa,EAAE,KAAK;IACpBwE,QAAQ,EAAE,MAAM;IAChBtE,GAAG,EAAEd,KAAK,CAAC,CAAC;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Composer","Attachments","Message","MessageList","Chat","Suggestions","Confirmation","Process","ProcessingProgress","Feedback","Sources","Citation"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,gCAAuB;AAWhD,SAASC,WAAW,QAAQ,mCAA0B;AAMtD,SAASC,OAAO,QAAQ,+BAAsB;AAU9C,SAASC,WAAW,QAAQ,mCAA0B;
|
|
1
|
+
{"version":3,"names":["Composer","Attachments","Message","MessageList","Chat","Suggestions","Confirmation","Process","ProcessingProgress","Feedback","Sources","Citation"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,gCAAuB;AAWhD,SAASC,WAAW,QAAQ,mCAA0B;AAMtD,SAASC,OAAO,QAAQ,+BAAsB;AAU9C,SAASC,WAAW,QAAQ,mCAA0B;AAOtD,SAASC,IAAI,QAAQ,4BAAmB;AAExC,SAASC,WAAW,QAAQ,mCAA0B;AAKtD,SAASC,YAAY,QAAQ,oCAA2B;AAKxD,SAASC,OAAO,QAAQ,+BAAsB;AAS9C,SAASC,kBAAkB,QAAQ,0CAAiC;AAEpE,SAASC,QAAQ,QAAQ,gCAAuB;AAEhD,SAASC,OAAO,QAAQ,+BAAsB;AAE9C,SAASC,QAAQ,QAAQ,gCAAuB","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AttachmentItemProps } from './types.js';
|
|
2
|
-
export declare function AttachmentItem({ item, width, imageSize, row, mixed, showProgressLabel, onPreview, onRemove, }: AttachmentItemProps): import("react").JSX.Element;
|
|
2
|
+
export declare function AttachmentItem({ item, width, imageSize, row, mixed, compact, showProgressLabel, onPreview, onRemove, }: AttachmentItemProps): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AttachmentItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/AttachmentItem.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAEnD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,EACH,KAAa,EACb,iBAAyB,EACzB,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"AttachmentItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/AttachmentItem.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAEnD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,EACH,KAAa,EACb,OAAe,EACf,iBAAyB,EACzB,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,+BA6SrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAEhD,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAe,EACf,iBAAyB,EACzB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,GACP,EAAE,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/Attachments.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAEhD,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,MAAe,EACf,iBAAyB,EACzB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,GACP,EAAE,gBAAgB,+BA+ClB"}
|
|
@@ -124,6 +124,10 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
|
|
|
124
124
|
alignItems: "center";
|
|
125
125
|
justifyContent: "center";
|
|
126
126
|
};
|
|
127
|
+
removeInCell: {
|
|
128
|
+
alignItems: "flex-end";
|
|
129
|
+
paddingRight: number;
|
|
130
|
+
};
|
|
127
131
|
removeFailed: {
|
|
128
132
|
backgroundColor: string;
|
|
129
133
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/styles.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAO7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/styles.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAO7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmI5C,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface ChatAttachmentItem {
|
|
|
18
18
|
}
|
|
19
19
|
export interface AttachmentsProps {
|
|
20
20
|
items: readonly ChatAttachmentItem[];
|
|
21
|
-
layout?: 'grid' | 'mixed' | 'carousel' | 'list';
|
|
21
|
+
layout?: 'grid' | 'compact' | 'mixed' | 'carousel' | 'list';
|
|
22
22
|
showProgressLabel?: boolean;
|
|
23
23
|
onPreview?(item: ChatAttachmentItem): void;
|
|
24
24
|
onRemove?(item: ChatAttachmentItem): void;
|
|
@@ -31,5 +31,6 @@ export interface AttachmentItemProps extends Pick<AttachmentsProps, 'showProgres
|
|
|
31
31
|
imageSize: number;
|
|
32
32
|
row: boolean;
|
|
33
33
|
mixed?: boolean;
|
|
34
|
+
compact?: boolean;
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Attachments/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAe,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAC9B,MAAM,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GA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3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Composer/Composer.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAYjE,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7D,eAAO,MAAM,QAAQ,2GAmRpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Confirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/Confirmation/Confirmation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Confirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/Confirmation/Confirmation.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAS,CAAC;AAEjD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,YAAoC,EACpC,WAAkC,EAClC,eAAuB,EACvB,cAAsB,EACtB,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,GACP,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAoEvC"}
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { type ColorTokens } from '@unif/react-native-design';
|
|
2
2
|
export declare const createStyles: (colors: ColorTokens) => Readonly<{
|
|
3
3
|
root: {
|
|
4
|
-
gap: number;
|
|
5
4
|
padding: number;
|
|
6
5
|
borderWidth: number;
|
|
7
6
|
borderColor: string;
|
|
8
7
|
borderRadius: number;
|
|
9
8
|
backgroundColor: string;
|
|
10
9
|
};
|
|
10
|
+
heading: {
|
|
11
|
+
flexDirection: "row";
|
|
12
|
+
alignItems: "center";
|
|
13
|
+
gap: number;
|
|
14
|
+
marginBottom: number;
|
|
15
|
+
};
|
|
16
|
+
body: {
|
|
17
|
+
marginBottom: number;
|
|
18
|
+
};
|
|
19
|
+
cancelled: {
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
11
22
|
title: {
|
|
23
|
+
flex: number;
|
|
12
24
|
color: string;
|
|
13
25
|
fontSize: number;
|
|
14
26
|
fontWeight: "600";
|
|
@@ -19,7 +31,6 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
|
|
|
19
31
|
};
|
|
20
32
|
actions: {
|
|
21
33
|
flexDirection: "row";
|
|
22
|
-
flexWrap: "wrap";
|
|
23
34
|
gap: number;
|
|
24
35
|
};
|
|
25
36
|
footer: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Confirmation/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Confirmation/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC5C,CAAC"}
|
|
@@ -6,91 +6,74 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
|
|
|
6
6
|
color: string;
|
|
7
7
|
};
|
|
8
8
|
em: {
|
|
9
|
-
fontStyle: "italic";
|
|
10
|
-
fontSize: number;
|
|
11
|
-
lineHeight: number;
|
|
12
9
|
color: string;
|
|
10
|
+
fontStyle: "italic";
|
|
13
11
|
};
|
|
14
12
|
strong: {
|
|
15
|
-
fontWeight: "bold";
|
|
16
|
-
fontSize: number;
|
|
17
|
-
lineHeight: number;
|
|
18
13
|
color: string;
|
|
14
|
+
fontWeight: "bold";
|
|
19
15
|
};
|
|
20
16
|
strikethrough: {
|
|
21
|
-
textDecorationLine: "line-through";
|
|
22
|
-
fontSize: number;
|
|
23
|
-
lineHeight: number;
|
|
24
17
|
color: string;
|
|
18
|
+
textDecorationLine: "line-through";
|
|
25
19
|
};
|
|
26
20
|
link: {
|
|
27
21
|
color: string;
|
|
28
22
|
textDecorationLine: "underline";
|
|
29
|
-
fontSize: number;
|
|
30
|
-
lineHeight: number;
|
|
31
23
|
};
|
|
32
24
|
li: {
|
|
33
|
-
fontSize: number;
|
|
34
|
-
lineHeight: number;
|
|
35
25
|
color: string;
|
|
26
|
+
fontSize: number;
|
|
36
27
|
};
|
|
37
28
|
codespan: {
|
|
38
|
-
fontFamily: string;
|
|
39
29
|
color: string;
|
|
40
30
|
backgroundColor: string;
|
|
41
|
-
fontSize: number;
|
|
42
|
-
lineHeight: number;
|
|
43
31
|
};
|
|
44
32
|
h1: {
|
|
45
33
|
fontSize: number;
|
|
46
|
-
|
|
34
|
+
fontWeight: "700";
|
|
47
35
|
color: string;
|
|
48
|
-
borderBottomColor: string;
|
|
49
36
|
};
|
|
50
37
|
h2: {
|
|
51
38
|
fontSize: number;
|
|
52
|
-
|
|
39
|
+
fontWeight: "700";
|
|
53
40
|
color: string;
|
|
54
|
-
borderBottomColor: string;
|
|
55
41
|
};
|
|
56
42
|
h3: {
|
|
57
43
|
fontSize: number;
|
|
58
|
-
|
|
44
|
+
fontWeight: "600";
|
|
59
45
|
color: string;
|
|
60
46
|
};
|
|
61
47
|
h4: {
|
|
62
48
|
fontSize: number;
|
|
63
|
-
|
|
49
|
+
fontWeight: "600";
|
|
64
50
|
color: string;
|
|
65
51
|
};
|
|
66
52
|
h5: {
|
|
67
53
|
fontSize: number;
|
|
68
|
-
|
|
54
|
+
fontWeight: "600";
|
|
69
55
|
color: string;
|
|
70
56
|
};
|
|
71
57
|
h6: {
|
|
72
58
|
fontSize: number;
|
|
73
|
-
|
|
59
|
+
fontWeight: "600";
|
|
74
60
|
color: string;
|
|
75
61
|
};
|
|
76
|
-
paragraph: {
|
|
77
|
-
paddingVertical: number;
|
|
78
|
-
};
|
|
79
62
|
code: {
|
|
80
|
-
padding: number;
|
|
81
63
|
backgroundColor: string;
|
|
64
|
+
borderColor: string;
|
|
65
|
+
borderWidth: number;
|
|
82
66
|
};
|
|
83
67
|
codeText: {
|
|
84
68
|
color: string;
|
|
85
|
-
fontFamily: string;
|
|
86
|
-
fontSize: number;
|
|
87
|
-
lineHeight: number;
|
|
88
69
|
};
|
|
89
70
|
blockquote: {
|
|
90
|
-
|
|
71
|
+
borderColor: string;
|
|
72
|
+
borderLeftWidth: number;
|
|
91
73
|
};
|
|
92
74
|
hr: {
|
|
93
|
-
|
|
75
|
+
backgroundColor: string;
|
|
76
|
+
height: number;
|
|
94
77
|
};
|
|
95
78
|
table: {
|
|
96
79
|
borderColor: string;
|
|
@@ -103,91 +86,74 @@ export declare const createOutgoingStyles: (colors: ColorTokens) => Readonly<{
|
|
|
103
86
|
color: string;
|
|
104
87
|
};
|
|
105
88
|
em: {
|
|
106
|
-
fontStyle: "italic";
|
|
107
|
-
fontSize: number;
|
|
108
|
-
lineHeight: number;
|
|
109
89
|
color: string;
|
|
90
|
+
fontStyle: "italic";
|
|
110
91
|
};
|
|
111
92
|
strong: {
|
|
112
|
-
fontWeight: "bold";
|
|
113
|
-
fontSize: number;
|
|
114
|
-
lineHeight: number;
|
|
115
93
|
color: string;
|
|
94
|
+
fontWeight: "bold";
|
|
116
95
|
};
|
|
117
96
|
strikethrough: {
|
|
118
|
-
textDecorationLine: "line-through";
|
|
119
|
-
fontSize: number;
|
|
120
|
-
lineHeight: number;
|
|
121
97
|
color: string;
|
|
98
|
+
textDecorationLine: "line-through";
|
|
122
99
|
};
|
|
123
100
|
link: {
|
|
124
101
|
color: string;
|
|
125
102
|
textDecorationLine: "underline";
|
|
126
|
-
fontSize: number;
|
|
127
|
-
lineHeight: number;
|
|
128
103
|
};
|
|
129
104
|
li: {
|
|
130
|
-
fontSize: number;
|
|
131
|
-
lineHeight: number;
|
|
132
105
|
color: string;
|
|
106
|
+
fontSize: number;
|
|
133
107
|
};
|
|
134
108
|
codespan: {
|
|
135
|
-
fontFamily: string;
|
|
136
109
|
color: string;
|
|
137
110
|
backgroundColor: string;
|
|
138
|
-
fontSize: number;
|
|
139
|
-
lineHeight: number;
|
|
140
111
|
};
|
|
141
112
|
h1: {
|
|
142
113
|
fontSize: number;
|
|
143
|
-
|
|
114
|
+
fontWeight: "700";
|
|
144
115
|
color: string;
|
|
145
|
-
borderBottomColor: string;
|
|
146
116
|
};
|
|
147
117
|
h2: {
|
|
148
118
|
fontSize: number;
|
|
149
|
-
|
|
119
|
+
fontWeight: "700";
|
|
150
120
|
color: string;
|
|
151
|
-
borderBottomColor: string;
|
|
152
121
|
};
|
|
153
122
|
h3: {
|
|
154
123
|
fontSize: number;
|
|
155
|
-
|
|
124
|
+
fontWeight: "600";
|
|
156
125
|
color: string;
|
|
157
126
|
};
|
|
158
127
|
h4: {
|
|
159
128
|
fontSize: number;
|
|
160
|
-
|
|
129
|
+
fontWeight: "600";
|
|
161
130
|
color: string;
|
|
162
131
|
};
|
|
163
132
|
h5: {
|
|
164
133
|
fontSize: number;
|
|
165
|
-
|
|
134
|
+
fontWeight: "600";
|
|
166
135
|
color: string;
|
|
167
136
|
};
|
|
168
137
|
h6: {
|
|
169
138
|
fontSize: number;
|
|
170
|
-
|
|
139
|
+
fontWeight: "600";
|
|
171
140
|
color: string;
|
|
172
141
|
};
|
|
173
|
-
paragraph: {
|
|
174
|
-
paddingVertical: number;
|
|
175
|
-
};
|
|
176
142
|
code: {
|
|
177
|
-
padding: number;
|
|
178
143
|
backgroundColor: string;
|
|
144
|
+
borderColor: string;
|
|
145
|
+
borderWidth: number;
|
|
179
146
|
};
|
|
180
147
|
codeText: {
|
|
181
148
|
color: string;
|
|
182
|
-
fontFamily: string;
|
|
183
|
-
fontSize: number;
|
|
184
|
-
lineHeight: number;
|
|
185
149
|
};
|
|
186
150
|
blockquote: {
|
|
187
|
-
|
|
151
|
+
borderColor: string;
|
|
152
|
+
borderLeftWidth: number;
|
|
188
153
|
};
|
|
189
154
|
hr: {
|
|
190
|
-
|
|
155
|
+
backgroundColor: string;
|
|
156
|
+
height: number;
|
|
191
157
|
};
|
|
192
158
|
table: {
|
|
193
159
|
borderColor: string;
|
|
@@ -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;
|
|
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;AAyC7D,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACb,CAAC;AACpC,eAAO,MAAM,oBAAoB,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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,+
|
|
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,+BA8K1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageWaiting.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/MessageWaiting.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAS,CAAC;AAEnD,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,mBAAmB,+BAqD5D"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare const INTERACTIVE_CONTENT_SELECTOR = "button,a,input,textarea,select,[role=\"button\"],[role=\"link\"],[role=\"checkbox\"],[role=\"switch\"],[role=\"menuitem\"],[role=\"tab\"]";
|
|
2
|
+
export declare const MESSAGE_WAITING_DOT_DELAYS: readonly [0, 150, 300];
|
|
3
|
+
export declare const MESSAGE_WAITING_DOT_DURATION = 600;
|
|
4
|
+
export declare const MESSAGE_WAITING_DOT_MIN_OPACITY = 0.3;
|
|
2
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,8IACwF,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,8IACwF,CAAC;AAElI,eAAO,MAAM,0BAA0B,wBAAyB,CAAC;AACjE,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,+BAA+B,MAAM,CAAC"}
|
|
@@ -47,8 +47,46 @@ export declare const createStyles: (colors: ColorTokens) => Readonly<{
|
|
|
47
47
|
borderColor: string;
|
|
48
48
|
};
|
|
49
49
|
failed: {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
opacity: number;
|
|
51
|
+
};
|
|
52
|
+
failureRow: {
|
|
53
|
+
flexDirection: "row";
|
|
54
|
+
alignItems: "center";
|
|
55
|
+
alignSelf: "stretch";
|
|
56
|
+
gap: number;
|
|
57
|
+
};
|
|
58
|
+
failureContent: {
|
|
59
|
+
flexShrink: number;
|
|
60
|
+
};
|
|
61
|
+
failureAction: {
|
|
62
|
+
alignSelf: "center";
|
|
63
|
+
};
|
|
64
|
+
failureFullWidth: {
|
|
65
|
+
flex: number;
|
|
66
|
+
};
|
|
67
|
+
waitingBubble: {
|
|
68
|
+
width: number;
|
|
69
|
+
borderTopLeftRadius: number;
|
|
70
|
+
};
|
|
71
|
+
waitingRow: {
|
|
72
|
+
flexDirection: "row";
|
|
73
|
+
alignItems: "center";
|
|
74
|
+
gap: number;
|
|
75
|
+
};
|
|
76
|
+
waitingDots: {
|
|
77
|
+
flexDirection: "row";
|
|
78
|
+
gap: number;
|
|
79
|
+
};
|
|
80
|
+
waitingDot: {
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
|
+
borderRadius: number;
|
|
84
|
+
backgroundColor: string;
|
|
85
|
+
};
|
|
86
|
+
waitingLabel: {
|
|
87
|
+
fontSize: number;
|
|
88
|
+
color: string;
|
|
89
|
+
flexShrink: number;
|
|
52
90
|
};
|
|
53
91
|
text: {
|
|
54
92
|
fontSize: number;
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuE5C,CAAC"}
|
|
@@ -14,6 +14,8 @@ export interface MessageBaseProps {
|
|
|
14
14
|
header?: ReactNode;
|
|
15
15
|
footer?: ReactNode;
|
|
16
16
|
actions?: readonly ChatAction[];
|
|
17
|
+
/** 仅 failed 时在气泡旁显示的错误操作;不自动生成重试。 */
|
|
18
|
+
failureAction?: ChatAction;
|
|
17
19
|
onPress?(): void;
|
|
18
20
|
onLongPress?(): void;
|
|
19
21
|
style?: StyleProp<ViewStyle>;
|
|
@@ -41,4 +43,7 @@ export interface MessageCustomContent {
|
|
|
41
43
|
onLinkPress?: never;
|
|
42
44
|
}
|
|
43
45
|
export type MessageProps = MessageBaseProps & (MessagePlainContent | MessageMarkdownContent | MessageCustomContent);
|
|
46
|
+
export interface MessageWaitingProps {
|
|
47
|
+
label?: string;
|
|
48
|
+
}
|
|
44
49
|
//# sourceMappingURL=types.d.ts.map
|