@atlaskit/editor-plugin-text-formatting 2.2.13 → 2.2.14
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 2.2.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161914](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161914)
|
|
8
|
+
[`b1a7ef0ae8d44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b1a7ef0ae8d44) -
|
|
9
|
+
Switches text formatting options optimisation from FG to Experiment flag
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.2.13
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.textFormattingPlugin = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
12
|
var _clearFormatting = require("./pm-plugins/clear-formatting");
|
|
14
13
|
var _clearFormattingKeymap = _interopRequireDefault(require("./pm-plugins/clear-formatting-keymap"));
|
|
@@ -38,7 +37,9 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
|
|
|
38
37
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
39
38
|
toolbarSize = _ref2.toolbarSize,
|
|
40
39
|
disabled = _ref2.disabled;
|
|
41
|
-
if ((0,
|
|
40
|
+
if ((0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true, {
|
|
41
|
+
exposure: true
|
|
42
|
+
})) {
|
|
42
43
|
return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponentMemoized, {
|
|
43
44
|
api: api,
|
|
44
45
|
popupsMountPoint: popupsMountPoint,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { code, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
|
|
6
5
|
import clearFormattingKeymapPlugin from './pm-plugins/clear-formatting-keymap';
|
|
@@ -31,7 +30,9 @@ export const textFormattingPlugin = ({
|
|
|
31
30
|
toolbarSize,
|
|
32
31
|
disabled
|
|
33
32
|
}) => {
|
|
34
|
-
if (
|
|
33
|
+
if (editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true, {
|
|
34
|
+
exposure: true
|
|
35
|
+
})) {
|
|
35
36
|
return /*#__PURE__*/React.createElement(PrimaryToolbarComponentMemoized, {
|
|
36
37
|
api: api,
|
|
37
38
|
popupsMountPoint: popupsMountPoint,
|
|
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { code, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
|
|
9
8
|
import clearFormattingKeymapPlugin from './pm-plugins/clear-formatting-keymap';
|
|
@@ -32,7 +31,9 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
|
32
31
|
isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
|
|
33
32
|
toolbarSize = _ref2.toolbarSize,
|
|
34
33
|
disabled = _ref2.disabled;
|
|
35
|
-
if (
|
|
34
|
+
if (editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true, {
|
|
35
|
+
exposure: true
|
|
36
|
+
})) {
|
|
36
37
|
return /*#__PURE__*/React.createElement(PrimaryToolbarComponentMemoized, {
|
|
37
38
|
api: api,
|
|
38
39
|
popupsMountPoint: popupsMountPoint,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.14",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/icon": "^26.4.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^5.3.0",
|
|
49
49
|
"@atlaskit/tokens": "^4.9.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
@@ -124,9 +124,6 @@
|
|
|
124
124
|
},
|
|
125
125
|
"platform_editor_controls_patch_7": {
|
|
126
126
|
"type": "boolean"
|
|
127
|
-
},
|
|
128
|
-
"platform_editor_toolbar_rerender_optimization": {
|
|
129
|
-
"type": "boolean"
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
}
|