@atlaskit/editor-plugin-code-block 4.2.1 → 4.2.3
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 +14 -0
- package/dist/cjs/pm-plugins/toolbar.js +2 -2
- package/dist/es2019/pm-plugins/toolbar.js +1 -1
- package/dist/esm/pm-plugins/toolbar.js +1 -1
- package/dist/types/pm-plugins/language-list.d.ts +12 -12
- package/dist/types-ts4.5/pm-plugins/language-list.d.ts +18 -18
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 4.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#131493](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131493)
|
|
8
|
+
[`3bc29223cad42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3bc29223cad42) -
|
|
9
|
+
ENGHEALTH-23697 Iconography update for editor-plugin-code-block
|
|
10
|
+
|
|
11
|
+
## 4.2.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.2.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,8 +11,8 @@ var _messages = _interopRequireWildcard(require("@atlaskit/editor-common/message
|
|
|
11
11
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
12
12
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
13
13
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/migration/copy"));
|
|
14
|
+
var _deleteEditorRemove = _interopRequireDefault(require("@atlaskit/icon/core/migration/delete--editor-remove"));
|
|
14
15
|
var _textWrap = _interopRequireDefault(require("@atlaskit/icon/core/text-wrap"));
|
|
15
|
-
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
16
16
|
var _editorCommands = require("../editor-commands");
|
|
17
17
|
var _WrapIcon = require("../ui/icons/WrapIcon");
|
|
18
18
|
var _codeBlockCopySelectionPlugin = require("./codeBlockCopySelectionPlugin");
|
|
@@ -96,7 +96,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
|
|
|
96
96
|
type: 'button',
|
|
97
97
|
appearance: 'danger',
|
|
98
98
|
icon: _delete.default,
|
|
99
|
-
iconFallback:
|
|
99
|
+
iconFallback: _deleteEditorRemove.default,
|
|
100
100
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
|
|
101
101
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, false),
|
|
102
102
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(nodeType, true),
|
|
@@ -3,8 +3,8 @@ import commonMessages, { codeBlockButtonMessages } from '@atlaskit/editor-common
|
|
|
3
3
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
5
5
|
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
6
|
+
import RemoveIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
|
|
6
7
|
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
7
|
-
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
8
8
|
import { changeLanguage, copyContentToClipboard, removeCodeBlock, resetCopiedState, toggleWordWrapStateForCodeBlockNode } from '../editor-commands';
|
|
9
9
|
import { WrapIcon } from '../ui/icons/WrapIcon';
|
|
10
10
|
import { provideVisualFeedbackForCopyButton, removeVisualFeedbackForCopyButton } from './codeBlockCopySelectionPlugin';
|
|
@@ -3,8 +3,8 @@ import commonMessages, { codeBlockButtonMessages } from '@atlaskit/editor-common
|
|
|
3
3
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
5
5
|
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
6
|
+
import RemoveIcon from '@atlaskit/icon/core/migration/delete--editor-remove';
|
|
6
7
|
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
7
|
-
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
8
8
|
import { changeLanguage, copyContentToClipboard, removeCodeBlock, resetCopiedState, toggleWordWrapStateForCodeBlockNode } from '../editor-commands';
|
|
9
9
|
import { WrapIcon } from '../ui/icons/WrapIcon';
|
|
10
10
|
import { provideVisualFeedbackForCopyButton, removeVisualFeedbackForCopyButton } from './codeBlockCopySelectionPlugin';
|
|
@@ -254,10 +254,6 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
254
254
|
readonly name: "Vala";
|
|
255
255
|
readonly alias: readonly ["vala", "vapi"];
|
|
256
256
|
readonly value: "vala";
|
|
257
|
-
} | {
|
|
258
|
-
readonly name: "ABAP";
|
|
259
|
-
readonly alias: readonly ["abap"];
|
|
260
|
-
readonly value: "sql";
|
|
261
257
|
} | {
|
|
262
258
|
readonly name: "LiveScript";
|
|
263
259
|
readonly alias: readonly ["livescript", "live-script"];
|
|
@@ -322,6 +318,10 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
322
318
|
readonly name: "Protocol Buffers";
|
|
323
319
|
readonly alias: readonly ["protobuf", "proto"];
|
|
324
320
|
readonly value: "protobuf";
|
|
321
|
+
} | {
|
|
322
|
+
readonly name: "ABAP";
|
|
323
|
+
readonly alias: readonly ["abap"];
|
|
324
|
+
readonly value: "sql";
|
|
325
325
|
} | {
|
|
326
326
|
name: string;
|
|
327
327
|
alias: string[];
|
|
@@ -584,10 +584,6 @@ export declare function findMatchedLanguage(supportedLanguages: Language[], lang
|
|
|
584
584
|
readonly name: "Vala";
|
|
585
585
|
readonly alias: readonly ["vala", "vapi"];
|
|
586
586
|
readonly value: "vala";
|
|
587
|
-
} | {
|
|
588
|
-
readonly name: "ABAP";
|
|
589
|
-
readonly alias: readonly ["abap"];
|
|
590
|
-
readonly value: "sql";
|
|
591
587
|
} | {
|
|
592
588
|
readonly name: "LiveScript";
|
|
593
589
|
readonly alias: readonly ["livescript", "live-script"];
|
|
@@ -652,6 +648,10 @@ export declare function findMatchedLanguage(supportedLanguages: Language[], lang
|
|
|
652
648
|
readonly name: "Protocol Buffers";
|
|
653
649
|
readonly alias: readonly ["protobuf", "proto"];
|
|
654
650
|
readonly value: "protobuf";
|
|
651
|
+
} | {
|
|
652
|
+
readonly name: "ABAP";
|
|
653
|
+
readonly alias: readonly ["abap"];
|
|
654
|
+
readonly value: "sql";
|
|
655
655
|
} | {
|
|
656
656
|
name: string;
|
|
657
657
|
alias: string[];
|
|
@@ -915,10 +915,6 @@ export declare function createLanguageList(supportedLanguages: Language[]): ({
|
|
|
915
915
|
readonly name: "Vala";
|
|
916
916
|
readonly alias: readonly ["vala", "vapi"];
|
|
917
917
|
readonly value: "vala";
|
|
918
|
-
} | {
|
|
919
|
-
readonly name: "ABAP";
|
|
920
|
-
readonly alias: readonly ["abap"];
|
|
921
|
-
readonly value: "sql";
|
|
922
918
|
} | {
|
|
923
919
|
readonly name: "LiveScript";
|
|
924
920
|
readonly alias: readonly ["livescript", "live-script"];
|
|
@@ -983,6 +979,10 @@ export declare function createLanguageList(supportedLanguages: Language[]): ({
|
|
|
983
979
|
readonly name: "Protocol Buffers";
|
|
984
980
|
readonly alias: readonly ["protobuf", "proto"];
|
|
985
981
|
readonly value: "protobuf";
|
|
982
|
+
} | {
|
|
983
|
+
readonly name: "ABAP";
|
|
984
|
+
readonly alias: readonly ["abap"];
|
|
985
|
+
readonly value: "sql";
|
|
986
986
|
} | {
|
|
987
987
|
name: string;
|
|
988
988
|
alias: string[];
|
|
@@ -454,12 +454,6 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
454
454
|
"vapi"
|
|
455
455
|
];
|
|
456
456
|
readonly value: "vala";
|
|
457
|
-
} | {
|
|
458
|
-
readonly name: "ABAP";
|
|
459
|
-
readonly alias: readonly [
|
|
460
|
-
"abap"
|
|
461
|
-
];
|
|
462
|
-
readonly value: "sql";
|
|
463
457
|
} | {
|
|
464
458
|
readonly name: "LiveScript";
|
|
465
459
|
readonly alias: readonly [
|
|
@@ -566,6 +560,12 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
566
560
|
"proto"
|
|
567
561
|
];
|
|
568
562
|
readonly value: "protobuf";
|
|
563
|
+
} | {
|
|
564
|
+
readonly name: "ABAP";
|
|
565
|
+
readonly alias: readonly [
|
|
566
|
+
"abap"
|
|
567
|
+
];
|
|
568
|
+
readonly value: "sql";
|
|
569
569
|
} | {
|
|
570
570
|
name: string;
|
|
571
571
|
alias: string[];
|
|
@@ -1028,12 +1028,6 @@ export declare function findMatchedLanguage(supportedLanguages: Language[], lang
|
|
|
1028
1028
|
"vapi"
|
|
1029
1029
|
];
|
|
1030
1030
|
readonly value: "vala";
|
|
1031
|
-
} | {
|
|
1032
|
-
readonly name: "ABAP";
|
|
1033
|
-
readonly alias: readonly [
|
|
1034
|
-
"abap"
|
|
1035
|
-
];
|
|
1036
|
-
readonly value: "sql";
|
|
1037
1031
|
} | {
|
|
1038
1032
|
readonly name: "LiveScript";
|
|
1039
1033
|
readonly alias: readonly [
|
|
@@ -1140,6 +1134,12 @@ export declare function findMatchedLanguage(supportedLanguages: Language[], lang
|
|
|
1140
1134
|
"proto"
|
|
1141
1135
|
];
|
|
1142
1136
|
readonly value: "protobuf";
|
|
1137
|
+
} | {
|
|
1138
|
+
readonly name: "ABAP";
|
|
1139
|
+
readonly alias: readonly [
|
|
1140
|
+
"abap"
|
|
1141
|
+
];
|
|
1142
|
+
readonly value: "sql";
|
|
1143
1143
|
} | {
|
|
1144
1144
|
name: string;
|
|
1145
1145
|
alias: string[];
|
|
@@ -1603,12 +1603,6 @@ export declare function createLanguageList(supportedLanguages: Language[]): ({
|
|
|
1603
1603
|
"vapi"
|
|
1604
1604
|
];
|
|
1605
1605
|
readonly value: "vala";
|
|
1606
|
-
} | {
|
|
1607
|
-
readonly name: "ABAP";
|
|
1608
|
-
readonly alias: readonly [
|
|
1609
|
-
"abap"
|
|
1610
|
-
];
|
|
1611
|
-
readonly value: "sql";
|
|
1612
1606
|
} | {
|
|
1613
1607
|
readonly name: "LiveScript";
|
|
1614
1608
|
readonly alias: readonly [
|
|
@@ -1715,6 +1709,12 @@ export declare function createLanguageList(supportedLanguages: Language[]): ({
|
|
|
1715
1709
|
"proto"
|
|
1716
1710
|
];
|
|
1717
1711
|
readonly value: "protobuf";
|
|
1712
|
+
} | {
|
|
1713
|
+
readonly name: "ABAP";
|
|
1714
|
+
readonly alias: readonly [
|
|
1715
|
+
"abap"
|
|
1716
|
+
];
|
|
1717
|
+
readonly value: "sql";
|
|
1718
1718
|
} | {
|
|
1719
1719
|
name: string;
|
|
1720
1720
|
alias: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
-
"@atlaskit/code": "^16.
|
|
36
|
-
"@atlaskit/editor-common": "^102.
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
35
|
+
"@atlaskit/code": "^16.1.0",
|
|
36
|
+
"@atlaskit/editor-common": "^102.13.0",
|
|
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",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
|
-
"@atlaskit/icon": "^25.
|
|
42
|
+
"@atlaskit/icon": "^25.2.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^4.4.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|