Removed support for applyTemplate
This commit is contained in:
parent
7a2d338593
commit
fb940d78b2
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@recogito/recogito-client-core",
|
||||
"version": "0.2.7",
|
||||
"version": "0.3.0",
|
||||
"description": "Core functions, classes and components for RecogitoJS",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -15,8 +15,6 @@ export default class TextAnnotator extends Component {
|
|||
selectedAnnotation: null,
|
||||
selectedDOMElement: null,
|
||||
selectedRelation: null,
|
||||
|
||||
applyTemplate: null,
|
||||
headless: false
|
||||
}
|
||||
|
||||
|
@ -255,9 +253,6 @@ export default class TextAnnotator extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
applyTemplate = (bodies, headless) =>
|
||||
this.setState({ applyTemplate: bodies, headless })
|
||||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
|
@ -268,7 +263,6 @@ export default class TextAnnotator extends Component {
|
|||
selectedElement={this.state.selectedDOMElement}
|
||||
config={this.props.config}
|
||||
env={this.props.env}
|
||||
applyTemplate={this.state.applyTemplate}
|
||||
onAnnotationCreated={this.onCreateOrUpdateAnnotation('onAnnotationCreated')}
|
||||
onAnnotationUpdated={this.onCreateOrUpdateAnnotation('onAnnotationUpdated')}
|
||||
onAnnotationDeleted={this.onDeleteAnnotation}
|
||||
|
|
Loading…
Reference in New Issue