@atlaskit/editor-plugin-breakout 1.7.2 → 1.7.4

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,25 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 1.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#136871](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136871)
8
+ [`87a30d5cb3ffb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/87a30d5cb3ffb) -
9
+ ED-24814 - Addressing a bug where changing the language on a wrapped code block caused the wrapped
10
+ decorator to disappear. Required changing the sequence in which we update the keys on the wrapped
11
+ states WeakMap. Due to the amount of changes, it has all be placed behind a bug fix feature gate
12
+ (editor_code_block_wrapping_language_change_bug) and the original feature gate
13
+ (editor_support_code_block_wrapping).
14
+
15
+ ## 1.7.3
16
+
17
+ ### Patch Changes
18
+
19
+ - [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
20
+ [`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
21
+ [ux] [ED-24636] Bump ADF Schema package
22
+
3
23
  ## 1.7.2
4
24
 
5
25
  ### Patch Changes
@@ -22,7 +22,7 @@ function removeBreakout(isLivePage) {
22
22
  if ((0, _platformFeatureFlags.fg)('editor_support_code_block_wrapping')) {
23
23
  if (node.node.type === state.schema.nodes.expand) {
24
24
  (0, _singlePlayerExpand.updateExpandedState)(tr, node, isLivePage);
25
- } else if (node.node.type === state.schema.nodes.codeBlock) {
25
+ } else if (!(0, _platformFeatureFlags.fg)('editor_code_block_wrapping_language_change_bug') && node.node.type === state.schema.nodes.codeBlock) {
26
26
  var newNode = tr.doc.nodeAt(node.pos);
27
27
  var oldNode = node.node;
28
28
  if (newNode) {
@@ -21,7 +21,7 @@ function setBreakoutMode(mode, isLivePage) {
21
21
  if ((0, _platformFeatureFlags.fg)('editor_support_code_block_wrapping')) {
22
22
  if (node.node.type === state.schema.nodes.expand) {
23
23
  (0, _singlePlayerExpand.updateExpandedState)(tr, node, isLivePage);
24
- } else if (node.node.type === state.schema.nodes.codeBlock) {
24
+ } else if (!(0, _platformFeatureFlags.fg)('editor_code_block_wrapping_language_change_bug') && node.node.type === state.schema.nodes.codeBlock) {
25
25
  var newNode = tr.doc.nodeAt(node.pos);
26
26
  var oldNode = node.node;
27
27
  if (newNode) {
@@ -14,7 +14,7 @@ export function removeBreakout(isLivePage) {
14
14
  if (fg('editor_support_code_block_wrapping')) {
15
15
  if (node.node.type === state.schema.nodes.expand) {
16
16
  updateExpandedState(tr, node, isLivePage);
17
- } else if (node.node.type === state.schema.nodes.codeBlock) {
17
+ } else if (!fg('editor_code_block_wrapping_language_change_bug') && node.node.type === state.schema.nodes.codeBlock) {
18
18
  const newNode = tr.doc.nodeAt(node.pos);
19
19
  const oldNode = node.node;
20
20
  if (newNode) {
@@ -15,7 +15,7 @@ export function setBreakoutMode(mode, isLivePage) {
15
15
  if (fg('editor_support_code_block_wrapping')) {
16
16
  if (node.node.type === state.schema.nodes.expand) {
17
17
  updateExpandedState(tr, node, isLivePage);
18
- } else if (node.node.type === state.schema.nodes.codeBlock) {
18
+ } else if (!fg('editor_code_block_wrapping_language_change_bug') && node.node.type === state.schema.nodes.codeBlock) {
19
19
  const newNode = tr.doc.nodeAt(node.pos);
20
20
  const oldNode = node.node;
21
21
  if (newNode) {
@@ -16,7 +16,7 @@ export function removeBreakout(isLivePage) {
16
16
  if (fg('editor_support_code_block_wrapping')) {
17
17
  if (node.node.type === state.schema.nodes.expand) {
18
18
  updateExpandedState(tr, node, isLivePage);
19
- } else if (node.node.type === state.schema.nodes.codeBlock) {
19
+ } else if (!fg('editor_code_block_wrapping_language_change_bug') && node.node.type === state.schema.nodes.codeBlock) {
20
20
  var newNode = tr.doc.nodeAt(node.pos);
21
21
  var oldNode = node.node;
22
22
  if (newNode) {
@@ -15,7 +15,7 @@ export function setBreakoutMode(mode, isLivePage) {
15
15
  if (fg('editor_support_code_block_wrapping')) {
16
16
  if (node.node.type === state.schema.nodes.expand) {
17
17
  updateExpandedState(tr, node, isLivePage);
18
- } else if (node.node.type === state.schema.nodes.codeBlock) {
18
+ } else if (!fg('editor_code_block_wrapping_language_change_bug') && node.node.type === state.schema.nodes.codeBlock) {
19
19
  var newNode = tr.doc.nodeAt(node.pos);
20
20
  var oldNode = node.node;
21
21
  if (newNode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -9,8 +9,7 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Editor: Media Experience Porygon",
12
- "singleton": true,
13
- "releaseModel": "continuous"
12
+ "singleton": true
14
13
  },
15
14
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
15
  "main": "dist/cjs/index.js",
@@ -31,13 +30,13 @@
31
30
  ".": "./src/index.ts"
32
31
  },
33
32
  "dependencies": {
34
- "@atlaskit/adf-schema": "^40.8.1",
35
- "@atlaskit/editor-common": "^88.0.0",
33
+ "@atlaskit/adf-schema": "^40.9.0",
34
+ "@atlaskit/editor-common": "^88.8.0",
36
35
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
37
36
  "@atlaskit/editor-plugin-width": "^1.3.0",
38
37
  "@atlaskit/editor-prosemirror": "5.0.1",
39
38
  "@atlaskit/editor-shared-styles": "^2.13.0",
40
- "@atlaskit/icon": "^22.14.0",
39
+ "@atlaskit/icon": "^22.15.0",
41
40
  "@atlaskit/platform-feature-flags": "^0.3.0",
42
41
  "@atlaskit/theme": "^13.0.0",
43
42
  "@atlaskit/tokens": "^1.59.0",
@@ -103,6 +102,9 @@
103
102
  },
104
103
  "editor_support_code_block_wrapping": {
105
104
  "type": "boolean"
105
+ },
106
+ "editor_code_block_wrapping_language_change_bug": {
107
+ "type": "boolean"
106
108
  }
107
109
  }
108
110
  }