@bootdesk/js-web-adapter-react 0.4.4 → 0.4.5

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.cts CHANGED
@@ -1,5 +1,6 @@
1
- import React, { Component, ReactNode } from 'react';
2
- import { WebChatClient, PushConfig, ReconfigureConfig, PushSubscriptionStatus, Message, Card, CustomCard, WebChatClientConfig, BroadcastClient } from '@bootdesk/js-web-adapter-core';
1
+ import React$1, { Component, ReactNode } from 'react';
2
+ import * as _bootdesk_js_web_adapter_core from '@bootdesk/js-web-adapter-core';
3
+ import { PushConfig, ReconfigureConfig, PushSubscriptionStatus, Message, Card, CustomCard, WebChatClient, WebChatClientConfig, BroadcastClient } from '@bootdesk/js-web-adapter-core';
3
4
  export { Card, CustomCard, LaravelEchoBroadcastClient, Message, PHPCard, PushConfig, PushEventData, PushManager, PushSubscriptionStatus, PusherBroadcastClient, User, WebChatClient, createPushSubscriptionHandlers } from '@bootdesk/js-web-adapter-core';
4
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
6
 
@@ -41,7 +42,6 @@ type UploadConfig = AttachmentUploadConfig | SimpleUploadConfig;
41
42
 
42
43
  type DisplayMode = "floating" | "fullscreen" | "embedded";
43
44
  type ThemeMode = "light" | "dark" | "auto";
44
-
45
45
  interface PreEntryHelpers {
46
46
  start: (config?: ReconfigureConfig) => void;
47
47
  }
@@ -49,7 +49,7 @@ interface PreEntryConfig {
49
49
  render: (helpers: PreEntryHelpers) => React.ReactNode;
50
50
  }
