@atlaskit/editor-plugin-find-replace 2.10.5 → 2.10.6
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
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 2.10.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181675](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181675)
|
|
8
|
+
[`11c3b472ce0f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11c3b472ce0f2) -
|
|
9
|
+
[ux] ED-28203 update icon for find and replace match case button
|
|
10
|
+
|
|
3
11
|
## 2.10.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/ui/Find.js
CHANGED
|
@@ -19,8 +19,12 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
20
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
21
21
|
var _form = require("@atlaskit/form");
|
|
22
|
+
var _textLetterCase = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-letter-case"));
|
|
22
23
|
var _textStyleEmojiKeyboard = _interopRequireDefault(require("@atlaskit/icon/core/migration/text-style--emoji-keyboard"));
|
|
24
|
+
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/text-style"));
|
|
25
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
26
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
27
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
24
28
|
var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
|
|
25
29
|
var _uiStyles = require("./ui-styles");
|
|
26
30
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -137,7 +141,12 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
137
141
|
}
|
|
138
142
|
});
|
|
139
143
|
(0, _defineProperty2.default)(_this, "matchCaseIconEle", function () {
|
|
140
|
-
return (0, _react2.jsx)(
|
|
144
|
+
return (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? (0, _react2.jsx)(_textLetterCase.default, {
|
|
145
|
+
LEGACY_size: 'small',
|
|
146
|
+
LEGACY_fallbackIcon: _textStyle.default,
|
|
147
|
+
label: _this.matchCase,
|
|
148
|
+
size: "small"
|
|
149
|
+
}) : (0, _react2.jsx)(_textStyleEmojiKeyboard.default, {
|
|
141
150
|
LEGACY_size: 'small',
|
|
142
151
|
label: _this.matchCase
|
|
143
152
|
});
|
package/dist/es2019/ui/Find.js
CHANGED
|
@@ -14,8 +14,12 @@ import { injectIntl } from 'react-intl-next';
|
|
|
14
14
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
16
|
import { Label } from '@atlaskit/form';
|
|
17
|
+
import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
|
|
17
18
|
import MatchCaseIcon from '@atlaskit/icon/core/migration/text-style--emoji-keyboard';
|
|
19
|
+
import EditorTextStyleIcon from '@atlaskit/icon/glyph/editor/text-style';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
21
|
import Textfield from '@atlaskit/textfield';
|
|
22
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
23
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
20
24
|
import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './ui-styles';
|
|
21
25
|
export const FIND_DEBOUNCE_MS = 100;
|
|
@@ -125,7 +129,12 @@ class Find extends React.Component {
|
|
|
125
129
|
}
|
|
126
130
|
});
|
|
127
131
|
_defineProperty(this, "matchCaseIconEle", () => {
|
|
128
|
-
return jsx(
|
|
132
|
+
return expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? jsx(TextLetterCaseIcon, {
|
|
133
|
+
LEGACY_size: 'small',
|
|
134
|
+
LEGACY_fallbackIcon: EditorTextStyleIcon,
|
|
135
|
+
label: this.matchCase,
|
|
136
|
+
size: "small"
|
|
137
|
+
}) : jsx(MatchCaseIcon, {
|
|
129
138
|
LEGACY_size: 'small',
|
|
130
139
|
label: this.matchCase
|
|
131
140
|
});
|
package/dist/esm/ui/Find.js
CHANGED
|
@@ -21,8 +21,12 @@ import { injectIntl } from 'react-intl-next';
|
|
|
21
21
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
22
22
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
23
23
|
import { Label } from '@atlaskit/form';
|
|
24
|
+
import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
|
|
24
25
|
import MatchCaseIcon from '@atlaskit/icon/core/migration/text-style--emoji-keyboard';
|
|
26
|
+
import EditorTextStyleIcon from '@atlaskit/icon/glyph/editor/text-style';
|
|
27
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
28
|
import Textfield from '@atlaskit/textfield';
|
|
29
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
26
30
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
27
31
|
import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './ui-styles';
|
|
28
32
|
export var FIND_DEBOUNCE_MS = 100;
|
|
@@ -134,7 +138,12 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
134
138
|
}
|
|
135
139
|
});
|
|
136
140
|
_defineProperty(_this, "matchCaseIconEle", function () {
|
|
137
|
-
return jsx(
|
|
141
|
+
return expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? jsx(TextLetterCaseIcon, {
|
|
142
|
+
LEGACY_size: 'small',
|
|
143
|
+
LEGACY_fallbackIcon: EditorTextStyleIcon,
|
|
144
|
+
label: _this.matchCase,
|
|
145
|
+
size: "small"
|
|
146
|
+
}) : jsx(MatchCaseIcon, {
|
|
138
147
|
LEGACY_size: 'small',
|
|
139
148
|
label: _this.matchCase
|
|
140
149
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { type TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { type TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { CardPlugin } from '@atlaskit/editor-plugin-card';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.6",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,21 +33,22 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^23.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^107.
|
|
36
|
+
"@atlaskit/editor-common": "^107.6.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "^6.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "^6.8.0",
|
|
39
39
|
"@atlaskit/editor-plugin-mentions": "^4.7.0",
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
43
43
|
"@atlaskit/form": "^12.0.0",
|
|
44
44
|
"@atlaskit/icon": "^27.2.0",
|
|
45
|
+
"@atlaskit/icon-lab": "^5.1.0",
|
|
45
46
|
"@atlaskit/mention": "^24.2.0",
|
|
46
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
48
|
"@atlaskit/primitives": "^14.10.0",
|
|
48
49
|
"@atlaskit/textfield": "^8.0.0",
|
|
49
50
|
"@atlaskit/theme": "^18.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
51
52
|
"@atlaskit/tokens": "^5.4.0",
|
|
52
53
|
"@atlaskit/tooltip": "^20.3.0",
|
|
53
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -119,6 +120,9 @@
|
|
|
119
120
|
},
|
|
120
121
|
"editor_a11y_refactor_find_replace_style": {
|
|
121
122
|
"type": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"platform_editor_find_and_replace_improvements_1": {
|
|
125
|
+
"type": "boolean"
|
|
122
126
|
}
|
|
123
127
|
}
|
|
124
128
|
}
|