@atlaskit/editor-plugin-find-replace 2.0.2 → 2.0.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/CHANGELOG.md +12 -0
- package/dist/cjs/pm-plugins/plugin-factory.js +1 -1
- package/dist/cjs/pm-plugins/utils/index.js +0 -1
- package/dist/cjs/ui/styles.js +0 -2
- package/dist/es2019/pm-plugins/plugin-factory.js +1 -1
- package/dist/es2019/pm-plugins/utils/index.js +0 -1
- package/dist/es2019/ui/styles.js +0 -1
- package/dist/esm/pm-plugins/plugin-factory.js +1 -1
- package/dist/esm/pm-plugins/utils/index.js +0 -1
- package/dist/esm/ui/styles.js +0 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -16,7 +16,7 @@ var _utils2 = require("./utils");
|
|
|
16
16
|
var _array = require("./utils/array");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
// TODO: move into index export
|
|
19
|
+
// TODO: ED-26959 - move into index export
|
|
20
20
|
|
|
21
21
|
var handleDocChanged = function handleDocChanged(tr, pluginState) {
|
|
22
22
|
var isActive = pluginState.isActive,
|
|
@@ -150,7 +150,6 @@ var removeDecorationsFromSet = exports.removeDecorationsFromSet = function remov
|
|
|
150
150
|
// there is a bug in prosemirror-view where it can't cope with deleting inline
|
|
151
151
|
// decorations from a set in some cases (where there are multiple levels of nested
|
|
152
152
|
// children arrays), and it deletes more decorations than it should
|
|
153
|
-
// todo: ticket link
|
|
154
153
|
var lostDecorations = findLostAdjacentDecorations(decorationsToRemove, prevDecorations, newDecorations);
|
|
155
154
|
if (lostDecorations.length > 0) {
|
|
156
155
|
decorationSet = decorationSet.add(doc, lostDecorations);
|
package/dist/cjs/ui/styles.js
CHANGED
|
@@ -15,8 +15,6 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
15
15
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
|
|
18
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4290
|
|
19
|
-
|
|
20
18
|
var searchMatchClass = exports.searchMatchClass = 'search-match';
|
|
21
19
|
var selectedSearchMatchClass = exports.selectedSearchMatchClass = 'selected-search-match';
|
|
22
20
|
var findReplaceStyles = exports.findReplaceStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(searchMatchClass), {
|
|
@@ -4,7 +4,7 @@ import { initialState } from './main';
|
|
|
4
4
|
import { findReplacePluginKey } from './plugin-key';
|
|
5
5
|
import reducer from './reducer';
|
|
6
6
|
import { createDecorations, findDecorationFromMatch, findMatches, findSearchIndex, isMatchAffectedByStep, removeDecorationsFromSet, removeMatchesFromSet } from './utils';
|
|
7
|
-
import { findUniqueItemsIn } from './utils/array'; // TODO: move into index export
|
|
7
|
+
import { findUniqueItemsIn } from './utils/array'; // TODO: ED-26959 - move into index export
|
|
8
8
|
|
|
9
9
|
const handleDocChanged = (tr, pluginState) => {
|
|
10
10
|
const {
|
|
@@ -123,7 +123,6 @@ export const removeDecorationsFromSet = (decorationSet, decorationsToRemove, doc
|
|
|
123
123
|
// there is a bug in prosemirror-view where it can't cope with deleting inline
|
|
124
124
|
// decorations from a set in some cases (where there are multiple levels of nested
|
|
125
125
|
// children arrays), and it deletes more decorations than it should
|
|
126
|
-
// todo: ticket link
|
|
127
126
|
const lostDecorations = findLostAdjacentDecorations(decorationsToRemove, prevDecorations, newDecorations);
|
|
128
127
|
if (lostDecorations.length > 0) {
|
|
129
128
|
decorationSet = decorationSet.add(doc, lostDecorations);
|
package/dist/es2019/ui/styles.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
|
|
8
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4290
|
|
9
8
|
import { css } from '@emotion/react';
|
|
10
9
|
import { N40A, N50A, N60A } from '@atlaskit/theme/colors';
|
|
11
10
|
export const searchMatchClass = 'search-match';
|
|
@@ -8,7 +8,7 @@ import { initialState } from './main';
|
|
|
8
8
|
import { findReplacePluginKey } from './plugin-key';
|
|
9
9
|
import reducer from './reducer';
|
|
10
10
|
import { createDecorations, findDecorationFromMatch, findMatches, findSearchIndex, isMatchAffectedByStep, removeDecorationsFromSet, removeMatchesFromSet } from './utils';
|
|
11
|
-
import { findUniqueItemsIn } from './utils/array'; // TODO: move into index export
|
|
11
|
+
import { findUniqueItemsIn } from './utils/array'; // TODO: ED-26959 - move into index export
|
|
12
12
|
|
|
13
13
|
var handleDocChanged = function handleDocChanged(tr, pluginState) {
|
|
14
14
|
var isActive = pluginState.isActive,
|
|
@@ -140,7 +140,6 @@ export var removeDecorationsFromSet = function removeDecorationsFromSet(decorati
|
|
|
140
140
|
// there is a bug in prosemirror-view where it can't cope with deleting inline
|
|
141
141
|
// decorations from a set in some cases (where there are multiple levels of nested
|
|
142
142
|
// children arrays), and it deletes more decorations than it should
|
|
143
|
-
// todo: ticket link
|
|
144
143
|
var lostDecorations = findLostAdjacentDecorations(decorationsToRemove, prevDecorations, newDecorations);
|
|
145
144
|
if (lostDecorations.length > 0) {
|
|
146
145
|
decorationSet = decorationSet.add(doc, lostDecorations);
|
package/dist/esm/ui/styles.js
CHANGED
|
@@ -6,7 +6,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
|
|
9
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4290
|
|
10
9
|
import { css } from '@emotion/react';
|
|
11
10
|
import { N40A, N50A, N60A } from '@atlaskit/theme/colors';
|
|
12
11
|
export var searchMatchClass = 'search-match';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^21.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^102.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
41
41
|
"@atlaskit/form": "^12.0.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^25.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^14.1.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.0.0",
|
|
46
46
|
"@atlaskit/theme": "^18.0.0",
|
|
47
|
-
"@atlaskit/tokens": "^4.
|
|
47
|
+
"@atlaskit/tokens": "^4.4.0",
|
|
48
48
|
"@atlaskit/tooltip": "^20.0.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"raf-schd": "^4.0.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@af/visual-regression": "
|
|
55
|
+
"@af/visual-regression": "^1.3.0",
|
|
56
56
|
"@atlaskit/editor-plugin-block-type": "^5.1.0",
|
|
57
57
|
"@atlaskit/editor-plugin-text-formatting": "^2.1.0",
|
|
58
58
|
"@testing-library/react": "^13.4.0",
|