@superblocksteam/library-shared 2.0.20-next.9 → 2.0.20
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.
|
@@ -46,9 +46,9 @@ export interface EditorConfig<TProps = any> {
|
|
|
46
46
|
icon?: ComponentIcon | SvgDataUri;
|
|
47
47
|
/**
|
|
48
48
|
* The path that defines the layout property of the component, for container-style components.
|
|
49
|
-
*
|
|
49
|
+
* Uses "layout" by default.
|
|
50
50
|
*
|
|
51
|
-
*
|
|
51
|
+
* Used for editor's UX when dragging & dropping components.
|
|
52
52
|
*/
|
|
53
53
|
layoutPropertyPath?: string;
|
|
54
54
|
/**
|
|
@@ -57,15 +57,16 @@ export interface EditorConfig<TProps = any> {
|
|
|
57
57
|
isDroppable?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* Whether the component is draggable.
|
|
60
|
-
*
|
|
60
|
+
* Defaults to true.
|
|
61
61
|
*/
|
|
62
62
|
isDraggable?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* Whether the component can be dragged by clicking on its area (vs clicking the name pill).
|
|
65
|
+
* Defaults to true.
|
|
66
|
+
*
|
|
65
67
|
* Useful for full width/height components like sections, columns.
|
|
66
|
-
* Note: `isDraggable` must be true for this to take effect.
|
|
67
68
|
*
|
|
68
|
-
*
|
|
69
|
+
* Note: `isDraggable` must be true for this to take effect.
|
|
69
70
|
*/
|
|
70
71
|
isContentDraggable?: boolean;
|
|
71
72
|
isResizable?: {
|
|
@@ -75,21 +76,6 @@ export interface EditorConfig<TProps = any> {
|
|
|
75
76
|
width: boolean;
|
|
76
77
|
height: boolean;
|
|
77
78
|
}) | boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Whether the component is detached from the canvas.
|
|
80
|
-
*
|
|
81
|
-
* A detached component implies that:
|
|
82
|
-
* - It's not part of the main canvas.
|
|
83
|
-
* - It's a drop area.
|
|
84
|
-
* - It has an open/close state.
|
|
85
|
-
*
|
|
86
|
-
* Useful for dialogs, slideouts, modals.
|
|
87
|
-
*
|
|
88
|
-
* Note: You might also want to set `createAt: root` on the editor template for detached components.
|
|
89
|
-
*
|
|
90
|
-
* @default false
|
|
91
|
-
*/
|
|
92
|
-
isDetached?: boolean;
|
|
93
79
|
}
|
|
94
80
|
/**
|
|
95
81
|
* 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,CAAC,MAAM,GAAG,GAAG;IACxC,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC;IAClC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB
|
|
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,CAAC,MAAM,GAAG,GAAG;IACxC,IAAI,CAAC,EAAE,aAAa,GAAG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