@turnix-co/konva-editor 2.0.5 → 2.0.9

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
@@ -560,6 +560,66 @@ interface EditorRootProps {
560
560
  */
561
561
  declare function EditorRoot({ children, className, style }: EditorRootProps): react_jsx_runtime.JSX.Element;
562
562
 
563
+ type TopNavBarProps = {
564
+ /** Title displayed in the header */
565
+ title?: string;
566
+ /** Auto-save status message */
567
+ autoSaveMessage?: string;
568
+ /** Callback when back button is clicked */
569
+ onBack?: () => void;
570
+ /** Callback when settings button is clicked */
571
+ onSettings?: () => void;
572
+ /** Callback when user/profile button is clicked */
573
+ onProfile?: () => void;
574
+ /** Function to publish slides (passed to PublishButton) */
575
+ onPublish?: PublishButtonProps['onPublish'];
576
+ /** Whether to show the publish button */
577
+ showPublishButton?: boolean;
578
+ /** Whether to show the settings button */
579
+ showSettingsButton?: boolean;
580
+ /** Whether to show the profile button */
581
+ showProfileButton?: boolean;
582
+ /** Whether to show the back button */
583
+ showBackButton?: boolean;
584
+ /** Custom class name for the container */
585
+ className?: string;
586
+ /** Custom content to render on the right side (replaces default buttons) */
587
+ rightContent?: React$1.ReactNode;
588
+ /** Custom content to render on the left side (replaces default content) */
589
+ leftContent?: React$1.ReactNode;
590
+ };
591
+ declare const TopNavBar: React$1.FC<TopNavBarProps>;
592
+
593
+ type BottomToolbarProps = {
594
+ /** Custom colors array to override defaults */
595
+ colors?: Array<{
596
+ name: string;
597
+ value: string;
598
+ }>;
599
+ /** Whether to show the size slider */
600
+ showSizeSlider?: boolean;
601
+ /** Whether to show the color picker */
602
+ showColorPicker?: boolean;
603
+ /** Whether to show the background color picker */
604
+ showBackgroundPicker?: boolean;
605
+ /** Custom class name for the container */
606
+ className?: string;
607
+ };
608
+ declare const BottomToolbar: React$1.FC<BottomToolbarProps>;
609
+
610
+ type LayerItem = {
611
+ id: string;
612
+ type: 'image' | 'video' | 'shape' | 'text' | 'flashcard' | 'photoFrame' | 'mcq' | 'trueFalse' | 'shortAnswer' | 'longAnswer' | 'fillInTheBlanks' | 'line';
613
+ name: string;
614
+ timestamp: number;
615
+ };
616
+ type LayersPanelProps = {
617
+ selectedElementId?: string;
618
+ onClose: () => void;
619
+ onSelectElement: (id: string, type: LayerItem['type']) => void;
620
+ };
621
+ declare const LayersPanel: React$1.FC<LayersPanelProps>;
622
+
563
623
  type ToolbarState = {
564
624
  selectedTool: string;
565
625
  penColor: string;
@@ -686,4 +746,4 @@ declare const useSelector: <T>(selector: (state: RootState) => T) => T;
686
746
 
687
747
  declare const useSlidesPersistence: () => void;
688
748
 
689
- export { type AppDispatch, Canvas, type CanvasProps, EditorRoot, type EditorRootProps, type ExportOptions, type FillInTheBlanks, type FlashcardElement, type ImageElement, type Line$1 as Line, type LongAnswer, type MultipleChoice, type PhotoFrameElement, PublishButton, type PublishButtonProps, type PublishProgress, type PublishResponse, type RootState, ScreenRecorder, type Shape, type ShortAnswer, type Slide, SlideNavigation, type TextElement, Toolbar, type ToolbarProps, type TrueFalse, type VideoElement, addFillInTheBlanks, addFlashcard, addImage, addImageAnnotation, addLine, addLongAnswer, addMultipleChoice, addPhotoFrame, addPhotoFrameAnnotation, addShape, addShortAnswer, addSlide, addText, addTrueFalse, addVideo, bringToFront, clearCanvas, clearImageAnnotations, clearPhotoFrameAnnotations, deleteFillInTheBlanks, deleteFlashcard, deleteImage, deleteLineById, deleteLongAnswer, deleteMultipleChoice, deletePhotoFrame, deleteShape, deleteShortAnswer, deleteSlide, deleteText, deleteTrueFalse, deleteVideo, duplicateFillInTheBlanks, duplicateFlashcard, duplicateImage, duplicateLine, duplicateLongAnswer, duplicateMultipleChoice, duplicatePhotoFrame, duplicateShape, duplicateShortAnswer, duplicateSlide, duplicateText, duplicateTrueFalse, duplicateVideo, editFlashcard, editMultipleChoice, exportSlideAsBlob, exportSlideAsImage, finalizeDrawing, getCompressionStats, getSlideDataURL, loadSlides, nextFlashcard, previousFlashcard, redo, removeLine, reorderSlides, saveToHistory, selectAllSlides, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setPenColor, setShowFlashcardForm, setShowMcqForm, setSketchMode, setStrokeWidth, setTool, simplifyFlatPoints, simplifyLine, simplifyLines, store, toggleImageDrawingMode, toggleLock, togglePhotoFrameDrawingMode, toggleSketchMode, toggleVideoPlaying, undo, updateElementOrder, updateFillInTheBlanks, updateFlashcard, updateImage, updateImageAnnotation, updateLastLine, updateLinePosition, updateLineTransform, updateLongAnswer, updateMultipleChoice, updatePhotoFrame, updatePhotoFrameAnnotation, updateShape, updateShortAnswer, updateSlideThumbnail, updateText, updateTrueFalse, updateVideo, useDispatch, useSelector, useSlidesPersistence };
749
+ export { type AppDispatch, BottomToolbar, type BottomToolbarProps, Canvas, type CanvasProps, EditorRoot, type EditorRootProps, type ExportOptions, type FillInTheBlanks, type FlashcardElement, type ImageElement, LayersPanel, type Line$1 as Line, type LongAnswer, type MultipleChoice, type PhotoFrameElement, PublishButton, type PublishButtonProps, type PublishProgress, type PublishResponse, type RootState, ScreenRecorder, type Shape, type ShortAnswer, type Slide, SlideNavigation, type TextElement, Toolbar, type ToolbarProps, TopNavBar, type TopNavBarProps, type TrueFalse, type VideoElement, addFillInTheBlanks, addFlashcard, addImage, addImageAnnotation, addLine, addLongAnswer, addMultipleChoice, addPhotoFrame, addPhotoFrameAnnotation, addShape, addShortAnswer, addSlide, addText, addTrueFalse, addVideo, bringToFront, clearCanvas, clearImageAnnotations, clearPhotoFrameAnnotations, deleteFillInTheBlanks, deleteFlashcard, deleteImage, deleteLineById, deleteLongAnswer, deleteMultipleChoice, deletePhotoFrame, deleteShape, deleteShortAnswer, deleteSlide, deleteText, deleteTrueFalse, deleteVideo, duplicateFillInTheBlanks, duplicateFlashcard, duplicateImage, duplicateLine, duplicateLongAnswer, duplicateMultipleChoice, duplicatePhotoFrame, duplicateShape, duplicateShortAnswer, duplicateSlide, duplicateText, duplicateTrueFalse, duplicateVideo, editFlashcard, editMultipleChoice, exportSlideAsBlob, exportSlideAsImage, finalizeDrawing, getCompressionStats, getSlideDataURL, loadSlides, nextFlashcard, previousFlashcard, redo, removeLine, reorderSlides, saveToHistory, selectAllSlides, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setPenColor, setShowFlashcardForm, setShowMcqForm, setSketchMode, setStrokeWidth, setTool, simplifyFlatPoints, simplifyLine, simplifyLines, store, toggleImageDrawingMode, toggleLock, togglePhotoFrameDrawingMode, toggleSketchMode, toggleVideoPlaying, undo, updateElementOrder, updateFillInTheBlanks, updateFlashcard, updateImage, updateImageAnnotation, updateLastLine, updateLinePosition, updateLineTransform, updateLongAnswer, updateMultipleChoice, updatePhotoFrame, updatePhotoFrameAnnotation, updateShape, updateShortAnswer, updateSlideThumbnail, updateText, updateTrueFalse, updateVideo, useDispatch, useSelector, useSlidesPersistence };