@atlaskit/code 15.0.0 → 15.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,11 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 15.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#42903](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42903) [`96e3a0ee5b7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/96e3a0ee5b7) - [ux] Add support for Dockerfile, HCL, NGINX and Protobuf languages
8
+
3
9
  ## 15.0.0
4
10
 
5
11
  ### Major Changes
@@ -11,6 +11,8 @@ Object.defineProperty(exports, "CODE_BLOCK_SELECTOR", {
11
11
  });
12
12
  exports.SUPPORTED_LANGUAGES = void 0;
13
13
  var _constants = require("./internal/theme/constants");
14
+ // The full list of languages that can potentially be supported is found in
15
+ // https://prismjs.com/#supported-languages
14
16
  var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
15
17
  name: 'PHP',
16
18
  alias: ['php', 'php3', 'php4', 'php5'],
@@ -319,4 +321,20 @@ var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
319
321
  name: 'SplunkSPL',
320
322
  alias: ['splunk-spl'],
321
323
  value: 'splunk-spl'
324
+ }, {
325
+ name: 'Dockerfile',
326
+ alias: ['docker', 'dockerfile'],
327
+ value: 'dockerfile'
328
+ }, {
329
+ name: 'HCL',
330
+ alias: ['hcl', 'terraform'],
331
+ value: 'hcl'
332
+ }, {
333
+ name: 'NGINX',
334
+ alias: ['nginx'],
335
+ value: 'nginx'
336
+ }, {
337
+ name: 'Protocol Buffers',
338
+ alias: ['protobuf', 'proto'],
339
+ value: 'protobuf'
322
340
  }];
