@nethesis/chat-island 0.1.10 → 0.1.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/dist/api.d.ts CHANGED
@@ -2,5 +2,7 @@ import type { Contact } from './types';
2
2
  export declare function fetchContacts(host: string, token: string, me: string, onMe?: (name: string) => void): Promise<Contact[]>;
3
3
  /** Operators with the mobile app registered for push: a message reaches their phone even when they are not in the chat. */
4
4
  export declare function fetchMobile(host: string, token: string): Promise<string[]>;
5
+ /** Operators no longer in the CTI, with their last name: their chats stay, read-only. */
6
+ export declare function fetchInactive(host: string, token: string): Promise<Record<string, string>>;
5
7
  /** Forget a conversation on the server: my archive with that operator or group is purged. */
6
8
  export declare function deleteHistory(host: string, token: string, peer: string): Promise<void>;
@@ -1,7 +1,8 @@
1
- export declare function Composer({ onSend, onTyping, onFile, disabled, focusKey }: {
1
+ export declare function Composer({ onSend, onTyping, onFile, disabled, disabledText, focusKey }: {
2
2
  onSend: (text: string) => Promise<void> | void;
3
3
  onTyping: (composing: boolean) => void;
4
4
  onFile: (f: File) => void;
5
5
  disabled: boolean;
6
+ disabledText?: string;
6
7
  focusKey?: number;
7
8
  }): import("react").JSX.Element;