@atlaskit/editor-core 187.10.8 → 187.11.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 +10 -0
- package/dist/cjs/index.js +2 -94
- package/dist/cjs/plugins/help-dialog/ui/index.js +42 -42
- package/dist/cjs/plugins/paste/handlers.js +4 -6
- package/dist/cjs/plugins/text-formatting/actions.js +188 -0
- package/dist/cjs/plugins/text-formatting/commands/text-formatting.js +1 -180
- package/dist/cjs/plugins/text-formatting/index.js +17 -0
- package/dist/cjs/plugins/text-formatting/pm-plugins/keymap.js +8 -8
- package/dist/cjs/plugins/text-formatting/pm-plugins/main.js +8 -8
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +2 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +16 -16
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +8 -8
- package/dist/cjs/plugins/text-formatting/utils.js +8 -36
- package/dist/cjs/ui/ContentStyles/index.js +8 -9
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +0 -2
- package/dist/es2019/plugins/help-dialog/ui/index.js +1 -1
- package/dist/es2019/plugins/paste/handlers.js +5 -7
- package/dist/es2019/plugins/text-formatting/actions.js +161 -0
- package/dist/es2019/plugins/text-formatting/commands/text-formatting.js +1 -159
- package/dist/es2019/plugins/text-formatting/index.js +17 -0
- package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +8 -8
- package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -9
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/es2019/plugins/text-formatting/utils.js +1 -29
- package/dist/es2019/ui/ContentStyles/index.js +2 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/plugins/help-dialog/ui/index.js +1 -1
- package/dist/esm/plugins/paste/handlers.js +5 -7
- package/dist/esm/plugins/text-formatting/actions.js +168 -0
- package/dist/esm/plugins/text-formatting/commands/text-formatting.js +1 -166
- package/dist/esm/plugins/text-formatting/index.js +17 -0
- package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +8 -8
- package/dist/esm/plugins/text-formatting/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -9
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +1 -1
- package/dist/esm/plugins/text-formatting/utils.js +6 -33
- package/dist/esm/ui/ContentStyles/index.js +2 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/index.d.ts +6 -4
- package/dist/types/labs/next/presets/default.d.ts +78 -15
- package/dist/types/plugins/media/ui/ResizableMediaSingle/guidelines.d.ts +1 -1
- package/dist/types/plugins/paste/handlers.d.ts +1 -2
- package/dist/types/plugins/text-formatting/actions.d.ts +20 -0
- package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +0 -31
- package/dist/types/plugins/text-formatting/index.d.ts +18 -2
- package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +1 -2
- package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/text-formatting/utils.d.ts +1 -5
- package/dist/types/types/editor-props.d.ts +1 -2
- package/dist/types/ui/ContentStyles/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +6 -4
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +78 -15
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/guidelines.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +1 -2
- package/dist/types-ts4.5/plugins/text-formatting/actions.d.ts +20 -0
- package/dist/types-ts4.5/plugins/text-formatting/commands/text-formatting.d.ts +0 -31
- package/dist/types-ts4.5/plugins/text-formatting/index.d.ts +18 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +1 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +1 -5
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +1 -1
- package/package.json +2 -2
- package/report.api.md +31 -145
- package/tmp/api-report-tmp.d.ts +30 -118
- package/dist/cjs/plugins/text-formatting/styles.js +0 -15
- package/dist/cjs/plugins/text-formatting/types.js +0 -5
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -95
- package/dist/es2019/plugins/text-formatting/styles.js +0 -5
- package/dist/es2019/plugins/text-formatting/types.js +0 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -88
- package/dist/esm/plugins/text-formatting/styles.js +0 -7
- package/dist/esm/plugins/text-formatting/types.js +0 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/toolbar-messages.js +0 -88
- package/dist/types/plugins/text-formatting/styles.d.ts +0 -2
- package/dist/types/plugins/text-formatting/types.d.ts +0 -30
- package/dist/types/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +0 -87
- package/dist/types-ts4.5/plugins/text-formatting/styles.d.ts +0 -2
- package/dist/types-ts4.5/plugins/text-formatting/types.d.ts +0 -30
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/toolbar-messages.d.ts +0 -87
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject;
|
|
3
|
-
import { css } from '@emotion/react';
|
|
4
|
-
import { codeMarkSharedStyles } from '@atlaskit/editor-common/styles';
|
|
5
|
-
export var textFormattingStyles = function textFormattingStyles(props) {
|
|
6
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), codeMarkSharedStyles(props));
|
|
7
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl-next';
|
|
2
|
-
export var toolbarMessages = defineMessages({
|
|
3
|
-
underline: {
|
|
4
|
-
id: 'fabric.editor.underline',
|
|
5
|
-
defaultMessage: 'Underline',
|
|
6
|
-
description: 'Whether the text selection has underlined text'
|
|
7
|
-
},
|
|
8
|
-
strike: {
|
|
9
|
-
id: 'fabric.editor.strike',
|
|
10
|
-
defaultMessage: 'Strikethrough',
|
|
11
|
-
description: 'Whether the text selection has crossed out text'
|
|
12
|
-
},
|
|
13
|
-
code: {
|
|
14
|
-
id: 'fabric.editor.code',
|
|
15
|
-
defaultMessage: 'Code',
|
|
16
|
-
description: 'Whether the text selection has monospaced/code font'
|
|
17
|
-
},
|
|
18
|
-
codeOn: {
|
|
19
|
-
id: 'fabric.editor.code.on',
|
|
20
|
-
defaultMessage: '{textFormattingOff}, Code On',
|
|
21
|
-
description: 'Reports that code formatting has been turned on'
|
|
22
|
-
},
|
|
23
|
-
subscript: {
|
|
24
|
-
id: 'fabric.editor.subscript',
|
|
25
|
-
defaultMessage: 'Subscript',
|
|
26
|
-
description: 'Whether the text selection is written below the line in a slightly smaller size'
|
|
27
|
-
},
|
|
28
|
-
subscriptOffSuperscriptOn: {
|
|
29
|
-
id: 'fabric.editor.subscript.off.superscript.on',
|
|
30
|
-
defaultMessage: 'Subscript Off, Superscript On',
|
|
31
|
-
description: 'Reports text formatting in case when subscript off and superscript on'
|
|
32
|
-
},
|
|
33
|
-
superscript: {
|
|
34
|
-
id: 'fabric.editor.superscript',
|
|
35
|
-
defaultMessage: 'Superscript',
|
|
36
|
-
description: 'Whether the text selection is written above the line in a slightly smaller size'
|
|
37
|
-
},
|
|
38
|
-
superscriptOffSubscriptOn: {
|
|
39
|
-
id: 'fabric.editor.superscript.off.subscript.on',
|
|
40
|
-
defaultMessage: 'Superscript Off, Subscript On',
|
|
41
|
-
description: 'Describe text formatting in case when Superscript Off and Subscript on'
|
|
42
|
-
},
|
|
43
|
-
clearFormatting: {
|
|
44
|
-
id: 'fabric.editor.clearFormatting',
|
|
45
|
-
defaultMessage: 'Clear formatting',
|
|
46
|
-
description: 'Remove all rich text formatting from the selected text'
|
|
47
|
-
},
|
|
48
|
-
moreFormatting: {
|
|
49
|
-
id: 'fabric.editor.moreFormatting',
|
|
50
|
-
defaultMessage: 'More formatting',
|
|
51
|
-
description: 'Clicking this will show a menu with additional formatting options'
|
|
52
|
-
},
|
|
53
|
-
bold: {
|
|
54
|
-
id: 'fabric.editor.bold',
|
|
55
|
-
defaultMessage: 'Bold',
|
|
56
|
-
description: 'This refers to bold or “strong” formatting, indicates that its contents have strong importance, seriousness, or urgency.'
|
|
57
|
-
},
|
|
58
|
-
italic: {
|
|
59
|
-
id: 'fabric.editor.italic',
|
|
60
|
-
defaultMessage: 'Italic',
|
|
61
|
-
description: 'This refers to italics or emphasized formatting.'
|
|
62
|
-
},
|
|
63
|
-
on: {
|
|
64
|
-
id: 'fabric.editor.on',
|
|
65
|
-
defaultMessage: '{formattingType} On',
|
|
66
|
-
description: 'Reports that text formatting has been turned on'
|
|
67
|
-
},
|
|
68
|
-
off: {
|
|
69
|
-
id: 'fabric.editor.off',
|
|
70
|
-
defaultMessage: '{formattingType} Off',
|
|
71
|
-
description: 'Reports that text formatting has been turned off'
|
|
72
|
-
},
|
|
73
|
-
textFormattingOff: {
|
|
74
|
-
id: 'fabric.editor.text.formatting.off',
|
|
75
|
-
defaultMessage: 'Text formatting Off',
|
|
76
|
-
description: 'Reports that text formatting has been turned off'
|
|
77
|
-
},
|
|
78
|
-
navigateToEditorToolbar: {
|
|
79
|
-
id: 'fabric.editor.navigate.toolbar.editor',
|
|
80
|
-
defaultMessage: 'Navigate to editor toolbar',
|
|
81
|
-
description: 'Navigate to the main editor toolbar.'
|
|
82
|
-
},
|
|
83
|
-
navigateToFloatingToolbar: {
|
|
84
|
-
id: 'fabric.editor.navigate.toolbar.floating',
|
|
85
|
-
defaultMessage: 'Navigate to floating toolbar',
|
|
86
|
-
description: 'Navigate to a floating toolbar for relevant nodes (e.g. tables or panels).'
|
|
87
|
-
}
|
|
88
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface TextFormattingOptions {
|
|
2
|
-
disableSuperscriptAndSubscript?: boolean;
|
|
3
|
-
disableUnderline?: boolean;
|
|
4
|
-
disableCode?: boolean;
|
|
5
|
-
disableSmartTextCompletion?: boolean;
|
|
6
|
-
responsiveToolbarMenu?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface TextFormattingState {
|
|
9
|
-
emActive?: boolean;
|
|
10
|
-
emDisabled?: boolean;
|
|
11
|
-
emHidden?: boolean;
|
|
12
|
-
codeActive?: boolean;
|
|
13
|
-
codeDisabled?: boolean;
|
|
14
|
-
codeHidden?: boolean;
|
|
15
|
-
underlineActive?: boolean;
|
|
16
|
-
underlineDisabled?: boolean;
|
|
17
|
-
underlineHidden?: boolean;
|
|
18
|
-
strikeActive?: boolean;
|
|
19
|
-
strikeDisabled?: boolean;
|
|
20
|
-
strikeHidden?: boolean;
|
|
21
|
-
strongActive?: boolean;
|
|
22
|
-
strongDisabled?: boolean;
|
|
23
|
-
strongHidden?: boolean;
|
|
24
|
-
superscriptActive?: boolean;
|
|
25
|
-
superscriptDisabled?: boolean;
|
|
26
|
-
superscriptHidden?: boolean;
|
|
27
|
-
subscriptActive?: boolean;
|
|
28
|
-
subscriptDisabled?: boolean;
|
|
29
|
-
subscriptHidden?: boolean;
|
|
30
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export declare const toolbarMessages: {
|
|
2
|
-
underline: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
strike: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
code: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
codeOn: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
subscript: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
subscriptOffSuperscriptOn: {
|
|
28
|
-
id: string;
|
|
29
|
-
defaultMessage: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
superscript: {
|
|
33
|
-
id: string;
|
|
34
|
-
defaultMessage: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
superscriptOffSubscriptOn: {
|
|
38
|
-
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
clearFormatting: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
moreFormatting: {
|
|
48
|
-
id: string;
|
|
49
|
-
defaultMessage: string;
|
|
50
|
-
description: string;
|
|
51
|
-
};
|
|
52
|
-
bold: {
|
|
53
|
-
id: string;
|
|
54
|
-
defaultMessage: string;
|
|
55
|
-
description: string;
|
|
56
|
-
};
|
|
57
|
-
italic: {
|
|
58
|
-
id: string;
|
|
59
|
-
defaultMessage: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
on: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
off: {
|
|
68
|
-
id: string;
|
|
69
|
-
defaultMessage: string;
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
|
-
textFormattingOff: {
|
|
73
|
-
id: string;
|
|
74
|
-
defaultMessage: string;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
navigateToEditorToolbar: {
|
|
78
|
-
id: string;
|
|
79
|
-
defaultMessage: string;
|
|
80
|
-
description: string;
|
|
81
|
-
};
|
|
82
|
-
navigateToFloatingToolbar: {
|
|
83
|
-
id: string;
|
|
84
|
-
defaultMessage: string;
|
|
85
|
-
description: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export interface TextFormattingOptions {
|
|
2
|
-
disableSuperscriptAndSubscript?: boolean;
|
|
3
|
-
disableUnderline?: boolean;
|
|
4
|
-
disableCode?: boolean;
|
|
5
|
-
disableSmartTextCompletion?: boolean;
|
|
6
|
-
responsiveToolbarMenu?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface TextFormattingState {
|
|
9
|
-
emActive?: boolean;
|
|
10
|
-
emDisabled?: boolean;
|
|
11
|
-
emHidden?: boolean;
|
|
12
|
-
codeActive?: boolean;
|
|
13
|
-
codeDisabled?: boolean;
|
|
14
|
-
codeHidden?: boolean;
|
|
15
|
-
underlineActive?: boolean;
|
|
16
|
-
underlineDisabled?: boolean;
|
|
17
|
-
underlineHidden?: boolean;
|
|
18
|
-
strikeActive?: boolean;
|
|
19
|
-
strikeDisabled?: boolean;
|
|
20
|
-
strikeHidden?: boolean;
|
|
21
|
-
strongActive?: boolean;
|
|
22
|
-
strongDisabled?: boolean;
|
|
23
|
-
strongHidden?: boolean;
|
|
24
|
-
superscriptActive?: boolean;
|
|
25
|
-
superscriptDisabled?: boolean;
|
|
26
|
-
superscriptHidden?: boolean;
|
|
27
|
-
subscriptActive?: boolean;
|
|
28
|
-
subscriptDisabled?: boolean;
|
|
29
|
-
subscriptHidden?: boolean;
|
|
30
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export declare const toolbarMessages: {
|
|
2
|
-
underline: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
strike: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
code: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
codeOn: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
subscript: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
subscriptOffSuperscriptOn: {
|
|
28
|
-
id: string;
|
|
29
|
-
defaultMessage: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
superscript: {
|
|
33
|
-
id: string;
|
|
34
|
-
defaultMessage: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
superscriptOffSubscriptOn: {
|
|
38
|
-
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
clearFormatting: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
moreFormatting: {
|
|
48
|
-
id: string;
|
|
49
|
-
defaultMessage: string;
|
|
50
|
-
description: string;
|
|
51
|
-
};
|
|
52
|
-
bold: {
|
|
53
|
-
id: string;
|
|
54
|
-
defaultMessage: string;
|
|
55
|
-
description: string;
|
|
56
|
-
};
|
|
57
|
-
italic: {
|
|
58
|
-
id: string;
|
|
59
|
-
defaultMessage: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
on: {
|
|
63
|
-
id: string;
|
|
64
|
-
defaultMessage: string;
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
off: {
|
|
68
|
-
id: string;
|
|
69
|
-
defaultMessage: string;
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
|
-
textFormattingOff: {
|
|
73
|
-
id: string;
|
|
74
|
-
defaultMessage: string;
|
|
75
|
-
description: string;
|
|
76
|
-
};
|
|
77
|
-
navigateToEditorToolbar: {
|
|
78
|
-
id: string;
|
|
79
|
-
defaultMessage: string;
|
|
80
|
-
description: string;
|
|
81
|
-
};
|
|
82
|
-
navigateToFloatingToolbar: {
|
|
83
|
-
id: string;
|
|
84
|
-
defaultMessage: string;
|
|
85
|
-
description: string;
|
|
86
|
-
};
|
|
87
|
-
};
|