Module

FPO.Components.Editor

#Input

type Input = { docID :: DocumentID, elementData :: ElementData }

#Query

data Query a

Constructors

#State

type State = FPOState (commentState :: CommentState, compareToElement :: ElementData, currentVersion :: String, discardPopup :: Boolean, docID :: DocumentID, fontSize :: Int, html :: String, isEditorOutdated :: Boolean, isLoading :: Boolean, isOnMerge :: Boolean, mContent :: Maybe Content, mDirtyVersion :: Maybe (Ref Boolean), mEditor :: Maybe Editor, mListener :: Maybe (Listener Action), mNodePath :: Maybe Path, mTitle :: Maybe String, mTocEntry :: Maybe TOCEntry, outdatedInfoPopup :: Boolean, saveState :: SaveState, showButtonText :: Boolean, showButtons :: Boolean, upToDateVersion :: Maybe Version, wasLoadedInMergeMode :: Boolean, wrapEnabled :: Boolean)

#CommentState

type CommentState = { annoMaps :: AnnotationMaps, commentProblem :: Boolean, dragColAS :: Int, dragRowAS :: Int, dragState :: Maybe { lm :: LiveMarker, which :: DragHandle }, endHandleMarkerId :: Maybe Int, liveMarkers :: Array LiveMarker, mHandleBorder :: Maybe HandleBorder, mPrevHandler :: Maybe Position, markers :: Array AnnotatedMarker, reAnchor :: Maybe CommentSection, selectedLiveMarker :: Maybe LiveMarker, startHandleMarkerId :: Maybe Int, tmpLiveMarker :: Maybe LiveMarker }

#SaveState

type SaveState = { isManualSaved :: Boolean, mBeforeUnloadListener :: Maybe EventListener, mDirtyRef :: Maybe (Ref Boolean), mIsOnMergeRef :: Maybe (Ref Boolean), mIsSaving :: Maybe (Ref Boolean), mPendingDebounceF :: Maybe ForkId, mPendingMaxWaitF :: Maybe ForkId, mQueuedSave :: Maybe (Ref Boolean), mSavedIconF :: Maybe ForkId, showSavedIcon :: Boolean }

#editor

editor :: forall m. MonadAff m => Navigate m => MonadStore Action Store m => Component Query Input Output m

UpdateCompareToElement ElementData a

Modules