@atlaskit/editor-plugin-code-block 14.2.2 → 14.3.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 +17 -0
- package/dist/types/pm-plugins/ide-ux/bracket-handling.d.ts +1 -1
- package/dist/types/pm-plugins/ide-ux/quote-handling.d.ts +1 -1
- package/dist/types/pm-plugins/toolbar.d.ts +1 -1
- package/dist/types/ui/language-picker-options.d.ts +1 -1
- package/dist/types/utils/auto-detect-state.d.ts +3 -3
- package/dist/types/utils/format-code/format-code-state.d.ts +2 -2
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 14.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`51c33ef5349b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51c33ef5349b6) -
|
|
8
|
+
Enable compatibility with React 19.2.0
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 14.2.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 14.2.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -7,6 +7,6 @@ export type BracketMapKey = keyof typeof BRACKET_MAP;
|
|
|
7
7
|
export declare const shouldAutoCloseBracket: (before: string, after: string) => boolean;
|
|
8
8
|
export declare const getAutoClosingBracketInfo: (before: string, after: string) => {
|
|
9
9
|
hasTrailingMatchingBracket: boolean;
|
|
10
|
-
left:
|
|
10
|
+
left: '{' | '[' | '(' | undefined;
|
|
11
11
|
right: string | undefined;
|
|
12
12
|
};
|
|
@@ -7,6 +7,6 @@ export type QuoteMapKey = keyof typeof QUOTE_MAP;
|
|
|
7
7
|
export declare const shouldAutoCloseQuote: (before: string, after: string) => boolean;
|
|
8
8
|
export declare const getAutoClosingQuoteInfo: (before: string, after: string) => {
|
|
9
9
|
hasTrailingMatchingQuote: boolean;
|
|
10
|
-
left: "'" | "
|
|
10
|
+
left: "'" | '"' | '`' | undefined;
|
|
11
11
|
right: string | undefined;
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@ import type { ExtractInjectionAPI, FloatingToolbarHandler, SelectOption } from '
|
|
|
2
2
|
import type { CodeBlockPlugin } from '../index';
|
|
3
3
|
import type { CodeBlockFormatProvider } from '../types';
|
|
4
4
|
import type { Language } from './language-list';
|
|
5
|
-
export declare const getToolbarConfig: (allowCopyToClipboard: boolean | undefined, api: ExtractInjectionAPI<CodeBlockPlugin> | undefined, overrideLanguageName?: ((name: Language[
|
|
5
|
+
export declare const getToolbarConfig: (allowCopyToClipboard: boolean | undefined, api: ExtractInjectionAPI<CodeBlockPlugin> | undefined, overrideLanguageName?: ((name: Language['name']) => string) | undefined, formatCodeProvider?: CodeBlockFormatProvider | undefined) => FloatingToolbarHandler;
|
|
6
6
|
/**
|
|
7
7
|
* Filters language list based on both name and alias properties.
|
|
8
8
|
*/
|
|
@@ -16,6 +16,6 @@ type CreateGroupedLanguageOptionsProps = {
|
|
|
16
16
|
languages: LanguagePickerOption[];
|
|
17
17
|
recentlyUsedLanguages?: LanguagePickerOption[];
|
|
18
18
|
};
|
|
19
|
-
export declare const getDetectLanguageOption: (formatMessage: IntlShape[
|
|
19
|
+
export declare const getDetectLanguageOption: (formatMessage: IntlShape['formatMessage']) => LanguagePickerOption;
|
|
20
20
|
export declare const createGroupedLanguageOptions: ({ formatMessage, languages, recentlyUsedLanguages, }: CreateGroupedLanguageOptionsProps) => LanguagePickerOptionGroup[];
|
|
21
21
|
export {};
|
|
@@ -9,7 +9,7 @@ type CreateAutoDetectEntryOptions = {
|
|
|
9
9
|
preserveDetectionResult?: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const createAutoDetectEntry: (node: PMNode, pos: number, isPending: boolean, previous?: AutoDetectEntry, options?: CreateAutoDetectEntryOptions) => AutoDetectEntry;
|
|
12
|
-
export declare const queueAutoDetection: (languageDetectionMap: AutoDetectState[
|
|
13
|
-
export declare const removeAutoDetection: (languageDetectionMap: AutoDetectState[
|
|
14
|
-
export declare const updateAutoDetectState: (tr: ReadonlyTransaction, pluginState: AutoDetectState) => AutoDetectState[
|
|
12
|
+
export declare const queueAutoDetection: (languageDetectionMap: AutoDetectState['languageDetectionMap'], node: PMNode, pos: number, isPending: boolean) => AutoDetectState['languageDetectionMap'];
|
|
13
|
+
export declare const removeAutoDetection: (languageDetectionMap: AutoDetectState['languageDetectionMap'], localId: string) => AutoDetectState['languageDetectionMap'];
|
|
14
|
+
export declare const updateAutoDetectState: (tr: ReadonlyTransaction, pluginState: AutoDetectState) => AutoDetectState['languageDetectionMap'];
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { CodeBlockState } from '../../pm-plugins/main-state';
|
|
3
|
-
export declare const mapPendingFormats: (pendingFormats: CodeBlockState[
|
|
4
|
-
export declare const applyFormatCodeMeta: (pluginState: CodeBlockState, meta: ReturnType<ReadonlyTransaction[
|
|
3
|
+
export declare const mapPendingFormats: (pendingFormats: CodeBlockState['pendingFormats'], tr: ReadonlyTransaction, newState: EditorState) => CodeBlockState['pendingFormats'];
|
|
4
|
+
export declare const applyFormatCodeMeta: (pluginState: CodeBlockState, meta: ReturnType<ReadonlyTransaction['getMeta']>) => CodeBlockState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,37 +19,37 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^56.
|
|
22
|
+
"@atlaskit/adf-schema": "^56.2.0",
|
|
23
23
|
"@atlaskit/button": "^24.3.0",
|
|
24
24
|
"@atlaskit/code": "^18.2.0",
|
|
25
25
|
"@atlaskit/css": "^1.0.0",
|
|
26
|
-
"@atlaskit/editor-plugin-analytics": "^12.
|
|
27
|
-
"@atlaskit/editor-plugin-block-menu": "^11.
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^12.1.0",
|
|
27
|
+
"@atlaskit/editor-plugin-block-menu": "^11.2.0",
|
|
28
28
|
"@atlaskit/editor-plugin-composition": "^11.0.0",
|
|
29
|
-
"@atlaskit/editor-plugin-decorations": "^12.
|
|
30
|
-
"@atlaskit/editor-plugin-editor-disabled": "^12.
|
|
31
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^14.
|
|
32
|
-
"@atlaskit/editor-plugin-interaction": "^23.
|
|
33
|
-
"@atlaskit/editor-plugin-selection": "^12.
|
|
34
|
-
"@atlaskit/editor-plugin-toolbar": "^9.
|
|
29
|
+
"@atlaskit/editor-plugin-decorations": "^12.1.0",
|
|
30
|
+
"@atlaskit/editor-plugin-editor-disabled": "^12.1.0",
|
|
31
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^14.1.0",
|
|
32
|
+
"@atlaskit/editor-plugin-interaction": "^23.1.0",
|
|
33
|
+
"@atlaskit/editor-plugin-selection": "^12.1.0",
|
|
34
|
+
"@atlaskit/editor-plugin-toolbar": "^9.1.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
37
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
37
|
+
"@atlaskit/editor-toolbar": "^2.4.0",
|
|
38
38
|
"@atlaskit/flag": "^18.2.0",
|
|
39
39
|
"@atlaskit/frontend-utilities": "^4.1.0",
|
|
40
40
|
"@atlaskit/icon": "^37.2.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
42
42
|
"@atlaskit/primitives": "^22.2.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
44
|
-
"@atlaskit/select": "^22.
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
44
|
+
"@atlaskit/select": "^22.6.0",
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^135.7.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.3.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^116.
|
|
52
|
-
"react": "^18.2.0",
|
|
51
|
+
"@atlaskit/editor-common": "^116.45.0",
|
|
52
|
+
"react": "^18.2.0 || ^19.2.0",
|
|
53
53
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
54
54
|
},
|
|
55
55
|
"techstack": {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"react": "^
|
|
117
|
+
"react": "^19.2.0",
|
|
118
118
|
"react-intl": "^7.0.0"
|
|
119
119
|
}
|
|
120
120
|
}
|