@turnix-co/konva-editor 3.0.7 → 3.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
@@ -415,6 +415,7 @@ type Slide = {
415
415
  showFlashcardForm: boolean;
416
416
  editingActivity: MultipleChoice | TrueFalse | ShortAnswer | LongAnswer | FillInTheBlanks | null;
417
417
  editingFlashcard: FlashcardElement | null;
418
+ isActive: boolean;
418
419
  };
419
420
  type SlideHistory = {
420
421
  past: Slide[];
@@ -435,7 +436,10 @@ type CanvasState = {
435
436
  };
436
437
  declare const createEmptySlide: (name?: string) => Slide;
437
438
  declare const addSlide: _reduxjs_toolkit.ActionCreatorWithoutPayload<"canvas/addSlide">;
438
- declare const deleteSlide: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<string, "canvas/deleteSlide">;
439
+ declare const deleteSlide: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<string | {
440
+ id: string;
441
+ softDelete?: boolean;
442
+ }, "canvas/deleteSlide">;
439
443
  declare const duplicateSlide: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<string, "canvas/duplicateSlide">;
440
444
  declare const setCurrentSlide: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<string, "canvas/setCurrentSlide">;
441
445
  declare const updateSlideThumbnail: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<{
@@ -624,6 +628,9 @@ declare const selectCurrentSlide: (state: {
624
628
  declare const selectAllSlides: (state: {
625
629
  canvas: CanvasState;
626
630
  }) => Slide[];
631
+ declare const selectAllSlidesIncludingInactive: (state: {
632
+ canvas: CanvasState;
633
+ }) => Slide[];
627
634
  declare const selectCanAddSlide: (state: {
628
635
  canvas: CanvasState;
629
636
  }) => boolean;
@@ -652,6 +659,7 @@ interface PublishButtonProps {
652
659
  onPublish?: (slides: Slide[], metadata: PresentationMetadata, onProgress?: (progress: PublishProgress) => void) => Promise<PublishResponse>;
653
660
  label?: string;
654
661
  className?: string;
662
+ includeInactiveSlides?: boolean;
655
663
  }
656
664
  declare const PublishButton: React$1.FC<PublishButtonProps>;
657
665
 
@@ -673,6 +681,7 @@ type TopNavBarProps = {
673
681
  className?: string;
674
682
  rightContent?: React$1.ReactNode;
675
683
  leftContent?: React$1.ReactNode;
684
+ includeInactiveSlides?: boolean;
676
685
  };
677
686
  declare const TopNavBar: React$1.FC<TopNavBarProps>;
678
687
 
@@ -707,7 +716,10 @@ interface EditorRootProps {
707
716
  */
708
717
  declare function EditorRoot({ children, className, style }: EditorRootProps): react_jsx_runtime.JSX.Element;
709
718
 
710
- declare const SlideNavigation: React$1.FC;
719
+ interface SlideNavigationProps {
720
+ softDelete?: boolean;
721
+ }
722
+ declare const SlideNavigation: React$1.FC<SlideNavigationProps>;
711
723
 
712
724
  type ScreenRecorderProps = {
713
725
  onClose: () => void;
@@ -962,4 +974,4 @@ declare const loadCurrentSlideId: () => string | null;
962
974
  declare const savePresentationMetadata: (metadata: PresentationMetadata) => Promise<void>;
963
975
  declare const loadPresentationMetadata: () => Promise<PresentationMetadata | null>;
964
976
 
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 };
977
+ 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, 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, 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 };