made-refine 0.2.9 → 0.2.11

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/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { D as DragState, a as DropIndicator, S as SpacingPropertyKey, C as CSSPropertyValue, B as BorderRadiusPropertyKey, b as BorderPropertyKey, c as BorderProperties, F as FlexPropertyKey, d as SizingPropertyKey, e as SizingValue, f as SizingChangeOptions, g as ColorPropertyKey, h as ColorValue, T as TypographyPropertyKey, A as ActiveTool, i as Theme, j as BorderStyleControlPreference, k as DirectEditState, l as SessionEdit, m as SessionItem, n as TypographyProperties, M as MeasurementLine, G as Guideline, o as Comment } from './utils-BGCQaaSf.mjs';
4
- export { p as BorderRadiusProperties, q as BorderStyle, r as ColorProperties, s as CommentReply, t as DomSourceLocation, u as DropTarget, E as ElementInfo, v as ElementLocator, w as FlexProperties, x as MeasurementState, R as ReactComponentFrame, y as SizingChangePhase, z as SizingMode, H as SizingProperties, I as SpacingProperties, U as UndoEditEntry, J as UndoEntry, K as UndoMoveEntry, L as UndoSelectionEntry, N as buildCommentExport, O as buildSessionExport, P as calculateDropPosition, Q as calculateElementMeasurements, V as calculateGuidelineMeasurements, W as calculateParentMeasurements, X as colorToTailwind, Y as elementFromPointWithoutOverlays, Z as findContainerAtPoint, _ as findLayoutContainerAtPoint, $ as formatPropertyValue, a0 as getComputedBorderStyles, a1 as getComputedBoxShadow, a2 as getComputedColorStyles, a3 as getComputedStyles, a4 as getDimensionDisplay, a5 as getElementInfo, a6 as getElementLocator, a7 as getFlexDirection, a8 as isFlexContainer, a9 as isLayoutContainer, aa as parseColorValue, ab as parsePropertyValue, ac as stylesToTailwind } from './utils-BGCQaaSf.mjs';
3
+ import { D as DragState, a as DropIndicator, S as SelectElementOptions, b as SelectElementsOptions, c as SpacingPropertyKey, C as CSSPropertyValue, B as BorderRadiusPropertyKey, d as BorderPropertyKey, e as BorderProperties, F as FlexPropertyKey, f as SizingPropertyKey, g as SizingValue, h as SizingChangeOptions, i as ColorPropertyKey, j as ColorValue, T as TypographyPropertyKey, A as ActiveTool, k as Theme, l as BorderStyleControlPreference, m as DirectEditState, n as SessionEdit, o as SessionItem, p as CanvasElementKind, q as TypographyProperties, M as MeasurementLine, G as Guideline, r as Comment } from './utils-Dn_oW8f_.mjs';
4
+ export { s as BorderRadiusProperties, t as BorderStyle, u as ColorProperties, v as CommentReply, w as DomSourceLocation, x as DropTarget, E as ElementInfo, y as ElementLocator, z as FlexProperties, H as MeasurementState, R as ReactComponentFrame, I as SizingChangePhase, J as SizingMode, K as SizingProperties, L as SpacingProperties, U as UndoEditEntry, N as UndoEntry, O as UndoMoveEntry, P as UndoSelectionEntry, Q as buildCommentExport, V as buildSessionExport, W as calculateDropPosition, X as calculateElementMeasurements, Y as calculateGuidelineMeasurements, Z as calculateParentMeasurements, _ as colorToTailwind, $ as elementFromPointWithoutOverlays, a0 as findContainerAtPoint, a1 as findLayoutContainerAtPoint, a2 as formatPropertyValue, a3 as getComputedBorderStyles, a4 as getComputedBoxShadow, a5 as getComputedColorStyles, a6 as getComputedStyles, a7 as getDimensionDisplay, a8 as getElementInfo, a9 as getElementLocator, aa as getFlexDirection, ab as isFlexContainer, ac as isLayoutContainer, ad as parseColorValue, ae as parsePropertyValue, af as stylesToTailwind } from './utils-Dn_oW8f_.mjs';
5
5
 
