@atlaskit/editor-plugin-find-replace 12.0.10 → 12.0.12

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
+ ## 12.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 12.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`346f91cfe1997`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/346f91cfe1997) -
14
+ Clean up prefer static regex violations
15
+ - Updated dependencies
16
+
3
17
  ## 12.0.10
4
18
 
5
19
  ### Patch Changes
@@ -22,6 +22,8 @@ var _FindReplaceTooltipButton = require("./FindReplaceTooltipButton");
22
22
  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); }
23
23
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
24
24
 
25
+ // @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
26
+ var SPACE_REGEX = / /;
25
27
  var replaceContainerStyles = (0, _primitives.xcss)({
26
28
  padding: 'space.100'
27
29
  });
@@ -222,7 +224,7 @@ var Replace = function Replace(_ref) {
222
224
  testId: "message-success-replacement"
223
225
  }, fakeSuccessReplacementMessageUpdate ?
224
226
  // @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
225
- resultsReplace.replace(/ /, "\xA0") : resultsReplace)), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
227
+ resultsReplace.replace(SPACE_REGEX, "\xA0") : resultsReplace)), /*#__PURE__*/_react.default.createElement(_primitives.Box, {
226
228
  xcss: actionButtonContainerStyles
227
229
  }, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
228
230
  xcss: (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? [actionButtonInlineStyles, actionButtonParentInlineStylesNew] : [actionButtonInlineStyles, actionButtonParentInlineStyles]
@@ -11,6 +11,9 @@ import { Box, Inline, Text, xcss } from '@atlaskit/primitives';
11
11
  import Textfield from '@atlaskit/textfield';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
13
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
14
+
15
+ // @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
16
+ const SPACE_REGEX = / /u;
14
17
  const replaceContainerStyles = xcss({
15
18
  padding: 'space.100'
16
19
  });
@@ -191,7 +194,7 @@ const Replace = ({
191
194
  testId: "message-success-replacement"
192
195
  }, fakeSuccessReplacementMessageUpdate ?
193
196
  // @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
194
- resultsReplace.replace(/ /u, '\u00a0') : resultsReplace)), /*#__PURE__*/React.createElement(Box, {
197
+ resultsReplace.replace(SPACE_REGEX, '\u00a0') : resultsReplace)), /*#__PURE__*/React.createElement(Box, {
195
198
  xcss: actionButtonContainerStyles
196
199
  }, /*#__PURE__*/React.createElement(Inline, {
197
200
  xcss: expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? [actionButtonInlineStyles, actionButtonParentInlineStylesNew] : [actionButtonInlineStyles, actionButtonParentInlineStyles]
@@ -12,6 +12,9 @@ import { Box, Inline, Text, xcss } from '@atlaskit/primitives';
12
12
  import Textfield from '@atlaskit/textfield';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
14
  import { FindReplaceTooltipButton } from './FindReplaceTooltipButton';
15
+
16
+ // @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
17
+ var SPACE_REGEX = / /;
15
18
  var replaceContainerStyles = xcss({
16
19
  padding: 'space.100'
17
20
  });
@@ -212,7 +215,7 @@ var Replace = function Replace(_ref) {
212
215
  testId: "message-success-replacement"
213
216
  }, fakeSuccessReplacementMessageUpdate ?
214
217
  // @ts-ignore - TS1501 TypeScript 5.9.2 upgrade
215
- resultsReplace.replace(/ /, "\xA0") : resultsReplace)), /*#__PURE__*/React.createElement(Box, {
218
+ resultsReplace.replace(SPACE_REGEX, "\xA0") : resultsReplace)), /*#__PURE__*/React.createElement(Box, {
216
219
  xcss: actionButtonContainerStyles
217
220
  }, /*#__PURE__*/React.createElement(Inline, {
218
221
  xcss: expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? [actionButtonInlineStyles, actionButtonParentInlineStylesNew] : [actionButtonInlineStyles, actionButtonParentInlineStyles]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "12.0.10",
3
+ "version": "12.0.12",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,25 +20,25 @@
20
20
  ],
21
21
  "atlaskit:src": "src/index.ts",
22
22
  "dependencies": {
23
- "@atlaskit/button": "^24.1.0",
23
+ "@atlaskit/button": "^24.3.0",
24
24
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
25
25
  "@atlaskit/editor-plugin-card": "^18.0.0",
26
26
  "@atlaskit/editor-plugin-expand": "^13.1.0",
27
- "@atlaskit/editor-plugin-mentions": "^14.4.0",
27
+ "@atlaskit/editor-plugin-mentions": "^14.5.0",
28
28
  "@atlaskit/editor-plugin-primary-toolbar": "^13.0.0",
29
29
  "@atlaskit/editor-plugin-synced-block": "^10.0.0",
30
30
  "@atlaskit/editor-prosemirror": "^8.0.0",
31
31
  "@atlaskit/editor-shared-styles": "^4.0.0",
32
- "@atlaskit/form": "^16.0.0",
33
- "@atlaskit/icon": "^36.0.0",
34
- "@atlaskit/icon-lab": "^7.1.0",
35
- "@atlaskit/mention": "^27.2.0",
32
+ "@atlaskit/form": "^16.1.0",
33
+ "@atlaskit/icon": "^36.1.0",
34
+ "@atlaskit/icon-lab": "^7.2.0",
35
+ "@atlaskit/mention": "^27.5.0",
36
36
  "@atlaskit/platform-feature-flags": "^2.0.0",
37
- "@atlaskit/primitives": "^20.0.0",
38
- "@atlaskit/textfield": "^9.0.0",
39
- "@atlaskit/tmp-editor-statsig": "^114.0.0",
40
- "@atlaskit/tokens": "^15.0.0",
41
- "@atlaskit/tooltip": "^23.0.0",
37
+ "@atlaskit/primitives": "^20.2.0",
38
+ "@atlaskit/textfield": "^9.1.0",
39
+ "@atlaskit/tmp-editor-statsig": "^115.0.0",
40
+ "@atlaskit/tokens": "^15.2.0",
41
+ "@atlaskit/tooltip": "^23.1.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
44
44
  "classnames": "^2.2.5",
@@ -55,7 +55,7 @@
55
55
  "react-intl": "^7.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^116.13.0",
58
+ "@atlaskit/editor-common": "^116.17.0",
59
59
  "react": "^18.2.0",
60
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
61
61
  },