@atlaskit/editor-plugin-breakout 1.7.3 → 1.7.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,26 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 1.7.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#138118](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138118)
8
+ [`5e4d9eb1aefe4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e4d9eb1aefe4) -
9
+ NOISSUE: Upgrades editor React peer dependencies to v18
10
+ - Updated dependencies
11
+
12
+ ## 1.7.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [#136871](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136871)
17
+ [`87a30d5cb3ffb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/87a30d5cb3ffb) -
18
+ ED-24814 - Addressing a bug where changing the language on a wrapped code block caused the wrapped
19
+ decorator to disappear. Required changing the sequence in which we update the keys on the wrapped
20
+ states WeakMap. Due to the amount of changes, it has all be placed behind a bug fix feature gate
21
+ (editor_code_block_wrapping_language_change_bug) and the original feature gate
22
+ (editor_support_code_block_wrapping).
23
+
3
24
  ## 1.7.3
4
25
 
5
26
  ### 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.3",
3
+ "version": "1.7.5",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -10,7 +10,7 @@
10
10
  "atlassian": {
11
11
  "team": "Editor: Media Experience Porygon",
12
12
  "singleton": true,
13
- "releaseModel": "continuous"
13
+ "runReact18": true
14
14
  },
15
15
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
16
16
  "main": "dist/cjs/index.js",
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^40.9.0",
35
- "@atlaskit/editor-common": "^88.2.0",
35
+ "@atlaskit/editor-common": "^88.12.0",
36
36
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
37
37
  "@atlaskit/editor-plugin-width": "^1.3.0",
38
38
  "@atlaskit/editor-prosemirror": "5.0.1",
39
39
  "@atlaskit/editor-shared-styles": "^2.13.0",
40
- "@atlaskit/icon": "^22.15.0",
40
+ "@atlaskit/icon": "^22.16.0",
41
41
  "@atlaskit/platform-feature-flags": "^0.3.0",
42
42
  "@atlaskit/theme": "^13.0.0",
43
43
  "@atlaskit/tokens": "^1.59.0",
@@ -45,7 +45,7 @@
45
45
  "@emotion/react": "^11.7.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "react": "^16.8.0",
48
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
49
49
  "react-intl-next": "npm:react-intl@^5.18.1"
50
50
  },
51
51
  "devDependencies": {
@@ -103,6 +103,9 @@
103
103
  },
104
104
  "editor_support_code_block_wrapping": {
105
105
  "type": "boolean"
106
+ },
107
+ "editor_code_block_wrapping_language_change_bug": {
108
+ "type": "boolean"
106
109
  }
107
110
  }
108
111
  }