@atlaskit/editor-plugin-code-block-advanced 6.2.19 → 7.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,11 @@
1
1
  # @atlaskit/editor-plugin-code-block-advanced
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 6.2.19
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "6.2.19",
3
+ "version": "7.0.0",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,15 +29,15 @@
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
31
  "@atlaskit/adf-schema": "^51.5.0",
32
- "@atlaskit/editor-plugin-code-block": "^8.1.0",
33
- "@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
34
- "@atlaskit/editor-plugin-find-replace": "^6.2.0",
35
- "@atlaskit/editor-plugin-selection": "^6.1.0",
36
- "@atlaskit/editor-plugin-selection-marker": "^6.3.0",
32
+ "@atlaskit/editor-plugin-code-block": "^9.0.0",
33
+ "@atlaskit/editor-plugin-editor-disabled": "^7.0.0",
34
+ "@atlaskit/editor-plugin-find-replace": "^7.0.0",
35
+ "@atlaskit/editor-plugin-selection": "^7.0.0",
36
+ "@atlaskit/editor-plugin-selection-marker": "^7.0.0",
37
37
  "@atlaskit/editor-prosemirror": "^7.2.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/prosemirror-history": "^0.2.0",
40
- "@atlaskit/tmp-editor-statsig": "^16.2.0",
40
+ "@atlaskit/tmp-editor-statsig": "^16.3.0",
41
41
  "@atlaskit/tokens": "^9.0.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@codemirror/autocomplete": "6.18.4",
@@ -54,7 +54,7 @@
54
54
  "codemirror-lang-elixir": "4.0.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^110.48.0",
57
+ "@atlaskit/editor-common": "^111.0.0",
58
58
  "react": "^18.2.0",
59
59
  "react-intl-next": "npm:react-intl@^5.18.1"
60
60
  },
@@ -214,7 +214,7 @@ class CodeBlockAdvancedNodeView implements NodeView {
214
214
  }
215
215
  }
216
216
 
217
- destroy() {
217
+ destroy(): void {
218
218
  // ED-27428: CodeMirror gets into an infinite loop as it detects mutations on removed
219
219
  // decorations. When we change the breakout we destroy the node and cleanup these decorations from
220
220
  // codemirror
@@ -229,7 +229,7 @@ class CodeBlockAdvancedNodeView implements NodeView {
229
229
  }
230
230
  }
231
231
 
232
- forwardUpdate(update: ViewUpdate) {
232
+ forwardUpdate(update: ViewUpdate): void {
233
233
  if (this.updating || !this.cm.hasFocus) {
234
234
  return;
235
235
  }
@@ -242,7 +242,7 @@ class CodeBlockAdvancedNodeView implements NodeView {
242
242
  });
243
243
  }
244
244
 
245
- setSelection(anchor: number, head: number) {
245
+ setSelection(anchor: number, head: number): void {
246
246
  if (!this.maybeTryingToReachNodeSelection) {
247
247
  this.cm.focus();
248
248
  }
@@ -18,7 +18,7 @@ export class LanguageLoader {
18
18
  ) => void,
19
19
  ) {}
20
20
 
21
- async updateLanguage(languageName: string) {
21
+ async updateLanguage(languageName: string): Promise<void> {
22
22
  if (languageName === this.languageName) {
23
23
  return;
24
24
  }