Package not found. Please check the package name and try again.

@atlaskit/editor-plugin-code-block-advanced 8.0.19 → 8.0.21

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,20 @@
1
1
  # @atlaskit/editor-plugin-code-block-advanced
2
2
 
3
+ ## 8.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - [`65e300b324e87`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/65e300b324e87) -
8
+ Remove feature flag platform_editor_fix_advanced_codeblocks_crlf - CRLF line separator fix is now
9
+ always enabled
10
+ - Updated dependencies
11
+
12
+ ## 8.0.20
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 8.0.19
4
19
 
5
20
  ### Patch Changes
@@ -5,14 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.lineSeparatorExtension = void 0;
7
7
  var _state = require("@codemirror/state");
8
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
8
  /**
10
9
  * To avoid issues with CRLF (\r\n) syncing with ProseMirror,
11
10
  * we only consider \n for line separators.
12
11
  */
13
12
  var lineSeparatorExtension = exports.lineSeparatorExtension = function lineSeparatorExtension() {
14
- if ((0, _expValEquals.expValEquals)('platform_editor_fix_advanced_codeblocks_crlf', 'isEnabled', true)) {
15
- return _state.EditorState.lineSeparator.of('\n');
16
- }
17
- return [];
13
+ return _state.EditorState.lineSeparator.of('\n');
18
14
  };
@@ -1,13 +1,8 @@
1
1
  import { EditorState as CodeMirrorState } from '@codemirror/state';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
-
4
2
  /**
5
3
  * To avoid issues with CRLF (\r\n) syncing with ProseMirror,
6
4
  * we only consider \n for line separators.
7
5
  */
8
6
  export const lineSeparatorExtension = () => {
9
- if (expValEquals('platform_editor_fix_advanced_codeblocks_crlf', 'isEnabled', true)) {
10
- return CodeMirrorState.lineSeparator.of('\n');
11
- }
12
- return [];
7
+ return CodeMirrorState.lineSeparator.of('\n');
13
8
  };
@@ -1,13 +1,8 @@
1
1
  import { EditorState as CodeMirrorState } from '@codemirror/state';
2
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
-
4
2
  /**
5
3
  * To avoid issues with CRLF (\r\n) syncing with ProseMirror,
6
4
  * we only consider \n for line separators.
7
5
  */
8
6
  export var lineSeparatorExtension = function lineSeparatorExtension() {
9
- if (expValEquals('platform_editor_fix_advanced_codeblocks_crlf', 'isEnabled', true)) {
10
- return CodeMirrorState.lineSeparator.of('\n');
11
- }
12
- return [];
7
+ return CodeMirrorState.lineSeparator.of('\n');
13
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block-advanced",
3
- "version": "8.0.19",
3
+ "version": "8.0.21",
4
4
  "description": "CodeBlockAdvanced plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/prosemirror-history": "^0.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^52.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^54.0.0",
42
42
  "@atlaskit/tokens": "^11.4.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@codemirror/autocomplete": "6.18.4",
@@ -55,7 +55,7 @@
55
55
  "codemirror-lang-elixir": "4.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@atlaskit/editor-common": "^112.13.0",
58
+ "@atlaskit/editor-common": "^112.16.0",
59
59
  "react": "^18.2.0",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1"
61
61
  },
@@ -1,15 +1,10 @@
1
1
  import { EditorState as CodeMirrorState } from '@codemirror/state';
2
2
  import type { Extension } from '@codemirror/state';
3
3
 
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
-
6
4
  /**
7
5
  * To avoid issues with CRLF (\r\n) syncing with ProseMirror,
8
6
  * we only consider \n for line separators.
9
7
  */
10
8
  export const lineSeparatorExtension = (): Extension => {
11
- if (expValEquals('platform_editor_fix_advanced_codeblocks_crlf', 'isEnabled', true)) {
12
- return CodeMirrorState.lineSeparator.of('\n');
13
- }
14
- return [];
9
+ return CodeMirrorState.lineSeparator.of('\n');
15
10
  };