@atlaskit/editor-plugin-code-block 4.2.8 → 4.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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 4.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
8
+ [`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
9
+ [https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
10
+ `@atlassian/confluence-presets` package with Confluence `full-page` preset is created
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 4.2.8
4
17
 
5
18
  ### Patch Changes
@@ -1,3 +1,3 @@
1
1
  export { default as codeBlockPlugin } from './codeBlockPlugin';
2
2
  export type { CodeBlockPlugin } from './codeBlockPluginType';
3
- export type { CodeBlockOptions } from './types';
3
+ export type { CodeBlockOptions, CodeBlockPluginOptions } from './types';
@@ -10,7 +10,7 @@ export declare const createPlugin: ({ useLongPressSelection, getIntl, allowCompo
10
10
  getIntl: () => IntlShape;
11
11
  allowCompositionInputOverride?: boolean | undefined;
12
12
  api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"codeBlock", {
13
- pluginConfiguration: import("../types").CodeBlockOptions | undefined;
13
+ pluginConfiguration: import("../types").CodeBlockPluginOptions | undefined;
14
14
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
15
15
  sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
16
16
  actions: {
@@ -1,8 +1,14 @@
1
1
  import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
2
- export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
2
+ export interface CodeBlockPluginOptions extends LongPressSelectionPluginOptions {
3
3
  allowCopyToClipboard?: boolean;
4
4
  allowCompositionInputOverride?: boolean;
5
5
  }
6
+ /**
7
+ * @private
8
+ * @deprecated Use {@link CodeBlockPluginOptions} instead.
9
+ * @see https://product-fabric.atlassian.net/browse/ED-27496
10
+ */
11
+ export type CodeBlockOptions = CodeBlockPluginOptions;
6
12
  export type CodeBlockLineAttributes = {
7
13
  lineStart: number;
8
14
  lineNumber: number;
@@ -1,3 +1,3 @@
1
1
  export { default as codeBlockPlugin } from './codeBlockPlugin';
2
2
  export type { CodeBlockPlugin } from './codeBlockPluginType';
3
- export type { CodeBlockOptions } from './types';
3
+ export type { CodeBlockOptions, CodeBlockPluginOptions } from './types';
@@ -10,7 +10,7 @@ export declare const createPlugin: ({ useLongPressSelection, getIntl, allowCompo
10
10
  getIntl: () => IntlShape;
11
11
  allowCompositionInputOverride?: boolean | undefined;
12
12
  api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"codeBlock", {
13
- pluginConfiguration: import("../types").CodeBlockOptions | undefined;
13
+ pluginConfiguration: import("../types").CodeBlockPluginOptions | undefined;
14
14
  dependencies: [
15
15
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
16
16
  sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
@@ -1,8 +1,14 @@
1
1
  import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
2
- export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
2
+ export interface CodeBlockPluginOptions extends LongPressSelectionPluginOptions {
3
3
  allowCopyToClipboard?: boolean;
4
4
  allowCompositionInputOverride?: boolean;
5
5
  }
6
+ /**
7
+ * @private
8
+ * @deprecated Use {@link CodeBlockPluginOptions} instead.
9
+ * @see https://product-fabric.atlassian.net/browse/ED-27496
10
+ */
11
+ export type CodeBlockOptions = CodeBlockPluginOptions;
6
12
  export type CodeBlockLineAttributes = {
7
13
  lineStart: number;
8
14
  lineNumber: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "4.2.8",
3
+ "version": "4.3.0",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^47.6.0",
35
35
  "@atlaskit/code": "^17.0.0",
36
- "@atlaskit/editor-common": "^103.0.0",
36
+ "@atlaskit/editor-common": "^103.4.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
38
38
  "@atlaskit/editor-plugin-composition": "^1.3.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^2.0.0",