@runtypelabs/persona 3.20.0 → 3.21.0
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/animations/glyph-cycle.d.cts +1 -1
- package/dist/animations/glyph-cycle.d.ts +1 -1
- package/dist/animations/{types-cwY5HaFD.d.cts → types-CWPIj66R.d.cts} +19 -1
- package/dist/animations/{types-cwY5HaFD.d.ts → types-CWPIj66R.d.ts} +19 -1
- package/dist/animations/wipe.d.cts +1 -1
- package/dist/animations/wipe.d.ts +1 -1
- package/dist/index.cjs +46 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.global.js +72 -72
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +46 -46
- package/dist/index.js.map +1 -1
- package/dist/theme-editor.cjs +260 -0
- package/dist/theme-editor.d.cts +19 -1
- package/dist/theme-editor.d.ts +19 -1
- package/dist/theme-editor.js +260 -0
- package/package.json +1 -1
- package/src/client.test.ts +521 -0
- package/src/client.ts +150 -1
- package/src/components/message-bubble.test.ts +192 -0
- package/src/components/message-bubble.ts +200 -0
- package/src/types.ts +27 -2
package/dist/index.d.cts
CHANGED
|
@@ -757,10 +757,28 @@ type FileContentPart = {
|
|
|
757
757
|
mimeType: string;
|
|
758
758
|
filename: string;
|
|
759
759
|
};
|
|
760
|
+
/**
|
|
761
|
+
* Audio content part for multi-modal messages
|
|
762
|
+
* Supports base64 data URIs or URLs
|
|
763
|
+
*/
|
|
764
|
+
type AudioContentPart = {
|
|
765
|
+
type: 'audio';
|
|
766
|
+
audio: string;
|
|
767
|
+
mimeType?: string;
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* Video content part for multi-modal messages
|
|
771
|
+
* Supports base64 data URIs or URLs
|
|
772
|
+
*/
|
|
773
|
+
type VideoContentPart = {
|
|
774
|
+
type: 'video';
|
|
775
|
+
video: string;
|
|
776
|
+
mimeType?: string;
|
|
777
|
+
};
|
|
760
778
|
/**
|
|
761
779
|
* Union type for all content part types
|
|
762
780
|
*/
|
|
763
|
-
type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
|
|
781
|
+
type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
|
|
764
782
|
/**
|
|
765
783
|
* Message content can be a simple string or an array of content parts
|
|
766
784
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -757,10 +757,28 @@ type FileContentPart = {
|
|
|
757
757
|
mimeType: string;
|
|
758
758
|
filename: string;
|
|
759
759
|
};
|
|
760
|
+
/**
|
|
761
|
+
* Audio content part for multi-modal messages
|
|
762
|
+
* Supports base64 data URIs or URLs
|
|
763
|
+
*/
|
|
764
|
+
type AudioContentPart = {
|
|
765
|
+
type: 'audio';
|
|
766
|
+
audio: string;
|
|
767
|
+
mimeType?: string;
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* Video content part for multi-modal messages
|
|
771
|
+
* Supports base64 data URIs or URLs
|
|
772
|
+
*/
|
|
773
|
+
type VideoContentPart = {
|
|
774
|
+
type: 'video';
|
|
775
|
+
video: string;
|
|
776
|
+
mimeType?: string;
|
|
777
|
+
};
|
|
760
778
|
/**
|
|
761
779
|
* Union type for all content part types
|
|
762
780
|
*/
|
|
763
|
-
type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
|
|
781
|
+
type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
|
|
764
782
|
/**
|
|
765
783
|
* Message content can be a simple string or an array of content parts
|
|
766
784
|
*/
|