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