@getsoren/design-system 4.82.0 → 4.83.1

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.
@@ -13,6 +13,10 @@ interface ChatProps {
13
13
  interface ChatBodyProps {
14
14
  children: ReactNode;
15
15
  }
16
+ /**
17
+ * On a phone the list and the conversation cannot sit side by side: the body shows one pane at a
18
+ * time — the list until a thread is selected, then the conversation (its header offers the way back).
19
+ */
16
20
  declare const ChatBody: ({ children }: ChatBodyProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
21
  type ChatComponent = FC<ChatProps> & {
18
22
  Body: typeof ChatBody;
@@ -1,3 +1,3 @@
1
1
  import { ChatConversationDetailProps } from '../types';
2
- declare const ChatConversationDetail: ({ threadId, participants, isLoading, messages, currentUserId, onDeleteConversation, onNewConversation, onSendMessage, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, renderAfterBubble, labels, formatDayLabel, isSending, formatParticipantName, headerAction, defaultMessage, onAddParticipantDialogOpenChange, messageMaxLength, slotProps, }: ChatConversationDetailProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ declare const ChatConversationDetail: ({ threadId, participants, isLoading, messages, currentUserId, onDeleteConversation, onNewConversation, onSendMessage, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, renderAfterBubble, labels, formatDayLabel, isSending, formatParticipantName, headerAction, defaultMessage, onAddParticipantDialogOpenChange, messageMaxLength, slotProps, onBack, }: ChatConversationDetailProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default ChatConversationDetail;
@@ -14,6 +14,7 @@ interface ChatConversationDetailHeaderProps {
14
14
  headerAction?: ReactNode;
15
15
  onAddParticipantDialogOpenChange?: (open: boolean) => void;
16
16
  slotProps?: Pick<ChatConversationDetailSlotProps, "addParticipantsButton">;
17
+ onBack?: () => void;
17
18
  }
18
- declare const ChatConversationDetailHeader: ({ threadId, participants, onDeleteConversation, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, labels, formatParticipantName, headerAction, onAddParticipantDialogOpenChange, slotProps, }: ChatConversationDetailHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
+ declare const ChatConversationDetailHeader: ({ threadId, participants, onDeleteConversation, onAddParticipants, onSearchParticipants, searchResults, isSearchingParticipants, avatarSrcResolver, labels, formatParticipantName, headerAction, onAddParticipantDialogOpenChange, slotProps, onBack, }: ChatConversationDetailHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
20
  export default ChatConversationDetailHeader;
@@ -44,6 +44,7 @@ export interface ChatConversationDetailLabels {
44
44
  participants?: string;
45
45
  searchContacts?: string;
46
46
  add?: string;
47
+ back?: string;
47
48
  }
48
49
  export interface ChatMessageInputLabels {
49
50
  writeAMessage?: string;
@@ -106,6 +107,7 @@ export interface ChatConversationDetailProps {
106
107
  onAddParticipantDialogOpenChange?: (open: boolean) => void;
107
108
  messageMaxLength?: number;
108
109
  slotProps?: ChatConversationDetailSlotProps;
110
+ onBack?: () => void;
109
111
  }
110
112
  export interface ChatMessageBubbleProps {
111
113
  isOwn: boolean;
@@ -1,3 +1,3 @@
1
1
  import { PlanningTimelineGroup, PlanningTimelineProps, PlanningTimelineResource, PlanningTimelineTask } from './types';
2
- declare const PlanningTimeline: <G extends PlanningTimelineGroup, R extends PlanningTimelineResource, T extends PlanningTimelineTask>({ groups, resources, tasks, isLoading, onTaskClick, onResourceClick, onGroupClick, onBarResize, renderGroup, renderResource, renderBar, renderTooltip, isTaskSelected, recenterKey, toolbarActions, toolbarLeadingActions, sidebarTitle, locale, labels, localStorageKeys, defaultViewMode, sidebarWidth, rowHeight, }: PlanningTimelineProps<G, R, T>) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ declare const PlanningTimeline: <G extends PlanningTimelineGroup, R extends PlanningTimelineResource, T extends PlanningTimelineTask>({ groups, resources, tasks, isLoading, onTaskClick, onResourceClick, onGroupClick, onBarResize, renderGroup, renderResource, renderBar, renderTooltip, isTaskSelected, recenterKey, toolbarActions, toolbarLeadingActions, sidebarTitle, locale, labels, localStorageKeys, defaultViewMode, sidebarWidth: sidebarWidthProp, rowHeight, }: PlanningTimelineProps<G, R, T>) => import("@emotion/react/jsx-runtime").JSX.Element;
3
3
  export default PlanningTimeline;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.82.0",
5
+ "version": "4.83.1",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",