@vinaverse/react-native 0.1.0-alpha.10 → 0.1.0-alpha.11
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 +25 -1
- package/dist/chat.cjs +118 -117
- package/dist/chat.d.cts +7 -205
- package/dist/chat.d.ts +7 -205
- package/dist/chat.js +2 -1
- package/dist/chunk-2J2LIJLW.js +624 -0
- package/dist/chunk-2J2LIJLW.js.map +1 -0
- package/dist/chunk-4PXQ7DEY.cjs +680 -0
- package/dist/chunk-4PXQ7DEY.cjs.map +1 -0
- package/dist/{chunk-43I4ZAEK.js → chunk-KSHDF3MG.js} +13 -624
- package/dist/chunk-KSHDF3MG.js.map +1 -0
- package/dist/{chunk-NRYNK7E4.cjs → chunk-XAG2P447.cjs} +11 -675
- package/dist/chunk-XAG2P447.cjs.map +1 -0
- package/dist/context-gHCLFsJh.d.cts +212 -0
- package/dist/context-gHCLFsJh.d.ts +212 -0
- package/dist/history.cjs +673 -0
- package/dist/history.cjs.map +1 -0
- package/dist/history.d.cts +177 -0
- package/dist/history.d.ts +177 -0
- package/dist/history.js +618 -0
- package/dist/history.js.map +1 -0
- package/dist/index.cjs +133 -132
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/package.json +79 -10
- package/dist/chunk-43I4ZAEK.js.map +0 -1
- package/dist/chunk-NRYNK7E4.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/AgentHistoryList.tsx","../src/components/readOnlyStore.ts","../src/components/AgentTranscript.tsx"],"names":["Row","useMemo","jsx","CopyProvider","useCopy","useAgentRuntime","useAgentProfile","jsxs","View","Centered","useCallback","ActivityIndicator","Text","FlashList"],"mappings":";;;;;;;;;;;;;;AA8IO,SAAS,iBAAiB,KAAA,EAAyC;AACxE,EAAA,MAAM,IAAA,GAAO,OAAA;AAAA,IACX,MACE,KAAA,CAAM,SAAA,GACF,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AAA;AAAA,cACpB,SAAA,EAAW;AAAA,aACb;AAAA,YAEC,QAAA,EAAA,CAAA,CAAE,KAAA,CAAM,IAAA,GAAO,gBAAA,GAAmB,kBAAkB;AAAA;AAAA,SACvD;AAAA,QACC,KAAA,CAAM,IAAA,GAAO,IAAA,mBACZV,GAAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,KAAA,EAAO,EAAE,UAAU,CAAA;AAAA,YACnB,OAAA,EAAQ,SAAA;AAAA,YACR,SAAS,KAAA,CAAM;AAAA;AAAA;AACjB;AAAA;AAAA,GAEJ;AAEJ","file":"history.js","sourcesContent":["// A person's past conversations with the agent (history): newest activity first, a page at a time as the person\n// scrolls, each row a conversation to open (the app shows `AgentTranscript`), to continue (pinned for its key, the\n// app shows the chat) or to delete (confirmed first, a policy the app can replace). Every part is a slot given the\n// kit's own as `Default`; the words come from `copy`. Built only on the public hooks.\n\nimport { FlashList } from '@shopify/flash-list';\nimport type {\n AgentConversation,\n AgentFailureReason,\n} from '@vinaverse/client/agent';\nimport type { ConversationSummary } from '@vinaverse/client/history';\nimport {\n type CopyOverrides,\n CopyProvider,\n formatDateTime,\n useCopy,\n} from '@vinaverse/react';\nimport { useAgentProfile, useAgentRuntime } from '@vinaverse/react/agent';\nimport { useAgentHistory } from '@vinaverse/react/history';\nimport {\n type ComponentType,\n type ReactElement,\n type ReactNode,\n useCallback,\n useMemo,\n useState,\n} from 'react';\nimport {\n ActivityIndicator,\n Alert,\n Pressable,\n type StyleProp,\n Text,\n View,\n type ViewStyle,\n} from 'react-native';\nimport { useAgentSweep } from '../platform.js';\nimport {\n type ColorSchemeSetting,\n type ThemeOverrides,\n ThemeProvider,\n useTheme,\n} from '../theme.js';\nimport { Button } from './Button.js';\n\ntype Slot<P> = ComponentType<P & { readonly Default: ComponentType<P> }>;\n\n/** One past conversation as the list draws it. */\nexport interface HistoryRowProps {\n readonly conversation: ConversationSummary;\n /** Its last activity, in the locale and zone (\"Oct 15, 2026, 9:30 AM\"). */\n readonly when: string;\n /** \"6 messages\" (`copy.historyMessages`). */\n readonly messages: string;\n /** It can only be read (`state: ended`); an open one can be continued. */\n readonly ended: boolean;\n /** The row's tap: the app opens the transcript. Absent when the app gave no `onOpen`. */\n readonly onOpen: (() => void) | undefined;\n /** Absent when the conversation ended, or the app gave no `onContinue`. */\n readonly onContinue: (() => void) | undefined;\n readonly onDelete: () => void;\n readonly deleting: boolean;\n /** The last delete of this row failed (`copy.historyDeleteFailed`). */\n readonly deleteFailed: boolean;\n}\nexport interface HistoryEmptyProps {\n readonly agentName: string;\n}\n/** The list could not be read: `off` when history is switched off for this tenant, mode or person. */\nexport interface HistoryFailureProps {\n readonly reason: AgentFailureReason;\n readonly onRetry: () => void;\n}\n/** The props the list gives its list component: FlashList's. */\nexport interface HistoryListProps {\n readonly data: readonly ConversationSummary[];\n readonly renderItem: (info: {\n item: ConversationSummary;\n index: number;\n }) => ReactElement | null;\n readonly keyExtractor: (item: ConversationSummary) => string;\n readonly onEndReached: () => void;\n readonly onRefresh: () => void;\n readonly refreshing: boolean;\n readonly ListFooterComponent: ReactElement | null;\n readonly ListEmptyComponent: ReactElement | null;\n readonly contentContainerStyle: object;\n}\n/** What a history warning is about: a delete the backend refused. */\nexport interface HistoryWarning {\n readonly code: 'delete_failed';\n}\n\nexport interface AgentHistoryListSlots {\n readonly Row?: Slot<HistoryRowProps>;\n readonly Empty?: Slot<HistoryEmptyProps>;\n readonly Failure?: Slot<HistoryFailureProps>;\n /** A list with FlashList's props. Default: FlashList. */\n readonly ListComponent?: ComponentType<HistoryListProps>;\n}\n\nexport interface AgentHistoryListProps {\n /** The person signed in (null for a guest): the key a conversation continues or is deleted under. */\n readonly subject: string | null;\n /** The app's side: `customer` or `business`. */\n readonly mode: string;\n /** The business acted for, with `business`. */\n readonly scope?: string | null;\n /** The agent, for a backend that serves more than one. */\n readonly agent?: string | null;\n /** The thread a continued conversation runs in; default `chat`. */\n readonly thread?: string;\n /** Conversations per page (1–50). Default 20. */\n readonly pageSize?: number;\n /** A row was tapped: show its transcript (`AgentTranscript`). */\n readonly onOpen?: (conversation: ConversationSummary) => void;\n /**\n * \"Continue\" on an open conversation: it is pinned for its key (`useAgentHistory().keyOf`), and the app shows the\n * live conversation (`AgentChat` with that key, or `show()` on it).\n */\n readonly onContinue?: (\n conversation: ConversationSummary,\n live: AgentConversation,\n ) => void;\n /** Asks before deleting; default the platform's alert with the copy's words. False keeps the conversation. */\n readonly confirmDelete?: (\n conversation: ConversationSummary,\n ) => boolean | Promise<boolean>;\n /** A delete the backend refused, for the app's logger; the row says it too. */\n readonly onWarning?: (message: string, warning: HistoryWarning) => void;\n readonly components?: AgentHistoryListSlots;\n readonly locale?: string;\n readonly timeZone?: string;\n readonly copy?: CopyOverrides;\n readonly theme?: ThemeOverrides;\n readonly colorScheme?: ColorSchemeSetting;\n /** The agent's name until the status gives one. */\n readonly agentName?: string;\n readonly style?: StyleProp<ViewStyle>;\n readonly testID?: string;\n}\n\nexport function AgentHistoryList(props: AgentHistoryListProps): ReactNode {\n const copy = useMemo(\n () =>\n props.agentName\n ? { ...props.copy, agentFallbackName: props.agentName }\n : props.copy,\n [props.agentName, props.copy],\n );\n return (\n <CopyProvider locale={props.locale} copy={copy}>\n <ThemeProvider theme={props.theme} colorScheme={props.colorScheme}>\n <HistoryList {...props} />\n </ThemeProvider>\n </CopyProvider>\n );\n}\n\n/** The platform's alert: cancel keeps the conversation, so does dismissing it. */\nfunction alertConfirm(\n t: ReturnType<typeof useCopy>['t'],\n): () => Promise<boolean> {\n return () =>\n new Promise<boolean>((resolve) => {\n Alert.alert(\n t('historyDeleteTitle'),\n t('historyDeleteBody'),\n [\n { text: t('cancel'), style: 'cancel', onPress: () => resolve(false) },\n {\n text: t('historyDelete'),\n style: 'destructive',\n onPress: () => resolve(true),\n },\n ],\n { cancelable: true, onDismiss: () => resolve(false) },\n );\n });\n}\n\nfunction HistoryList(props: AgentHistoryListProps): ReactNode {\n const { t, locale, direction } = useCopy();\n const { colors, space } = useTheme();\n const runtime = useAgentRuntime();\n useAgentSweep(runtime);\n const { name } = useAgentProfile(t('agentFallbackName'));\n const history = useAgentHistory({\n subject: props.subject,\n mode: props.mode,\n scope: props.scope ?? null,\n agent: props.agent ?? null,\n ...(props.thread === undefined ? {} : { thread: props.thread }),\n ...(props.pageSize === undefined ? {} : { pageSize: props.pageSize }),\n });\n const { state } = history;\n const [deleting, setDeleting] = useState<ReadonlySet<string>>(new Set());\n const [failed, setFailed] = useState<ReadonlySet<string>>(new Set());\n const { onOpen, onContinue, onWarning, confirmDelete, timeZone } = props;\n // One function while the words are the same, so the rows keep theirs.\n const confirm = useMemo(\n () => confirmDelete ?? alertConfirm(t),\n [confirmDelete, t],\n );\n const remove = useCallback(\n async (conversation: ConversationSummary) => {\n if (!(await confirm(conversation))) return;\n mark(setDeleting, conversation.id, true);\n mark(setFailed, conversation.id, false);\n try {\n await history.remove(conversation);\n } catch (error) {\n mark(setFailed, conversation.id, true);\n onWarning?.(`Vinaverse history: delete failed: ${String(error)}`, {\n code: 'delete_failed',\n });\n } finally {\n mark(setDeleting, conversation.id, false);\n }\n },\n [confirm, history, onWarning],\n );\n const slots = props.components ?? {};\n const { Row, Empty, Failure, ListComponent } = slots;\n const renderItem = useCallback(\n ({ item }: { item: ConversationSummary }) => {\n const own: HistoryRowProps = {\n conversation: item,\n when: formatDateTime(item.last_activity_at, locale, timeZone),\n messages: t('historyMessages', { count: item.message_count }),\n ended: item.state === 'ended',\n onOpen: onOpen ? () => onOpen(item) : undefined,\n onContinue:\n onContinue && item.state === 'open'\n ? () => onContinue(item, history.continue(item))\n : undefined,\n onDelete: () => void remove(item),\n deleting: deleting.has(item.id),\n deleteFailed: failed.has(item.id),\n };\n return Row ? (\n <Row {...own} Default={DefaultHistoryRow} />\n ) : (\n <DefaultHistoryRow {...own} />\n );\n },\n [\n Row,\n locale,\n timeZone,\n t,\n onOpen,\n onContinue,\n history,\n remove,\n deleting,\n failed,\n ],\n );\n const empty =\n state.failure && state.conversations.length === 0 ? (\n <Centered>\n {Failure ? (\n <Failure\n reason={state.failure}\n onRetry={history.refresh}\n Default={DefaultHistoryFailure}\n />\n ) : (\n <DefaultHistoryFailure\n reason={state.failure}\n onRetry={history.refresh}\n />\n )}\n </Centered>\n ) : state.started && !state.loading ? (\n <Centered>\n {Empty ? (\n <Empty agentName={name} Default={DefaultHistoryEmpty} />\n ) : (\n <DefaultHistoryEmpty agentName={name} />\n )}\n </Centered>\n ) : null;\n const footer =\n state.loading && state.conversations.length > 0 ? (\n <View style={{ padding: space.md, alignItems: 'center' }}>\n <ActivityIndicator\n color={colors.textMuted}\n accessibilityLabel={t('loading')}\n />\n </View>\n ) : state.failure && state.conversations.length > 0 ? (\n <View style={{ padding: space.sm, alignItems: 'center' }}>\n <Button label={t('tryAgain')} variant=\"text\" onPress={history.retry} />\n </View>\n ) : null;\n const list: HistoryListProps = useMemo(\n () => ({\n data: state.conversations,\n renderItem,\n keyExtractor: (item) => item.id,\n onEndReached: history.loadMore,\n onRefresh: history.refresh,\n refreshing: state.loading && state.conversations.length === 0,\n ListFooterComponent: footer,\n ListEmptyComponent: empty,\n contentContainerStyle: { paddingVertical: space.sm },\n }),\n [state, renderItem, history, footer, empty, space.sm],\n );\n const List = ListComponent;\n return (\n <View\n testID={props.testID ?? 'vinaverse-history'}\n style={[\n { flex: 1, backgroundColor: colors.background, direction },\n props.style,\n ]}\n >\n {List ? <List {...list} /> : <FlashList {...list} />}\n </View>\n );\n}\n\n/** A set of ids with `id` in it or not, as a state update. */\nconst mark = (\n set: (f: (s: ReadonlySet<string>) => ReadonlySet<string>) => void,\n id: string,\n on: boolean,\n) =>\n set((s) => {\n const next = new Set(s);\n if (on) next.add(id);\n else next.delete(id);\n return next;\n });\n\nfunction Centered(props: { readonly children: ReactNode }) {\n const { space } = useTheme();\n return (\n <View\n style={{\n alignItems: 'center',\n justifyContent: 'center',\n padding: space.xl,\n }}\n >\n {props.children}\n </View>\n );\n}\n\n/** A conversation: its title, when it was last active, how many messages; continue when it can be, delete. */\nexport function DefaultHistoryRow(props: HistoryRowProps): ReactNode {\n const { t } = useCopy();\n const { colors, space, font, radius } = useTheme();\n const { conversation } = props;\n const detail = [\n props.when,\n props.messages,\n props.ended ? t('historyEnded') : null,\n ]\n .filter(Boolean)\n .join(' · ');\n return (\n <View\n style={{\n marginHorizontal: space.lg,\n marginVertical: space.xs,\n borderRadius: radius.lg,\n backgroundColor: colors.surface,\n opacity: props.deleting ? 0.6 : 1,\n }}\n testID={`vinaverse-history-${conversation.id}`}\n >\n <Pressable\n accessibilityRole=\"button\"\n accessibilityLabel={`${conversation.title}. ${detail}`}\n accessibilityState={{ disabled: !props.onOpen || props.deleting }}\n disabled={!props.onOpen || props.deleting}\n onPress={props.onOpen}\n style={{ paddingHorizontal: space.md, paddingTop: space.md }}\n >\n <Text\n numberOfLines={2}\n style={{\n color: colors.text,\n fontSize: font.size.md,\n fontWeight: '600',\n ...(font.family ? { fontFamily: font.family } : {}),\n }}\n >\n {conversation.title}\n </Text>\n <Text\n style={{\n color: colors.textMuted,\n fontSize: font.size.sm,\n marginTop: space.xxs,\n }}\n >\n {detail}\n </Text>\n </Pressable>\n <View\n style={{\n flexDirection: 'row',\n alignItems: 'center',\n gap: space.xs,\n paddingHorizontal: space.xs,\n }}\n >\n {props.onContinue ? (\n <Button\n label={t('historyContinue')}\n variant=\"text\"\n disabled={props.deleting}\n onPress={props.onContinue}\n />\n ) : null}\n <Button\n label={t('historyDelete')}\n variant=\"text\"\n busy={props.deleting}\n onPress={props.onDelete}\n />\n {props.deleteFailed ? (\n <Text style={{ color: colors.danger, fontSize: font.size.xs }}>\n {t('historyDeleteFailed')}\n </Text>\n ) : null}\n </View>\n </View>\n );\n}\n\nexport function DefaultHistoryEmpty(props: HistoryEmptyProps): ReactNode {\n const { t } = useCopy();\n const { colors, space, font } = useTheme();\n return (\n <View style={{ alignItems: 'center', gap: space.sm }}>\n <Text\n style={{\n color: colors.text,\n fontSize: font.size.lg,\n fontWeight: '600',\n textAlign: 'center',\n }}\n >\n {t('historyEmpty')}\n </Text>\n <Text\n style={{\n color: colors.textMuted,\n fontSize: font.size.md,\n textAlign: 'center',\n }}\n >\n {t('historyEmptyBody', { agent: props.agentName })}\n </Text>\n </View>\n );\n}\n\n/** The list could not be read: history is off, or try again. */\nexport function DefaultHistoryFailure(props: HistoryFailureProps): ReactNode {\n const { t } = useCopy();\n const { colors, space, font } = useTheme();\n const off = props.reason === 'off';\n return (\n <View\n accessibilityRole=\"alert\"\n style={{ alignItems: 'center', gap: space.md }}\n >\n <Text\n style={{\n color: colors.text,\n fontSize: font.size.md,\n textAlign: 'center',\n }}\n >\n {t(off ? 'historyOff' : 'historyFailed')}\n </Text>\n {off ? null : (\n <Button\n label={t('tryAgain')}\n variant=\"primary\"\n onPress={props.onRetry}\n />\n )}\n </View>\n );\n}\n","// A past conversation as the chat's parts read one: a `ChatStore` over history's items that never changes and takes\n// no action (every action a no-op, nothing streams), so the bubbles and cards draw a transcript exactly as they draw\n// a live conversation restored from the device, inert.\nimport type {\n ConversationView,\n TimelineItem,\n} from '@vinaverse/client/conversation';\nimport type { ChatStore } from '../context.js';\n\nconst none = () => () => undefined;\n\nexport function readOnlyStore(view: {\n readonly items: readonly TimelineItem[];\n readonly conversationId: string;\n readonly agentName: string | null;\n readonly agentAvatar: string | null;\n}): ChatStore {\n const snapshot: ConversationView = {\n status: 'ready',\n conversationId: view.conversationId,\n banner: null,\n next: null,\n agent: { name: view.agentName, avatarUrl: view.agentAvatar },\n welcome: null,\n disclosure: null,\n takeover: null,\n items: view.items,\n activity: [],\n responding: false,\n openQuestion: null,\n answersNeedWebSocket: false,\n turnsLeft: null,\n history: 'restored',\n };\n return {\n getSnapshot: () => snapshot,\n subscribe: none,\n getStreaming: () => null,\n subscribeStreaming: none,\n send: () => '',\n retry: () => null,\n retryTurn: () => null,\n cancel: () => undefined,\n answer: () => '',\n cardAction: () => '',\n decideProposal: () => Promise.resolve(null),\n checkLink: () => false,\n continueHere: () => Promise.resolve(),\n setForeground: () => undefined,\n start: () => undefined,\n };\n}\n","// A past conversation read back (history): its messages and the cards their turns drew, newest page first, earlier\n// pages above as the person scrolls up or asks. Drawn by the chat's own parts over a read-only store, so a bubble and\n// a card look as they looked live, and restored cards take nothing: no proposal is confirmed from history, no link\n// opens, no answer is given. A refusal and a proposal's outcome are shown as they were. \"Continue\" pins the\n// conversation for the app's key and hands the app the live conversation to show. Built only on the public hooks.\n\nimport { FlashList } from '@shopify/flash-list';\nimport type {\n AgentConversation,\n AgentFailureReason,\n AgentKey,\n} from '@vinaverse/client/agent';\nimport type { CardItem, TimelineItem } from '@vinaverse/client/conversation';\nimport { type CopyOverrides, CopyProvider, useCopy } from '@vinaverse/react';\nimport { useAgentProfile, useAgentRuntime } from '@vinaverse/react/agent';\nimport { useAgentTranscript } from '@vinaverse/react/history';\nimport {\n type ComponentType,\n type ReactElement,\n type ReactNode,\n useCallback,\n useMemo,\n useRef,\n} from 'react';\nimport {\n ActivityIndicator,\n type StyleProp,\n Text,\n View,\n type ViewStyle,\n} from 'react-native';\nimport {\n ChatContextProvider,\n type ChatHandlers,\n type ChatSlots,\n type ImagePolicy,\n} from '../context.js';\nimport { useReducedMotion } from '../platform.js';\nimport {\n type ColorSchemeSetting,\n type ThemeOverrides,\n ThemeProvider,\n useTheme,\n} from '../theme.js';\nimport { Button } from './Button.js';\nimport { DefaultHeader } from './ChatHeader.js';\nimport { DisclosureBar } from './DisclosureBar.js';\nimport { carousels, itemType, Row } from './MessageList.js';\nimport { readOnlyStore } from './readOnlyStore.js';\nimport type { HeaderProps } from './types.js';\n\ntype Slot<P> = ComponentType<P & { readonly Default: ComponentType<P> }>;\n\n/** The transcript could not be read: `gone` for one deleted, expired or never theirs (no retry helps). */\nexport interface TranscriptFailureProps {\n readonly reason: AgentFailureReason;\n readonly gone: boolean;\n readonly onRetry: () => void;\n}\n\n/** The props the transcript gives its list: FlashList's, anchored at the bottom, earlier pages asked for at the top. */\nexport interface TranscriptListProps {\n readonly data: readonly TimelineItem[];\n readonly renderItem: (info: {\n item: TimelineItem;\n index: number;\n }) => ReactElement | null;\n readonly keyExtractor: (item: TimelineItem) => string;\n readonly getItemType: (item: TimelineItem) => string;\n readonly maintainVisibleContentPosition: {\n readonly startRenderingFromBottom: boolean;\n readonly animateAutoScrollToBottom: boolean;\n };\n readonly onStartReached: () => void;\n readonly ListHeaderComponent: ReactElement | null;\n readonly contentContainerStyle: object;\n}\n\nexport interface AgentTranscriptSlots\n extends Pick<ChatSlots, 'MessageBubble' | 'Image' | 'CardGroup' | 'cards'> {\n readonly Header?: ComponentType<HeaderProps>;\n readonly Failure?: Slot<TranscriptFailureProps>;\n /** A list with FlashList's props. Default: FlashList. */\n readonly ListComponent?: ComponentType<TranscriptListProps>;\n}\n\nexport interface AgentTranscriptProps {\n readonly conversationId: string;\n /** Items per page. Default 30. */\n readonly pageSize?: number;\n /**\n * \"Continue\" under the transcript, with both: the key the conversation goes on under (`useAgentHistory().keyOf`)\n * and what the app does with the live conversation (show it: `AgentChat` with that key).\n */\n readonly agentKey?: AgentKey;\n readonly onContinue?: (conversation: AgentConversation) => void;\n /** The conversation ended (its summary's `state`): no \"Continue\", as the list offers it only for an open one. */\n readonly ended?: boolean;\n readonly components?: AgentTranscriptSlots;\n /** Which card photos are drawn, as on the chat. Keep stable. */\n readonly imagePolicy?: ImagePolicy;\n readonly prefetchImage?: ChatHandlers['prefetchImage'];\n readonly locale?: string;\n readonly timeZone?: string;\n readonly copy?: CopyOverrides;\n readonly theme?: ThemeOverrides;\n readonly colorScheme?: ColorSchemeSetting;\n /** The agent's name and picture until the status gives them. */\n readonly agentName?: string;\n readonly agentAvatar?: string;\n /** Hide the header (a screen that draws its own); the disclosure stays. */\n readonly hideHeader?: boolean;\n readonly style?: StyleProp<ViewStyle>;\n readonly testID?: string;\n}\n\nexport function AgentTranscript(props: AgentTranscriptProps): ReactNode {\n const copy = useMemo(\n () =>\n props.agentName\n ? { ...props.copy, agentFallbackName: props.agentName }\n : props.copy,\n [props.agentName, props.copy],\n );\n return (\n <CopyProvider locale={props.locale} copy={copy}>\n <ThemeProvider theme={props.theme} colorScheme={props.colorScheme}>\n <Transcript {...props} />\n </ThemeProvider>\n </CopyProvider>\n );\n}\n\nconst EMPTY_SLOTS: AgentTranscriptSlots = {};\n\nfunction Transcript(props: AgentTranscriptProps): ReactNode {\n const { t, direction } = useCopy();\n const { colors, space } = useTheme();\n const runtime = useAgentRuntime();\n const profile = useAgentProfile(t('agentFallbackName'));\n const name = profile.name;\n const avatar = props.agentAvatar ?? profile.avatarUrl;\n const transcript = useAgentTranscript(props.conversationId, {\n ...(props.pageSize === undefined ? {} : { pageSize: props.pageSize }),\n });\n const { state } = transcript;\n const slots = props.components ?? EMPTY_SLOTS;\n const { Header, Failure, ListComponent } = slots;\n // The chat's slots among them (bubble, image, carousel, cards), one object while the app's is the same.\n const chatSlots = useMemo<ChatSlots>(() => {\n const { Header: _h, Failure: _f, ListComponent: _l, ...rest } = slots;\n return rest;\n }, [slots]);\n // The parts read the conversation through the chat context: a read-only store over the page read so far.\n const store = useMemo(\n () =>\n readOnlyStore({\n items: state.items,\n conversationId: props.conversationId,\n agentName: name,\n agentAvatar: avatar,\n }),\n [state.items, props.conversationId, name, avatar],\n );\n const handlers = useRef<ChatHandlers>({});\n handlers.current = {\n ...(props.prefetchImage ? { prefetchImage: props.prefetchImage } : {}),\n };\n const value = useMemo(\n () => ({\n store,\n handlers,\n slots: chatSlots,\n agentAvatar: props.agentAvatar,\n timeZone: props.timeZone,\n failureAction: null,\n starters: undefined,\n imagePolicy: props.imagePolicy,\n }),\n [store, chatSlots, props.agentAvatar, props.timeZone, props.imagePolicy],\n );\n const header = { name, avatarUrl: avatar, takeoverBy: null };\n const gone =\n state.failure === 'not_found' ||\n state.failure === 'expired' ||\n state.failure === 'ended';\n const onContinue = props.onContinue;\n const agentKey = props.agentKey;\n return (\n <ChatContextProvider value={value}>\n <View\n testID={props.testID ?? 'vinaverse-transcript'}\n style={[\n { flex: 1, backgroundColor: colors.background, direction },\n props.style,\n ]}\n >\n {props.hideHeader ? null : Header ? (\n <Header {...header} Default={DefaultHeader} />\n ) : (\n <DefaultHeader {...header} />\n )}\n <DisclosureBar />\n <View style={{ flex: 1 }}>\n {state.failure && state.items.length === 0 ? (\n <Centered>\n {Failure ? (\n <Failure\n reason={state.failure}\n gone={gone}\n onRetry={transcript.load}\n Default={DefaultTranscriptFailure}\n />\n ) : (\n <DefaultTranscriptFailure\n reason={state.failure}\n gone={gone}\n onRetry={transcript.load}\n />\n )}\n </Centered>\n ) : (\n <TranscriptList\n items={state.items}\n loading={state.loading}\n more={!state.done && state.started && !state.loading}\n failed={state.failure !== null}\n onEarlier={transcript.loadEarlier}\n onRetry={transcript.retry}\n ListComponent={ListComponent}\n grouped={chatSlots.CardGroup !== undefined}\n />\n )}\n </View>\n {onContinue && agentKey && !gone && props.ended !== true ? (\n <View style={{ padding: space.lg }}>\n <Button\n label={t('historyContinue')}\n variant=\"primary\"\n onPress={() =>\n onContinue(runtime.continue(agentKey, props.conversationId))\n }\n />\n </View>\n ) : null}\n </View>\n </ChatContextProvider>\n );\n}\n\nfunction authorOf(item: TimelineItem | undefined): string | null {\n return item?.type === 'message' ? item.role : null;\n}\n\nfunction TranscriptList(props: {\n readonly items: readonly TimelineItem[];\n readonly loading: boolean;\n /** Earlier pages remain, and none is being read. */\n readonly more: boolean;\n /** The last page asked for (an earlier one, or the newest again) could not be read. */\n readonly failed: boolean;\n readonly onEarlier: () => void;\n readonly onRetry: () => void;\n readonly ListComponent: ComponentType<TranscriptListProps> | undefined;\n readonly grouped: boolean;\n}) {\n const { t } = useCopy();\n const { colors, space, font } = useTheme();\n const reducedMotion = useReducedMotion();\n const { items, grouped } = props;\n const runsRef = useRef<ReadonlyMap<string, readonly CardItem[]>>(new Map());\n const grouping = useMemo(\n () => (grouped ? carousels(items, runsRef.current) : null),\n [items, grouped],\n );\n runsRef.current = grouping?.runs ?? new Map();\n const itemsRef = useRef(items);\n itemsRef.current = items;\n const groupingRef = useRef(grouping);\n groupingRef.current = grouping;\n const renderItem = useCallback(\n ({ item, index }: { item: TimelineItem; index: number }) => (\n <Row\n item={item}\n showAuthor={authorOf(item) !== authorOf(itemsRef.current[index - 1])}\n run={groupingRef.current?.runs.get(item.key)}\n inside={groupingRef.current?.inside.has(item.key) === true}\n />\n ),\n [],\n );\n const header = props.loading ? (\n <View style={{ padding: space.md, alignItems: 'center' }}>\n <ActivityIndicator\n color={colors.textMuted}\n accessibilityLabel={t('loading')}\n />\n </View>\n ) : props.failed ? (\n // Said where the earlier messages would be, with a way to ask again (the same cursor, or the newest page).\n <View\n accessibilityRole=\"alert\"\n style={{\n padding: space.sm,\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center',\n gap: space.sm,\n }}\n >\n <Text style={{ color: colors.textMuted, fontSize: font.size.sm }}>\n {t('transcriptEarlier')}\n </Text>\n <Button\n label={t('tryAgain')}\n hint={t('transcriptEarlier')}\n variant=\"text\"\n onPress={props.onRetry}\n />\n </View>\n ) : props.more ? (\n <View style={{ padding: space.sm, alignItems: 'center' }}>\n <Button\n label={t('transcriptEarlier')}\n variant=\"text\"\n onPress={props.onEarlier}\n />\n </View>\n ) : null;\n const list: TranscriptListProps = useMemo(\n () => ({\n data: items,\n renderItem,\n keyExtractor: (item) => item.key,\n getItemType: itemType,\n maintainVisibleContentPosition: {\n startRenderingFromBottom: true,\n animateAutoScrollToBottom: !reducedMotion,\n },\n onStartReached: props.onEarlier,\n ListHeaderComponent: header,\n contentContainerStyle: { paddingVertical: space.sm },\n }),\n [items, renderItem, reducedMotion, props.onEarlier, header, space.sm],\n );\n const List = props.ListComponent;\n return List ? <List {...list} /> : <FlashList {...list} />;\n}\n\nfunction Centered(props: { readonly children: ReactNode }) {\n const { space } = useTheme();\n return (\n <View\n style={{\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n padding: space.xl,\n }}\n >\n {props.children}\n </View>\n );\n}\n\n/** The transcript could not be read: gone for good, or try again. */\nexport function DefaultTranscriptFailure(\n props: TranscriptFailureProps,\n): ReactNode {\n const { t } = useCopy();\n const { colors, space, font } = useTheme();\n return (\n <View\n accessibilityRole=\"alert\"\n style={{ alignItems: 'center', gap: space.md }}\n >\n <Text\n style={{\n color: colors.text,\n fontSize: font.size.md,\n textAlign: 'center',\n }}\n >\n {t(props.gone ? 'transcriptGone' : 'transcriptFailed')}\n </Text>\n {props.gone ? null : (\n <Button\n label={t('tryAgain')}\n variant=\"primary\"\n onPress={props.onRetry}\n />\n )}\n </View>\n );\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,275 +1,276 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4PXQ7DEY_cjs = require('./chunk-4PXQ7DEY.cjs');
|
|
4
4
|
var chunkMG32E4JI_cjs = require('./chunk-MG32E4JI.cjs');
|
|
5
5
|
var chunkNMKJ7LIJ_cjs = require('./chunk-NMKJ7LIJ.cjs');
|
|
6
|
+
var chunkXAG2P447_cjs = require('./chunk-XAG2P447.cjs');
|
|
6
7
|
var chunk6QYDPGRS_cjs = require('./chunk-6QYDPGRS.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
Object.defineProperty(exports, "ActivityLine", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return chunkNRYNK7E4_cjs.ActivityLine; }
|
|
13
|
-
});
|
|
14
11
|
Object.defineProperty(exports, "AgentChat", {
|
|
15
12
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4PXQ7DEY_cjs.AgentChat; }
|
|
17
14
|
});
|
|
18
15
|
Object.defineProperty(exports, "AgentFooter", {
|
|
19
16
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk4PXQ7DEY_cjs.AgentFooter; }
|
|
21
18
|
});
|
|
22
19
|
Object.defineProperty(exports, "AgentRuntimeProvider", {
|
|
23
20
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk4PXQ7DEY_cjs.AgentRuntimeProvider; }
|
|
25
22
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "Composer", {
|
|
27
24
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk4PXQ7DEY_cjs.Composer; }
|
|
29
26
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
27
|
+
Object.defineProperty(exports, "DefaultComposer", {
|
|
31
28
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk4PXQ7DEY_cjs.DefaultComposer; }
|
|
33
30
|
});
|
|
34
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "DefaultEnded", {
|
|
35
32
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk4PXQ7DEY_cjs.DefaultEnded; }
|
|
37
34
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
35
|
+
Object.defineProperty(exports, "DefaultUnavailable", {
|
|
39
36
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk4PXQ7DEY_cjs.DefaultUnavailable; }
|
|
41
38
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
39
|
+
Object.defineProperty(exports, "DefaultUnavailableScreen", {
|
|
43
40
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk4PXQ7DEY_cjs.DefaultUnavailableScreen; }
|
|
45
42
|
});
|
|
46
|
-
Object.defineProperty(exports, "
|
|
43
|
+
Object.defineProperty(exports, "DefaultUnreachable", {
|
|
47
44
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk4PXQ7DEY_cjs.DefaultUnreachable; }
|
|
49
46
|
});
|
|
50
|
-
Object.defineProperty(exports, "
|
|
47
|
+
Object.defineProperty(exports, "StatusBanner", {
|
|
51
48
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk4PXQ7DEY_cjs.StatusBanner; }
|
|
53
50
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
51
|
+
Object.defineProperty(exports, "VinaverseChat", {
|
|
55
52
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk4PXQ7DEY_cjs.VinaverseChat; }
|
|
57
54
|
});
|
|
58
|
-
Object.defineProperty(exports, "
|
|
55
|
+
Object.defineProperty(exports, "VinaverseChatProvider", {
|
|
59
56
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk4PXQ7DEY_cjs.VinaverseChatProvider; }
|
|
61
58
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
59
|
+
Object.defineProperty(exports, "forgetGreeting", {
|
|
63
60
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk4PXQ7DEY_cjs.forgetGreeting; }
|
|
65
62
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
63
|
+
Object.defineProperty(exports, "greetedKey", {
|
|
67
64
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk4PXQ7DEY_cjs.greetedKey; }
|
|
69
66
|
});
|
|
70
|
-
Object.defineProperty(exports, "
|
|
67
|
+
Object.defineProperty(exports, "newestWholeReply", {
|
|
71
68
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk4PXQ7DEY_cjs.newestWholeReply; }
|
|
73
70
|
});
|
|
74
|
-
Object.defineProperty(exports, "
|
|
71
|
+
Object.defineProperty(exports, "useAgentConversation", {
|
|
75
72
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentConversation; }
|
|
77
74
|
});
|
|
78
|
-
Object.defineProperty(exports, "
|
|
75
|
+
Object.defineProperty(exports, "useAgentFeatures", {
|
|
79
76
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentFeatures; }
|
|
81
78
|
});
|
|
82
|
-
Object.defineProperty(exports, "
|
|
79
|
+
Object.defineProperty(exports, "useAgentLauncher", {
|
|
83
80
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentLauncher; }
|
|
85
82
|
});
|
|
86
|
-
Object.defineProperty(exports, "
|
|
83
|
+
Object.defineProperty(exports, "useAgentName", {
|
|
87
84
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentName; }
|
|
89
86
|
});
|
|
90
|
-
Object.defineProperty(exports, "
|
|
87
|
+
Object.defineProperty(exports, "useAgentProfile", {
|
|
91
88
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentProfile; }
|
|
93
90
|
});
|
|
94
|
-
Object.defineProperty(exports, "
|
|
91
|
+
Object.defineProperty(exports, "useAgentRuntime", {
|
|
95
92
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentRuntime; }
|
|
97
94
|
});
|
|
98
|
-
Object.defineProperty(exports, "
|
|
95
|
+
Object.defineProperty(exports, "useAgentStatus", {
|
|
99
96
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentStatus; }
|
|
101
98
|
});
|
|
102
|
-
Object.defineProperty(exports, "
|
|
99
|
+
Object.defineProperty(exports, "useAgentStatusState", {
|
|
103
100
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk4PXQ7DEY_cjs.useAgentStatusState; }
|
|
105
102
|
});
|
|
106
|
-
Object.defineProperty(exports, "
|
|
103
|
+
Object.defineProperty(exports, "AgentLauncher", {
|
|
107
104
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkMG32E4JI_cjs.AgentLauncher; }
|
|
109
106
|
});
|
|
110
|
-
Object.defineProperty(exports, "
|
|
107
|
+
Object.defineProperty(exports, "LAUNCHER_SIZE", {
|
|
111
108
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkMG32E4JI_cjs.LAUNCHER_SIZE; }
|
|
113
110
|
});
|
|
114
|
-
Object.defineProperty(exports, "
|
|
111
|
+
Object.defineProperty(exports, "LauncherButton", {
|
|
115
112
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherButton; }
|
|
117
114
|
});
|
|
118
|
-
Object.defineProperty(exports, "
|
|
115
|
+
Object.defineProperty(exports, "LauncherEntrance", {
|
|
119
116
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherEntrance; }
|
|
121
118
|
});
|
|
122
|
-
Object.defineProperty(exports, "
|
|
119
|
+
Object.defineProperty(exports, "LauncherGreeting", {
|
|
123
120
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkMG32E4JI_cjs.LauncherGreeting; }
|
|
125
122
|
});
|
|
126
|
-
Object.defineProperty(exports, "
|
|
123
|
+
Object.defineProperty(exports, "useKeyboardShown", {
|
|
127
124
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkMG32E4JI_cjs.useKeyboardShown; }
|
|
129
126
|
});
|
|
130
|
-
Object.defineProperty(exports, "
|
|
127
|
+
Object.defineProperty(exports, "AskAboutRow", {
|
|
131
128
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkNMKJ7LIJ_cjs.AskAboutRow; }
|
|
133
130
|
});
|
|
134
|
-
Object.defineProperty(exports, "
|
|
131
|
+
Object.defineProperty(exports, "ActivityLine", {
|
|
135
132
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkXAG2P447_cjs.ActivityLine; }
|
|
137
134
|
});
|
|
138
|
-
Object.defineProperty(exports, "
|
|
135
|
+
Object.defineProperty(exports, "Avatar", {
|
|
139
136
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkXAG2P447_cjs.Avatar; }
|
|
141
138
|
});
|
|
142
|
-
Object.defineProperty(exports, "
|
|
139
|
+
Object.defineProperty(exports, "Button", {
|
|
143
140
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkXAG2P447_cjs.Button; }
|
|
145
142
|
});
|
|
146
|
-
Object.defineProperty(exports, "
|
|
143
|
+
Object.defineProperty(exports, "CardActions", {
|
|
147
144
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkXAG2P447_cjs.CardActions; }
|
|
149
146
|
});
|
|
150
|
-
Object.defineProperty(exports, "
|
|
147
|
+
Object.defineProperty(exports, "CardCarousel", {
|
|
151
148
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkXAG2P447_cjs.CardCarousel; }
|
|
153
150
|
});
|
|
154
|
-
Object.defineProperty(exports, "
|
|
151
|
+
Object.defineProperty(exports, "CardFrame", {
|
|
155
152
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkXAG2P447_cjs.CardFrame; }
|
|
157
154
|
});
|
|
158
|
-
Object.defineProperty(exports, "
|
|
155
|
+
Object.defineProperty(exports, "CardView", {
|
|
159
156
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkXAG2P447_cjs.CardView; }
|
|
161
158
|
});
|
|
162
|
-
Object.defineProperty(exports, "
|
|
159
|
+
Object.defineProperty(exports, "ChatHeader", {
|
|
163
160
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkXAG2P447_cjs.ChatHeader; }
|
|
165
162
|
});
|
|
166
|
-
Object.defineProperty(exports, "
|
|
163
|
+
Object.defineProperty(exports, "ChatSkeleton", {
|
|
167
164
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkXAG2P447_cjs.ChatSkeleton; }
|
|
169
166
|
});
|
|
170
|
-
Object.defineProperty(exports, "
|
|
167
|
+
Object.defineProperty(exports, "DefaultBubble", {
|
|
171
168
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkXAG2P447_cjs.DefaultBubble; }
|
|
173
170
|
});
|
|
174
|
-
Object.defineProperty(exports, "
|
|
171
|
+
Object.defineProperty(exports, "DefaultHeader", {
|
|
175
172
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkXAG2P447_cjs.DefaultHeader; }
|
|
177
174
|
});
|
|
178
|
-
Object.defineProperty(exports, "
|
|
175
|
+
Object.defineProperty(exports, "DefaultTurnFailed", {
|
|
179
176
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkXAG2P447_cjs.DefaultTurnFailed; }
|
|
181
178
|
});
|
|
182
|
-
Object.defineProperty(exports, "
|
|
179
|
+
Object.defineProperty(exports, "DisclosureBar", {
|
|
183
180
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkXAG2P447_cjs.DisclosureBar; }
|
|
185
182
|
});
|
|
186
|
-
Object.defineProperty(exports, "
|
|
183
|
+
Object.defineProperty(exports, "FailureActionButton", {
|
|
187
184
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkXAG2P447_cjs.FailureActionButton; }
|
|
189
186
|
});
|
|
190
|
-
Object.defineProperty(exports, "
|
|
187
|
+
Object.defineProperty(exports, "InfoCard", {
|
|
191
188
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkXAG2P447_cjs.InfoCard; }
|
|
193
190
|
});
|
|
194
|
-
Object.defineProperty(exports, "
|
|
191
|
+
Object.defineProperty(exports, "LinksCard", {
|
|
195
192
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkXAG2P447_cjs.LinksCard; }
|
|
197
194
|
});
|
|
198
|
-
Object.defineProperty(exports, "
|
|
195
|
+
Object.defineProperty(exports, "ListingCard", {
|
|
199
196
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkXAG2P447_cjs.ListingCard; }
|
|
201
198
|
});
|
|
202
|
-
Object.defineProperty(exports, "
|
|
199
|
+
Object.defineProperty(exports, "MessageBubble", {
|
|
203
200
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkXAG2P447_cjs.MessageBubble; }
|
|
205
202
|
});
|
|
206
|
-
Object.defineProperty(exports, "
|
|
203
|
+
Object.defineProperty(exports, "MessageList", {
|
|
207
204
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkXAG2P447_cjs.MessageList; }
|
|
209
206
|
});
|
|
210
|
-
Object.defineProperty(exports, "
|
|
207
|
+
Object.defineProperty(exports, "NextStepCard", {
|
|
211
208
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkXAG2P447_cjs.NextStepCard; }
|
|
213
210
|
});
|
|
214
|
-
Object.defineProperty(exports, "
|
|
211
|
+
Object.defineProperty(exports, "ProposalCard", {
|
|
215
212
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkXAG2P447_cjs.ProposalCard; }
|
|
217
214
|
});
|
|
218
|
-
Object.defineProperty(exports, "
|
|
215
|
+
Object.defineProperty(exports, "QuestionCard", {
|
|
219
216
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkXAG2P447_cjs.QuestionCard; }
|
|
221
218
|
});
|
|
222
|
-
Object.defineProperty(exports, "
|
|
219
|
+
Object.defineProperty(exports, "Row", {
|
|
223
220
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkXAG2P447_cjs.Row; }
|
|
225
222
|
});
|
|
226
|
-
Object.defineProperty(exports, "
|
|
223
|
+
Object.defineProperty(exports, "StreamingBubble", {
|
|
227
224
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkXAG2P447_cjs.StreamingBubble; }
|
|
229
226
|
});
|
|
230
|
-
Object.defineProperty(exports, "
|
|
227
|
+
Object.defineProperty(exports, "SystemRow", {
|
|
231
228
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkXAG2P447_cjs.SystemRow; }
|
|
233
230
|
});
|
|
234
|
-
Object.defineProperty(exports, "
|
|
231
|
+
Object.defineProperty(exports, "TimeSlotsCard", {
|
|
235
232
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkXAG2P447_cjs.TimeSlotsCard; }
|
|
237
234
|
});
|
|
238
|
-
Object.defineProperty(exports, "
|
|
235
|
+
Object.defineProperty(exports, "Welcome", {
|
|
239
236
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkXAG2P447_cjs.Welcome; }
|
|
241
238
|
});
|
|
242
|
-
Object.defineProperty(exports, "
|
|
239
|
+
Object.defineProperty(exports, "allowedImage", {
|
|
243
240
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkXAG2P447_cjs.allowedImage; }
|
|
245
242
|
});
|
|
246
|
-
Object.defineProperty(exports, "
|
|
243
|
+
Object.defineProperty(exports, "answerText", {
|
|
247
244
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkXAG2P447_cjs.answerText; }
|
|
249
246
|
});
|
|
250
|
-
Object.defineProperty(exports, "
|
|
247
|
+
Object.defineProperty(exports, "carousels", {
|
|
251
248
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkXAG2P447_cjs.carousels; }
|
|
253
250
|
});
|
|
254
|
-
Object.defineProperty(exports, "
|
|
251
|
+
Object.defineProperty(exports, "defaultCard", {
|
|
255
252
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkXAG2P447_cjs.defaultCard; }
|
|
257
254
|
});
|
|
258
|
-
Object.defineProperty(exports, "
|
|
255
|
+
Object.defineProperty(exports, "fieldText", {
|
|
259
256
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkXAG2P447_cjs.fieldText; }
|
|
261
258
|
});
|
|
262
|
-
Object.defineProperty(exports, "
|
|
259
|
+
Object.defineProperty(exports, "itemType", {
|
|
263
260
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkXAG2P447_cjs.itemType; }
|
|
265
262
|
});
|
|
266
|
-
Object.defineProperty(exports, "
|
|
263
|
+
Object.defineProperty(exports, "monogram", {
|
|
267
264
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkXAG2P447_cjs.monogram; }
|
|
269
266
|
});
|
|
270
|
-
Object.defineProperty(exports, "
|
|
267
|
+
Object.defineProperty(exports, "ratingText", {
|
|
271
268
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkXAG2P447_cjs.ratingText; }
|
|
270
|
+
});
|
|
271
|
+
Object.defineProperty(exports, "useChat", {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
get: function () { return chunkXAG2P447_cjs.useChat; }
|
|
273
274
|
});
|
|
274
275
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
275
276
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus, useAgentStatusState } from '@vinaverse/react/agent';
|
|
2
|
-
export {
|
|
2
|
+
export { C as CardCarousel, a as CardGroupProps, b as CardProps, c as ChatHandlers, d as ChatSlots, e as ChatStore, f as ChatWarning, g as Chip, h as ComposerProps, E as EmptyStateProps, F as FailureAction, i as FailureProps, j as FailureState, H as HeaderProps, I as ImagePolicy, L as ListProps, M as MessageBubbleProps, P as ProposalDecision, u as useChat } from './context-gHCLFsJh.cjs';
|
|
3
|
+
export { ActivityLine, AgentChat, AgentChatProps, AgentChatSlots, AgentEndedProps, AgentFooter, AgentFooterProps, AgentUnavailableScreenProps, AgentUnreachableProps, Avatar, Button, ButtonProps, CardActions, CardFrame, CardView, ChatHeader, ChatSkeleton, Composer, DefaultBubble, DefaultComposer, DefaultEnded, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, DisclosureBar, FailureActionButton, InfoCard, LifecycleTarget, LinksCard, ListingCard, MessageBubble, MessageList, NextStepCard, ProposalCard, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, TimeSlotsCard, VinaverseChat, VinaverseChatProps, VinaverseChatProvider, Welcome, allowedImage, announce, answerText, carousels, defaultCard, fieldText, itemType, monogram, newestWholeReply, ratingText, useNativeLifecycle, useReducedMotion } from './chat.cjs';
|
|
3
4
|
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
5
|
export { AgentLauncher, AgentLauncherProps, LAUNCHER_SIZE, LauncherAppearance, LauncherButton, LauncherButtonProps, LauncherContext, LauncherEntrance, LauncherEntranceProps, LauncherGreeting, LauncherGreetingProps, LauncherPlacement, useKeyboardShown } from './launcher.cjs';
|
|
5
6
|
export { AskAboutRow, AskAboutRowAppearance, AskAboutRowProps } from './ask.cjs';
|
|
6
7
|
import 'react';
|
|
7
|
-
import '@vinaverse/client/conversation';
|
|
8
8
|
import '@vinaverse/client/agent';
|
|
9
|
+
import '@vinaverse/client/conversation';
|
|
9
10
|
import 'react-native';
|
|
10
11
|
import '@vinaverse/react';
|
|
11
12
|
import '@vinaverse/tokens';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { AgentRuntimeProvider, GreetingStorage, UseAgentConversation, UseAgentLauncher, forgetGreeting, greetedKey, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus, useAgentStatusState } from '@vinaverse/react/agent';
|
|
2
|
-
export {
|
|
2
|
+
export { C as CardCarousel, a as CardGroupProps, b as CardProps, c as ChatHandlers, d as ChatSlots, e as ChatStore, f as ChatWarning, g as Chip, h as ComposerProps, E as EmptyStateProps, F as FailureAction, i as FailureProps, j as FailureState, H as HeaderProps, I as ImagePolicy, L as ListProps, M as MessageBubbleProps, P as ProposalDecision, u as useChat } from './context-gHCLFsJh.js';
|
|
3
|
+
export { ActivityLine, AgentChat, AgentChatProps, AgentChatSlots, AgentEndedProps, AgentFooter, AgentFooterProps, AgentUnavailableScreenProps, AgentUnreachableProps, Avatar, Button, ButtonProps, CardActions, CardFrame, CardView, ChatHeader, ChatSkeleton, Composer, DefaultBubble, DefaultComposer, DefaultEnded, DefaultHeader, DefaultTurnFailed, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, DisclosureBar, FailureActionButton, InfoCard, LifecycleTarget, LinksCard, ListingCard, MessageBubble, MessageList, NextStepCard, ProposalCard, QuestionCard, Row, StatusBanner, StreamingBubble, SystemRow, TimeSlotsCard, VinaverseChat, VinaverseChatProps, VinaverseChatProvider, Welcome, allowedImage, announce, answerText, carousels, defaultCard, fieldText, itemType, monogram, newestWholeReply, ratingText, useNativeLifecycle, useReducedMotion } from './chat.js';
|
|
3
4
|
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
5
|
export { AgentLauncher, AgentLauncherProps, LAUNCHER_SIZE, LauncherAppearance, LauncherButton, LauncherButtonProps, LauncherContext, LauncherEntrance, LauncherEntranceProps, LauncherGreeting, LauncherGreetingProps, LauncherPlacement, useKeyboardShown } from './launcher.js';
|
|
5
6
|
export { AskAboutRow, AskAboutRowAppearance, AskAboutRowProps } from './ask.js';
|
|
6
7
|
import 'react';
|
|
7
|
-
import '@vinaverse/client/conversation';
|
|
8
8
|
import '@vinaverse/client/agent';
|
|
9
|
+
import '@vinaverse/client/conversation';
|
|
9
10
|
import 'react-native';
|
|
10
11
|
import '@vinaverse/react';
|
|
11
12
|
import '@vinaverse/tokens';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AgentChat, AgentFooter, AgentRuntimeProvider, Composer, DefaultComposer, DefaultEnded, DefaultUnavailable, DefaultUnavailableScreen, DefaultUnreachable, StatusBanner, VinaverseChat, VinaverseChatProvider, forgetGreeting, greetedKey, newestWholeReply, useAgentConversation, useAgentFeatures, useAgentLauncher, useAgentName, useAgentProfile, useAgentRuntime, useAgentStatus, useAgentStatusState } from './chunk-2J2LIJLW.js';
|
|
2
2
|
export { AgentLauncher, LAUNCHER_SIZE, LauncherButton, LauncherEntrance, LauncherGreeting, useKeyboardShown } from './chunk-POJP52GE.js';
|
|
3
3
|
export { AskAboutRow } from './chunk-7KPCO443.js';
|
|
4
|
+
export { ActivityLine, Avatar, Button, CardActions, CardCarousel, CardFrame, CardView, ChatHeader, ChatSkeleton, DefaultBubble, DefaultHeader, DefaultTurnFailed, DisclosureBar, FailureActionButton, InfoCard, LinksCard, ListingCard, MessageBubble, MessageList, NextStepCard, ProposalCard, QuestionCard, Row, StreamingBubble, SystemRow, TimeSlotsCard, Welcome, allowedImage, answerText, carousels, defaultCard, fieldText, itemType, monogram, ratingText, useChat } from './chunk-KSHDF3MG.js';
|
|
4
5
|
export { ThemeProvider, announce, createTheme, themeProblems, useNativeLifecycle, useReducedMotion, useTheme } from './chunk-EFEXTVIT.js';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
|
6
7
|
//# sourceMappingURL=index.js.map
|