@1urso/generic-editor 0.1.77 → 0.1.79

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.
@@ -95,6 +95,8 @@ export interface IAsset {
95
95
  }
96
96
  export interface IEditorContext {
97
97
  state: IEditorState;
98
+ /** Elemento para renderizar portais (Dialog, DropdownMenu, Select). Use o elemento em fullscreen para que modais apareçam. */
99
+ portalContainer: HTMLElement | null | undefined;
98
100
  setGridSize: (size: number) => void;
99
101
  setZoom: (zoom: number) => void;
100
102
  setPan: (pan: {
@@ -145,6 +147,7 @@ export declare const EditorProvider: React.FC<{
145
147
  isList?: boolean;
146
148
  availableProps?: IProp[];
147
149
  theme?: 'light' | 'dark';
150
+ portalContainer?: HTMLElement | null;
148
151
  }>;
149
152
  export declare const useEditor: () => IEditorContext;
150
153
  export {};
@@ -8,5 +8,7 @@ export interface EditorProps {
8
8
  templates?: ITemplate[];
9
9
  activeTemplateId?: string;
10
10
  onTemplateChange?: (templateId: string) => void;
11
+ /** Elemento para renderizar portais (modais, dropdowns). Passe o elemento em fullscreen para que modais apareçam. */
12
+ portalContainer?: HTMLElement | null;
11
13
  }
12
14
  export declare const GenericEditor: React.FC<EditorProps>;