This project was bootstrapped with Create React App.
You can find the most recent version of the Create React App scripts guide here.
The entry point reducer for the application. All state changes that are non-visual start here.
Parameters
-
state
State (optional, defaultdefaultState
) -
action
Object
Returns State
Reducer for editor data.
Parameters
Returns Editor
Reducer for Document data.
Parameters
-
state
Document -
action
Action -
rootState
State
Returns Document
Returns a new Row.
Parameters
-
type
RowTypes
Returns Row
Returns a new Column.
Parameters
Returns Column
Layout elements define the layout of the page. Layout elements are the containers for Block elements.
Block elements are the elements that fit inside layout elements. They are the content of the page.
Type: {}
Extends React.Component
View and edit properties for a selected element.
Extends React.Component
View and edit properties for a selected element.
Extends React.Component
View and edit properties for a selected element.
Extends React.Component
View and edit properties for a selected element.
Extends React.Component
View and edit properties for a selected element.
Extends React.PureComponent
View and edit properties for a selected element.
Extends React.Component
Empty Block element.
Specifies which props to inject into the Document component.
Parameters
Specifies which props to inject into the Document component.
Parameters
Specifies the props to inject into the Block Component.
Parameters
Returns Object
Specifies the props to inject into your component.
Parameters
Returns Object
Specifies which props to inject into the Document component.
Parameters
Extends React.Component
View and edit properties for a selected element.
Parameters
props
Extends React.Component
Container Component for the application
Extends React.Component
Component with shortcuts to common commands
Get the code from the hidden DOM element rendering the generated document
Returns {type: string, code: string}
Add Layout element to the Document.
Parameters
Returns {type: string, layoutType: string, insertAtIndex: number}
Add Block element to the Document.
Parameters
Returns {type: string, blockType: string, insertAtRowIndex: number, insertAtCellIndex: number}
Set the size of the editor (in pixels)
Parameters
-
size
number
Returns {type: string, size: number}
Select an element by ID, setting it's to edit mode.
Parameters
Returns {type: string, element_id: string, rowIndex: number, cellIndex: number}
Edit the value of a block/cell.
Parameters
Returns {type: string, value: (string | number)}
Extends React.Component
View and edit the settings for an editor element.
Implements the drag source contract.
React DnD wrapper for Block list element.
Type: React.ComponentType<any>
Extends React.Component
Lists all Block elements. Drag and Drop functionality.
Implements the drag source contract.
Extends React.Component
List of ready-made layouts/rows users can use to build to templates. Drag and drop functionality.
Extends React.Component
View and edit properties for a selected element.
Extends React.Component
View and edit properties for a selected element.
Extends React.Component
View and modify the document.
Extends React.Component
The document to be edited. Document is shown in the Editor component and is a visualisation of the created form.
Parameters
-
props
Object
Extends React.Component
View and edit properties for a selected element.
Extends React.PureComponent
View and edit properties for a selected element.