@smartspace/chat-ui 1.13.1-pr.243.7b5fc0f → 1.13.1-pr.245.375359

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/dist/index.d.ts CHANGED
@@ -34,8 +34,20 @@ type MessageListProps = {
34
34
  * sidebars, so it omits the prop and gets the natural 70% width.
35
35
  */
36
36
  expandedLayout?: boolean;
37
+ /**
38
+ * Set to `true` while the host is mid-redirect from a "no thread selected"
39
+ * route to the first thread of a workspace — the message list shows a
40
+ * loading skeleton instead of the empty-state during that brief window so
41
+ * users don't see a "No messages yet" flash.
42
+ *
43
+ * Standalone web fork passes this from `useMatch('/.../_layout/')` to
44
+ * detect the workspace-index route specifically. The sandbox/admin doesn't
45
+ * have multi-thread navigation, so it omits the prop entirely (defaults
46
+ * `false` — no router coupling).
47
+ */
48
+ isChoosingThread?: boolean;
37
49
  };
38
- declare function MessageList({ applyHostBackgroundOverride, expandedLayout, }?: MessageListProps): react_jsx_runtime.JSX.Element;
50
+ declare function MessageList({ applyHostBackgroundOverride, expandedLayout, isChoosingThread, }?: MessageListProps): react_jsx_runtime.JSX.Element;
39
51
 
40
52
  /**
41
53
  * Skeleton for the message list loading state.
@@ -997,6 +1009,16 @@ declare function setThreadOptimisticRunning(qc: QueryClient, threadId: string, r
997
1009
  */
998
1010
  declare function setThreadRunningInLists(qc: QueryClient, workspaceId: string, threadId: string, running: boolean): void;
999
1011
 
1012
+ /** Synthetic id for the "New Thread" row in the thread list; links to thread/new route. */
1013
+ declare const NEW_THREAD_ID = "__new__";
1014
+ /** Generate a GUID for a new thread (e.g. when sending first message from thread/new). */
1015
+ declare function createThreadId(): string;
1016
+ declare const DRAFT_THREAD_PREFIX = "draft-";
1017
+ declare function markDraftThreadId(threadId: string): void;
1018
+ declare function unmarkDraftThreadId(threadId: string): void;
1019
+ declare function isDraftThreadId(threadId?: string | null): boolean;
1020
+ declare function createDraftThreadId(): string;
1021
+
1000
1022
  declare const messagesKeys: {
1001
1023
  all: readonly ["messages"];
1002
1024
  lists: () => readonly ["messages", "list"];
@@ -1283,4 +1305,4 @@ declare function useModels({ search, take, skip, }?: {
1283
1305
  total: number;
1284
1306
  }, Error>;
1285
1307
 
1286
- export { type ChatContextIds, type ChatIdentity, ChatProvider, type ChatProviderProps, type ChatService, ChatVariablesForm, type FileInfo$1 as FileInfo, type FileScope, type FlowRunVariables, MarkdownEditor, type MarkdownEditorHandle, type MentionUser, type Message, MessageComposer, type MessageComposerProps, type MessageContentItem, type MessageError, MessageList, type MessageListProps, MessageListSkeleton, MessageMarkdown, type MessageThread, type MessageValue, MessageValueType, type Model, type ModelProperty, THREAD_LIST_PAGE_SIZE, type ThreadsResponse, type Variables, type Workspace, applyDeltaToMessage, applyThreadToCache, downloadFileBlobOptions, filesKeys, flowRunsKeys, getModelIcon, getThreadPlaceholderFromListCache, invalidateWorkspaceThreadLists, mapFileInfoDtoToModel, mapMentionUserDtoToModel, mapMessageDtoToModel, mapMessageErrorDtoToModel, mapMessageValueDtoToModel, mapMessagesDtoToModels, mapSignalRThreadSummaryToModel, mapThreadDtoToModel, mapThreadsResponseDtoToModel, mapWorkspaceDtoToModel, mapWorkspacesDtoToModels, messagesKeys, messagesListOptions, messagesMutationsKeys, modelsKeys, setThreadOptimisticRunning, setThreadRunningInLists, taggableUsersOptions, threadDetailOptions, threadsKeys, useAddInputToMessage, useChatContext, useChatIdentity, useChatService, useDownloadFileBlobQuery, useFileMutations, useFlowRunVariables, useMessages, useModels, useSendMessage, useTaggableWorkspaceUsers, useThread, useThreadIsRunning, useUpdateFlowRunVariable, useWorkspace, workspaceDetailOptions, workspaceKeys };
1308
+ export { type ChatContextIds, type ChatIdentity, ChatProvider, type ChatProviderProps, type ChatService, ChatVariablesForm, DRAFT_THREAD_PREFIX, type FileInfo$1 as FileInfo, type FileScope, type FlowRunVariables, MarkdownEditor, type MarkdownEditorHandle, type MentionUser, type Message, MessageComposer, type MessageComposerProps, type MessageContentItem, type MessageError, MessageList, type MessageListProps, MessageListSkeleton, MessageMarkdown, type MessageThread, type MessageValue, MessageValueType, type Model, type ModelProperty, NEW_THREAD_ID, THREAD_LIST_PAGE_SIZE, type ThreadsResponse, type Variables, type Workspace, applyDeltaToMessage, applyThreadToCache, createDraftThreadId, createThreadId, downloadFileBlobOptions, filesKeys, flowRunsKeys, getModelIcon, getThreadPlaceholderFromListCache, invalidateWorkspaceThreadLists, isDraftThreadId, mapFileInfoDtoToModel, mapMentionUserDtoToModel, mapMessageDtoToModel, mapMessageErrorDtoToModel, mapMessageValueDtoToModel, mapMessagesDtoToModels, mapSignalRThreadSummaryToModel, mapThreadDtoToModel, mapThreadsResponseDtoToModel, mapWorkspaceDtoToModel, mapWorkspacesDtoToModels, markDraftThreadId, messagesKeys, messagesListOptions, messagesMutationsKeys, modelsKeys, setThreadOptimisticRunning, setThreadRunningInLists, taggableUsersOptions, threadDetailOptions, threadsKeys, unmarkDraftThreadId, useAddInputToMessage, useChatContext, useChatIdentity, useChatService, useDownloadFileBlobQuery, useFileMutations, useFlowRunVariables, useMessages, useModels, useSendMessage, useTaggableWorkspaceUsers, useThread, useThreadIsRunning, useUpdateFlowRunVariable, useWorkspace, workspaceDetailOptions, workspaceKeys };