@atlaskit/editor-plugin-find-replace 15.0.12 → 15.0.13
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 +10 -0
- package/dist/cjs/findReplacePlugin.js +2 -2
- package/dist/cjs/ui/Find.js +4 -4
- package/dist/cjs/ui/FindReplaceToolbarButton.js +3 -3
- package/dist/cjs/ui/FindReplaceTooltipButton.js +4 -4
- package/dist/cjs/ui/Replace.js +8 -8
- package/dist/es2019/findReplacePlugin.js +1 -1
- package/dist/es2019/ui/Find.js +2 -2
- package/dist/es2019/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/es2019/ui/FindReplaceTooltipButton.js +2 -2
- package/dist/es2019/ui/Replace.js +3 -3
- package/dist/esm/findReplacePlugin.js +1 -1
- package/dist/esm/ui/Find.js +2 -2
- package/dist/esm/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/esm/ui/FindReplaceTooltipButton.js +2 -2
- package/dist/esm/ui/Replace.js +3 -3
- package/dist/types/pm-plugins/utils/index.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 15.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 15.0.12
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
10
10
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
11
|
var _types = require("@atlaskit/editor-common/types");
|
|
12
|
-
var
|
|
12
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
13
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
14
|
var _commands = require("./pm-plugins/commands");
|
|
15
15
|
var _commandsWithAnalytics = require("./pm-plugins/commands-with-analytics");
|
|
@@ -39,7 +39,7 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
|
|
|
39
39
|
if (!editorView) {
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
|
-
var isButtonHidden = (0,
|
|
42
|
+
var isButtonHidden = (0, _fg.fg)('platform_editor_toolbar_responsive_fixes') ? toolbarSize < _types.ToolbarSize.XL : false;
|
|
43
43
|
if (props !== null && props !== void 0 && props.twoLineEditorToolbar) {
|
|
44
44
|
return null;
|
|
45
45
|
} else if (toolbarButtonRegisteredExternally.current && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
package/dist/cjs/ui/Find.js
CHANGED
|
@@ -18,9 +18,9 @@ var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
|
18
18
|
var _reactIntl = require("react-intl");
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
20
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
21
|
-
var
|
|
21
|
+
var _default2 = require("@atlaskit/form/label/default");
|
|
22
22
|
var _textLetterCase = _interopRequireDefault(require("@atlaskit/icon-lab/core/text-letter-case"));
|
|
23
|
-
var
|
|
23
|
+
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
24
24
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
25
|
var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
|
|
26
26
|
var _uiStyles = require("./ui-styles");
|
|
@@ -243,9 +243,9 @@ var Find = /*#__PURE__*/function (_React$Component) {
|
|
|
243
243
|
css: [_uiStyles.sectionWrapperStyles, _uiStyles.sectionWrapperStylesAlternate]
|
|
244
244
|
}, (0, _react2.jsx)("div", {
|
|
245
245
|
css: _uiStyles.textFieldWrapper
|
|
246
|
-
}, (0, _react2.jsx)(
|
|
246
|
+
}, (0, _react2.jsx)(_default2.Label, {
|
|
247
247
|
htmlFor: "find-text-field"
|
|
248
|
-
}, this.find), (0, _react2.jsx)(
|
|
248
|
+
}, this.find), (0, _react2.jsx)(_textField.default, {
|
|
249
249
|
name: "find",
|
|
250
250
|
id: "find-text-field",
|
|
251
251
|
testId: "find-field",
|
|
@@ -22,7 +22,7 @@ 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
24
|
var _search = _interopRequireDefault(require("@atlaskit/icon/core/search"));
|
|
25
|
-
var
|
|
25
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
26
26
|
var _FindReplace = _interopRequireDefault(require("./FindReplace"));
|
|
27
27
|
var _templateObject;
|
|
28
28
|
/* eslint-disable @atlaskit/design-system/consistent-css-prop-usage */
|
|
@@ -115,7 +115,7 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
115
115
|
var stackBelowOtherEditorFloatingPanels = _editorSharedStyles.akEditorFloatingPanelZIndex - 1;
|
|
116
116
|
var keymap = (0, _keymaps.findKeymapByDescription)('Find');
|
|
117
117
|
return (0, _react2.jsx)("div", {
|
|
118
|
-
css: [toolbarButtonWrapper, takeFullWidth && toolbarButtonWrapperFullWidth, isButtonHidden && (0,
|
|
118
|
+
css: [toolbarButtonWrapper, takeFullWidth && toolbarButtonWrapperFullWidth, isButtonHidden && (0, _fg.fg)('platform_editor_toolbar_responsive_fixes') && toolbarButtonWrapperHidden]
|
|
119
119
|
}, (0, _react2.jsx)(_uiMenu.Dropdown, {
|
|
120
120
|
mountTo: popupsMountPoint,
|
|
121
121
|
boundariesElement: popupsBoundariesElement,
|
|
@@ -144,7 +144,7 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
144
144
|
type: _uiMenu.ArrowKeyNavigationType.MENU,
|
|
145
145
|
disableArrowKeyNavigation: true
|
|
146
146
|
},
|
|
147
|
-
trigger: (0,
|
|
147
|
+
trigger: (0, _fg.fg)('platform_editor_toolbar_responsive_fixes') ? (0, _react2.jsx)(TriggerButtonWrapper, {
|
|
148
148
|
isButtonHidden: isButtonHidden
|
|
149
149
|
}, (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
150
150
|
buttonId: _uiMenu.TOOLBAR_BUTTON.FIND_REPLACE,
|
|
@@ -13,9 +13,9 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var
|
|
16
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
17
17
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
18
|
-
var
|
|
18
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
21
21
|
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)); }
|
|
@@ -50,14 +50,14 @@ var FindReplaceTooltipButton = exports.FindReplaceTooltipButton = /*#__PURE__*/f
|
|
|
50
50
|
var pressedProps = _objectSpread({}, typeof isPressed === 'boolean' && {
|
|
51
51
|
'aria-pressed': isPressed
|
|
52
52
|
});
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
54
54
|
content: /*#__PURE__*/_react.default.createElement(_keymaps.ToolTipContent, {
|
|
55
55
|
description: title,
|
|
56
56
|
keymap: (0, _keymaps.findKeymapByDescription)(keymapDescription)
|
|
57
57
|
}),
|
|
58
58
|
hideTooltipOnClick: true,
|
|
59
59
|
position: 'top'
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({
|
|
61
61
|
id: "afterInputSection",
|
|
62
62
|
label: title,
|
|
63
63
|
appearance: appearance,
|
package/dist/cjs/ui/Replace.js
CHANGED
|
@@ -9,14 +9,14 @@ exports.default = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
|
-
var
|
|
12
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
13
13
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
|
-
var
|
|
15
|
+
var _validMessage = require("@atlaskit/form/valid-message");
|
|
16
16
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
|
|
17
17
|
var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/core/chevron-up"));
|
|
18
18
|
var _primitives = require("@atlaskit/primitives");
|
|
19
|
-
var
|
|
19
|
+
var _textField = _interopRequireDefault(require("@atlaskit/textfield/text-field"));
|
|
20
20
|
var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
|
|
21
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
22
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -201,7 +201,7 @@ var Replace = function Replace(_ref) {
|
|
|
201
201
|
size: "medium",
|
|
202
202
|
weight: "bold",
|
|
203
203
|
color: "color.text.subtle"
|
|
204
|
-
}, replaceWith)), /*#__PURE__*/_react.default.createElement(
|
|
204
|
+
}, replaceWith)), /*#__PURE__*/_react.default.createElement(_textField.default, {
|
|
205
205
|
name: "replace",
|
|
206
206
|
"aria-labelledby": "replace-text-field-label",
|
|
207
207
|
testId: "replace-field",
|
|
@@ -215,7 +215,7 @@ var Replace = function Replace(_ref) {
|
|
|
215
215
|
onCompositionEnd: handleCompositionEnd
|
|
216
216
|
}), isHelperMessageVisible && !findTyped && /*#__PURE__*/_react.default.createElement("div", {
|
|
217
217
|
ref: successReplacementMessageRef
|
|
218
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
218
|
+
}, /*#__PURE__*/_react.default.createElement(_validMessage.ValidMessage, {
|
|
219
219
|
testId: "message-success-replacement"
|
|
220
220
|
}, fakeSuccessReplacementMessageUpdate ? resultsReplace.replace(SPACE_REGEX, "\xA0") : resultsReplace)), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
221
221
|
xcss: actionButtonContainerStyles
|
|
@@ -251,12 +251,12 @@ var Replace = function Replace(_ref) {
|
|
|
251
251
|
keymapDescription: 'Shift Enter',
|
|
252
252
|
onClick: handleFindPrevClick,
|
|
253
253
|
disabled: count.total <= 1
|
|
254
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
254
|
+
}), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
255
255
|
testId: 'Replace',
|
|
256
256
|
id: "replace-button",
|
|
257
257
|
onClick: handleReplaceClick,
|
|
258
258
|
isDisabled: !canReplace
|
|
259
|
-
}, formatMessage(_messages.findReplaceMessages.replace)), /*#__PURE__*/_react.default.createElement(
|
|
259
|
+
}, formatMessage(_messages.findReplaceMessages.replace)), /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
260
260
|
appearance: "primary",
|
|
261
261
|
testId: replaceAll,
|
|
262
262
|
id: "replaceAll-button",
|
|
@@ -264,7 +264,7 @@ var Replace = function Replace(_ref) {
|
|
|
264
264
|
isDisabled: count.totalReplaceable === 0
|
|
265
265
|
}, replaceAll)), /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
266
266
|
xcss: closeButtonInlineStyles
|
|
267
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
267
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
268
268
|
appearance: "subtle",
|
|
269
269
|
testId: closeFindReplaceDialog,
|
|
270
270
|
onClick: clearSearch
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { activate } from './pm-plugins/commands';
|
|
8
8
|
import { activateWithAnalytics } from './pm-plugins/commands-with-analytics';
|
package/dist/es2019/ui/Find.js
CHANGED
|
@@ -13,9 +13,9 @@ import rafSchd from 'raf-schd';
|
|
|
13
13
|
import { injectIntl } from 'react-intl';
|
|
14
14
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
|
-
import { Label } from '@atlaskit/form';
|
|
16
|
+
import { Label } from '@atlaskit/form/label/default';
|
|
17
17
|
import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
|
|
18
|
-
import Textfield from '@atlaskit/textfield';
|
|
18
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
20
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
21
21
|
import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './ui-styles';
|
|
@@ -16,7 +16,7 @@ import { findReplaceMessages as messages } from '@atlaskit/editor-common/message
|
|
|
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
18
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
20
|
import FindReplace from './FindReplace';
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
5
5
|
import { findKeymapByDescription, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
8
8
|
export class FindReplaceTooltipButton extends React.PureComponent {
|
|
9
9
|
constructor(...args) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl';
|
|
3
|
-
import Button from '@atlaskit/button/
|
|
3
|
+
import Button from '@atlaskit/button/default/button';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
|
-
import { ValidMessage } from '@atlaskit/form';
|
|
6
|
+
import { ValidMessage } from '@atlaskit/form/valid-message';
|
|
7
7
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
8
8
|
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
10
10
|
import { Box, Inline, Text, xcss } from '@atlaskit/primitives';
|
|
11
|
-
import Textfield from '@atlaskit/textfield';
|
|
11
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
12
12
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
13
13
|
const SPACE_REGEX = / /u;
|
|
14
14
|
const replaceContainerStyles = xcss({
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { activate } from './pm-plugins/commands';
|
|
8
8
|
import { activateWithAnalytics } from './pm-plugins/commands-with-analytics';
|
package/dist/esm/ui/Find.js
CHANGED
|
@@ -20,9 +20,9 @@ import rafSchd from 'raf-schd';
|
|
|
20
20
|
import { injectIntl } from 'react-intl';
|
|
21
21
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
22
22
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
23
|
-
import { Label } from '@atlaskit/form';
|
|
23
|
+
import { Label } from '@atlaskit/form/label/default';
|
|
24
24
|
import TextLetterCaseIcon from '@atlaskit/icon-lab/core/text-letter-case';
|
|
25
|
-
import Textfield from '@atlaskit/textfield';
|
|
25
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
26
26
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
27
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
28
28
|
import { afterInputSection, countStyles, countStylesAlternateStyles, matchCaseSection, sectionWrapperStyles, sectionWrapperStylesAlternate, textFieldWrapper } from './ui-styles';
|
|
@@ -25,7 +25,7 @@ import { findReplaceMessages as messages } from '@atlaskit/editor-common/message
|
|
|
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
27
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
28
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
28
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
29
29
|
import FindReplace from './FindReplace';
|
|
30
30
|
|
|
31
31
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
@@ -10,9 +10,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import
|
|
13
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
14
14
|
import { findKeymapByDescription, ToolTipContent } from '@atlaskit/editor-common/keymaps';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
16
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
17
17
|
export var FindReplaceTooltipButton = /*#__PURE__*/function (_React$PureComponent) {
|
|
18
18
|
function FindReplaceTooltipButton() {
|
package/dist/esm/ui/Replace.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
-
import Button from '@atlaskit/button/
|
|
4
|
+
import Button from '@atlaskit/button/default/button';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
|
-
import { ValidMessage } from '@atlaskit/form';
|
|
7
|
+
import { ValidMessage } from '@atlaskit/form/valid-message';
|
|
8
8
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
9
9
|
import ChevronUpIcon from '@atlaskit/icon/core/chevron-up';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
11
11
|
import { Box, Inline, Text, xcss } from '@atlaskit/primitives';
|
|
12
|
-
import Textfield from '@atlaskit/textfield';
|
|
12
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
13
13
|
import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
|
|
14
14
|
var SPACE_REGEX = / /;
|
|
15
15
|
var replaceContainerStyles = xcss({
|
|
@@ -3,7 +3,7 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { Fragment, Node as PmNode, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ReadonlyTransaction, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import type { Step } from '@atlaskit/editor-prosemirror/transform';
|
|
6
|
+
import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
7
7
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { FindReplacePlugin } from '../../findReplacePluginType';
|