@superblocksteam/library-shared 2.0.18-next.13 → 2.0.18-next.14
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.
|
@@ -42,8 +42,15 @@ export declare const ComponentIcons: {
|
|
|
42
42
|
};
|
|
43
43
|
export type ComponentIcon = (typeof ComponentIcons)[keyof typeof ComponentIcons];
|
|
44
44
|
export type SvgDataUri = `data:image/svg+xml,${string}`;
|
|
45
|
-
export interface EditorConfig {
|
|
45
|
+
export interface EditorConfig<TProps = any> {
|
|
46
46
|
icon?: ComponentIcon | SvgDataUri;
|
|
47
|
+
isResizable?: {
|
|
48
|
+
width?: boolean;
|
|
49
|
+
height?: boolean;
|
|
50
|
+
} | ((props: TProps) => {
|
|
51
|
+
width: boolean;
|
|
52
|
+
height: boolean;
|
|
53
|
+
}) | boolean;
|
|
47
54
|
}
|
|
48
55
|
/**
|
|
49
56
|
* Editor metadata shown for each component before users drag/add them to their applications.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-component.d.ts","sourceRoot":"","sources":["../../src/types/register-component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCjB,CAAC;AAEX,MAAM,MAAM,aAAa,GACvB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,sBAAsB,MAAM,EAAE,CAAC;AACxD,MAAM,WAAW,YAAY;
|
|
1
|
+
{"version":3,"file":"register-component.d.ts","sourceRoot":"","sources":["../../src/types/register-component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCjB,CAAC;AAEX,MAAM,MAAM,aAAa,GACvB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,C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