@atlaskit/editor-plugin-code-block 13.1.17 → 14.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
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [`81545f4d0e189`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81545f4d0e189) -
|
|
28
|
+
Add code block format provider plumbing for Confluence editor presets and align code block
|
|
29
|
+
formatting state with the shared provider result type.
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
|
|
3
32
|
## 13.1.17
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type {
|
|
3
|
+
import type { FormatResult } from '../types';
|
|
4
|
+
import type { LanguageSource } from '../utils/format-code/formatter';
|
|
4
5
|
export type PendingFormatRequest = {
|
|
5
6
|
languageSource: LanguageSource;
|
|
6
7
|
pos: number;
|
|
@@ -8,7 +9,7 @@ export type PendingFormatRequest = {
|
|
|
8
9
|
};
|
|
9
10
|
export type ResolveFormatCodeOutcome = 'failed' | 'formatted' | 'unchanged';
|
|
10
11
|
export type FormatCodeErrorState = {
|
|
11
|
-
errorType: Extract<
|
|
12
|
+
errorType: Extract<FormatResult, {
|
|
12
13
|
status: 'failed';
|
|
13
14
|
}>['errorType'];
|
|
14
15
|
languageSource: LanguageSource;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { CodeBlockFormatProvider
|
|
2
|
+
import type { CodeBlockFormatProvider } from '../../types';
|
|
3
3
|
export type LanguageSource = 'auto-detected' | 'selected';
|
|
4
|
-
export type FormatCodeResult = FormatResult;
|
|
5
4
|
export declare const preloadFormatterOnIntent: (formatCodeProvider: CodeBlockFormatProvider | undefined, language: string | undefined) => Command;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,47 +16,39 @@
|
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
18
18
|
"types": "dist/types/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
">=4.5 <4.9": {
|
|
21
|
-
"*": [
|
|
22
|
-
"dist/types-ts4.5/*",
|
|
23
|
-
"dist/types-ts4.5/index.d.ts"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
19
|
"sideEffects": false,
|
|
28
20
|
"atlaskit:src": "src/index.ts",
|
|
29
21
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^
|
|
31
|
-
"@atlaskit/button": "^
|
|
32
|
-
"@atlaskit/code": "^
|
|
33
|
-
"@atlaskit/css": "^0.
|
|
34
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
35
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
36
|
-
"@atlaskit/editor-plugin-composition": "^
|
|
37
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
38
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
39
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
40
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
41
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
43
|
-
"@atlaskit/editor-prosemirror": "^
|
|
44
|
-
"@atlaskit/editor-shared-styles": "^
|
|
45
|
-
"@atlaskit/editor-toolbar": "^
|
|
46
|
-
"@atlaskit/flag": "^
|
|
47
|
-
"@atlaskit/frontend-utilities": "^
|
|
48
|
-
"@atlaskit/icon": "^
|
|
49
|
-
"@atlaskit/platform-feature-flags": "^
|
|
50
|
-
"@atlaskit/primitives": "^
|
|
51
|
-
"@atlaskit/prosemirror-input-rules": "^
|
|
52
|
-
"@atlaskit/select": "^
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
54
|
-
"@atlaskit/tokens": "^
|
|
22
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
23
|
+
"@atlaskit/button": "^24.0.0",
|
|
24
|
+
"@atlaskit/code": "^18.0.0",
|
|
25
|
+
"@atlaskit/css": "^1.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-block-menu": "^11.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-composition": "^11.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-decorations": "^12.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-editor-disabled": "^12.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-interaction": "^21.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-selection": "^12.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-toolbar": "^9.0.0",
|
|
35
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
36
|
+
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
37
|
+
"@atlaskit/editor-toolbar": "^2.0.0",
|
|
38
|
+
"@atlaskit/flag": "^18.0.0",
|
|
39
|
+
"@atlaskit/frontend-utilities": "^4.0.0",
|
|
40
|
+
"@atlaskit/icon": "^36.0.0",
|
|
41
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
42
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
43
|
+
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
44
|
+
"@atlaskit/select": "^22.0.0",
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
55
47
|
"@babel/runtime": "^7.0.0",
|
|
56
48
|
"@compiled/react": "^0.20.0"
|
|
57
49
|
},
|
|
58
50
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^
|
|
51
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
60
52
|
"react": "^18.2.0",
|
|
61
53
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
62
54
|
},
|