@atlaskit/editor-wikimarkup-transformer 11.2.35 → 11.2.36

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/editor-wikimarkup-transformer
2
2
 
3
+ ## 11.2.36
4
+
5
+ ### Patch Changes
6
+
7
+ - [#70027](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70027) [`995c21770b0e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/995c21770b0e) - Allow link key to be parsed inside colour macro.
8
+
3
9
  ## 11.2.35
4
10
 
5
11
  ### Patch Changes
@@ -25,7 +25,9 @@ var colorMacro = exports.colorMacro = function colorMacro(_ref) {
25
25
  });
26
26
  };
27
27
  var rawContentProcessor = function rawContentProcessor(rawAttrs, rawContent, length, schema, context) {
28
- var ignoreTokenTypes = [_.TokenType.DOUBLE_DASH_SYMBOL, _.TokenType.TRIPLE_DASH_SYMBOL, _.TokenType.QUADRUPLE_DASH_SYMBOL, _.TokenType.ISSUE_KEY, _.TokenType.TABLE];
28
+ // Removed ISSUE_KEY for https://getsupport.atlassian.com/browse/MOVE-1738018
29
+ // Issue keys were not being migrated correctly if they were inside the color macro.
30
+ var ignoreTokenTypes = [_.TokenType.DOUBLE_DASH_SYMBOL, _.TokenType.TRIPLE_DASH_SYMBOL, _.TokenType.QUADRUPLE_DASH_SYMBOL, _.TokenType.TABLE];
29
31
  var parsedAttrs = (0, _attrs.parseAttrs)(rawAttrs);
30
32
  var content = (0, _text.parseString)({
31
33
  ignoreTokenTypes: ignoreTokenTypes,
@@ -18,7 +18,9 @@ export const colorMacro = ({
18
18
  });
19
19
  };
20
20
  const rawContentProcessor = (rawAttrs, rawContent, length, schema, context) => {
21
- const ignoreTokenTypes = [TokenType.DOUBLE_DASH_SYMBOL, TokenType.TRIPLE_DASH_SYMBOL, TokenType.QUADRUPLE_DASH_SYMBOL, TokenType.ISSUE_KEY, TokenType.TABLE];
21
+ // Removed ISSUE_KEY for https://getsupport.atlassian.com/browse/MOVE-1738018
22
+ // Issue keys were not being migrated correctly if they were inside the color macro.
23
+ const ignoreTokenTypes = [TokenType.DOUBLE_DASH_SYMBOL, TokenType.TRIPLE_DASH_SYMBOL, TokenType.QUADRUPLE_DASH_SYMBOL, TokenType.TABLE];
22
24
  const parsedAttrs = parseAttrs(rawAttrs);
23
25
  const content = parseString({
24
26
  ignoreTokenTypes,
@@ -18,7 +18,9 @@ export var colorMacro = function colorMacro(_ref) {
18
18
  });
19
19
  };
20
20
  var rawContentProcessor = function rawContentProcessor(rawAttrs, rawContent, length, schema, context) {
21
- var ignoreTokenTypes = [TokenType.DOUBLE_DASH_SYMBOL, TokenType.TRIPLE_DASH_SYMBOL, TokenType.QUADRUPLE_DASH_SYMBOL, TokenType.ISSUE_KEY, TokenType.TABLE];
21
+ // Removed ISSUE_KEY for https://getsupport.atlassian.com/browse/MOVE-1738018
22
+ // Issue keys were not being migrated correctly if they were inside the color macro.
23
+ var ignoreTokenTypes = [TokenType.DOUBLE_DASH_SYMBOL, TokenType.TRIPLE_DASH_SYMBOL, TokenType.QUADRUPLE_DASH_SYMBOL, TokenType.TABLE];
22
24
  var parsedAttrs = parseAttrs(rawAttrs);
23
25
  var content = parseString({
24
26
  ignoreTokenTypes: ignoreTokenTypes,
@@ -1,2 +1,2 @@
1
- import { TokenParser } from '.';
1
+ import type { TokenParser } from '.';
2
2
  export declare const colorMacro: TokenParser;
@@ -1,2 +1,2 @@
1
- import { TokenParser } from '.';
1
+ import type { TokenParser } from '.';
2
2
  export declare const colorMacro: TokenParser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-wikimarkup-transformer",
3
- "version": "11.2.35",
3
+ "version": "11.2.36",
4
4
  "description": "Wiki markup transformer for JIRA and Confluence",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"