@@ -1,3 +1,5 @@
1
+ // The full list of languages that can potentially be supported is found in
2
+ // https://prismjs.com/#supported-languages
1
3
  export const SUPPORTED_LANGUAGES = [{
2
4
  name: 'PHP',
3
5
  alias: ['php', 'php3', 'php4', 'php5'],
@@ -306,5 +308,21 @@ export const SUPPORTED_LANGUAGES = [{
306
308
  name: 'SplunkSPL',
307
309
  alias: ['splunk-spl'],
308
310
  value: 'splunk-spl'
311
+ }, {
312
+ name: 'Dockerfile',
313
+ alias: ['docker', 'dockerfile'],
314
+ value: 'dockerfile'
315
+ }, {
316
+ name: 'HCL',
317
+ alias: ['hcl', 'terraform'],
318
+ value: 'hcl'
319
+ }, {
320
+ name: 'NGINX',
321
+ alias: ['nginx'],
322
+ value: 'nginx'
323
+ }, {
324
+ name: 'Protocol Buffers',
325
+ alias: ['protobuf', 'proto'],
326
+ value: 'protobuf'
309
327
  }];
310
328
  export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
@@ -1,3 +1,5 @@
1
+ // The full list of languages that can potentially be supported is found in
2
+ // https://prismjs.com/#supported-languages
1
3
  export var SUPPORTED_LANGUAGES = [{
2
4
  name: 'PHP',
3
5
  alias: ['php', 'php3', 'php4', 'php5'],
@@ -306,5 +308,21 @@ export var SUPPORTED_LANGUAGES = [{
306
308
  name: 'SplunkSPL',
307
309
  alias: ['splunk-spl'],
308
310
  value: 'splunk-spl'
311
+ }, {
312
+ name: 'Dockerfile',
313
+ alias: ['docker', 'dockerfile'],
314
+ value: 'dockerfile'
315
+ }, {
316
+ name: 'HCL',
317
+ alias: ['hcl', 'terraform'],
318
+ value: 'hcl'
319
+ }, {
320
+ name: 'NGINX',
321
+ alias: ['nginx'],
322
+ value: 'nginx'
323
+ }, {
324
+ name: 'Protocol Buffers',
325
+ alias: ['protobuf', 'proto'],
326
+ value: 'protobuf'
309
327
  }];
310
328
  export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
@@ -306,6 +306,22 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
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
  export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
311
327
  export type Language = (typeof SUPPORTED_LANGUAGES)[number];
@@ -616,6 +616,37 @@ export declare const SUPPORTED_LANGUAGES: readonly [
616
616
  "splunk-spl"
617
617
  ];
618
618
  readonly value: "splunk-spl";
619
+ },
620
+ {
621
+ readonly name: "Dockerfile";
622
+ readonly alias: readonly [
623
+ "docker",
624
+ "dockerfile"
625
+ ];
626
+ readonly value: "dockerfile";
627
+ },
628
+ {
629
+ readonly name: "HCL";
630
+ readonly alias: readonly [
631
+ "hcl",
632
+ "terraform"
633
+ ];
634
+ readonly value: "hcl";
635
+ },
636
+ {
637
+ readonly name: "NGINX";
638
+ readonly alias: readonly [
639
+ "nginx"
640
+ ];
641
+ readonly value: "nginx";
642
+ },
643
+ {
644
+ readonly name: "Protocol Buffers";
645
+ readonly alias: readonly [
646
+ "protobuf",
647
+ "proto"
648
+ ];
649
+ readonly value: "protobuf";
619
650
  }
620
651
  ];
621
652
  export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "15.0.0",
3
+ "version": "15.1.0",
4
4
  "description": "Code highlights short strings of code snippets inline with body text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@atlaskit/codemod-utils": "^4.2.0",
30
30
  "@atlaskit/theme": "^12.6.0",
31
- "@atlaskit/tokens": "^1.28.0",
31
+ "@atlaskit/tokens": "^1.29.0",
32
32
  "@atlaskit/tooltip": "^18.0.0",
33
33
  "@atlaskit/visually-hidden": "^1.2.0",
34
34
  "@babel/runtime": "^7.0.0",
package/report.api.md CHANGED
@@ -836,6 +836,26 @@ export const SUPPORTED_LANGUAGES: readonly [
836
836
  readonly alias: readonly ['splunk-spl'];
837
837
  readonly value: 'splunk-spl';
838
838
  },
839
+ {
840
+ readonly name: 'Dockerfile';
841
+ readonly alias: readonly ['docker', 'dockerfile'];
842
+ readonly value: 'dockerfile';
843
+ },
844
+ {
845
+ readonly name: 'HCL';
846
+ readonly alias: readonly ['hcl', 'terraform'];
847
+ readonly value: 'hcl';
848
+ },
849
+ {
850
+ readonly name: 'NGINX';
851
+ readonly alias: readonly ['nginx'];
852
+ readonly value: 'nginx';
853
+ },
854
+ {
855
+ readonly name: 'Protocol Buffers';
856
+ readonly alias: readonly ['protobuf', 'proto'];
857
+ readonly value: 'protobuf';
858
+ },
839
859
  ];
840
860
 
841
861
  // @public (undocumented)
@@ -363,6 +363,22 @@ export const SUPPORTED_LANGUAGES: readonly [{
363
363
  readonly name: "SplunkSPL";
364
364
  readonly alias: readonly ["splunk-spl"];
365
365
  readonly value: "splunk-spl";
366
+ }, {
367
+ readonly name: "Dockerfile";
368
+ readonly alias: readonly ["docker", "dockerfile"];
369
+ readonly value: "dockerfile";
370
+ }, {
371
+ readonly name: "HCL";
372
+ readonly alias: readonly ["hcl", "terraform"];
373
+ readonly value: "hcl";
374
+ }, {
375
+ readonly name: "NGINX";
376
+ readonly alias: readonly ["nginx"];
377
+ readonly value: "nginx";
378
+ }, {
379
+ readonly name: "Protocol Buffers";
380
+ readonly alias: readonly ["protobuf", "proto"];
381
+ readonly value: "protobuf";
366
382
  }];
367
383
 
368
384
  // @public (undocumented)