@atlaskit/editor-plugin-find-replace 16.0.7 → 16.0.8

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,11 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 16.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 16.0.7
4
10
 
5
11
  ### Patch Changes
@@ -10,7 +10,7 @@ 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
12
  var _fg = require("@atlaskit/platform-feature-flags/fg");
13
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
14
14
  var _commands = require("./pm-plugins/commands");
15
15
  var _commandsWithAnalytics = require("./pm-plugins/commands-with-analytics");
16
16
  var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
@@ -42,7 +42,7 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
42
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
- } else if (toolbarButtonRegisteredExternally.current && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
45
+ } else if (toolbarButtonRegisteredExternally.current && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1')) {
46
46
  return null;
47
47
  } else {
48
48
  return /*#__PURE__*/_react.default.createElement(_FindReplaceDropDownOrToolbarButtonWithState.default, {
@@ -80,7 +80,7 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
80
80
  return (0, _keymap.default)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions);
81
81
  }
82
82
  }];
83
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
83
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
84
84
  exposure: false
85
85
  })) {
86
86
  plugins.push({
@@ -116,7 +116,7 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
116
116
  containerElement = _ref4.containerElement,
117
117
  dispatchAnalyticsEvent = _ref4.dispatchAnalyticsEvent,
118
118
  isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing;
119
- toolbarButtonRegisteredExternally.current = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1');
119
+ toolbarButtonRegisteredExternally.current = (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1');
120
120
  return /*#__PURE__*/_react.default.createElement(_FindReplaceDropDownOrToolbarButtonWithState.default, {
121
121
  popupsBoundariesElement: popupsBoundariesElement,
122
122
  popupsMountPoint: popupsMountPoint,
@@ -148,7 +148,7 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
148
148
  }
149
149
  },
150
150
  primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
151
- contentComponent: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
151
+ contentComponent: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
152
152
  exposure: true
153
153
  }) ? function (_ref5) {
154
154
  var editorView = _ref5.editorView,
@@ -264,6 +264,6 @@ var Find = /*#__PURE__*/function (_React$Component) {
264
264
  );
265
265
  }
266
266
  }]);
267
- }(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
267
+ }(_react.default.Component); // eslint-disable-next-line @typescript-eslint/no-restricted-types
268
268
  var _default_1 = (0, _reactIntl.injectIntl)(Find);
269
269
  var _default = exports.default = _default_1;
@@ -78,6 +78,6 @@ var FindReplaceDropdown = function FindReplaceDropdown(props) {
78
78
  }, props))));
79
79
  };
80
80
 
81
- // eslint-disable-next-line @typescript-eslint/ban-types
81
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
82
82
  var _default_1 = (0, _reactIntl.injectIntl)(FindReplaceDropdown);
83
83
  var _default = exports.default = _default_1;
@@ -203,6 +203,6 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
203
203
  }, this.props)))));
204
204
  }
205
205
  }]);
206
- }(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
206
+ }(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/no-restricted-types
207
207
  var _default_1 = (0, _reactIntl.injectIntl)(FindReplaceToolbarButton);
208
208
  var _default = exports.default = _default_1;
@@ -271,6 +271,6 @@ var Replace = function Replace(_ref) {
271
271
  }, closeFindReplaceDialog)))));
272
272
  };
273
273
 
274
- // eslint-disable-next-line @typescript-eslint/ban-types
274
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
275
275
  var _default_1 = (0, _reactIntl.injectIntl)(Replace);
276
276
  var _default = exports.default = _default_1;
@@ -3,7 +3,7 @@ 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
5
  import { fg } from '@atlaskit/platform-feature-flags/fg';
6
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
7
  import { activate } from './pm-plugins/commands';
8
8
  import { activateWithAnalytics } from './pm-plugins/commands-with-analytics';
9
9
  import keymapPlugin from './pm-plugins/keymap';
@@ -248,6 +248,6 @@ class Find extends React.Component {
248
248
  }
249
249
  }
250
250
 
251
- // eslint-disable-next-line @typescript-eslint/ban-types
251
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
252
252
  const _default_1 = injectIntl(Find);
253
253
  export default _default_1;
@@ -72,6 +72,6 @@ const FindReplaceDropdown = props => {
72
72
  }, props))));
73
73
  };
74
74
 
75
- // eslint-disable-next-line @typescript-eslint/ban-types
75
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
76
76
  const _default_1 = injectIntl(FindReplaceDropdown);
77
77
  export default _default_1;
@@ -193,6 +193,6 @@ class FindReplaceToolbarButton extends React.PureComponent {
193
193
  }, this.props)))));
194
194
  }
195
195
  }
196
- // eslint-disable-next-line @typescript-eslint/ban-types
196
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
197
197
  const _default_1 = injectIntl(FindReplaceToolbarButton);
198
198
  export default _default_1;
@@ -236,6 +236,6 @@ const Replace = ({
236
236
  }, closeFindReplaceDialog)))));
237
237
  };
238
238
 
239
- // eslint-disable-next-line @typescript-eslint/ban-types
239
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
240
240
  const _default_1 = injectIntl(Replace);
241
241
  export default _default_1;
@@ -3,7 +3,7 @@ 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
5
  import { fg } from '@atlaskit/platform-feature-flags/fg';
6
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
7
7
  import { activate } from './pm-plugins/commands';
8
8
  import { activateWithAnalytics } from './pm-plugins/commands-with-analytics';
9
9
  import keymapPlugin from './pm-plugins/keymap';
@@ -261,6 +261,6 @@ var Find = /*#__PURE__*/function (_React$Component) {
261
261
  );
262
262
  }
263
263
  }]);
264
- }(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
264
+ }(React.Component); // eslint-disable-next-line @typescript-eslint/no-restricted-types
265
265
  var _default_1 = injectIntl(Find);
266
266
  export default _default_1;
@@ -70,6 +70,6 @@ var FindReplaceDropdown = function FindReplaceDropdown(props) {
70
70
  }, props))));
71
71
  };
72
72
 
73
- // eslint-disable-next-line @typescript-eslint/ban-types
73
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
74
74
  var _default_1 = injectIntl(FindReplaceDropdown);
75
75
  export default _default_1;
@@ -198,6 +198,6 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
198
198
  }, this.props)))));
199
199
  }
200
200
  }]);
201
- }(React.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
201
+ }(React.PureComponent); // eslint-disable-next-line @typescript-eslint/no-restricted-types
202
202
  var _default_1 = injectIntl(FindReplaceToolbarButton);
203
203
  export default _default_1;
@@ -261,6 +261,6 @@ var Replace = function Replace(_ref) {
261
261
  }, closeFindReplaceDialog)))));
262
262
  };
263
263
 
264
- // eslint-disable-next-line @typescript-eslint/ban-types
264
+ // eslint-disable-next-line @typescript-eslint/no-restricted-types
265
265
  var _default_1 = injectIntl(Replace);
266
266
  export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "16.0.7",
3
+ "version": "16.0.8",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/platform-feature-flags": "^2.1.0",
37
37
  "@atlaskit/primitives": "^22.4.0",
38
38
  "@atlaskit/textfield": "^10.1.0",
39
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
40
40
  "@atlaskit/tokens": "^16.9.0",
41
41
  "@atlaskit/tooltip": "^24.2.0",
42
42
  "@babel/runtime": "^7.0.0",