@vinaverse/react-native 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +122 -0
- package/dist/ask.cjs +58 -0
- package/dist/ask.cjs.map +1 -0
- package/dist/ask.d.cts +25 -0
- package/dist/ask.d.ts +25 -0
- package/dist/ask.js +5 -0
- package/dist/ask.js.map +1 -0
- package/dist/chat.cjs +266 -0
- package/dist/chat.cjs.map +1 -0
- package/dist/chat.d.cts +449 -0
- package/dist/chat.d.ts +449 -0
- package/dist/chat.js +5 -0
- package/dist/chat.js.map +1 -0
- package/dist/chunk-643GOUTG.cjs +75 -0
- package/dist/chunk-643GOUTG.cjs.map +1 -0
- package/dist/chunk-H2Y2YW2Q.cjs +2651 -0
- package/dist/chunk-H2Y2YW2Q.cjs.map +1 -0
- package/dist/chunk-NJWRZ55G.js +254 -0
- package/dist/chunk-NJWRZ55G.js.map +1 -0
- package/dist/chunk-OGPMGGYS.cjs +261 -0
- package/dist/chunk-OGPMGGYS.cjs.map +1 -0
- package/dist/chunk-OWUKWVEZ.cjs +53 -0
- package/dist/chunk-OWUKWVEZ.cjs.map +1 -0
- package/dist/chunk-PRXHS57U.js +40 -0
- package/dist/chunk-PRXHS57U.js.map +1 -0
- package/dist/chunk-PYPO6F7L.cjs +44 -0
- package/dist/chunk-PYPO6F7L.cjs.map +1 -0
- package/dist/chunk-SF6LJTVJ.js +2567 -0
- package/dist/chunk-SF6LJTVJ.js.map +1 -0
- package/dist/chunk-WKRCCPSN.js +48 -0
- package/dist/chunk-WKRCCPSN.js.map +1 -0
- package/dist/chunk-Y7P7DDHD.js +73 -0
- package/dist/chunk-Y7P7DDHD.js.map +1 -0
- package/dist/index.cjs +290 -2299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -360
- package/dist/index.d.ts +11 -360
- package/dist/index.js +5 -2254
- package/dist/index.js.map +1 -1
- package/dist/launcher.cjs +79 -0
- package/dist/launcher.cjs.map +1 -0
- package/dist/launcher.d.cts +121 -0
- package/dist/launcher.d.ts +121 -0
- package/dist/launcher.js +6 -0
- package/dist/launcher.js.map +1 -0
- package/dist/theme-BhiEGv64.d.cts +35 -0
- package/dist/theme-BhiEGv64.d.ts +35 -0
- package/package.json +114 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,360 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly takeoverBy: string | null;
|
|
13
|
-
readonly Default: ComponentType<Omit<HeaderProps, 'Default'>>;
|
|
14
|
-
}
|
|
15
|
-
interface MessageBubbleProps {
|
|
16
|
-
readonly item: MessageItem;
|
|
17
|
-
/** The text to draw: the message's, or the streamed text so far. */
|
|
18
|
-
readonly text: string;
|
|
19
|
-
readonly Default: ComponentType<Omit<MessageBubbleProps, 'Default'>>;
|
|
20
|
-
}
|
|
21
|
-
interface ComposerProps {
|
|
22
|
-
readonly placeholder: string;
|
|
23
|
-
readonly responding: boolean;
|
|
24
|
-
readonly onSend: (text: string) => void;
|
|
25
|
-
readonly onStop: () => void;
|
|
26
|
-
readonly Default: ComponentType<Omit<ComposerProps, 'Default'>>;
|
|
27
|
-
}
|
|
28
|
-
interface EmptyStateProps {
|
|
29
|
-
readonly agentName: string;
|
|
30
|
-
/** The tenant's greeting and chips for the session's mode (`Session.welcome`), or null. */
|
|
31
|
-
readonly welcome: Welcome$1 | null;
|
|
32
|
-
/** Sends a chip's `message` as the person's own text. */
|
|
33
|
-
readonly onChip: (message: string) => void;
|
|
34
|
-
}
|
|
35
|
-
/** `components.CardGroup`: the cards one turn drew together with `group.layout: carousel`, in order. */
|
|
36
|
-
interface CardGroupProps {
|
|
37
|
-
readonly items: readonly CardItem[];
|
|
38
|
-
}
|
|
39
|
-
/** The props the kit gives its list: FlashList's, so FlashList or LegendList take them as they are. */
|
|
40
|
-
interface ListProps {
|
|
41
|
-
readonly data: readonly TimelineItem[];
|
|
42
|
-
readonly renderItem: (info: {
|
|
43
|
-
item: TimelineItem;
|
|
44
|
-
index: number;
|
|
45
|
-
}) => ReactElement | null;
|
|
46
|
-
readonly keyExtractor: (item: TimelineItem) => string;
|
|
47
|
-
readonly getItemType: (item: TimelineItem) => string;
|
|
48
|
-
readonly maintainVisibleContentPosition: {
|
|
49
|
-
readonly startRenderingFromBottom: boolean;
|
|
50
|
-
readonly autoscrollToBottomThreshold: number;
|
|
51
|
-
readonly animateAutoScrollToBottom: boolean;
|
|
52
|
-
};
|
|
53
|
-
readonly ListFooterComponent: ReactElement | null;
|
|
54
|
-
readonly ListEmptyComponent: ReactElement | null;
|
|
55
|
-
readonly keyboardShouldPersistTaps: 'handled';
|
|
56
|
-
readonly contentContainerStyle: object;
|
|
57
|
-
}
|
|
58
|
-
/** A failure the person needs a way out of: a turn that failed before any reply, or no session to talk to. */
|
|
59
|
-
interface FailureState {
|
|
60
|
-
/** `turn_failed`: a turn failed before any of its reply; `unavailable`: the backend gave no session, or none it could use. */
|
|
61
|
-
readonly kind: 'turn_failed' | 'unavailable';
|
|
62
|
-
/** Why: the turn's error `code` (`internal`, `timeout`, …), or the conversation's status (`unavailable`, `unauthorized`). */
|
|
63
|
-
readonly reason: string | null;
|
|
64
|
-
/** Try again, when it can be: the person's text again for a turn the server allows to retry, a new session otherwise. */
|
|
65
|
-
readonly retry: (() => void) | undefined;
|
|
66
|
-
/** The conversation, once a session named it: for your support records. */
|
|
67
|
-
readonly conversationId: string | null;
|
|
68
|
-
}
|
|
69
|
-
/** A slot for a failure (`components.Error`, `components.Unavailable`): the state, and the kit's own part to wrap. */
|
|
70
|
-
interface FailureProps {
|
|
71
|
-
readonly state: FailureState;
|
|
72
|
-
readonly Default: ComponentType<{
|
|
73
|
-
readonly state: FailureState;
|
|
74
|
-
}>;
|
|
75
|
-
}
|
|
76
|
-
/** One action on every failure, drawn as a button by the kit's own parts: a person is always the way out. */
|
|
77
|
-
interface FailureAction {
|
|
78
|
-
/** Default: the copy's `talkToPerson` ("Talk to a person"), in the person's language. */
|
|
79
|
-
readonly label?: string;
|
|
80
|
-
readonly onPress: (state: FailureState) => void;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
declare function CardCarousel(props: CardGroupProps): react.JSX.Element;
|
|
84
|
-
|
|
85
|
-
declare function CardFrame(props: {
|
|
86
|
-
readonly label: string;
|
|
87
|
-
readonly restored?: boolean;
|
|
88
|
-
readonly children?: ReactNode;
|
|
89
|
-
readonly testID?: string;
|
|
90
|
-
}): react.JSX.Element;
|
|
91
|
-
/** A rating in millionths as the locale writes it, one decimal: 4.8, or 4,8 in Spanish and Portuguese. */
|
|
92
|
-
declare function ratingText(valuePpm: number, locale: string | undefined): string;
|
|
93
|
-
|
|
94
|
-
interface CardProps {
|
|
95
|
-
readonly card: HeldCard;
|
|
96
|
-
/** A proposal being decided: draw its buttons busy. */
|
|
97
|
-
readonly busy: boolean;
|
|
98
|
-
/** Restored after a restart: draw it as it was, taking no answer or action. */
|
|
99
|
-
readonly restored: boolean;
|
|
100
|
-
/** The kit's own renderer for this kind, to wrap rather than rewrite. */
|
|
101
|
-
readonly Default: ComponentType<Omit<CardProps, 'Default'>>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** The kit's own renderer for a kind. */
|
|
105
|
-
declare function defaultCard(kind: string): ComponentType<Omit<CardProps, 'Default'>>;
|
|
106
|
-
declare const CardView: react.NamedExoticComponent<{
|
|
107
|
-
readonly item: CardItem;
|
|
108
|
-
}>;
|
|
109
|
-
|
|
110
|
-
declare function InfoCard(props: Omit<CardProps, 'Default'>): react.JSX.Element;
|
|
111
|
-
/** A card's actions: a link that passes the deep-link rule opens the tenant's page, any other goes to the session. */
|
|
112
|
-
declare function CardActions(props: Omit<CardProps, 'Default'>): react.JSX.Element | null;
|
|
113
|
-
|
|
114
|
-
declare function LinksCard(props: Omit<CardProps, 'Default'>): react.JSX.Element;
|
|
115
|
-
|
|
116
|
-
declare function ListingCard(props: Omit<CardProps, 'Default'>): react.JSX.Element;
|
|
117
|
-
/** The first letters of the first two words: "Bell's Barber Lounge" is "BB". */
|
|
118
|
-
declare function monogram(title: string): string;
|
|
119
|
-
|
|
120
|
-
declare function NextStepCard(props: Omit<CardProps, 'Default'>): react.JSX.Element;
|
|
121
|
-
|
|
122
|
-
/** A field's value as text, by its type (`text`, `list`, `time_range`, `address`, `money_cents`). */
|
|
123
|
-
declare function fieldText(type: string, value: unknown, locale: string | undefined, timeZone: string | undefined): string;
|
|
124
|
-
declare function ProposalCard(props: Omit<CardProps, 'Default'>): react.JSX.Element | null;
|
|
125
|
-
|
|
126
|
-
declare function QuestionCard(props: Omit<CardProps, 'Default'>): react.JSX.Element | null;
|
|
127
|
-
/** A recorded answer, in words. */
|
|
128
|
-
declare function answerText(question: Question, locale: string | undefined, otherLabel: string): string | null;
|
|
129
|
-
|
|
130
|
-
declare function TimeSlotsCard(props: Omit<CardProps, 'Default'>): react.JSX.Element;
|
|
131
|
-
|
|
132
|
-
declare const ActivityLine: react.NamedExoticComponent<object>;
|
|
133
|
-
|
|
134
|
-
declare const Avatar: react.NamedExoticComponent<{
|
|
135
|
-
readonly name: string;
|
|
136
|
-
readonly uri: string | null;
|
|
137
|
-
readonly person?: boolean;
|
|
138
|
-
}>;
|
|
139
|
-
|
|
140
|
-
interface ButtonProps {
|
|
141
|
-
readonly label: string;
|
|
142
|
-
readonly onPress: () => void;
|
|
143
|
-
readonly variant?: 'primary' | 'secondary' | 'text';
|
|
144
|
-
readonly disabled?: boolean;
|
|
145
|
-
readonly busy?: boolean;
|
|
146
|
-
/** A role other than a button: `radio` and `checkbox` for choices. */
|
|
147
|
-
readonly role?: 'button' | 'radio' | 'checkbox' | 'link';
|
|
148
|
-
readonly selected?: boolean;
|
|
149
|
-
readonly hint?: string;
|
|
150
|
-
readonly children?: ReactNode;
|
|
151
|
-
readonly testID?: string;
|
|
152
|
-
}
|
|
153
|
-
declare const Button: react.NamedExoticComponent<ButtonProps>;
|
|
154
|
-
|
|
155
|
-
declare function DefaultHeader(props: Omit<HeaderProps, 'Default'>): react.JSX.Element;
|
|
156
|
-
declare const ChatHeader: react.NamedExoticComponent<object>;
|
|
157
|
-
|
|
158
|
-
declare const ChatSkeleton: react.NamedExoticComponent<object>;
|
|
159
|
-
|
|
160
|
-
declare function DefaultComposer(props: Omit<ComposerProps, 'Default'>): react.JSX.Element;
|
|
161
|
-
declare const Composer: react.NamedExoticComponent<{
|
|
162
|
-
readonly onError?: (error: unknown) => void;
|
|
163
|
-
}>;
|
|
164
|
-
|
|
165
|
-
declare const DisclosureBar: react.NamedExoticComponent<object>;
|
|
166
|
-
|
|
167
|
-
/** The tenant's failure action as a button, or nothing when there is none. */
|
|
168
|
-
declare function FailureActionButton(props: {
|
|
169
|
-
readonly state: FailureState;
|
|
170
|
-
}): ReactNode;
|
|
171
|
-
|
|
172
|
-
declare function DefaultBubble(props: Omit<MessageBubbleProps, 'Default'>): react.JSX.Element;
|
|
173
|
-
declare const MessageBubble: react.NamedExoticComponent<{
|
|
174
|
-
readonly item: MessageItem;
|
|
175
|
-
/** The first of a run from the same author: its label is shown. */
|
|
176
|
-
readonly showAuthor: boolean;
|
|
177
|
-
}>;
|
|
178
|
-
/** The reply streaming now: the only cell that re-renders as the text arrives. */
|
|
179
|
-
declare const StreamingBubble: react.NamedExoticComponent<{
|
|
180
|
-
readonly item: MessageItem;
|
|
181
|
-
readonly showAuthor: boolean;
|
|
182
|
-
}>;
|
|
183
|
-
|
|
184
|
-
/** Rows of one kind recycle together. */
|
|
185
|
-
declare function itemType(item: TimelineItem): string;
|
|
186
|
-
/**
|
|
187
|
-
* Runs of two or more consecutive cards with one carousel group (`group.layout: carousel`, the same `group.id`): by
|
|
188
|
-
* the first card's key, and the keys of the cards the run draws after it. A run equal to the previous one is the
|
|
189
|
-
* same array, so its row does not render again.
|
|
190
|
-
*/
|
|
191
|
-
declare function carousels(items: readonly TimelineItem[], previous: ReadonlyMap<string, readonly CardItem[]>): {
|
|
192
|
-
runs: Map<string, readonly CardItem[]>;
|
|
193
|
-
inside: Set<string>;
|
|
194
|
-
};
|
|
195
|
-
declare const Row: react.NamedExoticComponent<{
|
|
196
|
-
readonly item: TimelineItem;
|
|
197
|
-
readonly showAuthor: boolean;
|
|
198
|
-
/** The carousel this card starts (`components.CardGroup`). */
|
|
199
|
-
readonly run?: readonly CardItem[] | undefined;
|
|
200
|
-
/** A card a carousel earlier in the list draws. */
|
|
201
|
-
readonly inside?: boolean;
|
|
202
|
-
}>;
|
|
203
|
-
declare const MessageList: react.NamedExoticComponent<object>;
|
|
204
|
-
|
|
205
|
-
declare const StatusBanner: react.NamedExoticComponent<object>;
|
|
206
|
-
/** The kit's own "Couldn't connect." banner: try again, and the tenant's failure action when there is one. */
|
|
207
|
-
declare function DefaultUnavailable(props: {
|
|
208
|
-
readonly state: FailureState;
|
|
209
|
-
}): ReactNode;
|
|
210
|
-
|
|
211
|
-
declare const SystemRow: react.NamedExoticComponent<{
|
|
212
|
-
readonly item: SystemItem;
|
|
213
|
-
}>;
|
|
214
|
-
/** The kit's own failed-turn row: "Something went wrong.", and the tenant's failure action when there is one. */
|
|
215
|
-
declare function DefaultTurnFailed(props: {
|
|
216
|
-
readonly state: FailureState;
|
|
217
|
-
}): ReactNode;
|
|
218
|
-
|
|
219
|
-
type ProposalDecision = 'confirm' | 'decline';
|
|
220
|
-
/** What the kit asks of the tenant's app. Only `onProposal` and `onOpenLink` are needed for the cards that use them. */
|
|
221
|
-
interface ChatHandlers {
|
|
222
|
-
/**
|
|
223
|
-
* The person confirmed or declined a proposal: call your backend with the person's own token, then say what
|
|
224
|
-
* happened (`confirmed`, `declined`, `failed`, or `expired` when it had expired). The kit reports it to the session.
|
|
225
|
-
*/
|
|
226
|
-
readonly onProposal?: (card: HeldCard, decision: ProposalDecision) => Promise<ProposalOutcome>;
|
|
227
|
-
/**
|
|
228
|
-
* Open a card's link in your app: a deep link that already passed the deep-link rule (route by the page it names),
|
|
229
|
-
* or a `links` card's https page (your in-app browser; without this handler the system opens it).
|
|
230
|
-
*/
|
|
231
|
-
readonly onOpenLink?: (link: string, card: HeldCard) => void;
|
|
232
|
-
/** A card action without a link (`show_times`, …): sent to the session; this tells your app too. */
|
|
233
|
-
readonly onCardAction?: (card: HeldCard, action: string) => void;
|
|
234
|
-
/** A photo question: let the person pick one, upload it to your backend, and give back its `upload_ref`. */
|
|
235
|
-
readonly onPickPhoto?: (question: Question, card: HeldCard) => Promise<{
|
|
236
|
-
readonly upload_ref: string;
|
|
237
|
-
} | null>;
|
|
238
|
-
/**
|
|
239
|
-
* A way out on a failed turn and on "couldn't connect": a button with your label (default "Talk to a person"),
|
|
240
|
-
* drawn by the kit's own parts when no `components.Error` or `components.Unavailable` replaces them.
|
|
241
|
-
*/
|
|
242
|
-
readonly failureAction?: FailureAction;
|
|
243
|
-
/** Development warnings: a theme that is hard to read, copy that says "assistant". */
|
|
244
|
-
readonly onWarning?: (message: string) => void;
|
|
245
|
-
}
|
|
246
|
-
/** Parts a tenant can replace. Each gets the default's props and the default itself (`Default`), to wrap it. */
|
|
247
|
-
interface ChatSlots {
|
|
248
|
-
readonly Header?: ComponentType<HeaderProps>;
|
|
249
|
-
readonly MessageBubble?: ComponentType<MessageBubbleProps>;
|
|
250
|
-
readonly Composer?: ComponentType<ComposerProps>;
|
|
251
|
-
readonly EmptyState?: ComponentType<EmptyStateProps>;
|
|
252
|
-
readonly Image?: ComponentType<ImageProps>;
|
|
253
|
-
/** A list with FlashList's props (LegendList works). Default: FlashList. */
|
|
254
|
-
readonly ListComponent?: ComponentType<ListProps>;
|
|
255
|
-
/** A turn that failed before any reply: replaces the "Something went wrong." row. */
|
|
256
|
-
readonly Error?: ComponentType<FailureProps>;
|
|
257
|
-
/** No session to talk to: replaces the "Couldn't connect." banner. */
|
|
258
|
-
readonly Unavailable?: ComponentType<FailureProps>;
|
|
259
|
-
/**
|
|
260
|
-
* Draws a turn's cards that ask for a carousel (`group.layout: carousel`) in one row: the kit's `CardCarousel`, or
|
|
261
|
-
* yours. Without it they draw one under another. Opt-in, so an app that never draws a carousel does not ship one.
|
|
262
|
-
*/
|
|
263
|
-
readonly CardGroup?: ComponentType<CardGroupProps>;
|
|
264
|
-
/** Card renderers by kind (`professional`, `proposal`, …). */
|
|
265
|
-
readonly cards?: Readonly<Partial<Record<string, ComponentType<CardProps>>>>;
|
|
266
|
-
}
|
|
267
|
-
interface ChatContextValue {
|
|
268
|
-
readonly store: ConversationStore;
|
|
269
|
-
readonly handlers: RefObject<ChatHandlers>;
|
|
270
|
-
readonly slots: ChatSlots;
|
|
271
|
-
readonly agentAvatar: string | undefined;
|
|
272
|
-
readonly timeZone: string | undefined;
|
|
273
|
-
/** The failure action's label when there is one (`label` undefined: the copy's); `onPress` is read from `handlers`. */
|
|
274
|
-
readonly failureAction: {
|
|
275
|
-
readonly label: string | undefined;
|
|
276
|
-
} | null;
|
|
277
|
-
}
|
|
278
|
-
/** The conversation, handlers and slots; only inside `VinaverseChat` (or `VinaverseChatProvider`). */
|
|
279
|
-
declare function useChat(): ChatContextValue;
|
|
280
|
-
|
|
281
|
-
interface Theme {
|
|
282
|
-
readonly scheme: ColorScheme;
|
|
283
|
-
readonly colors: Colors;
|
|
284
|
-
readonly font: typeof font & {
|
|
285
|
-
readonly family?: string;
|
|
286
|
-
};
|
|
287
|
-
readonly space: typeof space;
|
|
288
|
-
readonly radius: typeof radius;
|
|
289
|
-
readonly motion: typeof motion;
|
|
290
|
-
readonly size: typeof size;
|
|
291
|
-
}
|
|
292
|
-
/** A tenant's brand: colors per scheme, a font family, radii. Anything left out keeps the Vinaverse default. */
|
|
293
|
-
interface ThemeOverrides {
|
|
294
|
-
readonly light?: Partial<Colors>;
|
|
295
|
-
readonly dark?: Partial<Colors>;
|
|
296
|
-
readonly fontFamily?: string;
|
|
297
|
-
readonly radius?: Partial<typeof radius>;
|
|
298
|
-
readonly space?: Partial<typeof space>;
|
|
299
|
-
}
|
|
300
|
-
type ColorSchemeSetting = 'system' | 'light' | 'dark';
|
|
301
|
-
/** The theme for a scheme, with the tenant's overrides on top. */
|
|
302
|
-
declare function createTheme(scheme: ColorScheme, overrides?: ThemeOverrides): Theme;
|
|
303
|
-
/** The pairs a tenant's colors made hard to read, in either scheme, as messages for a development warning. */
|
|
304
|
-
declare function themeProblems(overrides?: ThemeOverrides): string[];
|
|
305
|
-
declare function ThemeProvider(props: {
|
|
306
|
-
readonly theme?: ThemeOverrides | undefined;
|
|
307
|
-
readonly colorScheme?: ColorSchemeSetting | undefined;
|
|
308
|
-
readonly children?: ReactNode;
|
|
309
|
-
}): ReactNode;
|
|
310
|
-
declare function useTheme(): Theme;
|
|
311
|
-
|
|
312
|
-
interface VinaverseChatProps extends ChatHandlers {
|
|
313
|
-
/** The conversation (`createConversation`), created where it can outlive the screen. */
|
|
314
|
-
readonly conversation: ConversationStore;
|
|
315
|
-
/** The person's locale: the copy, dates, money and text direction (pass the same one to `getSession`). */
|
|
316
|
-
readonly locale?: string;
|
|
317
|
-
/** For dates and times on cards; default: the device's. */
|
|
318
|
-
readonly timeZone?: string;
|
|
319
|
-
readonly copy?: CopyOverrides;
|
|
320
|
-
readonly theme?: ThemeOverrides;
|
|
321
|
-
readonly colorScheme?: ColorSchemeSetting;
|
|
322
|
-
/** Parts to replace. Keep the object stable (module level, or memoized). */
|
|
323
|
-
readonly components?: ChatSlots;
|
|
324
|
-
/** The agent's picture, until the session carries one. */
|
|
325
|
-
readonly agentAvatar?: string;
|
|
326
|
-
/** Hide the header (a screen that draws its own); the disclosure stays. */
|
|
327
|
-
readonly hideHeader?: boolean;
|
|
328
|
-
/** iOS: the height above the keyboard that is not this view's (a navigation header). */
|
|
329
|
-
readonly keyboardVerticalOffset?: number;
|
|
330
|
-
/**
|
|
331
|
-
* How the composer stays above the keyboard. Default: `padding` on iOS, none on Android (the window resizes). An
|
|
332
|
-
* edge-to-edge Android app whose window does not resize passes `padding`; one that manages the keyboard itself
|
|
333
|
-
* (react-native-keyboard-controller) passes `none`.
|
|
334
|
-
*/
|
|
335
|
-
readonly keyboardBehavior?: 'padding' | 'height' | 'position' | 'none';
|
|
336
|
-
readonly style?: StyleProp<ViewStyle>;
|
|
337
|
-
}
|
|
338
|
-
/** The providers alone, for a tenant composing its own layout from the exported parts. */
|
|
339
|
-
declare function VinaverseChatProvider(props: Omit<VinaverseChatProps, 'hideHeader' | 'keyboardVerticalOffset' | 'keyboardBehavior' | 'style'> & {
|
|
340
|
-
readonly children?: ReactNode;
|
|
341
|
-
}): ReactNode;
|
|
342
|
-
declare function VinaverseChat(props: VinaverseChatProps): ReactNode;
|
|
343
|
-
|
|
344
|
-
declare const Welcome: react.NamedExoticComponent<{
|
|
345
|
-
readonly welcome: Welcome$1;
|
|
346
|
-
readonly onChip: (message: string) => void;
|
|
347
|
-
}>;
|
|
348
|
-
|
|
349
|
-
/** The part of the conversation store the adapter drives. */
|
|
350
|
-
interface LifecycleTarget {
|
|
351
|
-
setForeground(foreground: boolean): void;
|
|
352
|
-
}
|
|
353
|
-
/** Tells the store when the app comes to the foreground or goes to the background (it pings only in the foreground). */
|
|
354
|
-
declare function useNativeLifecycle(store: LifecycleTarget): void;
|
|
355
|
-
/** Whether the person asked for reduced motion: animations and animated scrolling stay off. */
|
|
356
|
-
declare function useReducedMotion(): boolean;
|
|
357
|
-
/** Reads a line to a screen reader, without moving focus. */
|
|
358
|
-
declare function announce(text: string): void;
|
|
359
|
-
|
|
360
|
-
export { ActivityLine, Avatar, Button, type ButtonProps, CardActions, CardCarousel, CardFrame, type CardGroupProps, type CardProps, CardView, type ChatHandlers, ChatHeader, ChatSkeleton, type ChatSlots, type ColorSchemeSetting, Composer, type ComposerProps, DefaultBubble, DefaultComposer, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DisclosureBar, type EmptyStateProps, type FailureAction, FailureActionButton, type FailureProps, type FailureState, type HeaderProps, InfoCard, type LifecycleTarget, LinksCard, type ListProps, ListingCard, MessageBubble, type MessageBubbleProps, MessageList, NextStepCard, ProposalCard, type ProposalDecision, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, type Theme, type ThemeOverrides, ThemeProvider, TimeSlotsCard, VinaverseChat, type VinaverseChatProps, VinaverseChatProvider, Welcome, announce, answerText, carousels, createTheme, defaultCard, fieldText, itemType, monogram, ratingText, themeProblems, useChat, useNativeLifecycle, useReducedMotion, useTheme };
|
|
1
|
+
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus } from '@vinaverse/react/agent';
|
|
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
|
+
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
|
+
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';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '@vinaverse/client/conversation';
|
|
8
|
+
import '@vinaverse/client/agent';
|
|
9
|
+
import 'react-native';
|
|
10
|
+
import '@vinaverse/react';
|
|
11
|
+
import '@vinaverse/tokens';
|