@uraiagent/react 0.0.6 → 0.0.7
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/Widget.d.ts +7 -3
- package/dist/components/Attachment/MessageAttachments.d.ts +3 -2
- package/dist/components/Chat/ChatFooter.d.ts +6 -0
- package/dist/components/Chat/ChatScreen.d.ts +5 -0
- package/dist/components/Launcher/WidgetLauncher.d.ts +9 -0
- package/dist/components/Panel/PanelHeader.d.ts +6 -0
- package/dist/components/Panel/WidgetPanel.d.ts +7 -0
- package/dist/components/Screens/HomeScreen.d.ts +6 -0
- package/dist/components/User/UserMessage.d.ts +1 -1
- package/dist/contexts/WidgetContext.d.ts +10 -0
- package/dist/index.cjs.js +20 -20
- package/dist/index.es.js +7347 -7130
- package/dist/utils/index.d.ts +2 -0
- package/dist-embed/agent.js +22 -22
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { FormFieldType } from '../interfaces/form';
|
|
|
2
2
|
import { default as json } from '../../../package.json';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const isServer: boolean;
|
|
5
|
+
/** Up-to-two-letter initials from a display name (first + last word), for avatar fallbacks. */
|
|
6
|
+
export declare const initials: (name?: string) => string;
|
|
5
7
|
declare const isEmpty: (value: string | object | any[] | undefined) => boolean;
|
|
6
8
|
declare const getLast: <T>(arr: T[]) => T | undefined;
|
|
7
9
|
declare const get: <K extends keyof typeof json>(key: K) => {
|