@atlaskit/editor-plugin-code-block 3.6.2 → 3.7.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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 3.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#105322](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105322)
|
|
8
|
+
[`8876083532adc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8876083532adc) -
|
|
9
|
+
Bumped editor-prosemirror version to 7.0.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 3.6.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { CodeBlockPlugin } from '../codeBlockPluginType';
|
|
5
5
|
export declare class CodeBlockView {
|
|
6
6
|
private cleanupEditorDisabledListener?;
|
|
7
|
-
node:
|
|
7
|
+
node: PMNode;
|
|
8
8
|
dom: HTMLElement;
|
|
9
9
|
contentDOM: HTMLElement;
|
|
10
10
|
lineNumberGutter: HTMLElement;
|
|
@@ -12,7 +12,7 @@ export declare class CodeBlockView {
|
|
|
12
12
|
view: EditorView;
|
|
13
13
|
formattedAriaLabel: string;
|
|
14
14
|
api?: ExtractInjectionAPI<CodeBlockPlugin>;
|
|
15
|
-
constructor(node:
|
|
15
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, formattedAriaLabel: string, api?: ExtractInjectionAPI<CodeBlockPlugin>, cleanupEditorDisabledListener?: (() => void) | undefined);
|
|
16
16
|
handleEditorDisabledChanged(): void;
|
|
17
17
|
updateDOMAndSelection(savedInnerHTML: string, newCursorPosition: number): void;
|
|
18
18
|
coalesceDOMElements(): void;
|
|
@@ -20,11 +20,11 @@ export declare class CodeBlockView {
|
|
|
20
20
|
* As the code block updates we get the maximum amount of digits in a line number and expand the number gutter to reflect this.
|
|
21
21
|
*/
|
|
22
22
|
private maintainDynamicGutterSize;
|
|
23
|
-
update(node:
|
|
23
|
+
update(node: PMNode): boolean;
|
|
24
24
|
ignoreMutation(record: MutationRecord | {
|
|
25
25
|
type: 'selection';
|
|
26
|
-
target:
|
|
26
|
+
target: Node;
|
|
27
27
|
}): boolean;
|
|
28
28
|
destroy(): void;
|
|
29
29
|
}
|
|
30
|
-
export declare const codeBlockNodeView: (node:
|
|
30
|
+
export declare const codeBlockNodeView: (node: PMNode, view: EditorView, getPos: getPosHandler, formattedAriaLabel: string, api: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => CodeBlockView;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { CodeBlockPlugin } from '../codeBlockPluginType';
|
|
5
5
|
export declare class CodeBlockView {
|
|
6
6
|
private cleanupEditorDisabledListener?;
|
|
7
|
-
node:
|
|
7
|
+
node: PMNode;
|
|
8
8
|
dom: HTMLElement;
|
|
9
9
|
contentDOM: HTMLElement;
|
|
10
10
|
lineNumberGutter: HTMLElement;
|
|
@@ -12,7 +12,7 @@ export declare class CodeBlockView {
|
|
|
12
12
|
view: EditorView;
|
|
13
13
|
formattedAriaLabel: string;
|
|
14
14
|
api?: ExtractInjectionAPI<CodeBlockPlugin>;
|
|
15
|
-
constructor(node:
|
|
15
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, formattedAriaLabel: string, api?: ExtractInjectionAPI<CodeBlockPlugin>, cleanupEditorDisabledListener?: (() => void) | undefined);
|
|
16
16
|
handleEditorDisabledChanged(): void;
|
|
17
17
|
updateDOMAndSelection(savedInnerHTML: string, newCursorPosition: number): void;
|
|
18
18
|
coalesceDOMElements(): void;
|
|
@@ -20,11 +20,11 @@ export declare class CodeBlockView {
|
|
|
20
20
|
* As the code block updates we get the maximum amount of digits in a line number and expand the number gutter to reflect this.
|
|
21
21
|
*/
|
|
22
22
|
private maintainDynamicGutterSize;
|
|
23
|
-
update(node:
|
|
23
|
+
update(node: PMNode): boolean;
|
|
24
24
|
ignoreMutation(record: MutationRecord | {
|
|
25
25
|
type: 'selection';
|
|
26
|
-
target:
|
|
26
|
+
target: Node;
|
|
27
27
|
}): boolean;
|
|
28
28
|
destroy(): void;
|
|
29
29
|
}
|
|
30
|
-
export declare const codeBlockNodeView: (node:
|
|
30
|
+
export declare const codeBlockNodeView: (node: PMNode, view: EditorView, getPos: getPosHandler, formattedAriaLabel: string, api: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => CodeBlockView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/code": "^15.7.0",
|
|
36
|
-
"@atlaskit/editor-common": "^99.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
-
"@atlaskit/editor-plugin-composition": "^1.
|
|
39
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
40
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
41
|
-
"@atlaskit/editor-prosemirror": "
|
|
42
|
-
"@atlaskit/icon": "^23.
|
|
36
|
+
"@atlaskit/editor-common": "^99.10.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
38
|
+
"@atlaskit/editor-plugin-composition": "^1.3.0",
|
|
39
|
+
"@atlaskit/editor-plugin-decorations": "^1.5.0",
|
|
40
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.5.0",
|
|
41
|
+
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
|
+
"@atlaskit/icon": "^23.7.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
44
|
-
"@atlaskit/prosemirror-input-rules": "^3.
|
|
44
|
+
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|