@turnix-co/konva-editor 2.0.58 → 3.0.0

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.ts CHANGED
@@ -8,6 +8,14 @@ import * as redux_thunk from 'redux-thunk';
8
8
  import * as redux from 'redux';
9
9
  export { Provider as ReduxProvider } from 'react-redux';
10
10
 
11
+ type CanvasProps = {
12
+ onStageReady?: (stageRef: React$1.RefObject<Konva.Stage | null>) => void;
13
+ onSelectionChange?: (selectedId: string | null) => void;
14
+ onTextEditingReady?: (startEditingFn: (textId: string) => void) => void;
15
+ onDirectDrawingCanvasReady?: (canvasRef: React$1.RefObject<HTMLCanvasElement | null>) => void;
16
+ };
17
+ declare const Canvas: React$1.FC<CanvasProps>;
18
+
11
19
  /**
12
20
  * Tool identifiers for the main toolbar
13
21
  */
@@ -100,20 +108,6 @@ declare const VIEWER_TOOLBAR_CONFIG: ToolbarConfig;
100
108
  */
101
109
  declare const BASIC_EDITOR_TOOLBAR_CONFIG: ToolbarConfig;
102
110
 
103
- type CanvasProps = {
104
- onStageReady?: (stageRef: React$1.RefObject<Konva.Stage | null>) => void;
105
- onSelectionChange?: (selectedId: string | null) => void;
106
- onTextEditingReady?: (startEditingFn: (textId: string) => void) => void;
107
- onDirectDrawingCanvasReady?: (canvasRef: React$1.RefObject<HTMLCanvasElement | null>) => void;
108
- /** Configuration for context menu permissions and visibility */
109
- contextMenuConfig?: ContextMenuConfig;
110
- /** Custom className for the canvas container */
111
- className?: string;
112
- /** Custom style for the canvas container */
113
- style?: React$1.CSSProperties;
114
- };
115
- declare const Canvas: React$1.FC<CanvasProps>;
116
-
117
111
  type ToolbarProps = {
118
112
  isOpen?: boolean;
119
113
  onClose?: () => void;
@@ -124,7 +118,7 @@ type ToolbarProps = {
124
118
  /** Configuration for which tools and actions to show */
125
119
  config?: ToolbarConfig;
126
120
  };
127
- declare const Toolbar: ({ isOpen: isOpenProp, onClose, onScreenRecord, stageRef, onTextAdded, showToggleButton, config, }?: ToolbarProps) => react_jsx_runtime.JSX.Element;
121
+ declare const Toolbar: ({ isOpen: isOpenProp, onScreenRecord, stageRef, onTextAdded, config, }?: ToolbarProps) => react_jsx_runtime.JSX.Element;
128
122
 
129
123
  type Line$1 = {
130
124
  id?: string;