@atlaskit/editor-plugin-text-formatting 1.6.1 → 1.7.1
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/.eslintrc.js +5 -5
- package/CHANGELOG.md +260 -237
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin.js +33 -25
- package/dist/cjs/pm-plugins/input-rule.js +2 -1
- package/dist/cjs/ui/PrimaryToolbarComponent.js +2 -1
- package/dist/cjs/ui/Toolbar/index.js +11 -5
- package/dist/es2019/plugin.js +26 -18
- package/dist/es2019/pm-plugins/input-rule.js +3 -2
- package/dist/es2019/ui/PrimaryToolbarComponent.js +2 -1
- package/dist/es2019/ui/Toolbar/index.js +11 -5
- package/dist/esm/plugin.js +33 -25
- package/dist/esm/pm-plugins/input-rule.js +3 -2
- package/dist/esm/ui/PrimaryToolbarComponent.js +2 -1
- package/dist/esm/ui/Toolbar/index.js +11 -5
- package/dist/types/plugin.d.ts +3 -2
- package/dist/types/ui/Toolbar/hooks/formatting-icons.d.ts +1 -1
- package/dist/types/ui/Toolbar/index.d.ts +3 -1
- package/dist/types-ts4.5/plugin.d.ts +4 -2
- package/dist/types-ts4.5/ui/Toolbar/hooks/formatting-icons.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +3 -1
- package/docs/0-intro.tsx +9 -6
- package/package.json +11 -6
- package/report.api.md +19 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,13 +32,15 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^36.
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
36
|
+
"@atlaskit/editor-common": "^81.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
38
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
|
38
39
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
39
40
|
"@atlaskit/editor-shared-styles": "^2.11.0",
|
|
40
41
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.3.0",
|
|
43
|
+
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
42
44
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
43
45
|
"@babel/runtime": "^7.0.0",
|
|
44
46
|
"@emotion/react": "^11.7.1",
|
|
@@ -51,7 +53,6 @@
|
|
|
51
53
|
"@atlaskit/editor-plugin-composition": "^1.1.0",
|
|
52
54
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
53
55
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
54
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
55
56
|
"@testing-library/react": "^12.1.5",
|
|
56
57
|
"typescript": "~5.4.2"
|
|
57
58
|
},
|
|
@@ -88,5 +89,9 @@
|
|
|
88
89
|
]
|
|
89
90
|
}
|
|
90
91
|
},
|
|
91
|
-
"
|
|
92
|
+
"platform-feature-flags": {
|
|
93
|
+
"platform.editor.simplify-inline-cards-in-code-blocks_jw6t1": {
|
|
94
|
+
"type": "boolean"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
92
97
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-text-formatting"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -25,30 +26,28 @@ import type { TextFormattingState } from '@atlaskit/editor-common/types';
|
|
|
25
26
|
|
|
26
27
|
// @public (undocumented)
|
|
27
28
|
export type TextFormattingPlugin = NextEditorPlugin<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
'textFormatting',
|
|
30
|
+
{
|
|
31
|
+
pluginConfiguration: TextFormattingOptions | undefined;
|
|
32
|
+
dependencies: [OptionalPlugin<typeof analyticsPlugin>];
|
|
33
|
+
commands: {
|
|
34
|
+
toggleSuperscript: ToggleMarkEditorCommand;
|
|
35
|
+
toggleSubscript: ToggleMarkEditorCommand;
|
|
36
|
+
toggleStrike: ToggleMarkEditorCommand;
|
|
37
|
+
toggleCode: ToggleMarkEditorCommand;
|
|
38
|
+
toggleUnderline: ToggleMarkEditorCommand;
|
|
39
|
+
toggleEm: ToggleMarkEditorCommand;
|
|
40
|
+
toggleStrong: ToggleMarkEditorCommand;
|
|
41
|
+
};
|
|
42
|
+
sharedState: TextFormattingState | undefined;
|
|
43
|
+
}
|
|
43
44
|
>;
|
|
44
45
|
|
|
45
46
|
// @public
|
|
46
47
|
export const textFormattingPlugin: TextFormattingPlugin;
|
|
47
48
|
|
|
48
49
|
// @public (undocumented)
|
|
49
|
-
export type ToggleMarkEditorCommand = (
|
|
50
|
-
inputMethod: InputMethodBasic,
|
|
51
|
-
) => EditorCommand;
|
|
50
|
+
export type ToggleMarkEditorCommand = (inputMethod: InputMethodBasic) => EditorCommand;
|
|
52
51
|
|
|
53
52
|
// (No @packageDocumentation comment for this package)
|
|
54
53
|
```
|
|
@@ -61,7 +60,7 @@ export type ToggleMarkEditorCommand = (
|
|
|
61
60
|
|
|
62
61
|
```json
|
|
63
62
|
{
|
|
64
|
-
|
|
63
|
+
"react": "^16.8.0"
|
|
65
64
|
}
|
|
66
65
|
```
|
|
67
66
|
|