mirador-annotation-editor-video 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/IIIFUtils.js CHANGED
@@ -60,7 +60,7 @@ const convertAnnotationStateToBeSaved = async (annotationState, canvas, windowId
60
60
  purpose: 'tagging',
61
61
  type: 'TextualBody',
62
62
  value: tag.value,
63
- id: tag.id
63
+ id: tag.value
64
64
  })));
65
65
  }
66
66
  if (isAnnotationExportableToImage(annotationStateForSaving.maeData)) {
@@ -52,8 +52,8 @@ function MultipleBodyTemplate({
52
52
  // We support only one textual body
53
53
  maeAnnotation.maeData.textBody = maeAnnotation.body.find(body => body.purpose === 'describing');
54
54
  maeAnnotation.maeData.tags = maeAnnotation.body.filter(body => body.purpose === 'tagging').map(tag => ({
55
- id: tag.id,
56
- text: tag.value
55
+ label: tag.value,
56
+ value: tag.value
57
57
  }));
58
58
  }
59
59
  const [annotationState, setAnnotationState] = (0, _react.useState)(maeAnnotation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mirador-annotation-editor-video",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Mirador annotation editor video plugin in a React component. Mirador 4 (Alpha 2) compatible ",
5
5
  "main": "es/index.js",
6
6
  "module": "es/index.js",
package/src/IIIFUtils.js CHANGED
@@ -73,7 +73,7 @@ export const convertAnnotationStateToBeSaved = async (
73
73
  purpose: 'tagging',
74
74
  type: 'TextualBody',
75
75
  value: tag.value,
76
- id: tag.id,
76
+ id: tag.value,
77
77
  })));
78
78
  }
79
79
 
@@ -155,9 +155,9 @@ export const getIIIFTargetFromMaeData = (
155
155
  };
156
156
 
157
157
  const isSimpleTarget = (shapes) => shapes.length === 1
158
- && shapes[0].type === SHAPES_TOOL.RECTANGLE
159
- && shapes[0].strokeColor === TARGET_TOOL_STATE.strokeColor
160
- && shapes[0].fillColor === TARGET_TOOL_STATE.fillColor;
158
+ && shapes[0].type === SHAPES_TOOL.RECTANGLE
159
+ && shapes[0].strokeColor === TARGET_TOOL_STATE.strokeColor
160
+ && shapes[0].fillColor === TARGET_TOOL_STATE.fillColor;
161
161
 
162
162
  /**
163
163
  * Get the IIIF target from a Konva annotation (Drawing template)
@@ -50,8 +50,8 @@ export default function MultipleBodyTemplate(
50
50
  maeAnnotation.maeData.textBody = maeAnnotation.body.find((body) => body.purpose === 'describing');
51
51
  maeAnnotation.maeData.tags = maeAnnotation.body.filter((body) => body.purpose === 'tagging')
52
52
  .map((tag) => ({
53
- id: tag.id,
54
- text: tag.value,
53
+ label: tag.value,
54
+ value: tag.value,
55
55
  }));
56
56
  }
57
57