6
6
  declare function DirectEdit(): react_jsx_runtime.JSX.Element;
7
7
 
@@ -45,7 +45,10 @@ interface UseMoveResult {
45
45
  declare function useMove({ onMoveComplete }: UseMoveOptions): UseMoveResult;
46
46
 
47
47
  interface DirectEditActionsContextValue {
48
- selectElement: (element: HTMLElement) => void;
48
+ selectElement: (element: HTMLElement, options?: SelectElementOptions) => void;
49
+ selectElements: (elements: HTMLElement[], options?: SelectElementsOptions) => void;
50
+ toggleElementSelection: (element: HTMLElement) => void;
51
+ clearSelection: () => void;
49
52
  selectParent: () => void;
50
53
  selectChild: () => void;
51
54
  closePanel: () => void;
@@ -74,6 +77,7 @@ interface DirectEditActionsContextValue {
74
77
  y: number;
75
78
  }) => void;
76
79
  updateCommentText: (id: string, text: string) => void;
80
+ submitCommentDraft: (id: string, text: string) => string | null;
77
81
  addCommentReply: (id: string, text: string) => void;
78
82
  deleteComment: (id: string) => void;
79
83
  exportComment: (id: string) => Promise<boolean>;
@@ -93,13 +97,17 @@ interface DirectEditActionsContextValue {
93
97
  removeSessionEdit: (element: HTMLElement) => void;
94
98
  startTextEditing: (element: HTMLElement) => void;
95
99
  commitTextEditing: () => void;
100
+ groupSelection: () => void;
101
+ insertElement: (kind: CanvasElementKind) => void;
96
102
  toggleCanvas: () => void;
97
103
  setCanvasZoom: (zoom: number) => void;
98
104
  fitCanvasToViewport: () => void;
99
105
  zoomCanvasTo100: () => void;
100
106
  }
101
107
  interface DirectEditStateContextValue extends DirectEditState {
108
+ agentAvailable: boolean;
102
109
  sessionEditCount: number;
110
+ multiSelectContextCount: number;
103
111
  }
104
112
  interface DirectEditContextValue extends DirectEditStateContextValue, DirectEditActionsContextValue {
105
113
  }
@@ -176,9 +184,10 @@ interface DirectEditPanelInnerProps {
176
184
  onSelectSelectionColorTarget?: (color: ColorValue) => void;
177
185
  onUpdateTypography: (key: TypographyPropertyKey, value: CSSPropertyValue | string) => void;
178
186
  onReset: () => void;
179
- onExportEdits: () => Promise<boolean>;
180
- onSendToAgent: () => Promise<boolean>;
187
+ onExportEdits?: () => Promise<boolean>;
188
+ onSendToAgent?: () => Promise<boolean>;
181
189
  canSendToAgent?: boolean;
190
+ showSendButton?: boolean;
182
191
  className?: string;
183
192
  style?: React.CSSProperties;
184
193
  panelRef?: React.RefObject<HTMLDivElement>;
@@ -188,7 +197,7 @@ interface DirectEditPanelInnerProps {
188
197
  onHeaderPointerUp?: (e: React.PointerEvent) => void;
189
198
  onHeaderPointerCancel?: (e: React.PointerEvent) => void;
190
199
  }
191
- declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, selectionColors, computedBoxShadow, borderStyleControlPreference, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onSetCSS, onUpdateFlex, onToggleFlex, onUpdateSizing, onUpdateColor, onReplaceSelectionColor, onSelectSelectionColorTarget, onUpdateTypography, onReset, onExportEdits, onSendToAgent, canSendToAgent, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, onHeaderPointerCancel, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
200
+ declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, selectionColors, computedBoxShadow, borderStyleControlPreference, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onSetCSS, onUpdateFlex, onToggleFlex, onUpdateSizing, onUpdateColor, onReplaceSelectionColor, onSelectSelectionColorTarget, onUpdateTypography, onReset, onExportEdits, onSendToAgent, canSendToAgent, showSendButton, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, onHeaderPointerCancel, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
192
201
  declare function DirectEditPanel(): react_jsx_runtime.JSX.Element | null;
193
202
 
194
203
  interface DirectEditToolbarInnerProps {
@@ -201,9 +210,12 @@ interface DirectEditToolbarInnerProps {
201
210
  theme?: Theme;
202
211
  onSetTheme?: (theme: Theme) => void;
203
212
  sessionEditCount?: number;
213
+ multiSelectCount?: number;
214
+ multiSelectedElements?: HTMLElement[];
204
215
  onGetSessionItems?: () => SessionItem[];
205
216
  onExportAllEdits?: () => Promise<boolean>;
206
217
  onSendAllToAgents?: () => Promise<boolean>;
218
+ agentAvailable?: boolean;
207
219
  onClearSessionEdits?: () => void;
208
220
  onRemoveSessionEdit?: (element: HTMLElement) => void;
209
221
  onDeleteComment?: (id: string) => void;
@@ -215,7 +227,7 @@ interface DirectEditToolbarInnerProps {
215
227
  onZoomTo100?: () => void;
216
228
  onFitToViewport?: () => void;
217
229
  }
218
- declare function DirectEditToolbarInner({ editModeActive, onToggleEditMode, rulersVisible, onToggleRulers, activeTool, onSetActiveTool, theme, onSetTheme, sessionEditCount, onGetSessionItems, onExportAllEdits, onSendAllToAgents, onClearSessionEdits, onRemoveSessionEdit, onDeleteComment, className, canvasActive, canvasZoom, onToggleCanvas, onSetCanvasZoom, onZoomTo100, onFitToViewport, }: DirectEditToolbarInnerProps): react_jsx_runtime.JSX.Element;
230
+ declare function DirectEditToolbarInner({ editModeActive, onToggleEditMode, rulersVisible, onToggleRulers, activeTool: _activeTool, onSetActiveTool: _onSetActiveTool, theme, onSetTheme, sessionEditCount, multiSelectCount, multiSelectedElements, onGetSessionItems, onExportAllEdits, onSendAllToAgents, agentAvailable, onClearSessionEdits, onRemoveSessionEdit, onDeleteComment, className, canvasActive, canvasZoom, onToggleCanvas, onSetCanvasZoom, onZoomTo100, onFitToViewport, }: DirectEditToolbarInnerProps): react_jsx_runtime.JSX.Element;
219
231
  declare function DirectEditToolbar(): react_jsx_runtime.JSX.Element | null;
220
232
 
221
233
  interface UseMeasurementResult {
@@ -238,6 +250,9 @@ declare function MeasurementOverlay({ selectedElement, hoveredElement, measureme
238
250
 
239
251
  interface SelectionOverlayProps {
240
252
  selectedElement: HTMLElement;
253
+ pageFrameElement?: HTMLElement | null;
254
+ pageFrameLabel?: string | null;
255
+ canvasZoom?: number;
241
256
  draggedElement?: HTMLElement | null;
242
257
  isDragging: boolean;
243
258
  ghostPosition?: {
@@ -251,10 +266,11 @@ interface SelectionOverlayProps {
251
266
  onDoubleClick?: (clientX: number, clientY: number) => void;
252
267
  onHoverElement?: (element: HTMLElement | null) => void;
253
268
  onClickThrough?: (clientX: number, clientY: number) => void;
269
+ onSelectPageFrame?: (element: HTMLElement) => void;
254
270
  enableResizeHandles?: boolean;
255
271
  onResizeSizingChange?: (changes: Partial<Record<SizingPropertyKey, SizingValue>>, options?: SizingChangeOptions) => void;
256
272
  }
257
- declare function SelectionOverlay({ selectedElement, draggedElement, isDragging, ghostPosition, onMoveStart, showMoveHandle, activeTool, isTextEditing, onDoubleClick, onHoverElement, onClickThrough, enableResizeHandles, onResizeSizingChange, }: SelectionOverlayProps): react_jsx_runtime.JSX.Element;
273
+ declare function SelectionOverlay({ selectedElement, pageFrameElement, pageFrameLabel, canvasZoom, draggedElement, isDragging, ghostPosition, onMoveStart, showMoveHandle, isTextEditing, onDoubleClick, onHoverElement, onClickThrough, onSelectPageFrame, enableResizeHandles, onResizeSizingChange, }: SelectionOverlayProps): react_jsx_runtime.JSX.Element;
258
274
 
259
275
  interface MoveOverlayProps {
260
276
  dropIndicator: DropIndicator | null;
@@ -294,11 +310,11 @@ interface CommentOverlayProps {
294
310
  comments: Comment[];
295
311
  activeCommentId: string | null;
296
312
  onSetActiveComment: (id: string | null) => void;
297
- onUpdateText: (id: string, text: string) => void;
313
+ onUpdateText?: (id: string, text: string) => void;
298
314
  onAddReply: (id: string, text: string) => void;
299
315
  onDelete: (id: string) => void;
300
316
  onExport?: (id: string) => Promise<boolean>;
301
- onSendToAgent: (id: string) => Promise<boolean>;
317
+ onSendToAgent?: (id: string) => Promise<boolean>;
302
318
  attentionRequest?: {
303
319
  commentId: string;
304
320
  nonce: number;
@@ -309,4 +325,4 @@ declare function CommentOverlay({ comments, activeCommentId, onSetActiveComment,
309
325
 
310
326
  declare function formatColorValue(color: ColorValue): string;
311
327
 
312
- export { ActiveTool, BorderProperties, BorderPropertyKey, BorderRadiusPropertyKey, CSSPropertyValue, ColorPropertyKey, ColorValue, Comment, CommentOverlay, type CommentOverlayProps, DirectEdit, type DirectEditActionsContextValue, type DirectEditContextValue, DirectEditDemo, DirectEditPanel, DirectEditPanelInner, type DirectEditPanelInnerProps, DirectEditProvider, DirectEditState, type DirectEditStateContextValue, DirectEditToolbar, DirectEditToolbarInner, type DirectEditToolbarInnerProps, DragState, DropIndicator, FlexPropertyKey, Guideline, MeasurementLine, MeasurementOverlay, type MeasurementOverlayProps, type MoveInfo, type MoveMode, MoveOverlay, type MoveOverlayProps, Rulers, RulersOverlay, SelectionOverlay, type SelectionOverlayProps, SessionEdit, SizingChangeOptions, SizingPropertyKey, SizingValue, SpacingPropertyKey, type StartDragOptions, Theme, TypographyProperties, TypographyPropertyKey, type UseGuidelinesResult, type UseMeasurementResult, type UseMoveDropTarget, type UseMoveOptions, type UseMoveResult, formatColorValue, getStoredGuidelines, useDirectEdit, useDirectEditActions, useDirectEditState, useGuidelines, useMeasurement, useMove, useRulersVisible };
328
+ export { ActiveTool, BorderProperties, BorderPropertyKey, BorderRadiusPropertyKey, CSSPropertyValue, CanvasElementKind, ColorPropertyKey, ColorValue, Comment, CommentOverlay, type CommentOverlayProps, DirectEdit, type DirectEditActionsContextValue, type DirectEditContextValue, DirectEditDemo, DirectEditPanel, DirectEditPanelInner, type DirectEditPanelInnerProps, DirectEditProvider, DirectEditState, type DirectEditStateContextValue, DirectEditToolbar, DirectEditToolbarInner, type DirectEditToolbarInnerProps, DragState, DropIndicator, FlexPropertyKey, Guideline, MeasurementLine, MeasurementOverlay, type MeasurementOverlayProps, type MoveInfo, type MoveMode, MoveOverlay, type MoveOverlayProps, Rulers, RulersOverlay, SelectElementOptions, SelectElementsOptions, SelectionOverlay, type SelectionOverlayProps, SessionEdit, SizingChangeOptions, SizingPropertyKey, SizingValue, SpacingPropertyKey, type StartDragOptions, Theme, TypographyProperties, TypographyPropertyKey, type UseGuidelinesResult, type UseMeasurementResult, type UseMoveDropTarget, type UseMoveOptions, type UseMoveResult, formatColorValue, getStoredGuidelines, useDirectEdit, useDirectEditActions, useDirectEditState, useGuidelines, useMeasurement, useMove, useRulersVisible };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { D as DragState, a as DropIndicator, S as SpacingPropertyKey, C as CSSPropertyValue, B as BorderRadiusPropertyKey, b as BorderPropertyKey, c as BorderProperties, F as FlexPropertyKey, d as SizingPropertyKey, e as SizingValue, f as SizingChangeOptions, g as ColorPropertyKey, h as ColorValue, T as TypographyPropertyKey, A as ActiveTool, i as Theme, j as BorderStyleControlPreference, k as DirectEditState, l as SessionEdit, m as SessionItem, n as TypographyProperties, M as MeasurementLine, G as Guideline, o as Comment } from './utils-BGCQaaSf.js';
4
- export { p as BorderRadiusProperties, q as BorderStyle, r as ColorProperties, s as CommentReply, t as DomSourceLocation, u as DropTarget, E as ElementInfo, v as ElementLocator, w as FlexProperties, x as MeasurementState, R as ReactComponentFrame, y as SizingChangePhase, z as SizingMode, H as SizingProperties, I as SpacingProperties, U as UndoEditEntry, J as UndoEntry, K as UndoMoveEntry, L as UndoSelectionEntry, N as buildCommentExport, O as buildSessionExport, P as calculateDropPosition, Q as calculateElementMeasurements, V as calculateGuidelineMeasurements, W as calculateParentMeasurements, X as colorToTailwind, Y as elementFromPointWithoutOverlays, Z as findContainerAtPoint, _ as findLayoutContainerAtPoint, $ as formatPropertyValue, a0 as getComputedBorderStyles, a1 as getComputedBoxShadow, a2 as getComputedColorStyles, a3 as getComputedStyles, a4 as getDimensionDisplay, a5 as getElementInfo, a6 as getElementLocator, a7 as getFlexDirection, a8 as isFlexContainer, a9 as isLayoutContainer, aa as parseColorValue, ab as parsePropertyValue, ac as stylesToTailwind } from './utils-BGCQaaSf.js';
3
+ import { D as DragState, a as DropIndicator, S as SelectElementOptions, b as SelectElementsOptions, c as SpacingPropertyKey, C as CSSPropertyValue, B as BorderRadiusPropertyKey, d as BorderPropertyKey, e as BorderProperties, F as FlexPropertyKey, f as SizingPropertyKey, g as SizingValue, h as SizingChangeOptions, i as ColorPropertyKey, j as ColorValue, T as TypographyPropertyKey, A as ActiveTool, k as Theme, l as BorderStyleControlPreference, m as DirectEditState, n as SessionEdit, o as SessionItem, p as CanvasElementKind, q as TypographyProperties, M as MeasurementLine, G as Guideline, r as Comment } from './utils-Dn_oW8f_.js';
4
+ export { s as BorderRadiusProperties, t as BorderStyle, u as ColorProperties, v as CommentReply, w as DomSourceLocation, x as DropTarget, E as ElementInfo, y as ElementLocator, z as FlexProperties, H as MeasurementState, R as ReactComponentFrame, I as SizingChangePhase, J as SizingMode, K as SizingProperties, L as SpacingProperties, U as UndoEditEntry, N as UndoEntry, O as UndoMoveEntry, P as UndoSelectionEntry, Q as buildCommentExport, V as buildSessionExport, W as calculateDropPosition, X as calculateElementMeasurements, Y as calculateGuidelineMeasurements, Z as calculateParentMeasurements, _ as colorToTailwind, $ as elementFromPointWithoutOverlays, a0 as findContainerAtPoint, a1 as findLayoutContainerAtPoint, a2 as formatPropertyValue, a3 as getComputedBorderStyles, a4 as getComputedBoxShadow, a5 as getComputedColorStyles, a6 as getComputedStyles, a7 as getDimensionDisplay, a8 as getElementInfo, a9 as getElementLocator, aa as getFlexDirection, ab as isFlexContainer, ac as isLayoutContainer, ad as parseColorValue, ae as parsePropertyValue, af as stylesToTailwind } from './utils-Dn_oW8f_.js';
5
5
 
6
6
  declare function DirectEdit(): react_jsx_runtime.JSX.Element;
7
7
 
@@ -45,7 +45,10 @@ interface UseMoveResult {
45
45
  declare function useMove({ onMoveComplete }: UseMoveOptions): UseMoveResult;
46
46
 
47
47
  interface DirectEditActionsContextValue {
48
- selectElement: (element: HTMLElement) => void;
48
+ selectElement: (element: HTMLElement, options?: SelectElementOptions) => void;
49
+ selectElements: (elements: HTMLElement[], options?: SelectElementsOptions) => void;
50
+ toggleElementSelection: (element: HTMLElement) => void;
51
+ clearSelection: () => void;
49
52
  selectParent: () => void;
50
53
  selectChild: () => void;
51
54
  closePanel: () => void;
@@ -74,6 +77,7 @@ interface DirectEditActionsContextValue {
74
77
  y: number;
75
78
  }) => void;
76
79
  updateCommentText: (id: string, text: string) => void;
80
+ submitCommentDraft: (id: string, text: string) => string | null;
77
81
  addCommentReply: (id: string, text: string) => void;
78
82
  deleteComment: (id: string) => void;
79
83
  exportComment: (id: string) => Promise<boolean>;
@@ -93,13 +97,17 @@ interface DirectEditActionsContextValue {
93
97
  removeSessionEdit: (element: HTMLElement) => void;
94
98
  startTextEditing: (element: HTMLElement) => void;
95
99
  commitTextEditing: () => void;
100
+ groupSelection: () => void;
101
+ insertElement: (kind: CanvasElementKind) => void;
96
102
  toggleCanvas: () => void;
97
103
  setCanvasZoom: (zoom: number) => void;
98
104
  fitCanvasToViewport: () => void;
99
105
  zoomCanvasTo100: () => void;
100
106
  }
101
107
  interface DirectEditStateContextValue extends DirectEditState {
108
+ agentAvailable: boolean;
102
109
  sessionEditCount: number;
110
+ multiSelectContextCount: number;
103
111
  }
104
112
  interface DirectEditContextValue extends DirectEditStateContextValue, DirectEditActionsContextValue {
105
113
  }
@@ -176,9 +184,10 @@ interface DirectEditPanelInnerProps {
176
184
  onSelectSelectionColorTarget?: (color: ColorValue) => void;
177
185
  onUpdateTypography: (key: TypographyPropertyKey, value: CSSPropertyValue | string) => void;
178
186
  onReset: () => void;
179
- onExportEdits: () => Promise<boolean>;
180
- onSendToAgent: () => Promise<boolean>;
187
+ onExportEdits?: () => Promise<boolean>;
188
+ onSendToAgent?: () => Promise<boolean>;
181
189
  canSendToAgent?: boolean;
190
+ showSendButton?: boolean;
182
191
  className?: string;
183
192
  style?: React.CSSProperties;
184
193
  panelRef?: React.RefObject<HTMLDivElement>;
@@ -188,7 +197,7 @@ interface DirectEditPanelInnerProps {
188
197
  onHeaderPointerUp?: (e: React.PointerEvent) => void;
189
198
  onHeaderPointerCancel?: (e: React.PointerEvent) => void;
190
199
  }
191
- declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, selectionColors, computedBoxShadow, borderStyleControlPreference, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onSetCSS, onUpdateFlex, onToggleFlex, onUpdateSizing, onUpdateColor, onReplaceSelectionColor, onSelectSelectionColorTarget, onUpdateTypography, onReset, onExportEdits, onSendToAgent, canSendToAgent, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, onHeaderPointerCancel, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
200
+ declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, selectionColors, computedBoxShadow, borderStyleControlPreference, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onSetCSS, onUpdateFlex, onToggleFlex, onUpdateSizing, onUpdateColor, onReplaceSelectionColor, onSelectSelectionColorTarget, onUpdateTypography, onReset, onExportEdits, onSendToAgent, canSendToAgent, showSendButton, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, onHeaderPointerCancel, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
192
201
  declare function DirectEditPanel(): react_jsx_runtime.JSX.Element | null;
193
202
 
194
203
  interface DirectEditToolbarInnerProps {
@@ -201,9 +210,12 @@ interface DirectEditToolbarInnerProps {
201
210
  theme?: Theme;
202
211
  onSetTheme?: (theme: Theme) => void;
203
212
  sessionEditCount?: number;
213
+ multiSelectCount?: number;
214
+ multiSelectedElements?: HTMLElement[];
204
215
  onGetSessionItems?: () => SessionItem[];
205
216
  onExportAllEdits?: () => Promise<boolean>;
206
217
  onSendAllToAgents?: () => Promise<boolean>;
218
+ agentAvailable?: boolean;
207
219
  onClearSessionEdits?: () => void;
208
220
  onRemoveSessionEdit?: (element: HTMLElement) => void;
209
221
  onDeleteComment?: (id: string) => void;
@@ -215,7 +227,7 @@ interface DirectEditToolbarInnerProps {
215
227
  onZoomTo100?: () => void;
216
228
  onFitToViewport?: () => void;
217
229
  }
218
- declare function DirectEditToolbarInner({ editModeActive, onToggleEditMode, rulersVisible, onToggleRulers, activeTool, onSetActiveTool, theme, onSetTheme, sessionEditCount, onGetSessionItems, onExportAllEdits, onSendAllToAgents, onClearSessionEdits, onRemoveSessionEdit, onDeleteComment, className, canvasActive, canvasZoom, onToggleCanvas, onSetCanvasZoom, onZoomTo100, onFitToViewport, }: DirectEditToolbarInnerProps): react_jsx_runtime.JSX.Element;
230
+ declare function DirectEditToolbarInner({ editModeActive, onToggleEditMode, rulersVisible, onToggleRulers, activeTool: _activeTool, onSetActiveTool: _onSetActiveTool, theme, onSetTheme, sessionEditCount, multiSelectCount, multiSelectedElements, onGetSessionItems, onExportAllEdits, onSendAllToAgents, agentAvailable, onClearSessionEdits, onRemoveSessionEdit, onDeleteComment, className, canvasActive, canvasZoom, onToggleCanvas, onSetCanvasZoom, onZoomTo100, onFitToViewport, }: DirectEditToolbarInnerProps): react_jsx_runtime.JSX.Element;
219
231
  declare function DirectEditToolbar(): react_jsx_runtime.JSX.Element | null;
220
232
 
221
233
  interface UseMeasurementResult {
@@ -238,6 +250,9 @@ declare function MeasurementOverlay({ selectedElement, hoveredElement, measureme
238
250
 
239
251
  interface SelectionOverlayProps {
240
252
  selectedElement: HTMLElement;
253
+ pageFrameElement?: HTMLElement | null;
254
+ pageFrameLabel?: string | null;
255
+ canvasZoom?: number;
241
256
  draggedElement?: HTMLElement | null;
242
257
  isDragging: boolean;
243
258
  ghostPosition?: {
@@ -251,10 +266,11 @@ interface SelectionOverlayProps {
251
266
  onDoubleClick?: (clientX: number, clientY: number) => void;
252
267
  onHoverElement?: (element: HTMLElement | null) => void;
253
268
  onClickThrough?: (clientX: number, clientY: number) => void;
269
+ onSelectPageFrame?: (element: HTMLElement) => void;
254
270
  enableResizeHandles?: boolean;
255
271
  onResizeSizingChange?: (changes: Partial<Record<SizingPropertyKey, SizingValue>>, options?: SizingChangeOptions) => void;
256
272
  }
257
- declare function SelectionOverlay({ selectedElement, draggedElement, isDragging, ghostPosition, onMoveStart, showMoveHandle, activeTool, isTextEditing, onDoubleClick, onHoverElement, onClickThrough, enableResizeHandles, onResizeSizingChange, }: SelectionOverlayProps): react_jsx_runtime.JSX.Element;
273
+ declare function SelectionOverlay({ selectedElement, pageFrameElement, pageFrameLabel, canvasZoom, draggedElement, isDragging, ghostPosition, onMoveStart, showMoveHandle, isTextEditing, onDoubleClick, onHoverElement, onClickThrough, onSelectPageFrame, enableResizeHandles, onResizeSizingChange, }: SelectionOverlayProps): react_jsx_runtime.JSX.Element;
258
274
 
259
275
  interface MoveOverlayProps {
260
276
  dropIndicator: DropIndicator | null;
@@ -294,11 +310,11 @@ interface CommentOverlayProps {
294
310
  comments: Comment[];
295
311
  activeCommentId: string | null;
296
312
  onSetActiveComment: (id: string | null) => void;
297
- onUpdateText: (id: string, text: string) => void;
313
+ onUpdateText?: (id: string, text: string) => void;
298
314
  onAddReply: (id: string, text: string) => void;
299
315
  onDelete: (id: string) => void;
300
316
  onExport?: (id: string) => Promise<boolean>;
301
- onSendToAgent: (id: string) => Promise<boolean>;
317
+ onSendToAgent?: (id: string) => Promise<boolean>;
302
318
  attentionRequest?: {
303
319
  commentId: string;
304
320
  nonce: number;
@@ -309,4 +325,4 @@ declare function CommentOverlay({ comments, activeCommentId, onSetActiveComment,
309
325
 
310
326
  declare function formatColorValue(color: ColorValue): string;
311
327
 
312
- export { ActiveTool, BorderProperties, BorderPropertyKey, BorderRadiusPropertyKey, CSSPropertyValue, ColorPropertyKey, ColorValue, Comment, CommentOverlay, type CommentOverlayProps, DirectEdit, type DirectEditActionsContextValue, type DirectEditContextValue, DirectEditDemo, DirectEditPanel, DirectEditPanelInner, type DirectEditPanelInnerProps, DirectEditProvider, DirectEditState, type DirectEditStateContextValue, DirectEditToolbar, DirectEditToolbarInner, type DirectEditToolbarInnerProps, DragState, DropIndicator, FlexPropertyKey, Guideline, MeasurementLine, MeasurementOverlay, type MeasurementOverlayProps, type MoveInfo, type MoveMode, MoveOverlay, type MoveOverlayProps, Rulers, RulersOverlay, SelectionOverlay, type SelectionOverlayProps, SessionEdit, SizingChangeOptions, SizingPropertyKey, SizingValue, SpacingPropertyKey, type StartDragOptions, Theme, TypographyProperties, TypographyPropertyKey, type UseGuidelinesResult, type UseMeasurementResult, type UseMoveDropTarget, type UseMoveOptions, type UseMoveResult, formatColorValue, getStoredGuidelines, useDirectEdit, useDirectEditActions, useDirectEditState, useGuidelines, useMeasurement, useMove, useRulersVisible };
328
+ export { ActiveTool, BorderProperties, BorderPropertyKey, BorderRadiusPropertyKey, CSSPropertyValue, CanvasElementKind, ColorPropertyKey, ColorValue, Comment, CommentOverlay, type CommentOverlayProps, DirectEdit, type DirectEditActionsContextValue, type DirectEditContextValue, DirectEditDemo, DirectEditPanel, DirectEditPanelInner, type DirectEditPanelInnerProps, DirectEditProvider, DirectEditState, type DirectEditStateContextValue, DirectEditToolbar, DirectEditToolbarInner, type DirectEditToolbarInnerProps, DragState, DropIndicator, FlexPropertyKey, Guideline, MeasurementLine, MeasurementOverlay, type MeasurementOverlayProps, type MoveInfo, type MoveMode, MoveOverlay, type MoveOverlayProps, Rulers, RulersOverlay, SelectElementOptions, SelectElementsOptions, SelectionOverlay, type SelectionOverlayProps, SessionEdit, SizingChangeOptions, SizingPropertyKey, SizingValue, SpacingPropertyKey, type StartDragOptions, Theme, TypographyProperties, TypographyPropertyKey, type UseGuidelinesResult, type UseMeasurementResult, type UseMoveDropTarget, type UseMoveOptions, type UseMoveResult, formatColorValue, getStoredGuidelines, useDirectEdit, useDirectEditActions, useDirectEditState, useGuidelines, useMeasurement, useMove, useRulersVisible };