@atlaskit/editor-plugin-code-block 3.3.19 → 3.4.1

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,19 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 3.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#146025](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146025)
14
+ [`03eae90c614d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/03eae90c614d1) -
15
+ Remove platform.editor.live-view.disable-editing-in-view-mode_fi1rx feature flag
16
+
3
17
  ## 3.3.19
4
18
 
5
19
  ### Patch Changes
@@ -35,7 +35,7 @@ var toDOM = function toDOM(node, contentEditable, formattedAriaLabel) {
35
35
  }, ['code', {
36
36
  'data-language': node.attrs.language || '',
37
37
  spellcheck: 'false',
38
- contenteditable: (0, _platformFeatureFlags.fg)('platform.editor.live-view.disable-editing-in-view-mode_fi1rx') ? contentEditable ? 'true' : 'false' : 'true',
38
+ contenteditable: contentEditable ? 'true' : 'false',
39
39
  'data-testid': 'code-block--code',
40
40
  'aria-label': formattedAriaLabel
41
41
  }, 0]]], ['div', {
@@ -107,7 +107,7 @@ var CodeBlockView = exports.CodeBlockView = /*#__PURE__*/function () {
107
107
  value: function handleEditorDisabledChanged() {
108
108
  var _this$api,
109
109
  _this2 = this;
110
- if ((_this$api = this.api) !== null && _this$api !== void 0 && _this$api.editorDisabled && (0, _platformFeatureFlags.fg)('platform.editor.live-view.disable-editing-in-view-mode_fi1rx')) {
110
+ if ((_this$api = this.api) !== null && _this$api !== void 0 && _this$api.editorDisabled) {
111
111
  this.cleanupEditorDisabledListener = this.api.editorDisabled.sharedState.onChange(function (sharedState) {
112
112
  if (_this2.contentDOM) {
113
113
  _this2.contentDOM.setAttribute('contenteditable', sharedState.nextSharedState.editorDisabled ? 'false' : 'true');
@@ -24,7 +24,7 @@ const toDOM = (node, contentEditable, formattedAriaLabel) => ['div', {
24
24
  }, ['code', {
25
25
  'data-language': node.attrs.language || '',
26
26
  spellcheck: 'false',
27
- contenteditable: fg('platform.editor.live-view.disable-editing-in-view-mode_fi1rx') ? contentEditable ? 'true' : 'false' : 'true',
27
+ contenteditable: contentEditable ? 'true' : 'false',
28
28
  'data-testid': 'code-block--code',
29
29
  'aria-label': formattedAriaLabel
30
30
  }, 0]]], ['div', {
@@ -91,7 +91,7 @@ export class CodeBlockView {
91
91
  }
92
92
  handleEditorDisabledChanged() {
93
93
  var _this$api;
94
- if ((_this$api = this.api) !== null && _this$api !== void 0 && _this$api.editorDisabled && fg('platform.editor.live-view.disable-editing-in-view-mode_fi1rx')) {
94
+ if ((_this$api = this.api) !== null && _this$api !== void 0 && _this$api.editorDisabled) {
95
95
  this.cleanupEditorDisabledListener = this.api.editorDisabled.sharedState.onChange(sharedState => {
96
96
  if (this.contentDOM) {
97
97
  this.contentDOM.setAttribute('contenteditable', sharedState.nextSharedState.editorDisabled ? 'false' : 'true');
@@ -27,7 +27,7 @@ var toDOM = function toDOM(node, contentEditable, formattedAriaLabel) {
27
27
  }, ['code', {
28
28
  'data-language': node.attrs.language || '',
29
29
  spellcheck: 'false',
30
- contenteditable: fg('platform.editor.live-view.disable-editing-in-view-mode_fi1rx') ? contentEditable ? 'true' : 'false' : 'true',
30
+ contenteditable: contentEditable ? 'true' : 'false',
31
31
  'data-testid': 'code-block--code',
32
32
  'aria-label': formattedAriaLabel
33
33
  }, 0]]], ['div', {
@@ -99,7 +99,7 @@ export var CodeBlockView = /*#__PURE__*/function () {
99
99
  value: function handleEditorDisabledChanged() {
100
100
  var _this$api,
101
101
  _this2 = this;
102
- if ((_this$api = this.api) !== null && _this$api !== void 0 && _this$api.editorDisabled && fg('platform.editor.live-view.disable-editing-in-view-mode_fi1rx')) {
102
+ if ((_this$api = this.api) !== null && _this$api !== void 0 && _this$api.editorDisabled) {
103
103
  this.cleanupEditorDisabledListener = this.api.editorDisabled.sharedState.onChange(function (sharedState) {
104
104
  if (_this2.contentDOM) {
105
105
  _this2.contentDOM.setAttribute('contenteditable', sharedState.nextSharedState.editorDisabled ? 'false' : 'true');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "3.3.19",
3
+ "version": "3.4.1",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,13 +33,13 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^40.9.0",
35
35
  "@atlaskit/code": "^15.6.0",
36
- "@atlaskit/editor-common": "^91.0.0",
36
+ "@atlaskit/editor-common": "^92.0.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
38
38
  "@atlaskit/editor-plugin-composition": "^1.2.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
41
41
  "@atlaskit/editor-prosemirror": "6.0.0",
42
- "@atlaskit/icon": "^22.18.0",
42
+ "@atlaskit/icon": "^22.19.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/prosemirror-input-rules": "^3.2.0",
45
45
  "@babel/runtime": "^7.0.0",
@@ -100,9 +100,6 @@
100
100
  "editor_code_block_wrapping_language_change_bug": {
101
101
  "type": "boolean"
102
102
  },
103
- "platform.editor.live-view.disable-editing-in-view-mode_fi1rx": {
104
- "type": "boolean"
105
- },
106
103
  "editor_nest_media_and_codeblock_in_quotes_jira": {
107
104
  "type": "boolean"
108
105
  }