@atlaskit/editor-plugin-find-replace 6.2.0 → 6.2.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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 6.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`06de6cb74b477`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06de6cb74b477) -
|
|
14
|
+
[ux] [ENGHEALTH-47507] internationalise strings behind feature gate platform_editor_dec_a11y_fixes
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -13,6 +13,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
19
|
var _Find = _interopRequireDefault(require("./Find"));
|
|
18
20
|
var _Replace = _interopRequireDefault(require("./Replace"));
|
|
@@ -77,13 +79,12 @@ var FindReplace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
77
79
|
dispatchAnalyticsEvent = _this$props.dispatchAnalyticsEvent,
|
|
78
80
|
allowMatchCase = _this$props.allowMatchCase,
|
|
79
81
|
shouldMatchCase = _this$props.shouldMatchCase,
|
|
80
|
-
onToggleMatchCase = _this$props.onToggleMatchCase
|
|
82
|
+
onToggleMatchCase = _this$props.onToggleMatchCase,
|
|
83
|
+
intl = _this$props.intl;
|
|
81
84
|
var focusToolbarButton = this.props.focusToolbarButton || function () {};
|
|
82
85
|
return (0, _react2.jsx)("div", {
|
|
83
|
-
role: 'dialog'
|
|
84
|
-
|
|
85
|
-
,
|
|
86
|
-
"aria-label": 'Find and Replace',
|
|
86
|
+
role: 'dialog',
|
|
87
|
+
"aria-label": (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? intl === null || intl === void 0 ? void 0 : intl.formatMessage(_messages.findReplaceMessages.findReplaceDialogAriaLabel) : 'Find and Replace',
|
|
87
88
|
"aria-modal": false,
|
|
88
89
|
ref: this.modalRef
|
|
89
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -9,6 +9,8 @@ import React from 'react';
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
|
+
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
15
|
import Find from './Find';
|
|
14
16
|
import Replace from './Replace';
|
|
@@ -62,14 +64,13 @@ class FindReplace extends React.PureComponent {
|
|
|
62
64
|
dispatchAnalyticsEvent,
|
|
63
65
|
allowMatchCase,
|
|
64
66
|
shouldMatchCase,
|
|
65
|
-
onToggleMatchCase
|
|
67
|
+
onToggleMatchCase,
|
|
68
|
+
intl
|
|
66
69
|
} = this.props;
|
|
67
70
|
const focusToolbarButton = this.props.focusToolbarButton || (() => {});
|
|
68
71
|
return jsx("div", {
|
|
69
|
-
role: 'dialog'
|
|
70
|
-
|
|
71
|
-
,
|
|
72
|
-
"aria-label": 'Find and Replace',
|
|
72
|
+
role: 'dialog',
|
|
73
|
+
"aria-label": fg('platform_editor_dec_a11y_fixes') ? intl === null || intl === void 0 ? void 0 : intl.formatMessage(messages.findReplaceDialogAriaLabel) : 'Find and Replace',
|
|
73
74
|
"aria-modal": false,
|
|
74
75
|
ref: this.modalRef
|
|
75
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -16,6 +16,8 @@ import React from 'react';
|
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
import { jsx } from '@emotion/react';
|
|
19
|
+
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
22
|
import Find from './Find';
|
|
21
23
|
import Replace from './Replace';
|
|
@@ -75,13 +77,12 @@ var FindReplace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
75
77
|
dispatchAnalyticsEvent = _this$props.dispatchAnalyticsEvent,
|
|
76
78
|
allowMatchCase = _this$props.allowMatchCase,
|
|
77
79
|
shouldMatchCase = _this$props.shouldMatchCase,
|
|
78
|
-
onToggleMatchCase = _this$props.onToggleMatchCase
|
|
80
|
+
onToggleMatchCase = _this$props.onToggleMatchCase,
|
|
81
|
+
intl = _this$props.intl;
|
|
79
82
|
var focusToolbarButton = this.props.focusToolbarButton || function () {};
|
|
80
83
|
return jsx("div", {
|
|
81
|
-
role: 'dialog'
|
|
82
|
-
|
|
83
|
-
,
|
|
84
|
-
"aria-label": 'Find and Replace',
|
|
84
|
+
role: 'dialog',
|
|
85
|
+
"aria-label": fg('platform_editor_dec_a11y_fixes') ? intl === null || intl === void 0 ? void 0 : intl.formatMessage(messages.findReplaceDialogAriaLabel) : 'Find and Replace',
|
|
85
86
|
"aria-modal": false,
|
|
86
87
|
ref: this.modalRef
|
|
87
88
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { IntlShape } from 'react-intl-next';
|
|
7
8
|
import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
9
|
import type { MatchCaseProps } from '../types';
|
|
9
10
|
export type FindReplaceProps = {
|
|
@@ -15,6 +16,7 @@ export type FindReplaceProps = {
|
|
|
15
16
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
16
17
|
findText?: string;
|
|
17
18
|
focusToolbarButton?: () => void;
|
|
19
|
+
intl?: IntlShape;
|
|
18
20
|
isReplaceable?: boolean;
|
|
19
21
|
onCancel: ({ triggerMethod, }: {
|
|
20
22
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { IntlShape } from 'react-intl-next';
|
|
7
8
|
import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
9
|
import type { MatchCaseProps } from '../types';
|
|
9
10
|
export type FindReplaceProps = {
|
|
@@ -15,6 +16,7 @@ export type FindReplaceProps = {
|
|
|
15
16
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
16
17
|
findText?: string;
|
|
17
18
|
focusToolbarButton?: () => void;
|
|
19
|
+
intl?: IntlShape;
|
|
18
20
|
isReplaceable?: boolean;
|
|
19
21
|
onCancel: ({ triggerMethod, }: {
|
|
20
22
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.2",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/button": "^23.
|
|
31
|
+
"@atlaskit/button": "^23.9.0",
|
|
32
32
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
33
33
|
"@atlaskit/editor-plugin-card": "^11.5.0",
|
|
34
34
|
"@atlaskit/editor-plugin-expand": "^7.5.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.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.1.0",
|
|
40
|
+
"@atlaskit/icon": "^29.3.0",
|
|
41
|
+
"@atlaskit/icon-lab": "^5.13.0",
|
|
42
42
|
"@atlaskit/mention": "^24.4.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/primitives": "^16.4.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.2.0",
|
|
46
46
|
"@atlaskit/theme": "^21.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^16.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^8.6.0",
|
|
49
49
|
"@atlaskit/tooltip": "^20.11.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@atlaskit/editor-common": "^110.
|
|
64
|
+
"@atlaskit/editor-common": "^110.46.0",
|
|
65
65
|
"react": "^18.2.0",
|
|
66
66
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
67
67
|
},
|
|
@@ -114,6 +114,9 @@
|
|
|
114
114
|
},
|
|
115
115
|
"platform_editor_a11y_find_replace_focus_fix": {
|
|
116
116
|
"type": "boolean"
|
|
117
|
+
},
|
|
118
|
+
"platform_editor_dec_a11y_fixes": {
|
|
119
|
+
"type": "boolean"
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
}
|