@atlaskit/editor-plugin-text-formatting 1.19.0 → 2.0.0
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 +30 -0
- package/dist/cjs/textFormattingPlugin.js +6 -0
- package/dist/es2019/textFormattingPlugin.js +6 -0
- package/dist/esm/textFormattingPlugin.js +6 -0
- package/dist/types/textFormattingPluginType.d.ts +3 -1
- package/dist/types-ts4.5/textFormattingPluginType.d.ts +3 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
8
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
9
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
10
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
11
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
12
|
+
React 17 may come via non-major semver releases.
|
|
13
|
+
|
|
14
|
+
Please refer this community post for more details:
|
|
15
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 1.20.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- [#116949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116949)
|
|
26
|
+
[`9154f7b89e3d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9154f7b89e3d2) -
|
|
27
|
+
[ux] ED-26674 Hiding contextual toolbar menu items when the menu is docked to top
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 1.19.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
@@ -143,6 +143,12 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
|
|
|
143
143
|
},
|
|
144
144
|
pluginsOptions: {
|
|
145
145
|
selectionToolbar: function selectionToolbar() {
|
|
146
|
+
var _api$selectionToolbar;
|
|
147
|
+
if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
148
|
+
exposure: true
|
|
149
|
+
})) {
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
146
152
|
if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
|
|
147
153
|
exposure: true
|
|
148
154
|
}) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
@@ -137,6 +137,12 @@ export const textFormattingPlugin = ({
|
|
|
137
137
|
},
|
|
138
138
|
pluginsOptions: {
|
|
139
139
|
selectionToolbar: () => {
|
|
140
|
+
var _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
|
|
141
|
+
if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === 'top' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
142
|
+
exposure: true
|
|
143
|
+
})) {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
140
146
|
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
141
147
|
exposure: true
|
|
142
148
|
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
@@ -137,6 +137,12 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
|
137
137
|
},
|
|
138
138
|
pluginsOptions: {
|
|
139
139
|
selectionToolbar: function selectionToolbar() {
|
|
140
|
+
var _api$selectionToolbar;
|
|
141
|
+
if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
142
|
+
exposure: true
|
|
143
|
+
})) {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
140
146
|
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
141
147
|
exposure: true
|
|
142
148
|
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
@@ -2,13 +2,15 @@ import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions, TextForma
|
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { BasePlugin } from '@atlaskit/editor-plugin-base';
|
|
4
4
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
5
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
5
6
|
import type { ToggleMarkEditorCommand } from './pm-plugins/commands';
|
|
6
7
|
export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
7
8
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
8
9
|
dependencies: [
|
|
9
10
|
OptionalPlugin<AnalyticsPlugin>,
|
|
10
11
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
11
|
-
OptionalPlugin<BasePlugin
|
|
12
|
+
OptionalPlugin<BasePlugin>,
|
|
13
|
+
OptionalPlugin<SelectionToolbarPlugin>
|
|
12
14
|
];
|
|
13
15
|
commands: {
|
|
14
16
|
toggleSuperscript: ToggleMarkEditorCommand;
|
|
@@ -2,13 +2,15 @@ import type { NextEditorPlugin, OptionalPlugin, TextFormattingOptions, TextForma
|
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { BasePlugin } from '@atlaskit/editor-plugin-base';
|
|
4
4
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
5
|
+
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
5
6
|
import type { ToggleMarkEditorCommand } from './pm-plugins/commands';
|
|
6
7
|
export type TextFormattingPlugin = NextEditorPlugin<'textFormatting', {
|
|
7
8
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
8
9
|
dependencies: [
|
|
9
10
|
OptionalPlugin<AnalyticsPlugin>,
|
|
10
11
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
11
|
-
OptionalPlugin<BasePlugin
|
|
12
|
+
OptionalPlugin<BasePlugin>,
|
|
13
|
+
OptionalPlugin<SelectionToolbarPlugin>
|
|
12
14
|
];
|
|
13
15
|
commands: {
|
|
14
16
|
toggleSuperscript: ToggleMarkEditorCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,28 +32,29 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
35
|
+
"@atlaskit/editor-common": "^100.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-base": "^2.2.0",
|
|
38
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
38
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
|
|
39
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
41
|
"@atlaskit/editor-shared-styles": "^3.3.0",
|
|
41
42
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/icon": "^24.0.0",
|
|
43
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
45
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^3.0.0",
|
|
47
|
+
"@atlaskit/tokens": "^4.0.0",
|
|
47
48
|
"@babel/runtime": "^7.0.0",
|
|
48
49
|
"@emotion/react": "^11.7.1",
|
|
49
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
|
-
"react": "^
|
|
53
|
+
"react": "^18.2.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@atlaskit/editor-plugin-composition": "^1.3.0",
|
|
56
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
57
|
+
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
57
58
|
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
58
59
|
"@testing-library/react": "^13.4.0",
|
|
59
60
|
"typescript": "~5.4.2"
|