@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 +6 -0
- package/dist/cjs/findReplacePlugin.js +5 -5
- package/dist/cjs/ui/Find.js +1 -1
- package/dist/cjs/ui/FindReplaceDropdown.js +1 -1
- package/dist/cjs/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/cjs/ui/Replace.js +1 -1
- package/dist/es2019/findReplacePlugin.js +1 -1
- package/dist/es2019/ui/Find.js +1 -1
- package/dist/es2019/ui/FindReplaceDropdown.js +1 -1
- package/dist/es2019/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/es2019/ui/Replace.js +1 -1
- package/dist/esm/findReplacePlugin.js +1 -1
- package/dist/esm/ui/Find.js +1 -1
- package/dist/esm/ui/FindReplaceDropdown.js +1 -1
- package/dist/esm/ui/FindReplaceToolbarButton.js +1 -1
- package/dist/esm/ui/Replace.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
151
|
+
contentComponent: (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
152
152
|
exposure: true
|
|
153
153
|
}) ? function (_ref5) {
|
|
154
154
|
var editorView = _ref5.editorView,
|
package/dist/cjs/ui/Find.js
CHANGED
|
@@ -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/
|
|
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/
|
|
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/
|
|
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;
|
package/dist/cjs/ui/Replace.js
CHANGED
|
@@ -271,6 +271,6 @@ var Replace = function Replace(_ref) {
|
|
|
271
271
|
}, closeFindReplaceDialog)))));
|
|
272
272
|
};
|
|
273
273
|
|
|
274
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
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/
|
|
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';
|
package/dist/es2019/ui/Find.js
CHANGED
|
@@ -248,6 +248,6 @@ class Find extends React.Component {
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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';
|
package/dist/esm/ui/Find.js
CHANGED
|
@@ -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/
|
|
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/
|
|
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/
|
|
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;
|
package/dist/esm/ui/Replace.js
CHANGED
|
@@ -261,6 +261,6 @@ var Replace = function Replace(_ref) {
|
|
|
261
261
|
}, closeFindReplaceDialog)))));
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
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.
|
|
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": "^
|
|
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",
|