@atlaskit/editor-plugin-code-block-advanced 2.2.5 → 2.2.6

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,13 @@
1
1
  # @atlaskit/editor-plugin-code-block-advanced
2
2
 
3
+ ## 2.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#152049](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152049)
8
+ [`a2bdf059329e8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2bdf059329e8) -
9
+ Add support for Gherkin language to code
10
+
3
11
  ## 2.2.5
4
12
 
5
13
  ### Patch Changes
@@ -68,6 +68,10 @@ var mapLanguageToCodeMirror = exports.mapLanguageToCodeMirror = function mapLang
68
68
  return _languageData.languages.find(function (l) {
69
69
  return l.name === 'VB.NET';
70
70
  });
71
+ case 'gherkin':
72
+ return _languageData.languages.find(function (l) {
73
+ return l.name === 'Gherkin';
74
+ });
71
75
  case 'handlebars':
72
76
  return _language.LanguageDescription.of({
73
77
  name: 'Handlebars',
@@ -58,6 +58,10 @@ export const mapLanguageToCodeMirror = language => {
58
58
  return languages.find(l => {
59
59
  return l.name === 'VB.NET';
60
60
  });
61
+ case 'gherkin':
62
+ return languages.find(l => {
63
+ return l.name === 'Gherkin';
64
+ });
61
65
  case 'handlebars':
62
66
  return LanguageDescription.of({
63
67
  name: 'Handlebars',
@@ -58,6 +58,10 @@ export var mapLanguageToCodeMirror = function mapLanguageToCodeMirror(language)
58
58
  return languages.find(function (l) {
59
59
  return l.name === 'VB.NET';
60
60
  });
61
+ case 'gherkin':
62
+ return languages.find(function (l) {
63
+ return l.name === 'Gherkin';
64
+ });
61
65
  case 'handlebars':
62
66
  return LanguageDescription.of({
63
67
  name: 'Handlebars',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^47.6.0",
36
- "@atlaskit/editor-common": "^104.0.0",
36
+ "@atlaskit/editor-common": "^104.1.0",
37
37
  "@atlaskit/editor-plugin-code-block": "^4.4.0",
38
38
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
39
39
  "@atlaskit/editor-plugin-find-replace": "^2.2.0",
@@ -63,6 +63,10 @@ export const mapLanguageToCodeMirror = (language: LanguageAliasValue) => {
63
63
  return languages.find((l) => {
64
64
  return l.name === 'VB.NET';
65
65
  });
66
+ case 'gherkin':
67
+ return languages.find((l) => {
68
+ return l.name === 'Gherkin';
69
+ });
66
70
  case 'handlebars':
67
71
  return LanguageDescription.of({
68
72
  name: 'Handlebars',