@vinaverse/react-native 0.1.0-alpha.6 → 0.1.0-alpha.7
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/README.md +19 -11
- package/dist/ask.cjs +9 -5
- package/dist/ask.d.cts +14 -3
- package/dist/ask.d.ts +14 -3
- package/dist/ask.js +3 -3
- package/dist/chat.cjs +76 -73
- package/dist/chat.d.cts +16 -4
- package/dist/chat.d.ts +16 -4
- package/dist/chat.js +2 -3
- package/dist/{chunk-OWUKWVEZ.cjs → chunk-6QYDPGRS.cjs} +46 -2
- package/dist/chunk-6QYDPGRS.cjs.map +1 -0
- package/dist/{chunk-H2Y2YW2Q.cjs → chunk-AGZ7IH7E.cjs} +71 -72
- package/dist/chunk-AGZ7IH7E.cjs.map +1 -0
- package/dist/chunk-EFEXTVIT.js +88 -0
- package/dist/chunk-EFEXTVIT.js.map +1 -0
- package/dist/{chunk-SF6LJTVJ.js → chunk-HTUXHZ7X.js} +25 -30
- package/dist/chunk-HTUXHZ7X.js.map +1 -0
- package/dist/{chunk-OGPMGGYS.cjs → chunk-MG32E4JI.cjs} +20 -13
- package/dist/chunk-MG32E4JI.cjs.map +1 -0
- package/dist/{chunk-Y7P7DDHD.js → chunk-NJ6ARGZS.js} +12 -11
- package/dist/chunk-NJ6ARGZS.js.map +1 -0
- package/dist/{chunk-NJWRZ55G.js → chunk-POJP52GE.js} +16 -9
- package/dist/chunk-POJP52GE.js.map +1 -0
- package/dist/{chunk-643GOUTG.cjs → chunk-V6HHPE5K.cjs} +13 -12
- package/dist/chunk-V6HHPE5K.cjs.map +1 -0
- package/dist/index.cjs +86 -83
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -5
- package/dist/launcher.cjs +14 -11
- package/dist/launcher.d.cts +4 -3
- package/dist/launcher.d.ts +4 -3
- package/dist/launcher.js +3 -4
- package/package.json +4 -4
- package/dist/chunk-643GOUTG.cjs.map +0 -1
- package/dist/chunk-H2Y2YW2Q.cjs.map +0 -1
- package/dist/chunk-NJWRZ55G.js.map +0 -1
- package/dist/chunk-OGPMGGYS.cjs.map +0 -1
- package/dist/chunk-OWUKWVEZ.cjs.map +0 -1
- package/dist/chunk-PRXHS57U.js +0 -40
- package/dist/chunk-PRXHS57U.js.map +0 -1
- package/dist/chunk-PYPO6F7L.cjs +0 -44
- package/dist/chunk-PYPO6F7L.cjs.map +0 -1
- package/dist/chunk-SF6LJTVJ.js.map +0 -1
- package/dist/chunk-WKRCCPSN.js +0 -48
- package/dist/chunk-WKRCCPSN.js.map +0 -1
- package/dist/chunk-Y7P7DDHD.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,296 +1,299 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var chunkOWUKWVEZ_cjs = require('./chunk-OWUKWVEZ.cjs');
|
|
3
|
+
var chunkAGZ7IH7E_cjs = require('./chunk-AGZ7IH7E.cjs');
|
|
4
|
+
var chunkMG32E4JI_cjs = require('./chunk-MG32E4JI.cjs');
|
|
5
|
+
var chunkV6HHPE5K_cjs = require('./chunk-V6HHPE5K.cjs');
|
|
6
|
+
var chunk6QYDPGRS_cjs = require('./chunk-6QYDPGRS.cjs');
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
Object.defineProperty(exports, "ActivityLine", {
|
|
12
11
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkAGZ7IH7E_cjs.ActivityLine; }
|
|
14
13
|
});
|
|
15
14
|
Object.defineProperty(exports, "AgentChat", {
|
|
16
15
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkAGZ7IH7E_cjs.AgentChat; }
|
|
18
17
|
});
|
|
19
18
|
Object.defineProperty(exports, "AgentFooter", {
|
|
20
19
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkAGZ7IH7E_cjs.AgentFooter; }
|
|
22
21
|
});
|
|
23
22
|
Object.defineProperty(exports, "AgentRuntimeProvider", {
|
|
24
23
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkAGZ7IH7E_cjs.AgentRuntimeProvider; }
|
|
26
25
|
});
|
|
27
26
|
Object.defineProperty(exports, "Avatar", {
|
|
28
27
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkAGZ7IH7E_cjs.Avatar; }
|
|
30
29
|
});
|
|
31
30
|
Object.defineProperty(exports, "Button", {
|
|
32
31
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkAGZ7IH7E_cjs.Button; }
|
|
34
33
|
});
|
|
35
34
|
Object.defineProperty(exports, "CardActions", {
|
|
36
35
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkAGZ7IH7E_cjs.CardActions; }
|
|
38
37
|
});
|
|
39
38
|
Object.defineProperty(exports, "CardCarousel", {
|
|
40
39
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkAGZ7IH7E_cjs.CardCarousel; }
|
|
42
41
|
});
|
|
43
42
|
Object.defineProperty(exports, "CardFrame", {
|
|
44
43
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkAGZ7IH7E_cjs.CardFrame; }
|
|
46
45
|
});
|
|
47
46
|
Object.defineProperty(exports, "CardView", {
|
|
48
47
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkAGZ7IH7E_cjs.CardView; }
|
|
50
49
|
});
|
|
51
50
|
Object.defineProperty(exports, "ChatHeader", {
|
|
52
51
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkAGZ7IH7E_cjs.ChatHeader; }
|
|
54
53
|
});
|
|
55
54
|
Object.defineProperty(exports, "ChatSkeleton", {
|
|
56
55
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkAGZ7IH7E_cjs.ChatSkeleton; }
|
|
58
57
|
});
|
|
59
58
|
Object.defineProperty(exports, "Composer", {
|
|
60
59
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkAGZ7IH7E_cjs.Composer; }
|
|
62
61
|
});
|
|
63
62
|
Object.defineProperty(exports, "DefaultBubble", {
|
|
64
63
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultBubble; }
|
|
66
65
|
});
|
|
67
66
|
Object.defineProperty(exports, "DefaultComposer", {
|
|
68
67
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultComposer; }
|
|
70
69
|
});
|
|
71
70
|
Object.defineProperty(exports, "DefaultEnded", {
|
|
72
71
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultEnded; }
|
|
74
73
|
});
|
|
75
74
|
Object.defineProperty(exports, "DefaultHeader", {
|
|
76
75
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultHeader; }
|
|
78
77
|
});
|
|
79
78
|
Object.defineProperty(exports, "DefaultTurnFailed", {
|
|
80
79
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultTurnFailed; }
|
|
82
81
|
});
|
|
83
82
|
Object.defineProperty(exports, "DefaultUnavailable", {
|
|
84
83
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultUnavailable; }
|
|
86
85
|
});
|
|
87
86
|
Object.defineProperty(exports, "DefaultUnavailableScreen", {
|
|
88
87
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultUnavailableScreen; }
|
|
90
89
|
});
|
|
91
90
|
Object.defineProperty(exports, "DefaultUnreachable", {
|
|
92
91
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkAGZ7IH7E_cjs.DefaultUnreachable; }
|
|
94
93
|
});
|
|
95
94
|
Object.defineProperty(exports, "DisclosureBar", {
|
|
96
95
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkAGZ7IH7E_cjs.DisclosureBar; }
|
|
98
97
|
});
|
|
99
98
|
Object.defineProperty(exports, "FailureActionButton", {
|
|
100
99
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkAGZ7IH7E_cjs.FailureActionButton; }
|
|
102
101
|
});
|
|
103
102
|
Object.defineProperty(exports, "InfoCard", {
|
|
104
103
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkAGZ7IH7E_cjs.InfoCard; }
|
|
106
105
|
});
|
|
107
106
|
Object.defineProperty(exports, "LinksCard", {
|
|
108
107
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkAGZ7IH7E_cjs.LinksCard; }
|
|
110
109
|
});
|
|
111
110
|
Object.defineProperty(exports, "ListingCard", {
|
|
112
111
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkAGZ7IH7E_cjs.ListingCard; }
|
|
114
113
|
});
|
|
115
114
|
Object.defineProperty(exports, "MessageBubble", {
|
|
116
115
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkAGZ7IH7E_cjs.MessageBubble; }
|
|
118
117
|
});
|
|
119
118
|
Object.defineProperty(exports, "MessageList", {
|
|
120
119
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkAGZ7IH7E_cjs.MessageList; }
|
|
122
121
|
});
|
|
123
122
|
Object.defineProperty(exports, "NextStepCard", {
|
|
124
123
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkAGZ7IH7E_cjs.NextStepCard; }
|
|
126
125
|
});
|
|
127
126
|
Object.defineProperty(exports, "ProposalCard", {
|
|
128
127
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkAGZ7IH7E_cjs.ProposalCard; }
|
|
130
129
|
});
|
|
131
130
|
Object.defineProperty(exports, "QuestionCard", {
|
|
132
131
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkAGZ7IH7E_cjs.QuestionCard; }
|
|
134
133
|
});
|
|
135
134
|
Object.defineProperty(exports, "Row", {
|
|
136
135
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkAGZ7IH7E_cjs.Row; }
|
|
138
137
|
});
|
|
139
138
|
Object.defineProperty(exports, "StatusBanner", {
|
|
140
139
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkAGZ7IH7E_cjs.StatusBanner; }
|
|
142
141
|
});
|
|
143
142
|
Object.defineProperty(exports, "StreamingBubble", {
|
|
144
143
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkAGZ7IH7E_cjs.StreamingBubble; }
|
|
146
145
|
});
|
|
147
146
|
Object.defineProperty(exports, "SystemRow", {
|
|
148
147
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkAGZ7IH7E_cjs.SystemRow; }
|
|
150
149
|
});
|
|
151
150
|
Object.defineProperty(exports, "TimeSlotsCard", {
|
|
152
151
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkAGZ7IH7E_cjs.TimeSlotsCard; }
|
|
154
153
|
});
|
|
155
154
|
Object.defineProperty(exports, "VinaverseChat", {
|
|
156
155
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkAGZ7IH7E_cjs.VinaverseChat; }
|
|
158
157
|
});
|
|
159
158
|
Object.defineProperty(exports, "VinaverseChatProvider", {
|
|
160
159
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkAGZ7IH7E_cjs.VinaverseChatProvider; }
|
|
162
161
|
});
|
|
163
162
|
Object.defineProperty(exports, "Welcome", {
|
|
164
163
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkAGZ7IH7E_cjs.Welcome; }
|
|
166
165
|
});
|
|
167
166
|
Object.defineProperty(exports, "allowedImage", {
|
|
168
167
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkAGZ7IH7E_cjs.allowedImage; }
|
|
170
169
|
});
|
|
171
170
|
Object.defineProperty(exports, "answerText", {
|
|
172
171
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkAGZ7IH7E_cjs.answerText; }
|
|
174
173
|
});
|
|
175
174
|
Object.defineProperty(exports, "carousels", {
|
|
176
175
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkAGZ7IH7E_cjs.carousels; }
|
|
178
177
|
});
|
|
179
178
|
Object.defineProperty(exports, "defaultCard", {
|
|
180
179
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkAGZ7IH7E_cjs.defaultCard; }
|
|
182
181
|
});
|
|
183
182
|
Object.defineProperty(exports, "fieldText", {
|
|
184
183
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkAGZ7IH7E_cjs.fieldText; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "forgetGreeting", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkAGZ7IH7E_cjs.forgetGreeting; }
|
|
186
189
|
});
|
|
187
190
|
Object.defineProperty(exports, "greetedKey", {
|
|
188
191
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkAGZ7IH7E_cjs.greetedKey; }
|
|
190
193
|
});
|
|
191
194
|
Object.defineProperty(exports, "itemType", {
|
|
192
195
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkAGZ7IH7E_cjs.itemType; }
|
|
194
197
|
});
|
|
195
198
|
Object.defineProperty(exports, "monogram", {
|
|
196
199
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkAGZ7IH7E_cjs.monogram; }
|
|
198
201
|
});
|
|
199
202
|
Object.defineProperty(exports, "newestWholeReply", {
|
|
200
203
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkAGZ7IH7E_cjs.newestWholeReply; }
|
|
202
205
|
});
|
|
203
206
|
Object.defineProperty(exports, "ratingText", {
|
|
204
207
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkAGZ7IH7E_cjs.ratingText; }
|
|
206
209
|
});
|
|
207
210
|
Object.defineProperty(exports, "useAgentConversation", {
|
|
208
211
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentConversation; }
|
|
210
213
|
});
|
|
211
214
|
Object.defineProperty(exports, "useAgentFeatures", {
|
|
212
215
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentFeatures; }
|
|
214
217
|
});
|
|
215
218
|
Object.defineProperty(exports, "useAgentLauncher", {
|
|
216
219
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentLauncher; }
|
|
218
221
|
});
|
|
219
222
|
Object.defineProperty(exports, "useAgentName", {
|
|
220
223
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentName; }
|
|
222
225
|
});
|
|
223
226
|
Object.defineProperty(exports, "useAgentProfile", {
|
|
224
227
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentProfile; }
|
|
226
229
|
});
|
|
227
230
|
Object.defineProperty(exports, "useAgentRuntime", {
|
|
228
231
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentRuntime; }
|
|
230
233
|
});
|
|
231
234
|
Object.defineProperty(exports, "useAgentStatus", {
|
|
232
235
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkAGZ7IH7E_cjs.useAgentStatus; }
|
|
234
237
|
});
|
|
235
238
|
Object.defineProperty(exports, "useChat", {
|
|
236
239
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkAGZ7IH7E_cjs.useChat; }
|
|
238
241
|
});
|
|
239
242
|
Object.defineProperty(exports, "AgentLauncher", {
|
|
240
243
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkMG32E4JI_cjs.AgentLauncher; }
|
|
242
245
|
});
|
|
243
246
|
Object.defineProperty(exports, "LAUNCHER_SIZE", {
|
|
244
247
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkMG32E4JI_cjs.LAUNCHER_SIZE; }
|
|
246
249
|
});
|
|
247
250
|
Object.defineProperty(exports, "LauncherButton", {
|
|
248
251
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherButton; }
|
|
250
253
|
});
|
|
251
254
|
Object.defineProperty(exports, "LauncherEntrance", {
|
|
252
255
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherEntrance; }
|
|
254
257
|
});
|
|
255
258
|
Object.defineProperty(exports, "LauncherGreeting", {
|
|
256
259
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherGreeting; }
|
|
258
261
|
});
|
|
259
262
|
Object.defineProperty(exports, "useKeyboardShown", {
|
|
260
263
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkMG32E4JI_cjs.useKeyboardShown; }
|
|
262
265
|
});
|
|
263
|
-
Object.defineProperty(exports, "
|
|
266
|
+
Object.defineProperty(exports, "AskAboutRow", {
|
|
264
267
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkV6HHPE5K_cjs.AskAboutRow; }
|
|
266
269
|
});
|
|
267
|
-
Object.defineProperty(exports, "
|
|
270
|
+
Object.defineProperty(exports, "ThemeProvider", {
|
|
268
271
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunk6QYDPGRS_cjs.ThemeProvider; }
|
|
270
273
|
});
|
|
271
|
-
Object.defineProperty(exports, "
|
|
274
|
+
Object.defineProperty(exports, "announce", {
|
|
272
275
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunk6QYDPGRS_cjs.announce; }
|
|
274
277
|
});
|
|
275
|
-
Object.defineProperty(exports, "
|
|
278
|
+
Object.defineProperty(exports, "createTheme", {
|
|
276
279
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunk6QYDPGRS_cjs.createTheme; }
|
|
278
281
|
});
|
|
279
|
-
Object.defineProperty(exports, "
|
|
282
|
+
Object.defineProperty(exports, "themeProblems", {
|
|
280
283
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunk6QYDPGRS_cjs.themeProblems; }
|
|
282
285
|
});
|
|
283
|
-
Object.defineProperty(exports, "
|
|
286
|
+
Object.defineProperty(exports, "useNativeLifecycle", {
|
|
284
287
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunk6QYDPGRS_cjs.useNativeLifecycle; }
|
|
286
289
|
});
|
|
287
|
-
Object.defineProperty(exports, "
|
|
290
|
+
Object.defineProperty(exports, "useReducedMotion", {
|
|
288
291
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunk6QYDPGRS_cjs.useReducedMotion; }
|
|
290
293
|
});
|
|
291
294
|
Object.defineProperty(exports, "useTheme", {
|
|
292
295
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunk6QYDPGRS_cjs.useTheme; }
|
|
294
297
|
});
|
|
295
298
|
//# sourceMappingURL=index.cjs.map
|
|
296
299
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
1
|
+
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
2
2
|
export { ActivityLine, AgentChat, AgentChatProps, AgentChatSlots, AgentEndedProps, AgentFooter, AgentFooterProps, AgentUnavailableScreenProps, AgentUnreachableProps, Avatar, Button, ButtonProps, CardActions, CardCarousel, CardFrame, CardGroupProps, CardProps, CardView, ChatHandlers, ChatHeader, ChatSkeleton, ChatSlots, Chip, Composer, ComposerProps, DefaultBubble, DefaultComposer, DefaultEnded, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, DisclosureBar, EmptyStateProps, FailureAction, FailureActionButton, FailureProps, FailureState, HeaderProps, ImagePolicy, InfoCard, LifecycleTarget, LinksCard, ListProps, ListingCard, MessageBubble, MessageBubbleProps, MessageList, NextStepCard, ProposalCard, ProposalDecision, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, TimeSlotsCard, VinaverseChat, VinaverseChatProps, VinaverseChatProvider, Welcome, allowedImage, announce, answerText, carousels, defaultCard, fieldText, itemType, monogram, newestWholeReply, ratingText, useChat, useNativeLifecycle, useReducedMotion } from './chat.cjs';
|
|
3
3
|
export { C as ColorSchemeSetting, T as Theme, a as ThemeOverrides, b as ThemeProvider, c as createTheme, t as themeProblems, u as useTheme } from './theme-BhiEGv64.cjs';
|
|
4
4
|
export { AgentLauncher, AgentLauncherProps, LAUNCHER_SIZE, LauncherAppearance, LauncherButton, LauncherButtonProps, LauncherContext, LauncherEntrance, LauncherEntranceProps, LauncherGreeting, LauncherGreetingProps, LauncherPlacement, useKeyboardShown } from './launcher.cjs';
|
|
5
|
-
export { AskAboutRow, AskAboutRowProps } from './ask.cjs';
|
|
5
|
+
export { AskAboutRow, AskAboutRowAppearance, AskAboutRowProps } from './ask.cjs';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@vinaverse/client/conversation';
|
|
8
8
|
import '@vinaverse/client/agent';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
1
|
+
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
2
2
|
export { ActivityLine, AgentChat, AgentChatProps, AgentChatSlots, AgentEndedProps, AgentFooter, AgentFooterProps, AgentUnavailableScreenProps, AgentUnreachableProps, Avatar, Button, ButtonProps, CardActions, CardCarousel, CardFrame, CardGroupProps, CardProps, CardView, ChatHandlers, ChatHeader, ChatSkeleton, ChatSlots, Chip, Composer, ComposerProps, DefaultBubble, DefaultComposer, DefaultEnded, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, DisclosureBar, EmptyStateProps, FailureAction, FailureActionButton, FailureProps, FailureState, HeaderProps, ImagePolicy, InfoCard, LifecycleTarget, LinksCard, ListProps, ListingCard, MessageBubble, MessageBubbleProps, MessageList, NextStepCard, ProposalCard, ProposalDecision, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, TimeSlotsCard, VinaverseChat, VinaverseChatProps, VinaverseChatProvider, Welcome, allowedImage, announce, answerText, carousels, defaultCard, fieldText, itemType, monogram, newestWholeReply, ratingText, useChat, useNativeLifecycle, useReducedMotion } from './chat.js';
|
|
3
3
|
export { C as ColorSchemeSetting, T as Theme, a as ThemeOverrides, b as ThemeProvider, c as createTheme, t as themeProblems, u as useTheme } from './theme-BhiEGv64.js';
|
|
4
4
|
export { AgentLauncher, AgentLauncherProps, LAUNCHER_SIZE, LauncherAppearance, LauncherButton, LauncherButtonProps, LauncherContext, LauncherEntrance, LauncherEntranceProps, LauncherGreeting, LauncherGreetingProps, LauncherPlacement, useKeyboardShown } from './launcher.js';
|
|
5
|
-
export { AskAboutRow, AskAboutRowProps } from './ask.js';
|
|
5
|
+
export { AskAboutRow, AskAboutRowAppearance, AskAboutRowProps } from './ask.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@vinaverse/client/conversation';
|
|
8
8
|
import '@vinaverse/client/agent';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { ActivityLine, AgentChat, AgentFooter, AgentRuntimeProvider, Avatar, Button, CardActions, CardCarousel, CardFrame, CardView, ChatHeader, ChatSkeleton, Composer, DefaultBubble, DefaultComposer, DefaultEnded, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, DisclosureBar, FailureActionButton, InfoCard, LinksCard, ListingCard, MessageBubble, MessageList, NextStepCard, ProposalCard, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, TimeSlotsCard, VinaverseChat, VinaverseChatProvider, Welcome, allowedImage, answerText, carousels, defaultCard, fieldText, greetedKey, itemType, monogram, newestWholeReply, ratingText, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus, useChat } from './chunk-
|
|
2
|
-
export { AgentLauncher, LAUNCHER_SIZE, LauncherButton, LauncherEntrance, LauncherGreeting, useKeyboardShown } from './chunk-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { ThemeProvider, createTheme, themeProblems, useTheme } from './chunk-WKRCCPSN.js';
|
|
1
|
+
export { ActivityLine, AgentChat, AgentFooter, AgentRuntimeProvider, Avatar, Button, CardActions, CardCarousel, CardFrame, CardView, ChatHeader, ChatSkeleton, Composer, DefaultBubble, DefaultComposer, DefaultEnded, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, DisclosureBar, FailureActionButton, InfoCard, LinksCard, ListingCard, MessageBubble, MessageList, NextStepCard, ProposalCard, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, TimeSlotsCard, VinaverseChat, VinaverseChatProvider, Welcome, allowedImage, answerText, carousels, defaultCard, fieldText, forgetGreeting, greetedKey, itemType, monogram, newestWholeReply, ratingText, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus, useChat } from './chunk-HTUXHZ7X.js';
|
|
2
|
+
export { AgentLauncher, LAUNCHER_SIZE, LauncherButton, LauncherEntrance, LauncherGreeting, useKeyboardShown } from './chunk-POJP52GE.js';
|
|
3
|
+
export { AskAboutRow } from './chunk-NJ6ARGZS.js';
|
|
4
|
+
export { ThemeProvider, announce, createTheme, themeProblems, useNativeLifecycle, useReducedMotion, useTheme } from './chunk-EFEXTVIT.js';
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
package/dist/launcher.cjs
CHANGED
|
@@ -1,48 +1,51 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var chunkOWUKWVEZ_cjs = require('./chunk-OWUKWVEZ.cjs');
|
|
3
|
+
var chunkMG32E4JI_cjs = require('./chunk-MG32E4JI.cjs');
|
|
4
|
+
var chunk6QYDPGRS_cjs = require('./chunk-6QYDPGRS.cjs');
|
|
6
5
|
var agent = require('@vinaverse/react/agent');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
Object.defineProperty(exports, "AgentLauncher", {
|
|
11
10
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkMG32E4JI_cjs.AgentLauncher; }
|
|
13
12
|
});
|
|
14
13
|
Object.defineProperty(exports, "LAUNCHER_SIZE", {
|
|
15
14
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkMG32E4JI_cjs.LAUNCHER_SIZE; }
|
|
17
16
|
});
|
|
18
17
|
Object.defineProperty(exports, "LauncherButton", {
|
|
19
18
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherButton; }
|
|
21
20
|
});
|
|
22
21
|
Object.defineProperty(exports, "LauncherEntrance", {
|
|
23
22
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherEntrance; }
|
|
25
24
|
});
|
|
26
25
|
Object.defineProperty(exports, "LauncherGreeting", {
|
|
27
26
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherGreeting; }
|
|
29
28
|
});
|
|
30
29
|
Object.defineProperty(exports, "useKeyboardShown", {
|
|
31
30
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkMG32E4JI_cjs.useKeyboardShown; }
|
|
33
32
|
});
|
|
34
33
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
35
34
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk6QYDPGRS_cjs.ThemeProvider; }
|
|
37
36
|
});
|
|
38
37
|
Object.defineProperty(exports, "useTheme", {
|
|
39
38
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk6QYDPGRS_cjs.useTheme; }
|
|
41
40
|
});
|
|
42
41
|
Object.defineProperty(exports, "AgentRuntimeProvider", {
|
|
43
42
|
enumerable: true,
|
|
44
43
|
get: function () { return agent.AgentRuntimeProvider; }
|
|
45
44
|
});
|
|
45
|
+
Object.defineProperty(exports, "forgetGreeting", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return agent.forgetGreeting; }
|
|
48
|
+
});
|
|
46
49
|
Object.defineProperty(exports, "greetedKey", {
|
|
47
50
|
enumerable: true,
|
|
48
51
|
get: function () { return agent.greetedKey; }
|
package/dist/launcher.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GreetingStorage } from '@vinaverse/react/agent';
|
|
2
|
-
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
2
|
+
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
3
3
|
import { CopyOverrides } from '@vinaverse/react';
|
|
4
4
|
import { ComponentType, ReactNode } from 'react';
|
|
5
5
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
@@ -61,10 +61,11 @@ interface LauncherEntranceProps {
|
|
|
61
61
|
type Slot<P> = ComponentType<P & {
|
|
62
62
|
readonly Default: ComponentType<P>;
|
|
63
63
|
}>;
|
|
64
|
-
/** Where the person opened the agent from: the app's route, and the
|
|
64
|
+
/** Where the person opened the agent from: the app's route, the mode, and `entryPoint` to give the chat. */
|
|
65
65
|
interface LauncherContext {
|
|
66
66
|
readonly route: string | null;
|
|
67
67
|
readonly mode: string;
|
|
68
|
+
readonly entryPoint: 'launcher';
|
|
68
69
|
}
|
|
69
70
|
interface AgentLauncherProps {
|
|
70
71
|
readonly subject: string | null;
|
|
@@ -109,7 +110,7 @@ interface AgentLauncherProps {
|
|
|
109
110
|
readonly colorScheme?: ColorSchemeSetting;
|
|
110
111
|
}
|
|
111
112
|
declare function AgentLauncher(props: AgentLauncherProps): ReactNode;
|
|
112
|
-
/** Whether the keyboard is up. */
|
|
113
|
+
/** Whether the keyboard is up: on iOS from the moment it starts to rise or fall, on Android (no `Will` events) once it has. */
|
|
113
114
|
declare function useKeyboardShown(): boolean;
|
|
114
115
|
/** The kit's entrance: a short fade and scale up; none when the person asked for reduced motion. */
|
|
115
116
|
declare function LauncherEntrance(props: LauncherEntranceProps): ReactNode;
|
package/dist/launcher.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GreetingStorage } from '@vinaverse/react/agent';
|
|
2
|
-
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
2
|
+
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
3
3
|
import { CopyOverrides } from '@vinaverse/react';
|
|
4
4
|
import { ComponentType, ReactNode } from 'react';
|
|
5
5
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
@@ -61,10 +61,11 @@ interface LauncherEntranceProps {
|
|
|
61
61
|
type Slot<P> = ComponentType<P & {
|
|
62
62
|
readonly Default: ComponentType<P>;
|
|
63
63
|
}>;
|
|
64
|
-
/** Where the person opened the agent from: the app's route, and the
|
|
64
|
+
/** Where the person opened the agent from: the app's route, the mode, and `entryPoint` to give the chat. */
|
|
65
65
|
interface LauncherContext {
|
|
66
66
|
readonly route: string | null;
|
|
67
67
|
readonly mode: string;
|
|
68
|
+
readonly entryPoint: 'launcher';
|
|
68
69
|
}
|
|
69
70
|
interface AgentLauncherProps {
|
|
70
71
|
readonly subject: string | null;
|
|
@@ -109,7 +110,7 @@ interface AgentLauncherProps {
|
|
|
109
110
|
readonly colorScheme?: ColorSchemeSetting;
|
|
110
111
|
}
|
|
111
112
|
declare function AgentLauncher(props: AgentLauncherProps): ReactNode;
|
|
112
|
-
/** Whether the keyboard is up. */
|
|
113
|
+
/** Whether the keyboard is up: on iOS from the moment it starts to rise or fall, on Android (no `Will` events) once it has. */
|
|
113
114
|
declare function useKeyboardShown(): boolean;
|
|
114
115
|
/** The kit's entrance: a short fade and scale up; none when the person asked for reduced motion. */
|
|
115
116
|
declare function LauncherEntrance(props: LauncherEntranceProps): ReactNode;
|
package/dist/launcher.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { AgentLauncher, LAUNCHER_SIZE, LauncherButton, LauncherEntrance, LauncherGreeting, useKeyboardShown } from './chunk-
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export { AgentRuntimeProvider, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
1
|
+
export { AgentLauncher, LAUNCHER_SIZE, LauncherButton, LauncherEntrance, LauncherGreeting, useKeyboardShown } from './chunk-POJP52GE.js';
|
|
2
|
+
export { ThemeProvider, useTheme } from './chunk-EFEXTVIT.js';
|
|
3
|
+
export { AgentRuntimeProvider, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
5
4
|
//# sourceMappingURL=launcher.js.map
|
|
6
5
|
//# sourceMappingURL=launcher.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinaverse/react-native",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"description": "Vinaverse for React Native: a ready, themeable agent conversation for Expo and bare apps, built on the conversation store; every part replaceable, the AI disclosure never.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Vinaverse, Inc.",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"dist"
|
|
83
83
|
],
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@vinaverse/client": "0.1.0-alpha.
|
|
86
|
-
"@vinaverse/
|
|
87
|
-
"@vinaverse/
|
|
85
|
+
"@vinaverse/client": "0.1.0-alpha.7",
|
|
86
|
+
"@vinaverse/react": "0.1.0-alpha.7",
|
|
87
|
+
"@vinaverse/tokens": "0.1.0-alpha.7"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@shopify/flash-list": ">=2.3.2 <3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/AskAboutRow.tsx"],"names":["jsx","CopyProvider","ThemeProvider","useCopy","useTheme","useAgentName","useAgentFeatures","useState","jsxs","Pressable","View","Text"],"mappings":"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","file":"chunk-643GOUTG.cjs","sourcesContent":["// \"Ask the agent about this\" on one of the app's own pages (a professional's, a space's, a booking's): a row that opens\n// the agent told the place. It shows only when the agent is available, decided once per visit, so it never appears or\n// disappears while the person reads the page.\nimport { type CopyOverrides, CopyProvider, useCopy } from '@vinaverse/react';\nimport { useAgentFeatures, useAgentName } from '@vinaverse/react/agent';\nimport { type ComponentType, type ReactNode, useState } from 'react';\nimport { Pressable, Text, View } from 'react-native';\nimport {\n type ColorSchemeSetting,\n type ThemeOverrides,\n ThemeProvider,\n useTheme,\n} from '../theme.js';\n\nexport interface AskAboutRowProps {\n /** \"Ask Example Agent about Riley Sample\". */\n readonly title: string;\n readonly body?: string;\n readonly onPress: () => void;\n /** The app's brand mark at the row's start; default the agent name's first letter. */\n readonly Mark?: ComponentType<{\n readonly size: number;\n readonly color: string;\n }>;\n readonly locale?: string;\n readonly copy?: CopyOverrides;\n readonly theme?: ThemeOverrides;\n readonly colorScheme?: ColorSchemeSetting;\n}\n\nexport function AskAboutRow(props: AskAboutRowProps): ReactNode {\n return (\n <CopyProvider locale={props.locale} copy={props.copy}>\n <ThemeProvider theme={props.theme} colorScheme={props.colorScheme}>\n <Row {...props} />\n </ThemeProvider>\n </CopyProvider>\n );\n}\n\nfunction Row(props: AskAboutRowProps): ReactNode {\n const { t } = useCopy();\n const { colors, radius, space, font } = useTheme();\n const name = useAgentName(t('agentFallbackName'));\n const { available } = useAgentFeatures();\n // Decided once per visit: the first answer stands until the page goes.\n const [shows, setShows] = useState<boolean | null>(null);\n if (shows === null && available) setShows(true);\n if (!shows) return null;\n const { Mark } = props;\n return (\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={\n props.body ? `${props.title}. ${props.body}` : props.title\n }\n onPress={props.onPress}\n style={({ pressed }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n gap: space.md,\n padding: space.md,\n borderRadius: radius.lg,\n backgroundColor: colors.surface,\n opacity: pressed ? 0.85 : 1,\n })}\n testID=\"vinaverse-ask-about\"\n >\n <View\n style={{\n width: 36,\n height: 36,\n borderRadius: 18,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: colors.primary,\n }}\n >\n {Mark ? (\n <Mark size={22} color={colors.onPrimary} />\n ) : (\n <Text style={{ color: colors.onPrimary, fontWeight: '600' }}>\n {(name.trim()[0] ?? '?').toUpperCase()}\n </Text>\n )}\n </View>\n <View style={{ flex: 1, gap: space.xxs }}>\n <Text\n style={{\n color: colors.text,\n fontSize: font.size.md,\n fontWeight: '600',\n }}\n >\n {props.title}\n </Text>\n {props.body ? (\n <Text style={{ color: colors.textMuted, fontSize: font.size.sm }}>\n {props.body}\n </Text>\n ) : null}\n </View>\n <Text style={{ color: colors.textMuted, fontSize: font.size.lg }}>›</Text>\n </Pressable>\n );\n}\n"]}
|