From fb940d78b27c216d267183662d7685148e8611df Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 27 Dec 2020 09:07:05 +0100 Subject: [PATCH] Removed support for applyTemplate --- package.json | 2 +- src/TextAnnotator.jsx | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/package.json b/package.json index 55bb01f..17921c0 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/TextAnnotator.jsx b/src/TextAnnotator.jsx index 8581d01..6abebd1 100644 --- a/src/TextAnnotator.jsx +++ b/src/TextAnnotator.jsx @@ -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}