@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/{CodeEditor-HKrlrH8b.js → code-editor-BP81Fo3h.js} +25 -25
- package/dist/code-editor-CRaw45ej.cjs +1 -0
- package/dist/core.cjs +1 -66
- package/dist/core.d.ts +9 -1
- package/dist/core.js +87 -9517
- package/dist/index-CPwl7tLt.cjs +66 -0
- package/dist/index-DojHY3B4.js +9620 -0
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +0 -2
- package/dist/render.js +81 -35
- package/dist/web-blocks.cjs +2 -2
- package/dist/web-blocks.js +284 -220
- package/package.json +1 -1
- package/dist/CodeEditor-B7r9YjDC.cjs +0 -1
- package/dist/render-chai-blocks-6SVNwoLW.js +0 -201
- package/dist/render-chai-blocks-Bvl2_fRE.cjs +0 -1
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: (
|
|
399
|
+
onSelect: (assets: ChaiAsset | ChaiAsset[]) => void;
|
|
392
400
|
mode?: "image" | "video" | "audio";
|
|
393
401
|
};
|
|
394
402
|
|