@atlaskit/editor-plugin-code-block-advanced 5.0.0 → 5.1.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,22 @@
1
1
  # @atlaskit/editor-plugin-code-block-advanced
2
2
 
3
+ ## 5.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`64ec65231b4cf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64ec65231b4cf) -
8
+ EDITOR-1568 bump adf-schema for afm
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 5.0.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 5.0.0
4
21
 
5
22
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { CodeBlockAdvancedPlugin } from '../codeBlockAdvancedPluginType';
4
- export declare const createCodeBlockMenuItem: (api: ExtractInjectionAPI<CodeBlockAdvancedPlugin>) => () => React.JSX.Element;
4
+ export declare const createCodeBlockMenuItem: (api: ExtractInjectionAPI<CodeBlockAdvancedPlugin> | undefined) => () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { CodeBlockAdvancedPlugin } from '../codeBlockAdvancedPluginType';
4
- export declare const createCodeBlockMenuItem: (api: ExtractInjectionAPI<CodeBlockAdvancedPlugin>) => () => React.JSX.Element;
4
+ export declare const createCodeBlockMenuItem: (api: ExtractInjectionAPI<CodeBlockAdvancedPlugin> | undefined) => () => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,9 +28,9 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^51.0.0",
32
- "@atlaskit/editor-plugin-block-menu": "^2.0.0",
33
- "@atlaskit/editor-plugin-code-block": "^7.0.0",
31
+ "@atlaskit/adf-schema": "^51.1.1",
32
+ "@atlaskit/editor-plugin-block-menu": "^3.0.0",
33
+ "@atlaskit/editor-plugin-code-block": "^7.1.0",
34
34
  "@atlaskit/editor-plugin-editor-disabled": "^5.0.0",
35
35
  "@atlaskit/editor-plugin-find-replace": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-selection": "^5.0.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-toolbar": "^0.8.0",
40
40
  "@atlaskit/icon": "^28.1.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^12.9.0",
42
+ "@atlaskit/tmp-editor-statsig": "^12.14.0",
43
43
  "@atlaskit/tokens": "^6.3.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@codemirror/autocomplete": "6.18.4",
@@ -55,7 +55,7 @@
55
55
  "codemirror-lang-elixir": "4.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^109.0.0",
58
+ "@atlaskit/editor-common": "^109.3.0",
59
59
  "react": "^18.2.0",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1"
61
61
  },
@@ -49,6 +49,8 @@ const CodeBlockMenuItem = ({ api }: Props) => {
49
49
  );
50
50
  };
51
51
 
52
- export const createCodeBlockMenuItem = (api: ExtractInjectionAPI<CodeBlockAdvancedPlugin>) => {
52
+ export const createCodeBlockMenuItem = (
53
+ api: ExtractInjectionAPI<CodeBlockAdvancedPlugin> | undefined,
54
+ ) => {
53
55
  return () => <CodeBlockMenuItem api={api} />;
54
56
  };