@linktr.ee/messaging-react 1.9.2 → 1.10.0-rc-1764218520
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 +11 -0
- package/dist/index.js +723 -674
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/components/MessagingShell/EmptyState.stories.tsx +4 -0
- package/src/components/MessagingShell/EmptyState.tsx +38 -4
- package/src/components/MessagingShell/index.tsx +21 -3
- package/src/providers/MessagingProvider.tsx +16 -1
- package/src/types.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -118,10 +118,19 @@ declare interface MessagingContextValue {
|
|
|
118
118
|
isLoading: boolean;
|
|
119
119
|
error: string | null;
|
|
120
120
|
capabilities: MessagingCapabilities;
|
|
121
|
+
customization: MessagingCustomization;
|
|
121
122
|
refreshConnection: () => Promise<void>;
|
|
122
123
|
debug: boolean;
|
|
123
124
|
}
|
|
124
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Customization options
|
|
128
|
+
*/
|
|
129
|
+
declare interface MessagingCustomization {
|
|
130
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
131
|
+
accentColor?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
125
134
|
/**
|
|
126
135
|
* Provider component that wraps messaging-core with React state management
|
|
127
136
|
*/
|
|
@@ -136,6 +145,7 @@ export declare interface MessagingProviderProps {
|
|
|
136
145
|
serviceConfig: Omit<StreamChatServiceConfig, 'apiKey'>;
|
|
137
146
|
apiKey: string;
|
|
138
147
|
capabilities?: MessagingCapabilities;
|
|
148
|
+
customization?: MessagingCustomization;
|
|
139
149
|
debug?: boolean;
|
|
140
150
|
}
|
|
141
151
|
|
|
@@ -149,6 +159,7 @@ export declare const MessagingShell: default_2.FC<MessagingShellProps>;
|
|
|
149
159
|
*/
|
|
150
160
|
export declare interface MessagingShellProps {
|
|
151
161
|
capabilities?: MessagingCapabilities;
|
|
162
|
+
customization?: MessagingCustomization;
|
|
152
163
|
className?: string;
|
|
153
164
|
renderMessageInputActions?: (channel: Channel) => React.ReactNode;
|
|
154
165
|
onChannelSelect?: (channel: Channel) => void;
|