@turnix-co/konva-editor 3.0.49 → 3.0.51
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 +27 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -124,8 +124,10 @@ type ToolbarProps = {
|
|
|
124
124
|
showToggleButton?: boolean;
|
|
125
125
|
/** Configuration for which tools and actions to show */
|
|
126
126
|
config?: ToolbarConfig;
|
|
127
|
+
/** Callback when toolbar visibility changes */
|
|
128
|
+
onVisibilityChange?: (visible: boolean) => void;
|
|
127
129
|
};
|
|
128
|
-
declare const Toolbar: ({ onScreenRecord, stageRef, onTextAdded, config }?: ToolbarProps) => react_jsx_runtime.JSX.Element;
|
|
130
|
+
declare const Toolbar: ({ onScreenRecord, stageRef, onTextAdded, config, onVisibilityChange, }?: ToolbarProps) => react_jsx_runtime.JSX.Element;
|
|
129
131
|
|
|
130
132
|
type Line$1 = {
|
|
131
133
|
id?: string;
|
|
@@ -837,6 +839,29 @@ interface MobilePrevPanelProps {
|
|
|
837
839
|
}
|
|
838
840
|
declare const MobilePrevPanel: React$1.FC<MobilePrevPanelProps>;
|
|
839
841
|
|
|
842
|
+
interface MobileActionButtonsProps {
|
|
843
|
+
stageRef?: React$1.RefObject<Konva.Stage | null>;
|
|
844
|
+
onScreenRecord?: () => void;
|
|
845
|
+
visible?: boolean;
|
|
846
|
+
config?: {
|
|
847
|
+
undo?: boolean;
|
|
848
|
+
redo?: boolean;
|
|
849
|
+
screenRecord?: boolean;
|
|
850
|
+
cameraRecord?: boolean;
|
|
851
|
+
clear?: boolean;
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
declare const MobileActionButtons: React$1.FC<MobileActionButtonsProps>;
|
|
855
|
+
|
|
856
|
+
interface MobileBottomSectionProps {
|
|
857
|
+
stageRef?: React.RefObject<Konva.Stage | null>;
|
|
858
|
+
onScreenRecord?: () => void;
|
|
859
|
+
softDelete?: boolean;
|
|
860
|
+
actionButtonsVisible?: boolean;
|
|
861
|
+
actionButtonsConfig?: MobileActionButtonsProps['config'];
|
|
862
|
+
}
|
|
863
|
+
declare const MobileBottomSection: React.FC<MobileBottomSectionProps>;
|
|
864
|
+
|
|
840
865
|
type ToolbarState = {
|
|
841
866
|
selectedTool: string;
|
|
842
867
|
penColor: string;
|
|
@@ -1143,4 +1168,4 @@ declare const loadCurrentSlideId: () => string | null;
|
|
|
1143
1168
|
declare const savePresentationMetadata: (metadata: PresentationMetadata) => Promise<void>;
|
|
1144
1169
|
declare const loadPresentationMetadata: () => Promise<PresentationMetadata | null>;
|
|
1145
1170
|
|
|
1146
|
-
export { type ActionType, type ActivityType, type AppDispatch, BASIC_EDITOR_TOOLBAR_CONFIG, BottomToolbar, type BottomToolbarProps, Canvas, type CanvasProps, type ContextMenuConfig, DEFAULT_CONTEXT_MENU_CONFIG, DEFAULT_TOOLBAR_CONFIG, EditorRoot, type EditorRootProps, type ExportOptions, type FillInTheBlanks, type FlashcardElement, type ImageElement, type InitialSlidesConfig, type Line$1 as Line, type LongAnswer, type MediaType, MobilePrevPanel, type MobilePrevPanelProps, type MultipleChoice, type PhotoFrameElement, type PreparedImageElement, type PreparedPhotoFrameElement, type PreparedSlide, type PreparedVideoElement, type PresentationMetadata, PublishButton, type PublishButtonProps, type PublishPayload, type PublishProgress, type PublishResponse, type RootState, ScreenRecorder, type Shape, type ShapeType, type ShortAnswer, type Slide, SlideNavigation, type SlideNavigationProps, type SlidesPayload, type TextElement, type ToolType, Toolbar, type ToolbarActionsConfig, type ToolbarConfig, type ToolbarProps, type ToolbarToolsConfig, TopNavBar, type TopNavBarProps, type TrueFalse, VIEWER_TOOLBAR_CONFIG, type VideoElement, addFillInTheBlanks, addFlashcard, addImage, addImageAnnotation, addLine, addLongAnswer, addMultipleChoice, addPhotoFrame, addPhotoFrameAnnotation, addShape, addShortAnswer, addSlide, addText, addTrueFalse, addVideo, arrayBufferToBase64, bringToFront, clearCanvas, clearImageAnnotations, clearLocalData, clearPhotoFrameAnnotations, createEmptySlide, createViewerStore, 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, loadCurrentSlideId, loadFromIndexedDB, loadPresentationMetadata$1 as loadPresentationMetadata, loadPresentationMetadata as loadPresentationMetadataFromDB, loadSlides, mergeToolbarConfig, nextFlashcard, prepareFormData, prepareSlidesForPublishing, previousFlashcard, redo, removeLine, reorderSlides, savePresentationMetadata, saveToHistory, selectAllSlides, selectAllSlidesIncludingInactive, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectMetadataLoaded, selectPresentationMetadata, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setMetadataLoaded, setPenColor, setPresentationDescription, setPresentationTitle, setShowFlashcardForm, setShowMcqForm, setSketchMode, setStrokeWidth, setTool, setViewerMode, 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, useInitialSlides, useModalPortal, useSelector, useSlidesPersistence };
|
|
1171
|
+
export { type ActionType, type ActivityType, type AppDispatch, BASIC_EDITOR_TOOLBAR_CONFIG, BottomToolbar, type BottomToolbarProps, Canvas, type CanvasProps, type ContextMenuConfig, DEFAULT_CONTEXT_MENU_CONFIG, DEFAULT_TOOLBAR_CONFIG, EditorRoot, type EditorRootProps, type ExportOptions, type FillInTheBlanks, type FlashcardElement, type ImageElement, type InitialSlidesConfig, type Line$1 as Line, type LongAnswer, type MediaType, MobileActionButtons, type MobileActionButtonsProps, MobileBottomSection, type MobileBottomSectionProps, MobilePrevPanel, type MobilePrevPanelProps, type MultipleChoice, type PhotoFrameElement, type PreparedImageElement, type PreparedPhotoFrameElement, type PreparedSlide, type PreparedVideoElement, type PresentationMetadata, PublishButton, type PublishButtonProps, type PublishPayload, type PublishProgress, type PublishResponse, type RootState, ScreenRecorder, type Shape, type ShapeType, type ShortAnswer, type Slide, SlideNavigation, type SlideNavigationProps, type SlidesPayload, type TextElement, type ToolType, Toolbar, type ToolbarActionsConfig, type ToolbarConfig, type ToolbarProps, type ToolbarToolsConfig, TopNavBar, type TopNavBarProps, type TrueFalse, VIEWER_TOOLBAR_CONFIG, type VideoElement, addFillInTheBlanks, addFlashcard, addImage, addImageAnnotation, addLine, addLongAnswer, addMultipleChoice, addPhotoFrame, addPhotoFrameAnnotation, addShape, addShortAnswer, addSlide, addText, addTrueFalse, addVideo, arrayBufferToBase64, bringToFront, clearCanvas, clearImageAnnotations, clearLocalData, clearPhotoFrameAnnotations, createEmptySlide, createViewerStore, 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, loadCurrentSlideId, loadFromIndexedDB, loadPresentationMetadata$1 as loadPresentationMetadata, loadPresentationMetadata as loadPresentationMetadataFromDB, loadSlides, mergeToolbarConfig, nextFlashcard, prepareFormData, prepareSlidesForPublishing, previousFlashcard, redo, removeLine, reorderSlides, savePresentationMetadata, saveToHistory, selectAllSlides, selectAllSlidesIncludingInactive, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectMetadataLoaded, selectPresentationMetadata, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setMetadataLoaded, setPenColor, setPresentationDescription, setPresentationTitle, setShowFlashcardForm, setShowMcqForm, setSketchMode, setStrokeWidth, setTool, setViewerMode, 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, useInitialSlides, useModalPortal, useSelector, useSlidesPersistence };
|