@atlaskit/editor-plugin-text-formatting 6.0.9 → 6.0.10
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 +8 -0
- package/dist/cjs/textFormattingPlugin.js +0 -14
- package/dist/cjs/ui/PrimaryToolbarComponent.js +3 -4
- package/dist/es2019/textFormattingPlugin.js +1 -15
- package/dist/es2019/ui/PrimaryToolbarComponent.js +2 -3
- package/dist/esm/textFormattingPlugin.js +1 -15
- package/dist/esm/ui/PrimaryToolbarComponent.js +2 -3
- package/dist/types/ui/PrimaryToolbarComponent.d.ts +1 -2
- package/dist/types-ts4.5/ui/PrimaryToolbarComponent.d.ts +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 6.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ff53e1bfc6c25`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff53e1bfc6c25) -
|
|
8
|
+
[ED-29482] clean up references to platform_editor_toolbar_rerender_optimization_exp
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.0.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -43,20 +43,6 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
|
|
|
43
43
|
if (!editorView) {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
if ((0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true, {
|
|
47
|
-
exposure: true
|
|
48
|
-
})) {
|
|
49
|
-
return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponentMemoized, {
|
|
50
|
-
api: api,
|
|
51
|
-
popupsMountPoint: popupsMountPoint,
|
|
52
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
53
|
-
toolbarSize: toolbarSize,
|
|
54
|
-
isReducedSpacing: isToolbarReducedSpacing,
|
|
55
|
-
editorView: editorView,
|
|
56
|
-
disabled: disabled,
|
|
57
|
-
shouldUseResponsiveToolbar: Boolean(options === null || options === void 0 ? void 0 : options.responsiveToolbarMenu)
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
46
|
return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
|
|
61
47
|
api: api,
|
|
62
48
|
popupsMountPoint: popupsMountPoint,
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.PrimaryToolbarComponent = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
10
10
|
var _Toolbar = _interopRequireDefault(require("./Toolbar"));
|
|
@@ -37,7 +37,7 @@ var selector = function selector(states) {
|
|
|
37
37
|
subscriptHidden: (_states$textFormattin21 = states.textFormattingState) === null || _states$textFormattin21 === void 0 ? void 0 : _states$textFormattin21.subscriptHidden
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function
|
|
40
|
+
var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
41
41
|
var _api$analytics;
|
|
42
42
|
var api = _ref.api,
|
|
43
43
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
@@ -61,5 +61,4 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
|
|
|
61
61
|
api: api,
|
|
62
62
|
toolbarType: _types.ToolbarType.PRIMARY
|
|
63
63
|
});
|
|
64
|
-
};
|
|
65
|
-
var PrimaryToolbarComponentMemoized = exports.PrimaryToolbarComponentMemoized = /*#__PURE__*/_react.default.memo(PrimaryToolbarComponent);
|
|
64
|
+
});
|
|
@@ -12,7 +12,7 @@ import { plugin as pmPlugin } from './pm-plugins/main';
|
|
|
12
12
|
import { pluginKey as textFormattingPluginKey } from './pm-plugins/plugin-key';
|
|
13
13
|
import textFormattingSmartInputRulePlugin from './pm-plugins/smart-input-rule';
|
|
14
14
|
import { FloatingToolbarTextFormalWithIntl as FloatingToolbarComponent } from './ui/FloatingToolbarComponent';
|
|
15
|
-
import { PrimaryToolbarComponent
|
|
15
|
+
import { PrimaryToolbarComponent } from './ui/PrimaryToolbarComponent';
|
|
16
16
|
import { getToolbarComponents } from './ui/toolbar-components';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -36,20 +36,6 @@ export const textFormattingPlugin = ({
|
|
|
36
36
|
if (!editorView) {
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
|
-
if (editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true, {
|
|
40
|
-
exposure: true
|
|
41
|
-
})) {
|
|
42
|
-
return /*#__PURE__*/React.createElement(PrimaryToolbarComponentMemoized, {
|
|
43
|
-
api: api,
|
|
44
|
-
popupsMountPoint: popupsMountPoint,
|
|
45
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
46
|
-
toolbarSize: toolbarSize,
|
|
47
|
-
isReducedSpacing: isToolbarReducedSpacing,
|
|
48
|
-
editorView: editorView,
|
|
49
|
-
disabled: disabled,
|
|
50
|
-
shouldUseResponsiveToolbar: Boolean(options === null || options === void 0 ? void 0 : options.responsiveToolbarMenu)
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
39
|
return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
|
|
54
40
|
api: api,
|
|
55
41
|
popupsMountPoint: popupsMountPoint,
|
|
@@ -30,7 +30,7 @@ const selector = states => {
|
|
|
30
30
|
subscriptHidden: (_states$textFormattin21 = states.textFormattingState) === null || _states$textFormattin21 === void 0 ? void 0 : _states$textFormattin21.subscriptHidden
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export const PrimaryToolbarComponent = ({
|
|
33
|
+
export const PrimaryToolbarComponent = /*#__PURE__*/React.memo(({
|
|
34
34
|
api,
|
|
35
35
|
popupsMountPoint,
|
|
36
36
|
popupsScrollableElement,
|
|
@@ -55,5 +55,4 @@ export const PrimaryToolbarComponent = ({
|
|
|
55
55
|
api: api,
|
|
56
56
|
toolbarType: ToolbarType.PRIMARY
|
|
57
57
|
});
|
|
58
|
-
};
|
|
59
|
-
export const PrimaryToolbarComponentMemoized = /*#__PURE__*/React.memo(PrimaryToolbarComponent);
|
|
58
|
+
});
|
|
@@ -15,7 +15,7 @@ import { plugin as pmPlugin } from './pm-plugins/main';
|
|
|
15
15
|
import { pluginKey as textFormattingPluginKey } from './pm-plugins/plugin-key';
|
|
16
16
|
import textFormattingSmartInputRulePlugin from './pm-plugins/smart-input-rule';
|
|
17
17
|
import { FloatingToolbarTextFormalWithIntl as FloatingToolbarComponent } from './ui/FloatingToolbarComponent';
|
|
18
|
-
import { PrimaryToolbarComponent
|
|
18
|
+
import { PrimaryToolbarComponent } from './ui/PrimaryToolbarComponent';
|
|
19
19
|
import { getToolbarComponents } from './ui/toolbar-components';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -37,20 +37,6 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
|
37
37
|
if (!editorView) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
-
if (editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true, {
|
|
41
|
-
exposure: true
|
|
42
|
-
})) {
|
|
43
|
-
return /*#__PURE__*/React.createElement(PrimaryToolbarComponentMemoized, {
|
|
44
|
-
api: api,
|
|
45
|
-
popupsMountPoint: popupsMountPoint,
|
|
46
|
-
popupsScrollableElement: popupsScrollableElement,
|
|
47
|
-
toolbarSize: toolbarSize,
|
|
48
|
-
isReducedSpacing: isToolbarReducedSpacing,
|
|
49
|
-
editorView: editorView,
|
|
50
|
-
disabled: disabled,
|
|
51
|
-
shouldUseResponsiveToolbar: Boolean(options === null || options === void 0 ? void 0 : options.responsiveToolbarMenu)
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
40
|
return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
|
|
55
41
|
api: api,
|
|
56
42
|
popupsMountPoint: popupsMountPoint,
|
|
@@ -30,7 +30,7 @@ var selector = function selector(states) {
|
|
|
30
30
|
subscriptHidden: (_states$textFormattin21 = states.textFormattingState) === null || _states$textFormattin21 === void 0 ? void 0 : _states$textFormattin21.subscriptHidden
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export var PrimaryToolbarComponent = function
|
|
33
|
+
export var PrimaryToolbarComponent = /*#__PURE__*/React.memo(function (_ref) {
|
|
34
34
|
var _api$analytics;
|
|
35
35
|
var api = _ref.api,
|
|
36
36
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
@@ -54,5 +54,4 @@ export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
|
|
|
54
54
|
api: api,
|
|
55
55
|
toolbarType: ToolbarType.PRIMARY
|
|
56
56
|
});
|
|
57
|
-
};
|
|
58
|
-
export var PrimaryToolbarComponentMemoized = /*#__PURE__*/React.memo(PrimaryToolbarComponent);
|
|
57
|
+
});
|
|
@@ -12,6 +12,5 @@ interface PrimaryToolbarComponentProps {
|
|
|
12
12
|
shouldUseResponsiveToolbar: boolean;
|
|
13
13
|
toolbarSize: ToolbarSize;
|
|
14
14
|
}
|
|
15
|
-
export declare const PrimaryToolbarComponent: ({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element
|
|
16
|
-
export declare const PrimaryToolbarComponentMemoized: React.MemoExoticComponent<({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element>;
|
|
15
|
+
export declare const PrimaryToolbarComponent: React.MemoExoticComponent<({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element>;
|
|
17
16
|
export {};
|
|
@@ -12,6 +12,5 @@ interface PrimaryToolbarComponentProps {
|
|
|
12
12
|
shouldUseResponsiveToolbar: boolean;
|
|
13
13
|
toolbarSize: ToolbarSize;
|
|
14
14
|
}
|
|
15
|
-
export declare const PrimaryToolbarComponent: ({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element
|
|
16
|
-
export declare const PrimaryToolbarComponentMemoized: React.MemoExoticComponent<({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element>;
|
|
15
|
+
export declare const PrimaryToolbarComponent: React.MemoExoticComponent<({ api, popupsMountPoint, popupsScrollableElement, toolbarSize, editorView, disabled, isReducedSpacing, shouldUseResponsiveToolbar, }: PrimaryToolbarComponentProps) => React.JSX.Element>;
|
|
17
16
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.10",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^0.14.0",
|
|
42
42
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
43
|
-
"@atlaskit/icon": "^28.
|
|
43
|
+
"@atlaskit/icon": "^28.5.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^13.5.0",
|
|
47
47
|
"@atlaskit/tokens": "^6.4.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|