@turnix-co/konva-editor 3.0.3 → 3.0.5

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
@@ -431,6 +431,7 @@ type CanvasState = {
431
431
  isSketchMode: boolean;
432
432
  editingTextId: string | null;
433
433
  presentationMetadata: PresentationMetadata;
434
+ metadataLoaded: boolean;
434
435
  };
435
436
  declare const createEmptySlide: (name?: string) => Slide;
436
437
  declare const addSlide: _reduxjs_toolkit.ActionCreatorWithoutPayload<"canvas/addSlide">;
@@ -612,6 +613,7 @@ declare const loadPresentationMetadata$1: _reduxjs_toolkit.ActionCreatorWithOpti
612
613
  title: string;
613
614
  description: string;
614
615
  }, "canvas/loadPresentationMetadata">;
616
+ declare const setMetadataLoaded: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<boolean, "canvas/setMetadataLoaded">;
615
617
 
616
618
  declare const selectCurrentSlideId: (state: {
617
619
  canvas: CanvasState;
@@ -631,6 +633,9 @@ declare const selectSlideById: (slideId: string) => (state: {
631
633
  declare const selectPresentationMetadata: (state: {
632
634
  canvas: CanvasState;
633
635
  }) => PresentationMetadata;
636
+ declare const selectMetadataLoaded: (state: {
637
+ canvas: CanvasState;
638
+ }) => boolean;
634
639
 
635
640
  interface PublishProgress {
636
641
  current: number;
@@ -739,6 +744,7 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
739
744
  isSketchMode: boolean;
740
745
  editingTextId: string | null;
741
746
  presentationMetadata: PresentationMetadata;
747
+ metadataLoaded: boolean;
742
748
  };
743
749
  }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
744
750
  dispatch: redux_thunk.ThunkDispatch<{
@@ -753,6 +759,7 @@ declare const store: _reduxjs_toolkit.EnhancedStore<{
753
759
  isSketchMode: boolean;
754
760
  editingTextId: string | null;
755
761
  presentationMetadata: PresentationMetadata;
762
+ metadataLoaded: boolean;
756
763
  };
757
764
  }, undefined, redux.UnknownAction>;
758
765
  }>, redux.StoreEnhancer]>>;
@@ -896,6 +903,7 @@ declare const useDispatch: () => redux_thunk.ThunkDispatch<{
896
903
  isSketchMode: boolean;
897
904
  editingTextId: string | null;
898
905
  presentationMetadata: PresentationMetadata;
906
+ metadataLoaded: boolean;
899
907
  };
900
908
  }, undefined, redux.UnknownAction> & redux.Dispatch<redux.UnknownAction>;
901
909
  declare const useSelector: <T>(selector: (state: RootState) => T) => T;
@@ -954,4 +962,4 @@ declare const loadCurrentSlideId: () => string | null;
954
962
  declare const savePresentationMetadata: (metadata: PresentationMetadata) => Promise<void>;
955
963
  declare const loadPresentationMetadata: () => Promise<PresentationMetadata | null>;
956
964
 
957
- 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 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, 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, selectCanAddSlide, selectCurrentSlide, selectCurrentSlideId, selectPresentationMetadata, selectSlideById, sendToBack, setActivityType, setAltText, setAudioData, setBackgroundColor, setCurrentSlide, setEditingActivity, setEditingTextId, setLines, setLink, setPenColor, setPresentationDescription, setPresentationTitle, 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, useInitialSlides, useSelector, useSlidesPersistence };
965
+ 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 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, 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, 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, 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, useSelector, useSlidesPersistence };