@chaibuilder/sdk 2.0.1 → 2.0.2
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.cjs +5 -5
- package/dist/core.d.ts +8 -0
- package/dist/core.js +594 -540
- package/dist/render.cjs +2 -2
- package/dist/render.d.ts +1 -3
- package/dist/render.js +58 -62
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChaiBlock as ChaiBlock_2 } from '@chaibuilder/runtime';
|
|
2
2
|
import { ClassValue } from 'clsx';
|
|
3
3
|
import { default as default_2 } from 'react';
|
|
4
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
5
|
import { default as i18n } from 'i18next';
|
|
5
6
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
7
|
import * as React_2 from 'react';
|
|
@@ -177,6 +178,9 @@ export declare interface ChaiBuilderEditorProps {
|
|
|
177
178
|
canvasTopBarComponents?: {
|
|
178
179
|
right?: ReactComponentType[];
|
|
179
180
|
};
|
|
181
|
+
blockMoreOptions?: Array<(props: {
|
|
182
|
+
block: ChaiBlock;
|
|
183
|
+
}) => default_2.ReactElement<typeof DropdownMenuItem>>;
|
|
180
184
|
previewLink?: string;
|
|
181
185
|
darkMode?: boolean;
|
|
182
186
|
importHTMLSupport?: boolean;
|
|
@@ -293,6 +297,10 @@ export declare const DefaultChaiBlocks: ({ parentId, position, gridCols, }: {
|
|
|
293
297
|
gridCols?: string;
|
|
294
298
|
}) => JSX_2.Element;
|
|
295
299
|
|
|
300
|
+
declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
301
|
+
inset?: boolean;
|
|
302
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
303
|
+
|
|
296
304
|
declare type ExcludedBuilderProps = "blocks" | "subPages" | "brandingOptions" | "dataProviders";
|
|
297
305
|
|
|
298
306
|
/**
|