@atlaskit/editor-plugin-code-block 0.1.5 → 0.1.7
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 +12 -0
- package/dist/types/language-list.d.ts +48 -0
- package/dist/types-ts4.5/language-list.d.ts +81 -0
- package/package.json +7 -4
- package/tmp/api-report-tmp.d.ts +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 0.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763) [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) - update ADF schema
|
|
8
|
+
|
|
9
|
+
## 0.1.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
14
|
+
|
|
3
15
|
## 0.1.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -306,6 +306,22 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
306
306
|
readonly name: "SplunkSPL";
|
|
307
307
|
readonly alias: readonly ["splunk-spl"];
|
|
308
308
|
readonly value: "splunk-spl";
|
|
309
|
+
} | {
|
|
310
|
+
readonly name: "Dockerfile";
|
|
311
|
+
readonly alias: readonly ["docker", "dockerfile"];
|
|
312
|
+
readonly value: "dockerfile";
|
|
313
|
+
} | {
|
|
314
|
+
readonly name: "HCL";
|
|
315
|
+
readonly alias: readonly ["hcl", "terraform"];
|
|
316
|
+
readonly value: "hcl";
|
|
317
|
+
} | {
|
|
318
|
+
readonly name: "NGINX";
|
|
319
|
+
readonly alias: readonly ["nginx"];
|
|
320
|
+
readonly value: "nginx";
|
|
321
|
+
} | {
|
|
322
|
+
readonly name: "Protocol Buffers";
|
|
323
|
+
readonly alias: readonly ["protobuf", "proto"];
|
|
324
|
+
readonly value: "protobuf";
|
|
309
325
|
} | {
|
|
310
326
|
name: string;
|
|
311
327
|
alias: string[];
|
|
@@ -620,6 +636,22 @@ export declare function findMatchedLanguage(supportedLanguages: Language[], lang
|
|
|
620
636
|
readonly name: "SplunkSPL";
|
|
621
637
|
readonly alias: readonly ["splunk-spl"];
|
|
622
638
|
readonly value: "splunk-spl";
|
|
639
|
+
} | {
|
|
640
|
+
readonly name: "Dockerfile";
|
|
641
|
+
readonly alias: readonly ["docker", "dockerfile"];
|
|
642
|
+
readonly value: "dockerfile";
|
|
643
|
+
} | {
|
|
644
|
+
readonly name: "HCL";
|
|
645
|
+
readonly alias: readonly ["hcl", "terraform"];
|
|
646
|
+
readonly value: "hcl";
|
|
647
|
+
} | {
|
|
648
|
+
readonly name: "NGINX";
|
|
649
|
+
readonly alias: readonly ["nginx"];
|
|
650
|
+
readonly value: "nginx";
|
|
651
|
+
} | {
|
|
652
|
+
readonly name: "Protocol Buffers";
|
|
653
|
+
readonly alias: readonly ["protobuf", "proto"];
|
|
654
|
+
readonly value: "protobuf";
|
|
623
655
|
} | {
|
|
624
656
|
name: string;
|
|
625
657
|
alias: string[];
|
|
@@ -935,6 +967,22 @@ export declare function createLanguageList(supportedLanguages: Language[]): ({
|
|
|
935
967
|
readonly name: "SplunkSPL";
|
|
936
968
|
readonly alias: readonly ["splunk-spl"];
|
|
937
969
|
readonly value: "splunk-spl";
|
|
970
|
+
} | {
|
|
971
|
+
readonly name: "Dockerfile";
|
|
972
|
+
readonly alias: readonly ["docker", "dockerfile"];
|
|
973
|
+
readonly value: "dockerfile";
|
|
974
|
+
} | {
|
|
975
|
+
readonly name: "HCL";
|
|
976
|
+
readonly alias: readonly ["hcl", "terraform"];
|
|
977
|
+
readonly value: "hcl";
|
|
978
|
+
} | {
|
|
979
|
+
readonly name: "NGINX";
|
|
980
|
+
readonly alias: readonly ["nginx"];
|
|
981
|
+
readonly value: "nginx";
|
|
982
|
+
} | {
|
|
983
|
+
readonly name: "Protocol Buffers";
|
|
984
|
+
readonly alias: readonly ["protobuf", "proto"];
|
|
985
|
+
readonly value: "protobuf";
|
|
938
986
|
} | {
|
|
939
987
|
name: string;
|
|
940
988
|
alias: string[];
|
|
@@ -539,6 +539,33 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
539
539
|
"splunk-spl"
|
|
540
540
|
];
|
|
541
541
|
readonly value: "splunk-spl";
|
|
542
|
+
} | {
|
|
543
|
+
readonly name: "Dockerfile";
|
|
544
|
+
readonly alias: readonly [
|
|
545
|
+
"docker",
|
|
546
|
+
"dockerfile"
|
|
547
|
+
];
|
|
548
|
+
readonly value: "dockerfile";
|
|
549
|
+
} | {
|
|
550
|
+
readonly name: "HCL";
|
|
551
|
+
readonly alias: readonly [
|
|
552
|
+
"hcl",
|
|
553
|
+
"terraform"
|
|
554
|
+
];
|
|
555
|
+
readonly value: "hcl";
|
|
556
|
+
} | {
|
|
557
|
+
readonly name: "NGINX";
|
|
558
|
+
readonly alias: readonly [
|
|
559
|
+
"nginx"
|
|
560
|
+
];
|
|
561
|
+
readonly value: "nginx";
|
|
562
|
+
} | {
|
|
563
|
+
readonly name: "Protocol Buffers";
|
|
564
|
+
readonly alias: readonly [
|
|
565
|
+
"protobuf",
|
|
566
|
+
"proto"
|
|
567
|
+
];
|
|
568
|
+
readonly value: "protobuf";
|
|
542
569
|
} | {
|
|
543
570
|
name: string;
|
|
544
571
|
alias: string[];
|
|
@@ -1086,6 +1113,33 @@ export declare function findMatchedLanguage(supportedLanguages: Language[], lang
|
|
|
1086
1113
|
"splunk-spl"
|
|
1087
1114
|
];
|
|
1088
1115
|
readonly value: "splunk-spl";
|
|
1116
|
+
} | {
|
|
1117
|
+
readonly name: "Dockerfile";
|
|
1118
|
+
readonly alias: readonly [
|
|
1119
|
+
"docker",
|
|
1120
|
+
"dockerfile"
|
|
1121
|
+
];
|
|
1122
|
+
readonly value: "dockerfile";
|
|
1123
|
+
} | {
|
|
1124
|
+
readonly name: "HCL";
|
|
1125
|
+
readonly alias: readonly [
|
|
1126
|
+
"hcl",
|
|
1127
|
+
"terraform"
|
|
1128
|
+
];
|
|
1129
|
+
readonly value: "hcl";
|
|
1130
|
+
} | {
|
|
1131
|
+
readonly name: "NGINX";
|
|
1132
|
+
readonly alias: readonly [
|
|
1133
|
+
"nginx"
|
|
1134
|
+
];
|
|
1135
|
+
readonly value: "nginx";
|
|
1136
|
+
} | {
|
|
1137
|
+
readonly name: "Protocol Buffers";
|
|
1138
|
+
readonly alias: readonly [
|
|
1139
|
+
"protobuf",
|
|
1140
|
+
"proto"
|
|
1141
|
+
];
|
|
1142
|
+
readonly value: "protobuf";
|
|
1089
1143
|
} | {
|
|
1090
1144
|
name: string;
|
|
1091
1145
|
alias: string[];
|
|
@@ -1634,6 +1688,33 @@ export declare function createLanguageList(supportedLanguages: Language[]): ({
|
|
|
1634
1688
|
"splunk-spl"
|
|
1635
1689
|
];
|
|
1636
1690
|
readonly value: "splunk-spl";
|
|
1691
|
+
} | {
|
|
1692
|
+
readonly name: "Dockerfile";
|
|
1693
|
+
readonly alias: readonly [
|
|
1694
|
+
"docker",
|
|
1695
|
+
"dockerfile"
|
|
1696
|
+
];
|
|
1697
|
+
readonly value: "dockerfile";
|
|
1698
|
+
} | {
|
|
1699
|
+
readonly name: "HCL";
|
|
1700
|
+
readonly alias: readonly [
|
|
1701
|
+
"hcl",
|
|
1702
|
+
"terraform"
|
|
1703
|
+
];
|
|
1704
|
+
readonly value: "hcl";
|
|
1705
|
+
} | {
|
|
1706
|
+
readonly name: "NGINX";
|
|
1707
|
+
readonly alias: readonly [
|
|
1708
|
+
"nginx"
|
|
1709
|
+
];
|
|
1710
|
+
readonly value: "nginx";
|
|
1711
|
+
} | {
|
|
1712
|
+
readonly name: "Protocol Buffers";
|
|
1713
|
+
readonly alias: readonly [
|
|
1714
|
+
"protobuf",
|
|
1715
|
+
"proto"
|
|
1716
|
+
];
|
|
1717
|
+
readonly value: "protobuf";
|
|
1637
1718
|
} | {
|
|
1638
1719
|
name: string;
|
|
1639
1720
|
alias: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
-
"@atlaskit/code": "^15.
|
|
36
|
-
"@atlaskit/editor-common": "^76.
|
|
34
|
+
"@atlaskit/adf-schema": "^35.0.0",
|
|
35
|
+
"@atlaskit/code": "^15.1.0",
|
|
36
|
+
"@atlaskit/editor-common": "^76.24.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-composition": "^0.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@af/integration-testing": "*",
|
|
52
52
|
"@af/visual-regression": "*",
|
|
53
|
+
"@atlaskit/analytics-next": "^9.1.0",
|
|
54
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.0.0",
|
|
55
|
+
"@atlaskit/editor-plugin-indentation": "^0.2.0",
|
|
53
56
|
"@atlaskit/ssr": "*",
|
|
54
57
|
"@atlaskit/visual-regression": "*",
|
|
55
58
|
"@atlaskit/webdriver-runner": "*",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/editor-plugin-code-block"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { compositionPlugin } from '@atlaskit/editor-plugin-composition';
|
|
10
|
-
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
11
|
-
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
12
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
|
-
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
14
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
15
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
16
|
-
|
|
17
|
-
// @public (undocumented)
|
|
18
|
-
export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
|
|
19
|
-
// (undocumented)
|
|
20
|
-
allowCompositionInputOverride?: boolean;
|
|
21
|
-
// (undocumented)
|
|
22
|
-
allowCopyToClipboard?: boolean;
|
|
23
|
-
// (undocumented)
|
|
24
|
-
appearance?: EditorAppearance | undefined;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// @public (undocumented)
|
|
28
|
-
export type CodeBlockPlugin = NextEditorPlugin<'codeBlock', {
|
|
29
|
-
pluginConfiguration: CodeBlockOptions;
|
|
30
|
-
dependencies: [
|
|
31
|
-
typeof decorationsPlugin,
|
|
32
|
-
typeof compositionPlugin,
|
|
33
|
-
OptionalPlugin<typeof analyticsPlugin>
|
|
34
|
-
];
|
|
35
|
-
actions: {
|
|
36
|
-
insertCodeBlock: (inputMethod: INPUT_METHOD) => Command;
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
39
|
-
|
|
40
|
-
// @public (undocumented)
|
|
41
|
-
export const codeBlockPlugin: CodeBlockPlugin;
|
|
42
|
-
|
|
43
|
-
// (No @packageDocumentation comment for this package)
|
|
44
|
-
|
|
45
|
-
```
|