51
51
  interface ChatWidgetProps {
52
- client: WebChatClient;
52
+ client: _bootdesk_js_web_adapter_core.WebChatClient;
53
53
  locale?: string;
54
54
  initialMode?: DisplayMode;
55
55
  theme?: ThemeMode;
@@ -94,7 +94,8 @@ interface ChatWidgetProps {
94
94
  preEntry?: PreEntryConfig;
95
95
  onChatStart?: (config?: ReconfigureConfig) => void;
96
96
  }
97
- declare function ChatWidget({ client, locale: localeProp, initialMode, theme: themeProp, onThemeChange, position, className, showClose, showFullscreenToggle, title, placeholder, onOpen, onClose, embedded, floatingButton, enableAttachments, uploadConfig, accept, maxFileSize, renderPushPrompt, preEntry, onChatStart, pushConfig, }: ChatWidgetProps): React.JSX.Element;
97
+
98
+ declare function ChatWidget({ client, locale: localeProp, initialMode, theme: themeProp, onThemeChange, position, className, showClose, showFullscreenToggle, title, placeholder, onOpen, onClose, embedded, floatingButton, enableAttachments, uploadConfig, accept, maxFileSize, renderPushPrompt, preEntry, onChatStart, pushConfig, }: ChatWidgetProps): React$1.JSX.Element;
98
99
 
99
100
  interface HeaderProps {
100
101
  title?: string;
@@ -109,7 +110,7 @@ interface HeaderProps {
109
110
  pushStatus?: PushSubscriptionStatus;
110
111
  onPushToggle?: () => void;
111
112
  }
112
- declare function Header({ title, onClose, onToggleFullscreen, isFullscreen, showConnectionStatus, isConnected, className, theme, onThemeChange, pushStatus, onPushToggle, }: HeaderProps): React.JSX.Element;
113
+ declare function Header({ title, onClose, onToggleFullscreen, isFullscreen, showConnectionStatus, isConnected, className, theme, onThemeChange, pushStatus, onPushToggle, }: HeaderProps): React$1.JSX.Element;
113
114
 
114
115
  interface MessageListProps {
115
116
  messages: Message[];
@@ -119,13 +120,13 @@ interface MessageListProps {
119
120
  onActionClick?: (messageId: string, actionId: string, value: string) => void;
120
121
  className?: string;
121
122
  }
122
- declare function MessageList({ messages, currentUserId, isLoading, onReactionClick, onActionClick, className, }: MessageListProps): React.JSX.Element;
123
+ declare function MessageList({ messages, currentUserId, isLoading, onReactionClick, onActionClick, className, }: MessageListProps): React$1.JSX.Element;
123
124
 
124
125
  interface MessageContentProps {
125
126
  message: Message;
126
127
  onActionClick?: (messageId: string, actionId: string, value: string) => void;
127
128
  }
128
- declare function MessageContent({ message, onActionClick }: MessageContentProps): React.JSX.Element;
129
+ declare function MessageContent({ message, onActionClick }: MessageContentProps): React$1.JSX.Element;
129
130
 
130
131
  interface InputAreaProps {
131
132
  onSend: (text: string, attachments: Array<{
@@ -142,41 +143,41 @@ interface InputAreaProps {
142
143
  accept?: string;
143
144
  maxFileSize?: number;
144
145
  }
145
- declare function InputArea({ onSend, disabled, placeholder, className, enableAttachments, uploadConfig, accept, maxFileSize, }: InputAreaProps): React.JSX.Element;
146
+ declare function InputArea({ onSend, disabled, placeholder, className, enableAttachments, uploadConfig, accept, maxFileSize, }: InputAreaProps): React$1.JSX.Element;
146
147
 
147
148
  interface TypingIndicatorProps {
148
149
  users?: string[];
149
150
  }
150
- declare function TypingIndicator({ users }: TypingIndicatorProps): React.JSX.Element;
151
+ declare function TypingIndicator({ users }: TypingIndicatorProps): React$1.JSX.Element;
151
152
 
152
153
  interface FloatingButtonProps {
153
154
  onClick: () => void;
154
155
  isOpen: boolean;
155
156
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
156
157
  className?: string;
157
- icon?: React.ReactNode;
158
- openIcon?: React.ReactNode;
158
+ icon?: React$1.ReactNode;
159
+ openIcon?: React$1.ReactNode;
159
160
  badgeCount?: number;
160
161
  size?: number;
161
162
  backgroundColor?: string;
162
163
  ariaLabel?: string;
163
164
  }
164
- declare function FloatingButton({ onClick, isOpen, position, className, icon, openIcon, badgeCount, size, backgroundColor, ariaLabel, }: FloatingButtonProps): React.JSX.Element;
165
+ declare function FloatingButton({ onClick, isOpen, position, className, icon, openIcon, badgeCount, size, backgroundColor, ariaLabel, }: FloatingButtonProps): React$1.JSX.Element;
165
166
 
166
167
  interface CardRendererProps {
167
168
  card: Card | CustomCard;
168
169
  onActionClick?: (actionId: string, value: string) => void;
169
170
  }
170
- type CardRenderer$1 = React.ComponentType<CardRendererProps>;
171
+ type CardRenderer$1 = React$1.ComponentType<CardRendererProps>;
171
172
  type CardRendererMap = Map<string, CardRenderer$1>;
172
173
 
173
- declare function CardRenderer({ card, onActionClick }: CardRendererProps): React.JSX.Element | null;
174
+ declare function CardRenderer({ card, onActionClick }: CardRendererProps): React$1.JSX.Element | null;
174
175
 
175
- declare function DefaultCard({ card: rawCard, onActionClick, }: CardRendererProps): React.JSX.Element | null;
176
+ declare function DefaultCard({ card: rawCard, onActionClick, }: CardRendererProps): React$1.JSX.Element | null;
176
177
 
177
- declare function ImageCardComponent({ card: rawCard }: CardRendererProps): React.JSX.Element | null;
178
+ declare function ImageCardComponent({ card: rawCard }: CardRendererProps): React$1.JSX.Element | null;
178
179
 
179
- declare function FileCardComponent({ card: rawCard }: CardRendererProps): React.JSX.Element | null;
180
+ declare function FileCardComponent({ card: rawCard }: CardRendererProps): React$1.JSX.Element | null;
180
181
 
181
182
  interface CardContextValue {
182
183
  renderers: CardRendererMap;
@@ -184,21 +185,21 @@ interface CardContextValue {
184
185
  getRenderer: (type: string) => CardRenderer$1 | undefined;
185
186
  }
186
187
  interface CardProviderProps {
187
- children: React.ReactNode;
188
+ children: React$1.ReactNode;
188
189
  renderers?: Record<string, CardRenderer$1>;
189
190
  }
190
- declare function CardProvider({ children, renderers }: CardProviderProps): React.JSX.Element;
191
+ declare function CardProvider({ children, renderers }: CardProviderProps): React$1.JSX.Element;
191
192
  declare function useCardRegistry(): CardContextValue;
192
193
 
193
194
  interface ChatContextValue {
194
195
  client: WebChatClient;
195
196
  }
196
197
  interface ChatProviderProps {
197
- children: React.ReactNode;
198
+ children: React$1.ReactNode;
198
199
  client: WebChatClient;
199
200
  cardRenderers?: Record<string, CardRenderer$1>;
200
201
  }
201
- declare function ChatProvider({ children, client, cardRenderers, }: ChatProviderProps): React.JSX.Element;
202
+ declare function ChatProvider({ children, client, cardRenderers, }: ChatProviderProps): React$1.JSX.Element;
202
203
  declare function useChatContext(): ChatContextValue;
203
204
 
204
205
  declare function useChatClient(config: Omit<WebChatClientConfig, "broadcastClient"> & {
@@ -251,12 +252,12 @@ declare function renderMarkdown(text: string): string;
251
252
  declare function MarkdownRenderer({ text, className, }: {
252
253
  text: string;
253
254
  className?: string;
254
- }): React.JSX.Element;
255
+ }): React$1.JSX.Element;
255
256
 
256
257
  interface ErrorBoundaryProps {
257
258
  children: ReactNode;
258
259
  fallback?: ReactNode | ((error: Error) => ReactNode);
259
- onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
260
+ onError?: (error: Error, errorInfo: React$1.ErrorInfo) => void;
260
261
  }
261
262
  interface ErrorBoundaryState {
262
263
  error: Error | null;
@@ -264,7 +265,7 @@ interface ErrorBoundaryState {
264
265
  declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
265
266
  constructor(props: ErrorBoundaryProps);
266
267
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
267
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
268
+ componentDidCatch(error: Error, errorInfo: React$1.ErrorInfo): void;
268
269
  render(): ReactNode;
269
270
  }
270
271
 
@@ -276,14 +277,14 @@ interface DropzoneProps {
276
277
  multiple?: boolean;
277
278
  className?: string;
278
279
  }
279
- declare function Dropzone({ onFilesSelected, disabled, accept, maxSize, multiple, className, }: DropzoneProps): React.JSX.Element;
280
+ declare function Dropzone({ onFilesSelected, disabled, accept, maxSize, multiple, className, }: DropzoneProps): React$1.JSX.Element;
280
281
 
281
282
  interface AttachmentListProps {
282
283
  attachments: PendingAttachment[];
283
284
  onRemove?: (id: string) => void;
284
285
  className?: string;
285
286
  }
286
- declare function AttachmentList({ attachments, onRemove, className, }: AttachmentListProps): React.JSX.Element;
287
+ declare function AttachmentList({ attachments, onRemove, className, }: AttachmentListProps): React$1.JSX.Element;
287
288
 
288
289
  declare function useAttachmentUpload(uploadConfig?: UploadConfig): {
289
290
  attachments: PendingAttachment[];
@@ -388,10 +389,10 @@ interface LocaleContextValue {
388
389
  t: (path: string) => string;
389
390
  }
390
391
  interface LocaleProviderProps {
391
- children: React.ReactNode;
392
+ children: React$1.ReactNode;
392
393
  locale?: LocaleConfig | string;
393
394
  }
394
- declare function LocaleProvider({ children, locale }: LocaleProviderProps): React.JSX.Element;
395
+ declare function LocaleProvider({ children, locale }: LocaleProviderProps): React$1.JSX.Element;
395
396
  declare function useLocale(): LocaleContextValue;
396
397
 
397
398
  declare function registerLocale(locale: string, strings: LocaleStrings): void;
@@ -433,4 +434,4 @@ declare function usePushNotifications(options: UsePushNotificationsOptions): {
433
434
  unsubscribe: () => Promise<void>;
434
435
  };
435
436
 
436
- export { AttachmentList, type AttachmentUploadConfig, CardProvider, CardRenderer, type CardRendererProps, type CardRenderer$1 as CardRendererType, ChatProvider, ChatWidget, type ChatWidgetProps, DefaultCard, Dropzone, ErrorBoundary, FileCardComponent, FloatingButton, Header, ImageCardComponent, InputArea, type LocaleConfig, LocaleProvider, type LocaleStrings, MarkdownRenderer, MessageContent, MessageList, type PartialLocaleStrings, type PendingAttachment, type PreEntryConfig, type PreEntryHelpers, PushPermissionPrompt, PushToggle, type SignedUploadUrl, type SimpleUploadConfig, type SupportedLocale, TypingIndicator, type UploadConfig, getAvailableLocales, registerLocale, renderMarkdown, useAttachmentUpload, useCardRegistry, useCardRegistry as useCardRendererRegistry, useChatClient, useChatContext, useLocale, useMessages, usePushNotifications, useStreaming, useTyping };
437
+ export { AttachmentList, type AttachmentUploadConfig, CardProvider, CardRenderer, type CardRendererProps, type CardRenderer$1 as CardRendererType, ChatProvider, ChatWidget, type ChatWidgetProps, DefaultCard, Dropzone, ErrorBoundary, FileCardComponent, FloatingButton, Header, ImageCardComponent, InputArea, type LocaleConfig, LocaleProvider, type LocaleStrings, MarkdownRenderer, MessageContent, MessageList, type PartialLocaleStrings, type PendingAttachment, type PreEntryConfig, type PreEntryHelpers, PushPermissionPrompt, PushToggle, type SignedUploadUrl, type SimpleUploadConfig, type SupportedLocale, type ThemeMode, TypingIndicator, type UploadConfig, getAvailableLocales, registerLocale, renderMarkdown, useAttachmentUpload, useCardRegistry, useCardRegistry as useCardRendererRegistry, useChatClient, useChatContext, useLocale, useMessages, usePushNotifications, useStreaming, useTyping };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import React, { Component, ReactNode } from 'react';
2
- import { WebChatClient, PushConfig, ReconfigureConfig, PushSubscriptionStatus, Message, Card, CustomCard, WebChatClientConfig, BroadcastClient } from '@bootdesk/js-web-adapter-core';
1
+ import React$1, { Component, ReactNode } from 'react';
2
+ import * as _bootdesk_js_web_adapter_core from '@bootdesk/js-web-adapter-core';
3
+ import { PushConfig, ReconfigureConfig, PushSubscriptionStatus, Message, Card, CustomCard, WebChatClient, WebChatClientConfig, BroadcastClient } from '@bootdesk/js-web-adapter-core';
3
4
  export { Card, CustomCard, LaravelEchoBroadcastClient, Message, PHPCard, PushConfig, PushEventData, PushManager, PushSubscriptionStatus, PusherBroadcastClient, User, WebChatClient, createPushSubscriptionHandlers } from '@bootdesk/js-web-adapter-core';
4
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
6
 
@@ -41,7 +42,6 @@ type UploadConfig = AttachmentUploadConfig | SimpleUploadConfig;
41
42
 
42
43
  type DisplayMode = "floating" | "fullscreen" | "embedded";
43
44
  type ThemeMode = "light" | "dark" | "auto";
44
-
45
45
  interface PreEntryHelpers {
46
46
  start: (config?: ReconfigureConfig) => void;
47
47
  }
@@ -49,7 +49,7 @@ interface PreEntryConfig {
49
49
  render: (helpers: PreEntryHelpers) => React.ReactNode;
50
50
  }
51
51
  interface ChatWidgetProps {
52
- client: WebChatClient;
52
+ client: _bootdesk_js_web_adapter_core.WebChatClient;
53
53
  locale?: string;
54
54
  initialMode?: DisplayMode;
55
55
  theme?: ThemeMode;
@@ -94,7 +94,8 @@ interface ChatWidgetProps {
94
94
  preEntry?: PreEntryConfig;
95
95
  onChatStart?: (config?: ReconfigureConfig) => void;
96
96
  }
97
- declare function ChatWidget({ client, locale: localeProp, initialMode, theme: themeProp, onThemeChange, position, className, showClose, showFullscreenToggle, title, placeholder, onOpen, onClose, embedded, floatingButton, enableAttachments, uploadConfig, accept, maxFileSize, renderPushPrompt, preEntry, onChatStart, pushConfig, }: ChatWidgetProps): React.JSX.Element;
97
+
98
+ declare function ChatWidget({ client, locale: localeProp, initialMode, theme: themeProp, onThemeChange, position, className, showClose, showFullscreenToggle, title, placeholder, onOpen, onClose, embedded, floatingButton, enableAttachments, uploadConfig, accept, maxFileSize, renderPushPrompt, preEntry, onChatStart, pushConfig, }: ChatWidgetProps): React$1.JSX.Element;
98
99
 
99
100
  interface HeaderProps {
100
101
  title?: string;
@@ -109,7 +110,7 @@ interface HeaderProps {
109
110
  pushStatus?: PushSubscriptionStatus;
110
111
  onPushToggle?: () => void;
111
112
  }
112
- declare function Header({ title, onClose, onToggleFullscreen, isFullscreen, showConnectionStatus, isConnected, className, theme, onThemeChange, pushStatus, onPushToggle, }: HeaderProps): React.JSX.Element;
113
+ declare function Header({ title, onClose, onToggleFullscreen, isFullscreen, showConnectionStatus, isConnected, className, theme, onThemeChange, pushStatus, onPushToggle, }: HeaderProps): React$1.JSX.Element;
113
114
 
114
115
  interface MessageListProps {
115
116
  messages: Message[];
@@ -119,13 +120,13 @@ interface MessageListProps {
119
120
  onActionClick?: (messageId: string, actionId: string, value: string) => void;
120
121
  className?: string;
121
122
  }
122
- declare function MessageList({ messages, currentUserId, isLoading, onReactionClick, onActionClick, className, }: MessageListProps): React.JSX.Element;
123
+ declare function MessageList({ messages, currentUserId, isLoading, onReactionClick, onActionClick, className, }: MessageListProps): React$1.JSX.Element;
123
124
 
124
125
  interface MessageContentProps {
125
126
  message: Message;
126
127
  onActionClick?: (messageId: string, actionId: string, value: string) => void;
127
128
  }
128
- declare function MessageContent({ message, onActionClick }: MessageContentProps): React.JSX.Element;
129
+ declare function MessageContent({ message, onActionClick }: MessageContentProps): React$1.JSX.Element;
129
130
 
130
131
  interface InputAreaProps {
131
132
  onSend: (text: string, attachments: Array<{
@@ -142,41 +143,41 @@ interface InputAreaProps {
142
143
  accept?: string;
143
144
  maxFileSize?: number;
144
145
  }
145
- declare function InputArea({ onSend, disabled, placeholder, className, enableAttachments, uploadConfig, accept, maxFileSize, }: InputAreaProps): React.JSX.Element;
146
+ declare function InputArea({ onSend, disabled, placeholder, className, enableAttachments, uploadConfig, accept, maxFileSize, }: InputAreaProps): React$1.JSX.Element;
146
147
 
147
148
  interface TypingIndicatorProps {
148
149
  users?: string[];
149
150
  }
150
- declare function TypingIndicator({ users }: TypingIndicatorProps): React.JSX.Element;
151
+ declare function TypingIndicator({ users }: TypingIndicatorProps): React$1.JSX.Element;
151
152
 
152
153
  interface FloatingButtonProps {
153
154
  onClick: () => void;
154
155
  isOpen: boolean;
155
156
  position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
156
157
  className?: string;
157
- icon?: React.ReactNode;
158
- openIcon?: React.ReactNode;
158
+ icon?: React$1.ReactNode;
159
+ openIcon?: React$1.ReactNode;
159
160
  badgeCount?: number;
160
161
  size?: number;
161
162
  backgroundColor?: string;
162
163
  ariaLabel?: string;
163
164
  }
164
- declare function FloatingButton({ onClick, isOpen, position, className, icon, openIcon, badgeCount, size, backgroundColor, ariaLabel, }: FloatingButtonProps): React.JSX.Element;
165
+ declare function FloatingButton({ onClick, isOpen, position, className, icon, openIcon, badgeCount, size, backgroundColor, ariaLabel, }: FloatingButtonProps): React$1.JSX.Element;
165
166
 
166
167
  interface CardRendererProps {
167
168
  card: Card | CustomCard;
168
169
  onActionClick?: (actionId: string, value: string) => void;
169
170
  }
170
- type CardRenderer$1 = React.ComponentType<CardRendererProps>;
171
+ type CardRenderer$1 = React$1.ComponentType<CardRendererProps>;
171
172
  type CardRendererMap = Map<string, CardRenderer$1>;
172
173
 
173
- declare function CardRenderer({ card, onActionClick }: CardRendererProps): React.JSX.Element | null;
174
+ declare function CardRenderer({ card, onActionClick }: CardRendererProps): React$1.JSX.Element | null;
174
175
 
175
- declare function DefaultCard({ card: rawCard, onActionClick, }: CardRendererProps): React.JSX.Element | null;
176
+ declare function DefaultCard({ card: rawCard, onActionClick, }: CardRendererProps): React$1.JSX.Element | null;
176
177
 
177
- declare function ImageCardComponent({ card: rawCard }: CardRendererProps): React.JSX.Element | null;
178
+ declare function ImageCardComponent({ card: rawCard }: CardRendererProps): React$1.JSX.Element | null;
178
179
 
179
- declare function FileCardComponent({ card: rawCard }: CardRendererProps): React.JSX.Element | null;
180
+ declare function FileCardComponent({ card: rawCard }: CardRendererProps): React$1.JSX.Element | null;
180
181
 
181
182
  interface CardContextValue {
182
183
  renderers: CardRendererMap;
@@ -184,21 +185,21 @@ interface CardContextValue {
184
185
  getRenderer: (type: string) => CardRenderer$1 | undefined;
185
186
  }
186
187
  interface CardProviderProps {
187
- children: React.ReactNode;
188
+ children: React$1.ReactNode;
188
189
  renderers?: Record<string, CardRenderer$1>;
189
190
  }
190
- declare function CardProvider({ children, renderers }: CardProviderProps): React.JSX.Element;
191
+ declare function CardProvider({ children, renderers }: CardProviderProps): React$1.JSX.Element;
191
192
  declare function useCardRegistry(): CardContextValue;
192
193
 
193
194
  interface ChatContextValue {
194
195
  client: WebChatClient;
195
196
  }
196
197
  interface ChatProviderProps {
197
- children: React.ReactNode;
198
+ children: React$1.ReactNode;
198
199
  client: WebChatClient;
199
200
  cardRenderers?: Record<string, CardRenderer$1>;
200
201
  }
201
- declare function ChatProvider({ children, client, cardRenderers, }: ChatProviderProps): React.JSX.Element;
202
+ declare function ChatProvider({ children, client, cardRenderers, }: ChatProviderProps): React$1.JSX.Element;
202
203
  declare function useChatContext(): ChatContextValue;
203
204
 
204
205
  declare function useChatClient(config: Omit<WebChatClientConfig, "broadcastClient"> & {
@@ -251,12 +252,12 @@ declare function renderMarkdown(text: string): string;
251
252
  declare function MarkdownRenderer({ text, className, }: {
252
253
  text: string;
253
254
  className?: string;
254
- }): React.JSX.Element;
255
+ }): React$1.JSX.Element;
255
256
 
256
257
  interface ErrorBoundaryProps {
257
258
  children: ReactNode;
258
259
  fallback?: ReactNode | ((error: Error) => ReactNode);
259
- onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
260
+ onError?: (error: Error, errorInfo: React$1.ErrorInfo) => void;
260
261
  }
261
262
  interface ErrorBoundaryState {
262
263
  error: Error | null;
@@ -264,7 +265,7 @@ interface ErrorBoundaryState {
264
265
  declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
265
266
  constructor(props: ErrorBoundaryProps);
266
267
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
267
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
268
+ componentDidCatch(error: Error, errorInfo: React$1.ErrorInfo): void;
268
269
  render(): ReactNode;
269
270
  }
270
271
 
@@ -276,14 +277,14 @@ interface DropzoneProps {
276
277
  multiple?: boolean;
277
278
  className?: string;
278
279
  }
279
- declare function Dropzone({ onFilesSelected, disabled, accept, maxSize, multiple, className, }: DropzoneProps): React.JSX.Element;
280
+ declare function Dropzone({ onFilesSelected, disabled, accept, maxSize, multiple, className, }: DropzoneProps): React$1.JSX.Element;
280
281
 
281
282
  interface AttachmentListProps {
282
283
  attachments: PendingAttachment[];
283
284
  onRemove?: (id: string) => void;
284
285
  className?: string;
285
286
  }
286
- declare function AttachmentList({ attachments, onRemove, className, }: AttachmentListProps): React.JSX.Element;
287
+ declare function AttachmentList({ attachments, onRemove, className, }: AttachmentListProps): React$1.JSX.Element;
287
288
 
288
289
  declare function useAttachmentUpload(uploadConfig?: UploadConfig): {
289
290
  attachments: PendingAttachment[];
@@ -388,10 +389,10 @@ interface LocaleContextValue {
388
389
  t: (path: string) => string;
389
390
  }
390
391
  interface LocaleProviderProps {
391
- children: React.ReactNode;
392
+ children: React$1.ReactNode;
392
393
  locale?: LocaleConfig | string;
393
394
  }
394
- declare function LocaleProvider({ children, locale }: LocaleProviderProps): React.JSX.Element;
395
+ declare function LocaleProvider({ children, locale }: LocaleProviderProps): React$1.JSX.Element;
395
396
  declare function useLocale(): LocaleContextValue;
396
397
 
397
398
  declare function registerLocale(locale: string, strings: LocaleStrings): void;
@@ -433,4 +434,4 @@ declare function usePushNotifications(options: UsePushNotificationsOptions): {
433
434
  unsubscribe: () => Promise<void>;
434
435
  };
435
436
 
436
- export { AttachmentList, type AttachmentUploadConfig, CardProvider, CardRenderer, type CardRendererProps, type CardRenderer$1 as CardRendererType, ChatProvider, ChatWidget, type ChatWidgetProps, DefaultCard, Dropzone, ErrorBoundary, FileCardComponent, FloatingButton, Header, ImageCardComponent, InputArea, type LocaleConfig, LocaleProvider, type LocaleStrings, MarkdownRenderer, MessageContent, MessageList, type PartialLocaleStrings, type PendingAttachment, type PreEntryConfig, type PreEntryHelpers, PushPermissionPrompt, PushToggle, type SignedUploadUrl, type SimpleUploadConfig, type SupportedLocale, TypingIndicator, type UploadConfig, getAvailableLocales, registerLocale, renderMarkdown, useAttachmentUpload, useCardRegistry, useCardRegistry as useCardRendererRegistry, useChatClient, useChatContext, useLocale, useMessages, usePushNotifications, useStreaming, useTyping };
437
+ export { AttachmentList, type AttachmentUploadConfig, CardProvider, CardRenderer, type CardRendererProps, type CardRenderer$1 as CardRendererType, ChatProvider, ChatWidget, type ChatWidgetProps, DefaultCard, Dropzone, ErrorBoundary, FileCardComponent, FloatingButton, Header, ImageCardComponent, InputArea, type LocaleConfig, LocaleProvider, type LocaleStrings, MarkdownRenderer, MessageContent, MessageList, type PartialLocaleStrings, type PendingAttachment, type PreEntryConfig, type PreEntryHelpers, PushPermissionPrompt, PushToggle, type SignedUploadUrl, type SimpleUploadConfig, type SupportedLocale, type ThemeMode, TypingIndicator, type UploadConfig, getAvailableLocales, registerLocale, renderMarkdown, useAttachmentUpload, useCardRegistry, useCardRegistry as useCardRendererRegistry, useChatClient, useChatContext, useLocale, useMessages, usePushNotifications, useStreaming, useTyping };
package/dist/index.js CHANGED
@@ -4083,6 +4083,7 @@ function ChatWidget({
4083
4083
  const dir = merged.direction;
4084
4084
  useEffect9(() => {
4085
4085
  client.setLocaleHeader(effectiveLocale);
4086
+ client.setTimezoneHeader(Intl.DateTimeFormat().resolvedOptions().timeZone);
4086
4087
  }, [client, effectiveLocale]);
4087
4088
  const autoEmbedded = inBridge && embedded !== false;
4088
4089
  const effectiveEmbedded = embedded === true || autoEmbedded;