@atlaskit/editor-plugin-code-block 2.0.0 → 3.0.1
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 +20 -0
- package/dist/cjs/plugin.js +0 -2
- package/dist/cjs/pm-plugins/main.js +0 -1
- package/dist/es2019/plugin.js +5 -9
- package/dist/es2019/pm-plugins/main.js +0 -1
- package/dist/esm/plugin.js +0 -2
- package/dist/esm/pm-plugins/main.js +0 -1
- package/dist/types/pm-plugins/main.d.ts +2 -3
- package/dist/types/types.d.ts +1 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -3
- package/dist/types-ts4.5/types.d.ts +1 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [#117111](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117111)
|
|
14
|
+
[`6f06e433f9724`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6f06e433f9724) -
|
|
15
|
+
Remove option for "appearance" from `editor-plugin-code-block`. This configuration is completely
|
|
16
|
+
unused and has no effect. It is safe to remove if you are currently using this prop for
|
|
17
|
+
configuration.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 2.0.0
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -36,11 +36,9 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
36
36
|
return [{
|
|
37
37
|
name: 'codeBlock',
|
|
38
38
|
plugin: function plugin(_ref2) {
|
|
39
|
-
var _options$appearance;
|
|
40
39
|
var getIntl = _ref2.getIntl;
|
|
41
40
|
return (0, _main.createPlugin)(_objectSpread(_objectSpread({}, options), {}, {
|
|
42
41
|
getIntl: getIntl,
|
|
43
|
-
appearance: (_options$appearance = options === null || options === void 0 ? void 0 : options.appearance) !== null && _options$appearance !== void 0 ? _options$appearance : 'comment',
|
|
44
42
|
api: api
|
|
45
43
|
}));
|
|
46
44
|
}
|
|
@@ -22,7 +22,6 @@ var createPlugin = exports.createPlugin = function createPlugin(_ref) {
|
|
|
22
22
|
var _ref$useLongPressSele = _ref.useLongPressSelection,
|
|
23
23
|
useLongPressSelection = _ref$useLongPressSele === void 0 ? false : _ref$useLongPressSele,
|
|
24
24
|
getIntl = _ref.getIntl,
|
|
25
|
-
appearance = _ref.appearance,
|
|
26
25
|
_ref$allowComposition = _ref.allowCompositionInputOverride,
|
|
27
26
|
allowCompositionInputOverride = _ref$allowComposition === void 0 ? false : _ref$allowComposition,
|
|
28
27
|
api = _ref.api;
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -27,15 +27,11 @@ const codeBlockPlugin = ({
|
|
|
27
27
|
name: 'codeBlock',
|
|
28
28
|
plugin: ({
|
|
29
29
|
getIntl
|
|
30
|
-
}) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
appearance: (_options$appearance = options === null || options === void 0 ? void 0 : options.appearance) !== null && _options$appearance !== void 0 ? _options$appearance : 'comment',
|
|
36
|
-
api
|
|
37
|
-
});
|
|
38
|
-
}
|
|
30
|
+
}) => createPlugin({
|
|
31
|
+
...options,
|
|
32
|
+
getIntl,
|
|
33
|
+
api
|
|
34
|
+
})
|
|
39
35
|
}, {
|
|
40
36
|
name: 'codeBlockInputRule',
|
|
41
37
|
plugin: ({
|
package/dist/esm/plugin.js
CHANGED
|
@@ -29,11 +29,9 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
|
|
|
29
29
|
return [{
|
|
30
30
|
name: 'codeBlock',
|
|
31
31
|
plugin: function plugin(_ref2) {
|
|
32
|
-
var _options$appearance;
|
|
33
32
|
var getIntl = _ref2.getIntl;
|
|
34
33
|
return createPlugin(_objectSpread(_objectSpread({}, options), {}, {
|
|
35
34
|
getIntl: getIntl,
|
|
36
|
-
appearance: (_options$appearance = options === null || options === void 0 ? void 0 : options.appearance) !== null && _options$appearance !== void 0 ? _options$appearance : 'comment',
|
|
37
35
|
api: api
|
|
38
36
|
}));
|
|
39
37
|
}
|
|
@@ -15,7 +15,6 @@ export var createPlugin = function createPlugin(_ref) {
|
|
|
15
15
|
var _ref$useLongPressSele = _ref.useLongPressSelection,
|
|
16
16
|
useLongPressSelection = _ref$useLongPressSele === void 0 ? false : _ref$useLongPressSele,
|
|
17
17
|
getIntl = _ref.getIntl,
|
|
18
|
-
appearance = _ref.appearance,
|
|
19
18
|
_ref$allowComposition = _ref.allowCompositionInputOverride,
|
|
20
19
|
allowCompositionInputOverride = _ref$allowComposition === void 0 ? false : _ref$allowComposition,
|
|
21
20
|
api = _ref.api;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { CodeBlockPlugin } from '../index';
|
|
5
5
|
import type { CodeBlockState } from './main-state';
|
|
6
|
-
export declare const createPlugin: ({ useLongPressSelection, getIntl,
|
|
6
|
+
export declare const createPlugin: ({ useLongPressSelection, getIntl, allowCompositionInputOverride, api, }: {
|
|
7
7
|
useLongPressSelection?: boolean | undefined;
|
|
8
8
|
getIntl: () => IntlShape;
|
|
9
|
-
appearance: EditorAppearance;
|
|
10
9
|
allowCompositionInputOverride?: boolean | undefined;
|
|
11
10
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"codeBlock", {
|
|
12
11
|
pluginConfiguration: import("../types").CodeBlockOptions | undefined;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
2
2
|
export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
|
|
3
3
|
allowCopyToClipboard?: boolean;
|
|
4
4
|
allowCompositionInputOverride?: boolean;
|
|
5
|
-
appearance?: EditorAppearance | undefined;
|
|
6
5
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { CodeBlockPlugin } from '../index';
|
|
5
5
|
import type { CodeBlockState } from './main-state';
|
|
6
|
-
export declare const createPlugin: ({ useLongPressSelection, getIntl,
|
|
6
|
+
export declare const createPlugin: ({ useLongPressSelection, getIntl, allowCompositionInputOverride, api, }: {
|
|
7
7
|
useLongPressSelection?: boolean | undefined;
|
|
8
8
|
getIntl: () => IntlShape;
|
|
9
|
-
appearance: EditorAppearance;
|
|
10
9
|
allowCompositionInputOverride?: boolean | undefined;
|
|
11
10
|
api?: import("@atlaskit/editor-common/types").EditorInjectionAPI<"codeBlock", {
|
|
12
11
|
pluginConfiguration: import("../types").CodeBlockOptions | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
2
2
|
export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
|
|
3
3
|
allowCopyToClipboard?: boolean;
|
|
4
4
|
allowCompositionInputOverride?: boolean;
|
|
5
|
-
appearance?: EditorAppearance | undefined;
|
|
6
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"team": "Editor:
|
|
11
|
+
"team": "Editor: Core Experiences",
|
|
12
12
|
"singleton": true,
|
|
13
13
|
"inPublicMirror": false,
|
|
14
14
|
"releaseModel": "continuous",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^39.0.3",
|
|
37
|
-
"@atlaskit/code": "^15.
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/code": "^15.4.0",
|
|
38
|
+
"@atlaskit/editor-common": "^85.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-composition": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
44
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/icon": "^22.6.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|