@atlaskit/editor-plugin-find-replace 7.0.0 → 7.0.2
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 +16 -0
- package/dist/cjs/ui/Find.js +7 -12
- package/dist/cjs/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/es2019/ui/Find.js +6 -11
- package/dist/es2019/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/esm/ui/Find.js +7 -12
- package/dist/esm/ui/FindReplaceToolbarButton.js +1 -1
- package/package.json +9 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 7.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`034a10bed9524`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/034a10bed9524) -
|
|
8
|
+
[ED-29732] clean up FG platform_editor_a11y_find_replace_focus_fix
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`b429c01ce6af9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b429c01ce6af9) -
|
|
16
|
+
icon migration entry point update
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 7.0.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/ui/Find.js
CHANGED
|
@@ -21,7 +21,6 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
21
21
|
var _form = require("@atlaskit/form");
|
|
22
22
|
var _textLetterCase = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-letter-case"));
|
|
23
23
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
26
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
26
|
var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
|
|
@@ -104,7 +103,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
104
103
|
(0, _defineProperty2.default)(_this, "handleFindKeyUp", function () {
|
|
105
104
|
_this.handleFindKeyDownThrottled.cancel();
|
|
106
105
|
});
|
|
107
|
-
(0, _defineProperty2.default)(_this, "handleFindNextClick", function (
|
|
106
|
+
(0, _defineProperty2.default)(_this, "handleFindNextClick", function () {
|
|
108
107
|
if (_this.isComposing) {
|
|
109
108
|
return;
|
|
110
109
|
}
|
|
@@ -112,7 +111,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
112
111
|
triggerMethod: _analytics.TRIGGER_METHOD.BUTTON
|
|
113
112
|
});
|
|
114
113
|
});
|
|
115
|
-
(0, _defineProperty2.default)(_this, "handleFindPrevClick", function (
|
|
114
|
+
(0, _defineProperty2.default)(_this, "handleFindPrevClick", function () {
|
|
116
115
|
if (_this.isComposing) {
|
|
117
116
|
return;
|
|
118
117
|
}
|
|
@@ -133,7 +132,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
133
132
|
triggerMethod: _analytics.TRIGGER_METHOD.BUTTON
|
|
134
133
|
});
|
|
135
134
|
});
|
|
136
|
-
(0, _defineProperty2.default)(_this, "handleMatchCaseClick", function (
|
|
135
|
+
(0, _defineProperty2.default)(_this, "handleMatchCaseClick", function () {
|
|
137
136
|
if (_this.props.onToggleMatchCase) {
|
|
138
137
|
_this.props.onToggleMatchCase();
|
|
139
138
|
_this.props.onFind(_this.props.findText);
|
|
@@ -169,14 +168,10 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
169
168
|
|
|
170
169
|
// focus initially on dialog mount if there is no find text provided
|
|
171
170
|
if (!this.props.findText) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, 100);
|
|
177
|
-
} else {
|
|
178
|
-
this.focusFindTextfield();
|
|
179
|
-
}
|
|
171
|
+
// Wait for findTextfieldRef to become available then focus
|
|
172
|
+
setTimeout(function () {
|
|
173
|
+
_this2.focusFindTextfield();
|
|
174
|
+
}, 100);
|
|
180
175
|
}
|
|
181
176
|
this.syncFindText(function () {
|
|
182
177
|
// focus after input is synced if find text provided
|
|
@@ -21,7 +21,7 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
21
21
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
22
22
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
|
-
var _search = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
24
|
+
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
25
25
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
26
|
var _FindReplace = _interopRequireDefault(require("./FindReplace"));
|
|
27
27
|
var _templateObject;
|
package/dist/es2019/ui/Find.js
CHANGED
|
@@ -16,7 +16,6 @@ import { findReplaceMessages as messages } from '@atlaskit/editor-common/message
|
|
|
16
16
|
import { Label } from '@atlaskit/form';
|
|
17
17
|
import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
|
|
18
18
|
import MatchCaseIcon from '@atlaskit/icon/core/text-style';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
19
|
import Textfield from '@atlaskit/textfield';
|
|
21
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
21
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
@@ -92,7 +91,7 @@ class Find extends React.Component {
|
|
|
92
91
|
_defineProperty(this, "handleFindKeyUp", () => {
|
|
93
92
|
this.handleFindKeyDownThrottled.cancel();
|
|
94
93
|
});
|
|
95
|
-
_defineProperty(this, "handleFindNextClick",
|
|
94
|
+
_defineProperty(this, "handleFindNextClick", () => {
|
|
96
95
|
if (this.isComposing) {
|
|
97
96
|
return;
|
|
98
97
|
}
|
|
@@ -100,7 +99,7 @@ class Find extends React.Component {
|
|
|
100
99
|
triggerMethod: TRIGGER_METHOD.BUTTON
|
|
101
100
|
});
|
|
102
101
|
});
|
|
103
|
-
_defineProperty(this, "handleFindPrevClick",
|
|
102
|
+
_defineProperty(this, "handleFindPrevClick", () => {
|
|
104
103
|
if (this.isComposing) {
|
|
105
104
|
return;
|
|
106
105
|
}
|
|
@@ -121,7 +120,7 @@ class Find extends React.Component {
|
|
|
121
120
|
triggerMethod: TRIGGER_METHOD.BUTTON
|
|
122
121
|
});
|
|
123
122
|
});
|
|
124
|
-
_defineProperty(this, "handleMatchCaseClick",
|
|
123
|
+
_defineProperty(this, "handleMatchCaseClick", () => {
|
|
125
124
|
if (this.props.onToggleMatchCase) {
|
|
126
125
|
this.props.onToggleMatchCase();
|
|
127
126
|
this.props.onFind(this.props.findText);
|
|
@@ -156,14 +155,10 @@ class Find extends React.Component {
|
|
|
156
155
|
|
|
157
156
|
// focus initially on dialog mount if there is no find text provided
|
|
158
157
|
if (!this.props.findText) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
setTimeout(() => {
|
|
162
|
-
this.focusFindTextfield();
|
|
163
|
-
}, 100);
|
|
164
|
-
} else {
|
|
158
|
+
// Wait for findTextfieldRef to become available then focus
|
|
159
|
+
setTimeout(() => {
|
|
165
160
|
this.focusFindTextfield();
|
|
166
|
-
}
|
|
161
|
+
}, 100);
|
|
167
162
|
}
|
|
168
163
|
this.syncFindText(() => {
|
|
169
164
|
// focus after input is synced if find text provided
|
|
@@ -15,7 +15,7 @@ import { findKeymapByDescription, getAriaKeyshortcuts, tooltip, ToolTipContent }
|
|
|
15
15
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
16
|
import { ArrowKeyNavigationType, Dropdown, TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
17
17
|
import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
18
|
-
import SearchIcon from '@atlaskit/icon/core/
|
|
18
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
19
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
20
|
import FindReplace from './FindReplace';
|
|
21
21
|
|
package/dist/esm/ui/Find.js
CHANGED
|
@@ -23,7 +23,6 @@ import { findReplaceMessages as messages } from '@atlaskit/editor-common/message
|
|
|
23
23
|
import { Label } from '@atlaskit/form';
|
|
24
24
|
import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
|
|
25
25
|
import MatchCaseIcon from '@atlaskit/icon/core/text-style';
|
|
26
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
26
|
import Textfield from '@atlaskit/textfield';
|
|
28
27
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
29
28
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
@@ -101,7 +100,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
101
100
|
_defineProperty(_this, "handleFindKeyUp", function () {
|
|
102
101
|
_this.handleFindKeyDownThrottled.cancel();
|
|
103
102
|
});
|
|
104
|
-
_defineProperty(_this, "handleFindNextClick", function (
|
|
103
|
+
_defineProperty(_this, "handleFindNextClick", function () {
|
|
105
104
|
if (_this.isComposing) {
|
|
106
105
|
return;
|
|
107
106
|
}
|
|
@@ -109,7 +108,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
109
108
|
triggerMethod: TRIGGER_METHOD.BUTTON
|
|
110
109
|
});
|
|
111
110
|
});
|
|
112
|
-
_defineProperty(_this, "handleFindPrevClick", function (
|
|
111
|
+
_defineProperty(_this, "handleFindPrevClick", function () {
|
|
113
112
|
if (_this.isComposing) {
|
|
114
113
|
return;
|
|
115
114
|
}
|
|
@@ -130,7 +129,7 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
130
129
|
triggerMethod: TRIGGER_METHOD.BUTTON
|
|
131
130
|
});
|
|
132
131
|
});
|
|
133
|
-
_defineProperty(_this, "handleMatchCaseClick", function (
|
|
132
|
+
_defineProperty(_this, "handleMatchCaseClick", function () {
|
|
134
133
|
if (_this.props.onToggleMatchCase) {
|
|
135
134
|
_this.props.onToggleMatchCase();
|
|
136
135
|
_this.props.onFind(_this.props.findText);
|
|
@@ -166,14 +165,10 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
166
165
|
|
|
167
166
|
// focus initially on dialog mount if there is no find text provided
|
|
168
167
|
if (!this.props.findText) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}, 100);
|
|
174
|
-
} else {
|
|
175
|
-
this.focusFindTextfield();
|
|
176
|
-
}
|
|
168
|
+
// Wait for findTextfieldRef to become available then focus
|
|
169
|
+
setTimeout(function () {
|
|
170
|
+
_this2.focusFindTextfield();
|
|
171
|
+
}, 100);
|
|
177
172
|
}
|
|
178
173
|
this.syncFindText(function () {
|
|
179
174
|
// focus after input is synced if find text provided
|
|
@@ -24,7 +24,7 @@ import { findKeymapByDescription, getAriaKeyshortcuts, tooltip, ToolTipContent }
|
|
|
24
24
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
25
25
|
import { ArrowKeyNavigationType, Dropdown, TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
26
26
|
import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
27
|
-
import SearchIcon from '@atlaskit/icon/core/
|
|
27
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
28
28
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
29
|
import FindReplace from './FindReplace';
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,23 +30,23 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/button": "^23.9.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
33
|
-
"@atlaskit/editor-plugin-card": "^12.
|
|
33
|
+
"@atlaskit/editor-plugin-card": "^12.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-expand": "^8.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-mentions": "^9.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
39
|
-
"@atlaskit/form": "^15.
|
|
40
|
-
"@atlaskit/icon": "^29.
|
|
41
|
-
"@atlaskit/icon-lab": "^5.
|
|
39
|
+
"@atlaskit/form": "^15.3.0",
|
|
40
|
+
"@atlaskit/icon": "^29.4.0",
|
|
41
|
+
"@atlaskit/icon-lab": "^5.14.0",
|
|
42
42
|
"@atlaskit/mention": "^24.4.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^17.0.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.2.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
48
|
-
"@atlaskit/tokens": "^9.
|
|
49
|
-
"@atlaskit/tooltip": "^20.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^16.11.0",
|
|
48
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
49
|
+
"@atlaskit/tooltip": "^20.12.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"classnames": "^2.2.5",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^111.
|
|
64
|
+
"@atlaskit/editor-common": "^111.7.0",
|
|
65
65
|
"react": "^18.2.0",
|
|
66
66
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
67
67
|
},
|
|
@@ -112,9 +112,6 @@
|
|
|
112
112
|
"platform_editor_toolbar_responsive_fixes": {
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
},
|
|
115
|
-
"platform_editor_a11y_find_replace_focus_fix": {
|
|
116
|
-
"type": "boolean"
|
|
117
|
-
},
|
|
118
115
|
"platform_editor_dec_a11y_fixes": {
|
|
119
116
|
"type": "boolean"
|
|
120
117
|
}
|