@turnix-co/konva-editor 3.0.47 → 3.0.49

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
@@ -437,6 +437,11 @@ type CanvasState = {
437
437
  presentationMetadata: PresentationMetadata;
438
438
  metadataLoaded: boolean;
439
439
  viewerMode: boolean;
440
+ editingOverlayPosition: {
441
+ top: number;
442
+ left: number;
443
+ scale: number;
444
+ } | null;
440
445
  };
441
446
  declare const createEmptySlide: (name?: string) => Slide;
442
447
  declare const addSlide: _reduxjs_toolkit.ActionCreatorWithoutPayload<"canvas/addSlide">;
@@ -827,6 +832,11 @@ type ScreenRecorderProps = {
827
832
  };
828
833
  declare const ScreenRecorder: React$1.FC<ScreenRecorderProps>;
829
834
 
835
+ interface MobilePrevPanelProps {
836
+ softDelete?: boolean;
837
+ }
838
+ declare const MobilePrevPanel: React$1.FC<MobilePrevPanelProps>;
839
+
830
840
  type ToolbarState = {
831
841
  selectedTool: string;
832
842
  penColor: string;
@@ -856,6 +866,11 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
856
866
  presentationMetadata: PresentationMetadata;
857
867
  metadataLoaded: boolean;
858
868
  viewerMode: boolean;
869
+ editingOverlayPosition: {
870
+ top: number;
871
+ left: number;
872
+ scale: number;
873
+ } | null;
859
874
  };
860
875
  }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
861
876
  dispatch: redux_thunk.ThunkDispatch<{
@@ -872,6 +887,11 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
872
887
  presentationMetadata: PresentationMetadata;
873
888
  metadataLoaded: boolean;
874
889
  viewerMode: boolean;
890
+ editingOverlayPosition: {
891
+ top: number;
892
+ left: number;
893
+ scale: number;
894
+ } | null;
875
895
  };
876
896
  }, undefined, redux.UnknownAction>;
877
897
  }>, redux.StoreEnhancer]>>;
@@ -889,6 +909,11 @@ declare const createViewerStore: () => _reduxjs_toolkit.EnhancedStore<{
889
909
  presentationMetadata: PresentationMetadata;
890
910
  metadataLoaded: boolean;
891
911
  viewerMode: boolean;
912
+ editingOverlayPosition: {
913
+ top: number;
914
+ left: number;
915
+ scale: number;
916
+ } | null;
892
917
  };
893
918
  }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
894
919
  dispatch: redux_thunk.ThunkDispatch<{
@@ -905,6 +930,11 @@ declare const createViewerStore: () => _reduxjs_toolkit.EnhancedStore<{
905
930
  presentationMetadata: PresentationMetadata;
906
931
  metadataLoaded: boolean;
907
932
  viewerMode: boolean;
933
+ editingOverlayPosition: {
934
+ top: number;
935
+ left: number;
936
+ scale: number;
937
+ } | null;
908
938
  };
909
939
  }, undefined, redux.UnknownAction>;
910
940
  }>, redux.StoreEnhancer]>>;
@@ -1050,6 +1080,11 @@ declare const useDispatch: () => redux_thunk.ThunkDispatch<{
1050
1080
  presentationMetadata: PresentationMetadata;
1051
1081
  metadataLoaded: boolean;
1052
1082
  viewerMode: boolean;
1083
+ editingOverlayPosition: {
1084
+ top: number;
1085
+ left: number;
1086
+ scale: number;
1087
+ } | null;
1053
1088
  };
1054
1089
  }, undefined, redux.UnknownAction> & redux.Dispatch<redux.UnknownAction>;
1055
1090
  declare const useSelector: <T>(selector: (state: RootState) => T) => T;
@@ -1108,4 +1143,4 @@ declare const loadCurrentSlideId: () => string | null;
1108
1143
  declare const savePresentationMetadata: (metadata: PresentationMetadata) => Promise<void>;
1109
1144
  declare const loadPresentationMetadata: () => Promise<PresentationMetadata | null>;
1110
1145
 
1111
- 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, 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 };
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 };