@atlaskit/editor-plugin-panel 8.0.8 → 8.0.10

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-panel
2
2
 
3
+ ## 8.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f71099b9904fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f71099b9904fc) -
14
+ EDITOR-1987: Patch the panel node spec to be definingAsContext so that panels aren't removed when
15
+ content is replaced.
16
+ - Updated dependencies
17
+
3
18
  ## 8.0.8
4
19
 
5
20
  ### Patch Changes
@@ -47,6 +47,14 @@ var panelPlugin = function panelPlugin(_ref) {
47
47
  name: 'panel',
48
48
  nodes: function nodes() {
49
49
  if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
50
+ if ((0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_patch_beta')) {
51
+ return [{
52
+ name: 'panel',
53
+ node: _objectSpread(_objectSpread({}, (0, _adfSchema.extendedPanelWithLocalId)(!!options.allowCustomPanel)), {}, {
54
+ definingAsContext: true
55
+ })
56
+ }];
57
+ }
50
58
  return [{
51
59
  name: 'panel',
52
60
  node: (0, _adfSchema.extendedPanelWithLocalId)(!!options.allowCustomPanel)
@@ -37,6 +37,15 @@ const panelPlugin = ({
37
37
  name: 'panel',
38
38
  nodes() {
39
39
  if (fg('platform_editor_adf_with_localid')) {
40
+ if (fg('platform_editor_ai_aifc_patch_beta')) {
41
+ return [{
42
+ name: 'panel',
43
+ node: {
44
+ ...extendedPanelWithLocalId(!!options.allowCustomPanel),
45
+ definingAsContext: true
46
+ }
47
+ }];
48
+ }
40
49
  return [{
41
50
  name: 'panel',
42
51
  node: extendedPanelWithLocalId(!!options.allowCustomPanel)
@@ -40,6 +40,14 @@ var panelPlugin = function panelPlugin(_ref) {
40
40
  name: 'panel',
41
41
  nodes: function nodes() {
42
42
  if (fg('platform_editor_adf_with_localid')) {
43
+ if (fg('platform_editor_ai_aifc_patch_beta')) {
44
+ return [{
45
+ name: 'panel',
46
+ node: _objectSpread(_objectSpread({}, extendedPanelWithLocalId(!!options.allowCustomPanel)), {}, {
47
+ definingAsContext: true
48
+ })
49
+ }];
50
+ }
43
51
  return [{
44
52
  name: 'panel',
45
53
  node: extendedPanelWithLocalId(!!options.allowCustomPanel)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "8.0.8",
3
+ "version": "8.0.10",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,21 +34,21 @@
34
34
  "@atlaskit/editor-plugin-decorations": "^6.1.0",
35
35
  "@atlaskit/editor-plugin-emoji": "^7.1.0",
36
36
  "@atlaskit/editor-plugin-selection": "^6.1.0",
37
- "@atlaskit/editor-plugin-toolbar": "^3.1.0",
37
+ "@atlaskit/editor-plugin-toolbar": "^3.2.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
- "@atlaskit/editor-toolbar": "^0.14.0",
40
+ "@atlaskit/editor-toolbar": "^0.15.0",
41
41
  "@atlaskit/emoji": "^69.5.0",
42
- "@atlaskit/icon": "^28.4.0",
42
+ "@atlaskit/icon": "^28.5.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/theme": "^21.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^13.4.0",
45
+ "@atlaskit/tmp-editor-statsig": "^13.8.0",
46
46
  "@atlaskit/tokens": "^6.4.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "uuid": "^3.1.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^110.7.0",
51
+ "@atlaskit/editor-common": "^110.10.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -98,6 +98,9 @@
98
98
  },
99
99
  "platform_editor_block_menu_format_rank_revised": {
100
100
  "type": "boolean"
101
+ },
102
+ "platform_editor_ai_aifc_patch_beta": {
103
+ "type": "boolean"
101
104
  }
102
105
  },
103
106
  "stricter": {