@atlaskit/code 16.1.0 → 16.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,22 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 16.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#135906](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135906)
8
+ [`bf6acb8983b3c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bf6acb8983b3c) -
9
+ CodeBlock now supports syntax highlighting for the Handlebars templating language.
10
+
11
+ ## 16.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#135035](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135035)
16
+ [`0d6128bb1e136`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d6128bb1e136) -
17
+ CodeBlock now correctly applies syntax highlighting for the ABAP language. This change is no
18
+ longer behind a feature flag.
19
+
3
20
  ## 16.1.0
4
21
 
5
22
  ### Minor Changes
@@ -9,18 +9,12 @@ Object.defineProperty(exports, "CODE_BLOCK_SELECTOR", {
9
9
  return _constants.CODE_BLOCK_SELECTOR;
10
10
  }
11
11
  });
12
- exports.SUPPORTED_LANGUAGES_ABAP_FIX = exports.SUPPORTED_LANGUAGES = void 0;
12
+ exports.SUPPORTED_LANGUAGES = void 0;
13
13
  var _constants = require("./internal/theme/constants");
14
14
  // The full list of languages that can potentially be supported is found in
15
15
  // https://prismjs.com/#supported-languages
16
16
 
17
- /**
18
- * Sharing a list of supported languages to use between the exported variables.
19
- *
20
- * SUPPORTED_LANGUAGES_ABAP_FIX is used when fg('platform_dst_code_abap_syntax') is enabled,
21
- * and SUPPORTED_LANGUAGES is used when disabled. The only difference is the value of 'ABAP' entry.
22
- */
23
- var commonSupportedLanguages = [{
17
+ var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
24
18
  name: 'PHP',
25
19
  alias: ['php', 'php3', 'php4', 'php5'],
26
20
  value: 'php'
@@ -340,14 +334,12 @@ var commonSupportedLanguages = [{
340
334
  name: 'Protocol Buffers',
341
335
  alias: ['protobuf', 'proto'],
342
336
  value: 'protobuf'
343
- }];
344
- var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [].concat(commonSupportedLanguages, [{
345
- name: 'ABAP',
346
- alias: ['abap'],
347
- value: 'sql'
348
- }]);
349
- var SUPPORTED_LANGUAGES_ABAP_FIX = exports.SUPPORTED_LANGUAGES_ABAP_FIX = [].concat(commonSupportedLanguages, [{
337
+ }, {
338
+ name: 'Handlebars',
339
+ alias: ['handlebars', 'mustache'],
340
+ value: 'handlebars'
341
+ }, {
350
342
  name: 'ABAP',
351
343
  alias: ['abap'],
352
344
  value: 'abap'
353
- }]);
345
+ }];
@@ -6,14 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.normalizeLanguage = void 0;
8
8
  var _memoizeOne = _interopRequireDefault(require("memoize-one"));
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  var _constants = require("../../constants");
11
10
  var normalizeLanguage = exports.normalizeLanguage = (0, _memoizeOne.default)(function (language) {
12
11
  if (!language) {
13
12
  return '';
14
13
  }
15
- var supportLanguagesList = (0, _platformFeatureFlags.fg)('platform_dst_code_abap_syntax') ? _constants.SUPPORTED_LANGUAGES_ABAP_FIX : _constants.SUPPORTED_LANGUAGES;
16
- var match = supportLanguagesList.find(function (val) {
14
+ var match = _constants.SUPPORTED_LANGUAGES.find(function (val) {
17
15
  return val.name === language || val.alias.includes(language);
18
16
  });
19
17
  // Fallback to plain monospaced text if language passed but not supported
@@ -1,13 +1,7 @@
1
1
  // The full list of languages that can potentially be supported is found in
2
2
  // https://prismjs.com/#supported-languages
3
3
 
4
- /**
5
- * Sharing a list of supported languages to use between the exported variables.
6
- *
7
- * SUPPORTED_LANGUAGES_ABAP_FIX is used when fg('platform_dst_code_abap_syntax') is enabled,
8
- * and SUPPORTED_LANGUAGES is used when disabled. The only difference is the value of 'ABAP' entry.
9
- */
10
- const commonSupportedLanguages = [{
4
+ export const SUPPORTED_LANGUAGES = [{
11
5
  name: 'PHP',
12
6
  alias: ['php', 'php3', 'php4', 'php5'],
13
7
  value: 'php'
@@ -327,13 +321,11 @@ const commonSupportedLanguages = [{
327
321
  name: 'Protocol Buffers',
328
322
  alias: ['protobuf', 'proto'],
329
323
  value: 'protobuf'
330
- }];
331
- export const SUPPORTED_LANGUAGES = [...commonSupportedLanguages, {
332
- name: 'ABAP',
333
- alias: ['abap'],
334
- value: 'sql'
335
- }];
336
- export const SUPPORTED_LANGUAGES_ABAP_FIX = [...commonSupportedLanguages, {
324
+ }, {
325
+ name: 'Handlebars',
326
+ alias: ['handlebars', 'mustache'],
327
+ value: 'handlebars'
328
+ }, {
337
329
  name: 'ABAP',
338
330
  alias: ['abap'],
339
331
  value: 'abap'
@@ -1,12 +1,10 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
- import { SUPPORTED_LANGUAGES, SUPPORTED_LANGUAGES_ABAP_FIX } from '../../constants';
2
+ import { SUPPORTED_LANGUAGES } from '../../constants';
4
3
  export const normalizeLanguage = memoizeOne(language => {
5
4
  if (!language) {
6
5
  return '';
7
6
  }
8
- const supportLanguagesList = fg('platform_dst_code_abap_syntax') ? SUPPORTED_LANGUAGES_ABAP_FIX : SUPPORTED_LANGUAGES;
9
- const match = supportLanguagesList.find(val => {
7
+ const match = SUPPORTED_LANGUAGES.find(val => {
10
8
  return val.name === language || val.alias.includes(language);
11
9
  });
12
10
  // Fallback to plain monospaced text if language passed but not supported
@@ -1,13 +1,7 @@
1
1
  // The full list of languages that can potentially be supported is found in
2
2
  // https://prismjs.com/#supported-languages
3
3
 
4
- /**
5
- * Sharing a list of supported languages to use between the exported variables.
6
- *
7
- * SUPPORTED_LANGUAGES_ABAP_FIX is used when fg('platform_dst_code_abap_syntax') is enabled,
8
- * and SUPPORTED_LANGUAGES is used when disabled. The only difference is the value of 'ABAP' entry.
9
- */
10
- var commonSupportedLanguages = [{
4
+ export var SUPPORTED_LANGUAGES = [{
11
5
  name: 'PHP',
12
6
  alias: ['php', 'php3', 'php4', 'php5'],
13
7
  value: 'php'
@@ -327,15 +321,13 @@ var commonSupportedLanguages = [{
327
321
  name: 'Protocol Buffers',
328
322
  alias: ['protobuf', 'proto'],
329
323
  value: 'protobuf'
330
- }];
331
- export var SUPPORTED_LANGUAGES = [].concat(commonSupportedLanguages, [{
332
- name: 'ABAP',
333
- alias: ['abap'],
334
- value: 'sql'
335
- }]);
336
- export var SUPPORTED_LANGUAGES_ABAP_FIX = [].concat(commonSupportedLanguages, [{
324
+ }, {
325
+ name: 'Handlebars',
326
+ alias: ['handlebars', 'mustache'],
327
+ value: 'handlebars'
328
+ }, {
337
329
  name: 'ABAP',
338
330
  alias: ['abap'],
339
331
  value: 'abap'
340
- }]);
332
+ }];
341
333
  export { CODE_BLOCK_SELECTOR } from './internal/theme/constants';
@@ -1,12 +1,10 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
- import { SUPPORTED_LANGUAGES, SUPPORTED_LANGUAGES_ABAP_FIX } from '../../constants';
2
+ import { SUPPORTED_LANGUAGES } from '../../constants';
4
3
  export var normalizeLanguage = memoizeOne(function (language) {
5
4
  if (!language) {
6
5
  return '';
7
6
  }
8
- var supportLanguagesList = fg('platform_dst_code_abap_syntax') ? SUPPORTED_LANGUAGES_ABAP_FIX : SUPPORTED_LANGUAGES;
9
- var match = supportLanguagesList.find(function (val) {
7
+ var match = SUPPORTED_LANGUAGES.find(function (val) {
10
8
  return val.name === language || val.alias.includes(language);
11
9
  });
12
10
  // Fallback to plain monospaced text if language passed but not supported
@@ -319,330 +319,9 @@ export declare const SUPPORTED_LANGUAGES: readonly [{
319
319
  readonly alias: readonly ["protobuf", "proto"];
320
320
  readonly value: "protobuf";
321
321
  }, {
322
- readonly name: "ABAP";
323
- readonly alias: readonly ["abap"];
324
- readonly value: "sql";
325
- }];
326
- export declare const SUPPORTED_LANGUAGES_ABAP_FIX: readonly [{
327
- readonly name: "PHP";
328
- readonly alias: readonly ["php", "php3", "php4", "php5"];
329
- readonly value: "php";
330
- }, {
331
- readonly name: "Java";
332
- readonly alias: readonly ["java"];
333
- readonly value: "java";
334
- }, {
335
- readonly name: "CSharp";
336
- readonly alias: readonly ["csharp", "c#"];
337
- readonly value: "cs";
338
- }, {
339
- readonly name: "Python";
340
- readonly alias: readonly ["python", "py"];
341
- readonly value: "python";
342
- }, {
343
- readonly name: "JavaScript";
344
- readonly alias: readonly ["javascript", "js"];
345
- readonly value: "javascript";
346
- }, {
347
- readonly name: "Html";
348
- readonly alias: readonly ["html"];
349
- readonly value: "xml";
350
- }, {
351
- readonly name: "C++";
352
- readonly alias: readonly ["c++", "cpp", "clike"];
353
- readonly value: "cpp";
354
- }, {
355
- readonly name: "Ruby";
356
- readonly alias: readonly ["ruby", "rb", "duby"];
357
- readonly value: "ruby";
358
- }, {
359
- readonly name: "Objective-C";
360
- readonly alias: readonly ["objective-c", "objectivec", "obj-c", "objc"];
361
- readonly value: "objectivec";
362
- }, {
363
- readonly name: "C";
364
- readonly alias: readonly ["c"];
365
- readonly value: "cpp";
366
- }, {
367
- readonly name: "Swift";
368
- readonly alias: readonly ["swift"];
369
- readonly value: "swift";
370
- }, {
371
- readonly name: "TeX";
372
- readonly alias: readonly ["tex", "latex"];
373
- readonly value: "tex";
374
- }, {
375
- readonly name: "Shell";
376
- readonly alias: readonly ["shell", "bash", "sh", "ksh", "zsh"];
377
- readonly value: "shell";
378
- }, {
379
- readonly name: "Scala";
380
- readonly alias: readonly ["scala"];
381
- readonly value: "scala";
382
- }, {
383
- readonly name: "Go";
384
- readonly alias: readonly ["go"];
385
- readonly value: "go";
386
- }, {
387
- readonly name: "ActionScript";
388
- readonly alias: readonly ["actionscript", "actionscript3", "as"];
389
- readonly value: "actionscript";
390
- }, {
391
- readonly name: "ColdFusion";
392
- readonly alias: readonly ["coldfusion"];
393
- readonly value: "xml";
394
- }, {
395
- readonly name: "JavaFX";
396
- readonly alias: readonly ["javafx", "jfx"];
397
- readonly value: "java";
398
- }, {
399
- readonly name: "VbNet";
400
- readonly alias: readonly ["vbnet", "vb.net", "vfp", "clipper", "xbase"];
401
- readonly value: "vbnet";
402
- }, {
403
- readonly name: "JSON";
404
- readonly alias: readonly ["json"];
405
- readonly value: "json";
406
- }, {
407
- readonly name: "MATLAB";
408
- readonly alias: readonly ["matlab"];
409
- readonly value: "matlab";
410
- }, {
411
- readonly name: "Groovy";
412
- readonly alias: readonly ["groovy"];
413
- readonly value: "groovy";
414
- }, {
415
- readonly name: "SQL";
416
- readonly alias: readonly ["sql", "postgresql", "postgres", "plpgsql", "psql", "postgresql-console", "postgres-console", "tsql", "t-sql", "mysql", "sqlite"];
417
- readonly value: "sql";
418
- }, {
419
- readonly name: "R";
420
- readonly alias: readonly ["r"];
421
- readonly value: "r";
422
- }, {
423
- readonly name: "Perl";
424
- readonly alias: readonly ["perl", "pl"];
425
- readonly value: "perl";
426
- }, {
427
- readonly name: "Lua";
428
- readonly alias: readonly ["lua"];
429
- readonly value: "lua";
430
- }, {
431
- readonly name: "Pascal";
432
- readonly alias: readonly ["pas", "pascal", "objectpascal", "delphi"];
433
- readonly value: "pascal";
434
- }, {
435
- readonly name: "XML";
436
- readonly alias: readonly ["xml"];
437
- readonly value: "xml";
438
- }, {
439
- readonly name: "TypeScript";
440
- readonly alias: readonly ["typescript", "ts"];
441
- readonly value: "typescript";
442
- }, {
443
- readonly name: "CoffeeScript";
444
- readonly alias: readonly ["coffeescript", "coffee-script", "coffee"];
445
- readonly value: "coffeescript";
446
- }, {
447
- readonly name: "Haskell";
448
- readonly alias: readonly ["haskell", "hs"];
449
- readonly value: "haskell";
450
- }, {
451
- readonly name: "Puppet";
452
- readonly alias: readonly ["puppet"];
453
- readonly value: "puppet";
454
- }, {
455
- readonly name: "Arduino";
456
- readonly alias: readonly ["arduino"];
457
- readonly value: "arduino";
458
- }, {
459
- readonly name: "Fortran";
460
- readonly alias: readonly ["fortran"];
461
- readonly value: "fortran";
462
- }, {
463
- readonly name: "Erlang";
464
- readonly alias: readonly ["erlang", "erl"];
465
- readonly value: "erlang";
466
- }, {
467
- readonly name: "PowerShell";
468
- readonly alias: readonly ["powershell", "posh", "ps1", "psm1"];
469
- readonly value: "powershell";
470
- }, {
471
- readonly name: "Haxe";
472
- readonly alias: readonly ["haxe", "hx", "hxsl"];
473
- readonly value: "haxe";
474
- }, {
475
- readonly name: "Elixir";
476
- readonly alias: readonly ["elixir", "ex", "exs"];
477
- readonly value: "elixir";
478
- }, {
479
- readonly name: "Verilog";
480
- readonly alias: readonly ["verilog", "v"];
481
- readonly value: "verilog";
482
- }, {
483
- readonly name: "Rust";
484
- readonly alias: readonly ["rust"];
485
- readonly value: "rust";
486
- }, {
487
- readonly name: "VHDL";
488
- readonly alias: readonly ["vhdl"];
489
- readonly value: "vhdl";
490
- }, {
491
- readonly name: "Sass";
492
- readonly alias: readonly ["sass"];
493
- readonly value: "less";
494
- }, {
495
- readonly name: "OCaml";
496
- readonly alias: readonly ["ocaml"];
497
- readonly value: "ocaml";
498
- }, {
499
- readonly name: "Dart";
500
- readonly alias: readonly ["dart"];
501
- readonly value: "dart";
502
- }, {
503
- readonly name: "CSS";
504
- readonly alias: readonly ["css"];
505
- readonly value: "css";
506
- }, {
507
- readonly name: "reStructuredText";
508
- readonly alias: readonly ["restructuredtext", "rst", "rest"];
509
- readonly value: "rest";
510
- }, {
511
- readonly name: "Kotlin";
512
- readonly alias: readonly ["kotlin"];
513
- readonly value: "kotlin";
514
- }, {
515
- readonly name: "D";
516
- readonly alias: readonly ["d"];
517
- readonly value: "d";
518
- }, {
519
- readonly name: "Octave";
520
- readonly alias: readonly ["octave"];
521
- readonly value: "matlab";
522
- }, {
523
- readonly name: "QML";
524
- readonly alias: readonly ["qbs", "qml"];
525
- readonly value: "qml";
526
- }, {
527
- readonly name: "Prolog";
528
- readonly alias: readonly ["prolog"];
529
- readonly value: "prolog";
530
- }, {
531
- readonly name: "FoxPro";
532
- readonly alias: readonly ["foxpro", "purebasic"];
533
- readonly value: "purebasic";
534
- }, {
535
- readonly name: "Scheme";
536
- readonly alias: readonly ["scheme", "scm"];
537
- readonly value: "scheme";
538
- }, {
539
- readonly name: "CUDA";
540
- readonly alias: readonly ["cuda", "cu"];
541
- readonly value: "cpp";
542
- }, {
543
- readonly name: "Julia";
544
- readonly alias: readonly ["julia", "jl"];
545
- readonly value: "julia";
546
- }, {
547
- readonly name: "Racket";
548
- readonly alias: readonly ["racket", "rkt"];
549
- readonly value: "lisp";
550
- }, {
551
- readonly name: "Ada";
552
- readonly alias: readonly ["ada", "ada95", "ada2005"];
553
- readonly value: "ada";
554
- }, {
555
- readonly name: "Tcl";
556
- readonly alias: readonly ["tcl"];
557
- readonly value: "tcl";
558
- }, {
559
- readonly name: "Mathematica";
560
- readonly alias: readonly ["mathematica", "mma", "nb"];
561
- readonly value: "mathematica";
562
- }, {
563
- readonly name: "Autoit";
564
- readonly alias: readonly ["autoit"];
565
- readonly value: "autoit";
566
- }, {
567
- readonly name: "StandardML";
568
- readonly alias: readonly ["standardmL", "sml", "standardml"];
569
- readonly value: "sml";
570
- }, {
571
- readonly name: "Objective-J";
572
- readonly alias: readonly ["objective-j", "objectivej", "obj-j", "objj"];
573
- readonly value: "objectivec";
574
- }, {
575
- readonly name: "Smalltalk";
576
- readonly alias: readonly ["smalltalk", "squeak", "st"];
577
- readonly value: "smalltalk";
578
- }, {
579
- readonly name: "Vala";
580
- readonly alias: readonly ["vala", "vapi"];
581
- readonly value: "vala";
582
- }, {
583
- readonly name: "LiveScript";
584
- readonly alias: readonly ["livescript", "live-script"];
585
- readonly value: "livescript";
586
- }, {
587
- readonly name: "XQuery";
588
- readonly alias: readonly ["xquery", "xqy", "xq", "xql", "xqm"];
589
- readonly value: "xquery";
590
- }, {
591
- readonly name: "PlainText";
592
- readonly alias: readonly ["text", "plaintext"];
593
- readonly value: "text";
594
- }, {
595
- readonly name: "Yaml";
596
- readonly alias: readonly ["yaml", "yml"];
597
- readonly value: "yaml";
598
- }, {
599
- readonly name: "GraphQL";
600
- readonly alias: readonly ["graphql"];
601
- readonly value: "graphql";
602
- }, {
603
- readonly name: "AppleScript";
604
- readonly alias: readonly ["applescript"];
605
- readonly value: "applescript";
606
- }, {
607
- readonly name: "Clojure";
608
- readonly alias: readonly ["clojure"];
609
- readonly value: "clojure";
610
- }, {
611
- readonly name: "Diff";
612
- readonly alias: readonly ["diff"];
613
- readonly value: "diff";
614
- }, {
615
- readonly name: "VisualBasic";
616
- readonly alias: readonly ["visualbasic"];
617
- readonly value: "visual-basic";
618
- }, {
619
- readonly name: "JSX";
620
- readonly alias: readonly ["jsx"];
621
- readonly value: "jsx";
622
- }, {
623
- readonly name: "TSX";
624
- readonly alias: readonly ["tsx"];
625
- readonly value: "tsx";
626
- }, {
627
- readonly name: "SplunkSPL";
628
- readonly alias: readonly ["splunk-spl"];
629
- readonly value: "splunk-spl";
630
- }, {
631
- readonly name: "Dockerfile";
632
- readonly alias: readonly ["docker", "dockerfile"];
633
- readonly value: "dockerfile";
634
- }, {
635
- readonly name: "HCL";
636
- readonly alias: readonly ["hcl", "terraform"];
637
- readonly value: "hcl";
638
- }, {
639
- readonly name: "NGINX";
640
- readonly alias: readonly ["nginx"];
641
- readonly value: "nginx";
642
- }, {
643
- readonly name: "Protocol Buffers";
644
- readonly alias: readonly ["protobuf", "proto"];
645
- readonly value: "protobuf";
322
+ readonly name: "Handlebars";
323
+ readonly alias: readonly ["handlebars", "mustache"];
324
+ readonly value: "handlebars";
646
325
  }, {
647
326
  readonly name: "ABAP";
648
327
  readonly alias: readonly ["abap"];
@@ -642,655 +642,12 @@ export declare const SUPPORTED_LANGUAGES: readonly [
642
642
  readonly value: "protobuf";
643
643
  },
644
644
  {
645
- readonly name: "ABAP";
646
- readonly alias: readonly [
647
- "abap"
648
- ];
649
- readonly value: "sql";
650
- }
651
- ];
652
- export declare const SUPPORTED_LANGUAGES_ABAP_FIX: readonly [
653
- {
654
- readonly name: "PHP";
655
- readonly alias: readonly [
656
- "php",
657
- "php3",
658
- "php4",
659
- "php5"
660
- ];
661
- readonly value: "php";
662
- },
663
- {
664
- readonly name: "Java";
665
- readonly alias: readonly [
666
- "java"
667
- ];
668
- readonly value: "java";
669
- },
670
- {
671
- readonly name: "CSharp";
672
- readonly alias: readonly [
673
- "csharp",
674
- "c#"
675
- ];
676
- readonly value: "cs";
677
- },
678
- {
679
- readonly name: "Python";
680
- readonly alias: readonly [
681
- "python",
682
- "py"
683
- ];
684
- readonly value: "python";
685
- },
686
- {
687
- readonly name: "JavaScript";
688
- readonly alias: readonly [
689
- "javascript",
690
- "js"
691
- ];
692
- readonly value: "javascript";
693
- },
694
- {
695
- readonly name: "Html";
696
- readonly alias: readonly [
697
- "html"
698
- ];
699
- readonly value: "xml";
700
- },
701
- {
702
- readonly name: "C++";
703
- readonly alias: readonly [
704
- "c++",
705
- "cpp",
706
- "clike"
707
- ];
708
- readonly value: "cpp";
709
- },
710
- {
711
- readonly name: "Ruby";
712
- readonly alias: readonly [
713
- "ruby",
714
- "rb",
715
- "duby"
716
- ];
717
- readonly value: "ruby";
718
- },
719
- {
720
- readonly name: "Objective-C";
721
- readonly alias: readonly [
722
- "objective-c",
723
- "objectivec",
724
- "obj-c",
725
- "objc"
726
- ];
727
- readonly value: "objectivec";
728
- },
729
- {
730
- readonly name: "C";
731
- readonly alias: readonly [
732
- "c"
733
- ];
734
- readonly value: "cpp";
735
- },
736
- {
737
- readonly name: "Swift";
738
- readonly alias: readonly [
739
- "swift"
740
- ];
741
- readonly value: "swift";
742
- },
743
- {
744
- readonly name: "TeX";
745
- readonly alias: readonly [
746
- "tex",
747
- "latex"
748
- ];
749
- readonly value: "tex";
750
- },
751
- {
752
- readonly name: "Shell";
753
- readonly alias: readonly [
754
- "shell",
755
- "bash",
756
- "sh",
757
- "ksh",
758
- "zsh"
759
- ];
760
- readonly value: "shell";
761
- },
762
- {
763
- readonly name: "Scala";
764
- readonly alias: readonly [
765
- "scala"
766
- ];
767
- readonly value: "scala";
768
- },
769
- {
770
- readonly name: "Go";
771
- readonly alias: readonly [
772
- "go"
773
- ];
774
- readonly value: "go";
775
- },
776
- {
777
- readonly name: "ActionScript";
778
- readonly alias: readonly [
779
- "actionscript",
780
- "actionscript3",
781
- "as"
782
- ];
783
- readonly value: "actionscript";
784
- },
785
- {
786
- readonly name: "ColdFusion";
787
- readonly alias: readonly [
788
- "coldfusion"
789
- ];
790
- readonly value: "xml";
791
- },
792
- {
793
- readonly name: "JavaFX";
794
- readonly alias: readonly [
795
- "javafx",
796
- "jfx"
797
- ];
798
- readonly value: "java";
799
- },
800
- {
801
- readonly name: "VbNet";
802
- readonly alias: readonly [
803
- "vbnet",
804
- "vb.net",
805
- "vfp",
806
- "clipper",
807
- "xbase"
808
- ];
809
- readonly value: "vbnet";
810
- },
811
- {
812
- readonly name: "JSON";
813
- readonly alias: readonly [
814
- "json"
815
- ];
816
- readonly value: "json";
817
- },
818
- {
819
- readonly name: "MATLAB";
820
- readonly alias: readonly [
821
- "matlab"
822
- ];
823
- readonly value: "matlab";
824
- },
825
- {
826
- readonly name: "Groovy";
827
- readonly alias: readonly [
828
- "groovy"
829
- ];
830
- readonly value: "groovy";
831
- },
832
- {
833
- readonly name: "SQL";
834
- readonly alias: readonly [
835
- "sql",
836
- "postgresql",
837
- "postgres",
838
- "plpgsql",
839
- "psql",
840
- "postgresql-console",
841
- "postgres-console",
842
- "tsql",
843
- "t-sql",
844
- "mysql",
845
- "sqlite"
846
- ];
847
- readonly value: "sql";
848
- },
849
- {
850
- readonly name: "R";
851
- readonly alias: readonly [
852
- "r"
853
- ];
854
- readonly value: "r";
855
- },
856
- {
857
- readonly name: "Perl";
858
- readonly alias: readonly [
859
- "perl",
860
- "pl"
861
- ];
862
- readonly value: "perl";
863
- },
864
- {
865
- readonly name: "Lua";
866
- readonly alias: readonly [
867
- "lua"
868
- ];
869
- readonly value: "lua";
870
- },
871
- {
872
- readonly name: "Pascal";
873
- readonly alias: readonly [
874
- "pas",
875
- "pascal",
876
- "objectpascal",
877
- "delphi"
878
- ];
879
- readonly value: "pascal";
880
- },
881
- {
882
- readonly name: "XML";
883
- readonly alias: readonly [
884
- "xml"
885
- ];
886
- readonly value: "xml";
887
- },
888
- {
889
- readonly name: "TypeScript";
890
- readonly alias: readonly [
891
- "typescript",
892
- "ts"
893
- ];
894
- readonly value: "typescript";
895
- },
896
- {
897
- readonly name: "CoffeeScript";
898
- readonly alias: readonly [
899
- "coffeescript",
900
- "coffee-script",
901
- "coffee"
902
- ];
903
- readonly value: "coffeescript";
904
- },
905
- {
906
- readonly name: "Haskell";
907
- readonly alias: readonly [
908
- "haskell",
909
- "hs"
910
- ];
911
- readonly value: "haskell";
912
- },
913
- {
914
- readonly name: "Puppet";
915
- readonly alias: readonly [
916
- "puppet"
917
- ];
918
- readonly value: "puppet";
919
- },
920
- {
921
- readonly name: "Arduino";
922
- readonly alias: readonly [
923
- "arduino"
924
- ];
925
- readonly value: "arduino";
926
- },
927
- {
928
- readonly name: "Fortran";
929
- readonly alias: readonly [
930
- "fortran"
931
- ];
932
- readonly value: "fortran";
933
- },
934
- {
935
- readonly name: "Erlang";
936
- readonly alias: readonly [
937
- "erlang",
938
- "erl"
939
- ];
940
- readonly value: "erlang";
941
- },
942
- {
943
- readonly name: "PowerShell";
944
- readonly alias: readonly [
945
- "powershell",
946
- "posh",
947
- "ps1",
948
- "psm1"
949
- ];
950
- readonly value: "powershell";
951
- },
952
- {
953
- readonly name: "Haxe";
954
- readonly alias: readonly [
955
- "haxe",
956
- "hx",
957
- "hxsl"
958
- ];
959
- readonly value: "haxe";
960
- },
961
- {
962
- readonly name: "Elixir";
963
- readonly alias: readonly [
964
- "elixir",
965
- "ex",
966
- "exs"
967
- ];
968
- readonly value: "elixir";
969
- },
970
- {
971
- readonly name: "Verilog";
972
- readonly alias: readonly [
973
- "verilog",
974
- "v"
975
- ];
976
- readonly value: "verilog";
977
- },
978
- {
979
- readonly name: "Rust";
980
- readonly alias: readonly [
981
- "rust"
982
- ];
983
- readonly value: "rust";
984
- },
985
- {
986
- readonly name: "VHDL";
987
- readonly alias: readonly [
988
- "vhdl"
989
- ];
990
- readonly value: "vhdl";
991
- },
992
- {
993
- readonly name: "Sass";
994
- readonly alias: readonly [
995
- "sass"
996
- ];
997
- readonly value: "less";
998
- },
999
- {
1000
- readonly name: "OCaml";
1001
- readonly alias: readonly [
1002
- "ocaml"
1003
- ];
1004
- readonly value: "ocaml";
1005
- },
1006
- {
1007
- readonly name: "Dart";
1008
- readonly alias: readonly [
1009
- "dart"
1010
- ];
1011
- readonly value: "dart";
1012
- },
1013
- {
1014
- readonly name: "CSS";
1015
- readonly alias: readonly [
1016
- "css"
1017
- ];
1018
- readonly value: "css";
1019
- },
1020
- {
1021
- readonly name: "reStructuredText";
1022
- readonly alias: readonly [
1023
- "restructuredtext",
1024
- "rst",
1025
- "rest"
1026
- ];
1027
- readonly value: "rest";
1028
- },
1029
- {
1030
- readonly name: "Kotlin";
1031
- readonly alias: readonly [
1032
- "kotlin"
1033
- ];
1034
- readonly value: "kotlin";
1035
- },
1036
- {
1037
- readonly name: "D";
1038
- readonly alias: readonly [
1039
- "d"
1040
- ];
1041
- readonly value: "d";
1042
- },
1043
- {
1044
- readonly name: "Octave";
1045
- readonly alias: readonly [
1046
- "octave"
1047
- ];
1048
- readonly value: "matlab";
1049
- },
1050
- {
1051
- readonly name: "QML";
1052
- readonly alias: readonly [
1053
- "qbs",
1054
- "qml"
1055
- ];
1056
- readonly value: "qml";
1057
- },
1058
- {
1059
- readonly name: "Prolog";
1060
- readonly alias: readonly [
1061
- "prolog"
1062
- ];
1063
- readonly value: "prolog";
1064
- },
1065
- {
1066
- readonly name: "FoxPro";
1067
- readonly alias: readonly [
1068
- "foxpro",
1069
- "purebasic"
1070
- ];
1071
- readonly value: "purebasic";
1072
- },
1073
- {
1074
- readonly name: "Scheme";
1075
- readonly alias: readonly [
1076
- "scheme",
1077
- "scm"
1078
- ];
1079
- readonly value: "scheme";
1080
- },
1081
- {
1082
- readonly name: "CUDA";
1083
- readonly alias: readonly [
1084
- "cuda",
1085
- "cu"
1086
- ];
1087
- readonly value: "cpp";
1088
- },
1089
- {
1090
- readonly name: "Julia";
1091
- readonly alias: readonly [
1092
- "julia",
1093
- "jl"
1094
- ];
1095
- readonly value: "julia";
1096
- },
1097
- {
1098
- readonly name: "Racket";
1099
- readonly alias: readonly [
1100
- "racket",
1101
- "rkt"
1102
- ];
1103
- readonly value: "lisp";
1104
- },
1105
- {
1106
- readonly name: "Ada";
1107
- readonly alias: readonly [
1108
- "ada",
1109
- "ada95",
1110
- "ada2005"
1111
- ];
1112
- readonly value: "ada";
1113
- },
1114
- {
1115
- readonly name: "Tcl";
1116
- readonly alias: readonly [
1117
- "tcl"
1118
- ];
1119
- readonly value: "tcl";
1120
- },
1121
- {
1122
- readonly name: "Mathematica";
1123
- readonly alias: readonly [
1124
- "mathematica",
1125
- "mma",
1126
- "nb"
1127
- ];
1128
- readonly value: "mathematica";
1129
- },
1130
- {
1131
- readonly name: "Autoit";
1132
- readonly alias: readonly [
1133
- "autoit"
1134
- ];
1135
- readonly value: "autoit";
1136
- },
1137
- {
1138
- readonly name: "StandardML";
1139
- readonly alias: readonly [
1140
- "standardmL",
1141
- "sml",
1142
- "standardml"
1143
- ];
1144
- readonly value: "sml";
1145
- },
1146
- {
1147
- readonly name: "Objective-J";
1148
- readonly alias: readonly [
1149
- "objective-j",
1150
- "objectivej",
1151
- "obj-j",
1152
- "objj"
1153
- ];
1154
- readonly value: "objectivec";
1155
- },
1156
- {
1157
- readonly name: "Smalltalk";
1158
- readonly alias: readonly [
1159
- "smalltalk",
1160
- "squeak",
1161
- "st"
1162
- ];
1163
- readonly value: "smalltalk";
1164
- },
1165
- {
1166
- readonly name: "Vala";
1167
- readonly alias: readonly [
1168
- "vala",
1169
- "vapi"
1170
- ];
1171
- readonly value: "vala";
1172
- },
1173
- {
1174
- readonly name: "LiveScript";
1175
- readonly alias: readonly [
1176
- "livescript",
1177
- "live-script"
1178
- ];
1179
- readonly value: "livescript";
1180
- },
1181
- {
1182
- readonly name: "XQuery";
1183
- readonly alias: readonly [
1184
- "xquery",
1185
- "xqy",
1186
- "xq",
1187
- "xql",
1188
- "xqm"
1189
- ];
1190
- readonly value: "xquery";
1191
- },
1192
- {
1193
- readonly name: "PlainText";
1194
- readonly alias: readonly [
1195
- "text",
1196
- "plaintext"
1197
- ];
1198
- readonly value: "text";
1199
- },
1200
- {
1201
- readonly name: "Yaml";
1202
- readonly alias: readonly [
1203
- "yaml",
1204
- "yml"
1205
- ];
1206
- readonly value: "yaml";
1207
- },
1208
- {
1209
- readonly name: "GraphQL";
1210
- readonly alias: readonly [
1211
- "graphql"
1212
- ];
1213
- readonly value: "graphql";
1214
- },
1215
- {
1216
- readonly name: "AppleScript";
1217
- readonly alias: readonly [
1218
- "applescript"
1219
- ];
1220
- readonly value: "applescript";
1221
- },
1222
- {
1223
- readonly name: "Clojure";
1224
- readonly alias: readonly [
1225
- "clojure"
1226
- ];
1227
- readonly value: "clojure";
1228
- },
1229
- {
1230
- readonly name: "Diff";
1231
- readonly alias: readonly [
1232
- "diff"
1233
- ];
1234
- readonly value: "diff";
1235
- },
1236
- {
1237
- readonly name: "VisualBasic";
1238
- readonly alias: readonly [
1239
- "visualbasic"
1240
- ];
1241
- readonly value: "visual-basic";
1242
- },
1243
- {
1244
- readonly name: "JSX";
1245
- readonly alias: readonly [
1246
- "jsx"
1247
- ];
1248
- readonly value: "jsx";
1249
- },
1250
- {
1251
- readonly name: "TSX";
1252
- readonly alias: readonly [
1253
- "tsx"
1254
- ];
1255
- readonly value: "tsx";
1256
- },
1257
- {
1258
- readonly name: "SplunkSPL";
1259
- readonly alias: readonly [
1260
- "splunk-spl"
1261
- ];
1262
- readonly value: "splunk-spl";
1263
- },
1264
- {
1265
- readonly name: "Dockerfile";
1266
- readonly alias: readonly [
1267
- "docker",
1268
- "dockerfile"
1269
- ];
1270
- readonly value: "dockerfile";
1271
- },
1272
- {
1273
- readonly name: "HCL";
1274
- readonly alias: readonly [
1275
- "hcl",
1276
- "terraform"
1277
- ];
1278
- readonly value: "hcl";
1279
- },
1280
- {
1281
- readonly name: "NGINX";
1282
- readonly alias: readonly [
1283
- "nginx"
1284
- ];
1285
- readonly value: "nginx";
1286
- },
1287
- {
1288
- readonly name: "Protocol Buffers";
645
+ readonly name: "Handlebars";
1289
646
  readonly alias: readonly [
1290
- "protobuf",
1291
- "proto"
647
+ "handlebars",
648
+ "mustache"
1292
649
  ];
1293
- readonly value: "protobuf";
650
+ readonly value: "handlebars";
1294
651
  },
1295
652
  {
1296
653
  readonly name: "ABAP";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/code",
3
- "version": "16.1.0",
3
+ "version": "16.3.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/"
@@ -29,9 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@atlaskit/codemod-utils": "^4.2.0",
32
- "@atlaskit/platform-feature-flags": "^1.1.0",
33
32
  "@atlaskit/theme": "^18.0.0",
34
- "@atlaskit/tokens": "^4.5.0",
33
+ "@atlaskit/tokens": "^4.6.0",
35
34
  "@atlaskit/tooltip": "^20.0.0",
36
35
  "@atlaskit/visually-hidden": "^3.0.0",
37
36
  "@babel/runtime": "^7.0.0",
@@ -46,15 +45,16 @@
46
45
  "@af/accessibility-testing": "^2.0.0",
47
46
  "@af/integration-testing": "^0.5.0",
48
47
  "@af/visual-regression": "^1.3.0",
49
- "@atlaskit/button": "^21.1.0",
48
+ "@atlaskit/button": "^23.0.0",
50
49
  "@atlaskit/docs": "^10.0.0",
51
50
  "@atlaskit/ds-lib": "^4.0.0",
52
51
  "@atlaskit/form": "^12.0.0",
53
- "@atlaskit/link": "^3.0.0",
54
- "@atlaskit/primitives": "^14.2.0",
52
+ "@atlaskit/link": "^3.1.0",
53
+ "@atlaskit/primitives": "^14.3.0",
55
54
  "@atlaskit/section-message": "^8.2.0",
56
55
  "@atlaskit/ssr": "^0.4.0",
57
56
  "@atlaskit/toggle": "^15.0.0",
57
+ "@atlassian/ssr-tests": "^0.2.0",
58
58
  "@compiled/react": "^0.18.3",
59
59
  "@testing-library/react": "^13.4.0",
60
60
  "@types/jscodeshift": "^0.11.0",
@@ -114,10 +114,5 @@
114
114
  "./inline": "./src/entry-points/inline.tsx",
115
115
  "./constants": "./src/entry-points/constants.tsx"
116
116
  },
117
- "platform-feature-flags": {
118
- "platform_dst_code_abap_syntax": {
119
- "type": "boolean"
120
- }
121
- },
122
117
  "homepage": "https://atlassian.design/components/code/"
123
118
  }