@atlaskit/editor-plugin-find-replace 2.10.5 → 3.0.0
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,53 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
8
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
9
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
10
|
+
|
|
11
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
12
|
+
all editor plugin packages.
|
|
13
|
+
|
|
14
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
15
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
16
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
17
|
+
shared context or singletons.
|
|
18
|
+
|
|
19
|
+
**HOW TO ADJUST:**
|
|
20
|
+
|
|
21
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
22
|
+
any of these editor plugins.
|
|
23
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
24
|
+
- You can use the
|
|
25
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
26
|
+
verify that all required peer dependencies are installed and compatible.
|
|
27
|
+
- Example install command:
|
|
28
|
+
```
|
|
29
|
+
npm install @atlaskit/editor-common
|
|
30
|
+
```
|
|
31
|
+
or
|
|
32
|
+
```
|
|
33
|
+
yarn add @atlaskit/editor-common
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
37
|
+
application level, you may see errors or unexpected behavior.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
43
|
+
## 2.10.6
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- [#181675](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181675)
|
|
48
|
+
[`11c3b472ce0f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11c3b472ce0f2) -
|
|
49
|
+
[ux] ED-28203 update icon for find and replace match case button
|
|
50
|
+
|
|
3
51
|
## 2.10.5
|
|
4
52
|
|
|
5
53
|
### 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": "
|
|
3
|
+
"version": "3.0.0",
|
|
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,21 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^23.2.0",
|
|
36
|
-
"@atlaskit/editor-
|
|
37
|
-
"@atlaskit/editor-plugin-
|
|
38
|
-
"@atlaskit/editor-plugin-
|
|
39
|
-
"@atlaskit/editor-plugin-
|
|
40
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-card": "^7.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-mentions": "^5.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^4.0.0",
|
|
41
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
41
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
43
42
|
"@atlaskit/form": "^12.0.0",
|
|
44
43
|
"@atlaskit/icon": "^27.2.0",
|
|
44
|
+
"@atlaskit/icon-lab": "^5.1.0",
|
|
45
45
|
"@atlaskit/mention": "^24.2.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/primitives": "^14.10.0",
|
|
48
48
|
"@atlaskit/textfield": "^8.0.0",
|
|
49
49
|
"@atlaskit/theme": "^18.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
51
51
|
"@atlaskit/tokens": "^5.4.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@af/visual-regression": "workspace:^",
|
|
61
|
-
"@atlaskit/editor-plugin-block-type": "^
|
|
62
|
-
"@atlaskit/editor-plugin-text-formatting": "^
|
|
61
|
+
"@atlaskit/editor-plugin-block-type": "^6.0.0",
|
|
62
|
+
"@atlaskit/editor-plugin-text-formatting": "^3.0.0",
|
|
63
63
|
"@testing-library/react": "^13.4.0",
|
|
64
64
|
"@testing-library/user-event": "^14.4.3",
|
|
65
65
|
"mockdate": "^3.0.5",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"react-dom": "^18.2.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
+
"@atlaskit/editor-common": "^107.6.0",
|
|
70
71
|
"react": "^18.2.0",
|
|
71
72
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
72
73
|
},
|
|
@@ -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
|
}
|