@atlaskit/editor-plugin-code-block 17.0.4 → 17.0.5

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
2
2
 
3
+ ## 17.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4d7433f9c93d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d7433f9c93d8) -
8
+ Clean up the enabled `platform_editor_code_block_fold_gutter` experiment for Confluence.
9
+ - Updated dependencies
10
+
3
11
  ## 17.0.4
4
12
 
5
13
  ### Patch Changes
@@ -14,7 +14,6 @@ var _selection = require("@atlaskit/editor-common/selection");
14
14
  var _transforms = require("@atlaskit/editor-common/transforms");
15
15
  var _state = require("@atlaskit/editor-prosemirror/state");
16
16
  var _view = require("@atlaskit/editor-prosemirror/view");
17
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
17
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
19
18
  var _editorCommands = require("../editor-commands");
20
19
  var _codeBlock2 = require("../nodeviews/code-block");
@@ -92,7 +91,7 @@ var createPlugin = exports.createPlugin = function createPlugin(_ref) {
92
91
  // Long term we will deprecate the code block plugin and move all the related logic to
93
92
  // the advanced plugin
94
93
  // @ts-expect-error Code block advanced cannot depend on code block
95
- (api === null || api === void 0 ? void 0 : api.codeBlockAdvanced) !== undefined && (0, _expValEquals.expValEquals)('platform_editor_code_block_fold_gutter', 'isEnabled', true) ? [] : (0, _decorators.generateInitialDecorations)(state);
94
+ (api === null || api === void 0 ? void 0 : api.codeBlockAdvanced) !== undefined ? [] : (0, _decorators.generateInitialDecorations)(state);
96
95
  return {
97
96
  pos: node ? node.pos : null,
98
97
  contentCopied: false,
@@ -6,7 +6,6 @@ import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
6
6
  import { findCodeBlock } from '@atlaskit/editor-common/transforms';
7
7
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
9
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
9
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
11
10
  import { ignoreFollowingMutations, resetShouldIgnoreFollowingMutations } from '../editor-commands';
12
11
  import { codeBlockNodeView } from '../nodeviews/code-block';
@@ -79,7 +78,7 @@ export const createPlugin = ({
79
78
  // Long term we will deprecate the code block plugin and move all the related logic to
80
79
  // the advanced plugin
81
80
  // @ts-expect-error Code block advanced cannot depend on code block
82
- (api === null || api === void 0 ? void 0 : api.codeBlockAdvanced) !== undefined && expValEquals('platform_editor_code_block_fold_gutter', 'isEnabled', true) ? [] : generateInitialDecorations(state);
81
+ (api === null || api === void 0 ? void 0 : api.codeBlockAdvanced) !== undefined ? [] : generateInitialDecorations(state);
83
82
  return {
84
83
  pos: node ? node.pos : null,
85
84
  contentCopied: false,
@@ -9,7 +9,6 @@ import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
9
9
  import { findCodeBlock } from '@atlaskit/editor-common/transforms';
10
10
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
11
11
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
12
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
12
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
14
13
  import { ignoreFollowingMutations, resetShouldIgnoreFollowingMutations } from '../editor-commands';
15
14
  import { codeBlockNodeView } from '../nodeviews/code-block';
@@ -85,7 +84,7 @@ export var createPlugin = function createPlugin(_ref) {
85
84
  // Long term we will deprecate the code block plugin and move all the related logic to
86
85
  // the advanced plugin
87
86
  // @ts-expect-error Code block advanced cannot depend on code block
88
- (api === null || api === void 0 ? void 0 : api.codeBlockAdvanced) !== undefined && expValEquals('platform_editor_code_block_fold_gutter', 'isEnabled', true) ? [] : generateInitialDecorations(state);
87
+ (api === null || api === void 0 ? void 0 : api.codeBlockAdvanced) !== undefined ? [] : generateInitialDecorations(state);
89
88
  return {
90
89
  pos: node ? node.pos : null,
91
90
  contentCopied: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "17.0.4",
3
+ "version": "17.0.5",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,11 +20,11 @@
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
22
  "@atlaskit/adf-schema": "^57.0.0",
23
- "@atlaskit/button": "^25.0.0",
23
+ "@atlaskit/button": "^25.1.0",
24
24
  "@atlaskit/code": "^19.0.0",
25
25
  "@atlaskit/css": "^1.0.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^15.0.0",
27
- "@atlaskit/editor-plugin-block-menu": "^14.0.0",
27
+ "@atlaskit/editor-plugin-block-menu": "^14.1.0",
28
28
  "@atlaskit/editor-plugin-composition": "^14.0.0",
29
29
  "@atlaskit/editor-plugin-decorations": "^15.0.0",
30
30
  "@atlaskit/editor-plugin-editor-disabled": "^15.0.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/primitives": "^22.2.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
46
46
  "@atlaskit/select": "^22.6.0",
47
- "@atlaskit/tmp-editor-statsig": "^149.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^150.0.0",
48
48
  "@atlaskit/tokens": "^16.7.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@compiled/react": "^1.0.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^119.7.0",
53
+ "@atlaskit/editor-common": "^119.9.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },