@chaibuilder/sdk 2.2.5 → 2.2.6

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/core.d.ts CHANGED
@@ -52,6 +52,14 @@ export declare const ChaiAskAiUserPrompt: ({ blockId }: {
52
52
  blockId: string | undefined;
53
53
  }) => JSX_2.Element;
54
54
 
55
+ declare type ChaiAsset = {
56
+ url: string;
57
+ thumbnailUrl?: string;
58
+ description?: string;
59
+ width?: number;
60
+ height?: number;
61
+ };
62
+
55
63
  export declare type ChaiBlock<T = Record<string, any>> = {
56
64
  _id: string;
57
65
  _name?: string;
@@ -388,7 +396,7 @@ export { i18n }
388
396
 
389
397
  declare type MediaManagerProps = {
390
398
  close: () => void;
391
- onSelect: (urls: string[]) => void;
399
+ onSelect: (assets: ChaiAsset | ChaiAsset[]) => void;
392
400
  mode?: "image" | "video" | "audio";
393
401
  };
394
402