@atlaskit/editor-core 204.4.2 → 204.4.3

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,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#123543](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/123543)
8
+ [`2e2c5201aac9a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e2c5201aac9a) -
9
+ [ux] ED-26983 add feature gate to disable context panel animation
10
+ - Updated dependencies
11
+
3
12
  ## 204.4.2
4
13
 
5
14
  ### Patch Changes
@@ -19,6 +19,7 @@ var _Transition = _interopRequireDefault(require("react-transition-group/Transit
19
19
  var _hooks = require("@atlaskit/editor-common/hooks");
20
20
  var _ui = require("@atlaskit/editor-common/ui");
21
21
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
22
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
23
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24
25
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
@@ -41,6 +42,9 @@ var panel = exports.panel = (0, _react2.css)({
41
42
  overflow: 'hidden',
42
43
  boxShadow: "inset 2px 0 0 0 ".concat("var(--ds-border, #091E4224)")
43
44
  });
45
+ var disablePanelAnimation = (0, _react2.css)({
46
+ transition: 'none'
47
+ });
44
48
 
45
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
46
50
  var content = exports.content = (0, _react2.css)({
@@ -82,8 +86,9 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
82
86
  if (!currentPluginContent) {
83
87
  return;
84
88
  }
89
+ var animSpeedMs = (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
85
90
  return (0, _react2.jsx)(_Transition.default, {
86
- timeout: _this.state.mounted ? ANIM_SPEED_MS : 0,
91
+ timeout: _this.state.mounted ? animSpeedMs : 0,
87
92
  in: !!pluginContent,
88
93
  mountOnEnter: true,
89
94
  unmountOnExit: true,
@@ -97,8 +102,9 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
97
102
  if (!children) {
98
103
  return;
99
104
  }
105
+ var animSpeedMs = (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
100
106
  return (0, _react2.jsx)(_Transition.default, {
101
- timeout: _this.state.mounted ? ANIM_SPEED_MS : 0,
107
+ timeout: _this.state.mounted ? animSpeedMs : 0,
102
108
  in: isVisible,
103
109
  mountOnEnter: true,
104
110
  unmountOnExit: true,
@@ -144,7 +150,7 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
144
150
  return (0, _react2.jsx)("div", {
145
151
  css: [panel,
146
152
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
147
- _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden],
153
+ _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
148
154
  "data-testid": "context-panel-panel",
149
155
  "aria-labelledby": "context-panel-title",
150
156
  role: "dialog"
@@ -152,7 +158,7 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
152
158
  "data-testid": "context-panel-content",
153
159
  css: [content, hasPadding && paddingStyles,
154
160
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
155
- _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden]
161
+ _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, (0, _platformFeatureFlags.fg)('platform_editor_disable_context_panel_animation') && disablePanelAnimation]
156
162
  }, _this2.showPluginContent() || _this2.showProvidedContent(userVisible)));
157
163
  });
158
164
  }
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "204.4.2";
8
+ var version = exports.version = "204.4.3";
@@ -12,6 +12,7 @@ import Transition from 'react-transition-group/Transition';
12
12
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
13
13
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
14
14
  import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
15
+ import { fg } from '@atlaskit/platform-feature-flags';
15
16
  const ANIM_SPEED_MS = 500;
16
17
  const panelHidden = css({
17
18
  width: 0
@@ -27,6 +28,9 @@ export const panel = css({
27
28
  overflow: 'hidden',
28
29
  boxShadow: `inset 2px 0 0 0 ${"var(--ds-border, #091E4224)"}`
29
30
  });
31
+ const disablePanelAnimation = css({
32
+ transition: 'none'
33
+ });
30
34
 
31
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
32
36
  export const content = css({
@@ -69,8 +73,9 @@ export class SwappableContentArea extends React.PureComponent {
69
73
  if (!currentPluginContent) {
70
74
  return;
71
75
  }
76
+ const animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
72
77
  return jsx(Transition, {
73
- timeout: this.state.mounted ? ANIM_SPEED_MS : 0,
78
+ timeout: this.state.mounted ? animSpeedMs : 0,
74
79
  in: !!pluginContent,
75
80
  mountOnEnter: true,
76
81
  unmountOnExit: true,
@@ -84,8 +89,9 @@ export class SwappableContentArea extends React.PureComponent {
84
89
  if (!children) {
85
90
  return;
86
91
  }
92
+ const animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
87
93
  return jsx(Transition, {
88
- timeout: this.state.mounted ? ANIM_SPEED_MS : 0,
94
+ timeout: this.state.mounted ? animSpeedMs : 0,
89
95
  in: isVisible,
90
96
  mountOnEnter: true,
91
97
  unmountOnExit: true,
@@ -132,7 +138,7 @@ export class SwappableContentArea extends React.PureComponent {
132
138
  return jsx("div", {
133
139
  css: [panel,
134
140
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
135
- this.props.customWidth && customPanelWidthStyles, !visible && panelHidden],
141
+ this.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
136
142
  "data-testid": "context-panel-panel",
137
143
  "aria-labelledby": "context-panel-title",
138
144
  role: "dialog"
@@ -140,7 +146,7 @@ export class SwappableContentArea extends React.PureComponent {
140
146
  "data-testid": "context-panel-content",
141
147
  css: [content, hasPadding && paddingStyles,
142
148
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
143
- this.props.customWidth && customPanelWidthStyles, !visible && panelHidden]
149
+ this.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation]
144
150
  }, this.showPluginContent() || this.showProvidedContent(userVisible)));
145
151
  });
146
152
  }
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "204.4.2";
2
+ export const version = "204.4.3";
@@ -21,6 +21,7 @@ import Transition from 'react-transition-group/Transition';
21
21
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
22
22
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
23
23
  import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
24
+ import { fg } from '@atlaskit/platform-feature-flags';
24
25
  var ANIM_SPEED_MS = 500;
25
26
  var panelHidden = css({
26
27
  width: 0
@@ -36,6 +37,9 @@ export var panel = css({
36
37
  overflow: 'hidden',
37
38
  boxShadow: "inset 2px 0 0 0 ".concat("var(--ds-border, #091E4224)")
38
39
  });
40
+ var disablePanelAnimation = css({
41
+ transition: 'none'
42
+ });
39
43
 
40
44
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
41
45
  export var content = css({
@@ -77,8 +81,9 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
77
81
  if (!currentPluginContent) {
78
82
  return;
79
83
  }
84
+ var animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
80
85
  return jsx(Transition, {
81
- timeout: _this.state.mounted ? ANIM_SPEED_MS : 0,
86
+ timeout: _this.state.mounted ? animSpeedMs : 0,
82
87
  in: !!pluginContent,
83
88
  mountOnEnter: true,
84
89
  unmountOnExit: true,
@@ -92,8 +97,9 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
92
97
  if (!children) {
93
98
  return;
94
99
  }
100
+ var animSpeedMs = fg('platform_editor_disable_context_panel_animation') ? 0 : ANIM_SPEED_MS;
95
101
  return jsx(Transition, {
96
- timeout: _this.state.mounted ? ANIM_SPEED_MS : 0,
102
+ timeout: _this.state.mounted ? animSpeedMs : 0,
97
103
  in: isVisible,
98
104
  mountOnEnter: true,
99
105
  unmountOnExit: true,
@@ -139,7 +145,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
139
145
  return jsx("div", {
140
146
  css: [panel,
141
147
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
142
- _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden],
148
+ _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation],
143
149
  "data-testid": "context-panel-panel",
144
150
  "aria-labelledby": "context-panel-title",
145
151
  role: "dialog"
@@ -147,7 +153,7 @@ export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
147
153
  "data-testid": "context-panel-content",
148
154
  css: [content, hasPadding && paddingStyles,
149
155
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage
150
- _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden]
156
+ _this2.props.customWidth && customPanelWidthStyles, !visible && panelHidden, fg('platform_editor_disable_context_panel_animation') && disablePanelAnimation]
151
157
  }, _this2.showPluginContent() || _this2.showProvidedContent(userVisible)));
152
158
  });
153
159
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "204.4.2";
2
+ export var version = "204.4.3";
@@ -123,6 +123,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
123
123
  dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
124
124
  sharedState: {
125
125
  showContextPanel: boolean | undefined;
126
+ extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
127
+ processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
126
128
  } | undefined;
127
129
  actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
128
130
  }, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
@@ -131,6 +133,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
131
133
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
132
134
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
133
135
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
136
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
134
137
  };
135
138
  sharedState: {
136
139
  contents: import("react").ReactNode[] | undefined;
@@ -448,6 +451,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
448
451
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
449
452
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
450
453
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
454
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
451
455
  };
452
456
  sharedState: {
453
457
  contents: import("react").ReactNode[] | undefined;
@@ -511,6 +515,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
511
515
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
512
516
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
513
517
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
518
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
514
519
  };
515
520
  sharedState: {
516
521
  contents: import("react").ReactNode[] | undefined;
@@ -776,6 +781,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
776
781
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
777
782
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
778
783
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
784
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
779
785
  };
780
786
  sharedState: {
781
787
  contents: import("react").ReactNode[] | undefined;
@@ -863,6 +869,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
863
869
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
864
870
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
865
871
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
872
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
866
873
  };
867
874
  sharedState: {
868
875
  contents: import("react").ReactNode[] | undefined;
@@ -175,6 +175,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
175
175
  dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
176
176
  sharedState: {
177
177
  showContextPanel: boolean | undefined;
178
+ extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
179
+ processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
178
180
  } | undefined;
179
181
  actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
180
182
  }, ExtensionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
@@ -183,6 +185,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
183
185
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
184
186
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
185
187
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
188
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
186
189
  };
187
190
  sharedState: {
188
191
  contents: import("react").ReactNode[] | undefined;
@@ -500,6 +503,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
500
503
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
501
504
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
502
505
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
506
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
503
507
  };
504
508
  sharedState: {
505
509
  contents: import("react").ReactNode[] | undefined;
@@ -563,6 +567,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
563
567
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
564
568
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
565
569
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
570
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
566
571
  };
567
572
  sharedState: {
568
573
  contents: import("react").ReactNode[] | undefined;
@@ -828,6 +833,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
828
833
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
829
834
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
830
835
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
836
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
831
837
  };
832
838
  sharedState: {
833
839
  contents: import("react").ReactNode[] | undefined;
@@ -915,6 +921,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
915
921
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
916
922
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
917
923
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
924
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
918
925
  };
919
926
  sharedState: {
920
927
  contents: import("react").ReactNode[] | undefined;
@@ -123,6 +123,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
123
123
  dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
124
124
  sharedState: {
125
125
  showContextPanel: boolean | undefined;
126
+ extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
127
+ processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
126
128
  } | undefined;
127
129
  actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
128
130
  }, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
@@ -131,6 +133,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
131
133
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
132
134
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
133
135
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
136
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
134
137
  };
135
138
  sharedState: {
136
139
  contents: import("react").ReactNode[] | undefined;
@@ -448,6 +451,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
448
451
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
449
452
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
450
453
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
454
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
451
455
  };
452
456
  sharedState: {
453
457
  contents: import("react").ReactNode[] | undefined;
@@ -511,6 +515,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
511
515
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
512
516
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
513
517
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
518
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
514
519
  };
515
520
  sharedState: {
516
521
  contents: import("react").ReactNode[] | undefined;
@@ -776,6 +781,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
776
781
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
777
782
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
778
783
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
784
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
779
785
  };
780
786
  sharedState: {
781
787
  contents: import("react").ReactNode[] | undefined;
@@ -863,6 +869,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
863
869
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
864
870
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
865
871
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
872
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
866
873
  };
867
874
  sharedState: {
868
875
  contents: import("react").ReactNode[] | undefined;
@@ -221,6 +221,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
221
221
  dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
222
222
  sharedState: {
223
223
  showContextPanel: boolean | undefined;
224
+ extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
225
+ processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
224
226
  } | undefined;
225
227
  actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
226
228
  }, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined,
@@ -230,6 +232,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
230
232
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
231
233
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
232
234
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
235
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
233
236
  };
234
237
  sharedState: {
235
238
  contents: import("react").ReactNode[] | undefined;
@@ -612,6 +615,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
612
615
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
613
616
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
614
617
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
618
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
615
619
  };
616
620
  sharedState: {
617
621
  contents: import("react").ReactNode[] | undefined;
@@ -685,6 +689,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
685
689
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
686
690
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
687
691
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
692
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
688
693
  };
689
694
  sharedState: {
690
695
  contents: import("react").ReactNode[] | undefined;
@@ -995,6 +1000,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
995
1000
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
996
1001
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
997
1002
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1003
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
998
1004
  };
999
1005
  sharedState: {
1000
1006
  contents: import("react").ReactNode[] | undefined;
@@ -1095,6 +1101,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1095
1101
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1096
1102
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1097
1103
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1104
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
1098
1105
  };
1099
1106
  sharedState: {
1100
1107
  contents: import("react").ReactNode[] | undefined;
@@ -273,6 +273,8 @@ export default function createUniversalPresetInternal({ appearance, props, featu
273
273
  dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
274
274
  sharedState: {
275
275
  showContextPanel: boolean | undefined;
276
+ extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
277
+ processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
276
278
  } | undefined;
277
279
  actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
278
280
  }, ExtensionPluginOptions | undefined> | undefined,
@@ -282,6 +284,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
282
284
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
283
285
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
284
286
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
287
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
285
288
  };
286
289
  sharedState: {
287
290
  contents: import("react").ReactNode[] | undefined;
@@ -664,6 +667,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
664
667
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
665
668
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
666
669
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
670
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
667
671
  };
668
672
  sharedState: {
669
673
  contents: import("react").ReactNode[] | undefined;
@@ -737,6 +741,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
737
741
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
738
742
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
739
743
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
744
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
740
745
  };
741
746
  sharedState: {
742
747
  contents: import("react").ReactNode[] | undefined;
@@ -1047,6 +1052,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1047
1052
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1048
1053
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1049
1054
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1055
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
1050
1056
  };
1051
1057
  sharedState: {
1052
1058
  contents: import("react").ReactNode[] | undefined;
@@ -1147,6 +1153,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1147
1153
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1148
1154
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1149
1155
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1156
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
1150
1157
  };
1151
1158
  sharedState: {
1152
1159
  contents: import("react").ReactNode[] | undefined;
@@ -221,6 +221,8 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
221
221
  dependencies: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginDependencies;
222
222
  sharedState: {
223
223
  showContextPanel: boolean | undefined;
224
+ extensionProvider?: import("@atlaskit/editor-common/extensions").ExtensionProvider<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
225
+ processParametersAfter?: import("@atlaskit/editor-common/extensions").TransformAfter<import("@atlaskit/editor-common/extensions").Parameters> | undefined;
224
226
  } | undefined;
225
227
  actions: import("packages/editor/editor-plugin-extension/dist/types/extensionPluginType").ExtensionPluginActions;
226
228
  }, import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined> | undefined,
@@ -230,6 +232,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
230
232
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
231
233
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
232
234
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
235
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
233
236
  };
234
237
  sharedState: {
235
238
  contents: import("react").ReactNode[] | undefined;
@@ -612,6 +615,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
612
615
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
613
616
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
614
617
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
618
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
615
619
  };
616
620
  sharedState: {
617
621
  contents: import("react").ReactNode[] | undefined;
@@ -685,6 +689,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
685
689
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
686
690
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
687
691
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
692
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
688
693
  };
689
694
  sharedState: {
690
695
  contents: import("react").ReactNode[] | undefined;
@@ -995,6 +1000,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
995
1000
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
996
1001
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
997
1002
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1003
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
998
1004
  };
999
1005
  sharedState: {
1000
1006
  contents: import("react").ReactNode[] | undefined;
@@ -1095,6 +1101,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1095
1101
  applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1096
1102
  showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1097
1103
  closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1104
+ closePanelById: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById;
1098
1105
  };
1099
1106
  sharedState: {
1100
1107
  contents: import("react").ReactNode[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "204.4.2",
3
+ "version": "204.4.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,8 +48,8 @@
48
48
  "@atlaskit/css": "^0.10.0",
49
49
  "@atlaskit/editor-common": "^101.1.0",
50
50
  "@atlaskit/editor-json-transformer": "^8.24.0",
51
- "@atlaskit/editor-performance-metrics": "2.0.2",
52
- "@atlaskit/editor-plugin-quick-insert": "2.0.5",
51
+ "@atlaskit/editor-performance-metrics": "^2.0.0",
52
+ "@atlaskit/editor-plugin-quick-insert": "^2.0.0",
53
53
  "@atlaskit/editor-plugins": "^8.0.0",
54
54
  "@atlaskit/editor-prosemirror": "7.0.0",
55
55
  "@atlaskit/editor-shared-styles": "^3.4.0",
@@ -84,12 +84,12 @@
84
84
  "react-intl-next": "npm:react-intl@^5.18.1"
85
85
  },
86
86
  "devDependencies": {
87
- "@af/editor-libra": "*",
88
- "@af/visual-regression": "*",
87
+ "@af/editor-libra": "^0.40.0",
88
+ "@af/visual-regression": "^1.3.0",
89
89
  "@atlaskit/adf-utils": "^19.19.0",
90
90
  "@atlaskit/analytics-listeners": "^9.0.0",
91
- "@atlaskit/collab-provider": "10.9.1",
92
- "@atlaskit/editor-plugin-annotation": "2.1.1",
91
+ "@atlaskit/collab-provider": "^10.9.0",
92
+ "@atlaskit/editor-plugin-annotation": "^2.1.0",
93
93
  "@atlaskit/editor-plugin-card": "^5.2.0",
94
94
  "@atlaskit/editor-plugin-list": "^4.1.0",
95
95
  "@atlaskit/editor-plugin-paste": "^3.1.0",
@@ -105,10 +105,10 @@
105
105
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
106
106
  "@atlaskit/toggle": "^15.0.0",
107
107
  "@atlaskit/util-data-test": "^18.0.0",
108
- "@atlaskit/visual-regression": "*",
108
+ "@atlaskit/visual-regression": "^0.10.0",
109
109
  "@atlassian/adf-schema-json": "^1.31.0",
110
- "@atlassian/feature-flags-test-utils": "*",
111
- "@atlassian/search-provider": "3.0.42",
110
+ "@atlassian/feature-flags-test-utils": "^0.3.0",
111
+ "@atlassian/search-provider": "^3.0.0",
112
112
  "@emotion/jest": "^11.8.0",
113
113
  "@storybook/addon-knobs": "^6.4.0",
114
114
  "@testing-library/react": "^13.4.0",
@@ -350,6 +350,10 @@
350
350
  "type": "boolean",
351
351
  "referenceOnly": true
352
352
  },
353
+ "platform_editor_disable_context_panel_animation": {
354
+ "type": "boolean",
355
+ "referenceOnly": true
356
+ },
353
357
  "platform_editor_advanced_layouts_a11y": {
354
358
  "type": "boolean",
355
359
  "referenceOnly": true
@@ -517,6 +521,10 @@
517
521
  "platform_editor_elements_dnd_select_node_on_drag": {
518
522
  "type": "boolean",
519
523
  "referenceOnly": true
524
+ },
525
+ "platform_editor_non_macros_copy_and_paste_fix": {
526
+ "type": "boolean",
527
+ "referenceOnly": true
520
528
  }
521
529
  },
522
530
  "stricter": {