@atlaskit/editor-plugin-find-replace 1.8.0 → 1.8.1
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/CHANGELOG.md
CHANGED
|
@@ -286,7 +286,7 @@ var BatchDecorations = /*#__PURE__*/function () {
|
|
|
286
286
|
var increment = opts.increment,
|
|
287
287
|
until = opts.until;
|
|
288
288
|
return new Promise(function (resolve) {
|
|
289
|
-
var
|
|
289
|
+
var _batchedFn = function batchedFn() {
|
|
290
290
|
var result = fn(counter);
|
|
291
291
|
while (result === false && counter < until) {
|
|
292
292
|
counter += increment;
|
|
@@ -294,13 +294,13 @@ var BatchDecorations = /*#__PURE__*/function () {
|
|
|
294
294
|
}
|
|
295
295
|
if (counter < until) {
|
|
296
296
|
counter += increment;
|
|
297
|
-
_this3.rafId = requestAnimationFrame(
|
|
297
|
+
_this3.rafId = requestAnimationFrame(_batchedFn);
|
|
298
298
|
} else {
|
|
299
299
|
_this3.rafId = undefined;
|
|
300
300
|
resolve();
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
-
_this3.rafId = requestAnimationFrame(
|
|
303
|
+
_this3.rafId = requestAnimationFrame(_batchedFn);
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
}]);
|
|
@@ -280,7 +280,7 @@ var BatchDecorations = /*#__PURE__*/function () {
|
|
|
280
280
|
var increment = opts.increment,
|
|
281
281
|
until = opts.until;
|
|
282
282
|
return new Promise(function (resolve) {
|
|
283
|
-
var
|
|
283
|
+
var _batchedFn = function batchedFn() {
|
|
284
284
|
var result = fn(counter);
|
|
285
285
|
while (result === false && counter < until) {
|
|
286
286
|
counter += increment;
|
|
@@ -288,13 +288,13 @@ var BatchDecorations = /*#__PURE__*/function () {
|
|
|
288
288
|
}
|
|
289
289
|
if (counter < until) {
|
|
290
290
|
counter += increment;
|
|
291
|
-
_this3.rafId = requestAnimationFrame(
|
|
291
|
+
_this3.rafId = requestAnimationFrame(_batchedFn);
|
|
292
292
|
} else {
|
|
293
293
|
_this3.rafId = undefined;
|
|
294
294
|
resolve();
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
_this3.rafId = requestAnimationFrame(
|
|
297
|
+
_this3.rafId = requestAnimationFrame(_batchedFn);
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^20.4.0",
|
|
36
|
-
"@atlaskit/editor-common": "^99.
|
|
36
|
+
"@atlaskit/editor-common": "^99.7.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
41
41
|
"@atlaskit/form": "^11.1.0",
|
|
42
|
-
"@atlaskit/icon": "^23.
|
|
43
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
42
|
+
"@atlaskit/icon": "^23.6.0",
|
|
43
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
44
44
|
"@atlaskit/primitives": "^13.4.0",
|
|
45
45
|
"@atlaskit/textfield": "^6.8.0",
|
|
46
46
|
"@atlaskit/theme": "^14.1.0",
|