@searpent/react-image-annotate 2.0.49 → 2.0.50
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/Annotator/examplePhotos.js +1 -1
- package/Annotator/index.js +6 -1
- package/package.json +1 -1
|
@@ -1330,7 +1330,7 @@ var examplePhotos = [{
|
|
|
1330
1330
|
"key": "pageNumber",
|
|
1331
1331
|
"value": "2"
|
|
1332
1332
|
}],
|
|
1333
|
-
"lockedUntil": "
|
|
1333
|
+
"lockedUntil": "2023-01-28T11:35:00.000Z"
|
|
1334
1334
|
}, {
|
|
1335
1335
|
"id": "45f79ec8-fd2e-4ad8-82f6-007a2eec2b97",
|
|
1336
1336
|
"fullsize": {
|
package/Annotator/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread";
|
|
4
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
6
|
import React, { useEffect, useReducer } from "react";
|
|
@@ -132,7 +133,11 @@ export var Annotator = function Annotator(_ref) {
|
|
|
132
133
|
imagesSavedAt: null,
|
|
133
134
|
albumMetadata: albumMetadata,
|
|
134
135
|
metadataConfigs: metadataConfigs,
|
|
135
|
-
toPollImages:
|
|
136
|
+
toPollImages: _toConsumableArray(images.filter(function (i) {
|
|
137
|
+
return i.lockedUntil;
|
|
138
|
+
}).map(function (i) {
|
|
139
|
+
return i.id;
|
|
140
|
+
}))
|
|
136
141
|
}))),
|
|
137
142
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
138
143
|
state = _useReducer2[0],
|