@atlaskit/editor-core 195.6.1 → 195.6.2

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,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 195.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#131378](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131378)
8
+ [`04848ee5982e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04848ee5982e0) -
9
+ Remove `reactContext` from `PMPluginFactoryParams` type. This was an unused property and so
10
+ shouldn't have any upgrade friction.
11
+ - [#131548](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131548)
12
+ [`1b9034d028442`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1b9034d028442) -
13
+ [ux] Fix extension label button text size and update VR tests
14
+ - Updated dependencies
15
+
3
16
  ## 195.6.1
4
17
 
5
18
  ### Patch Changes
@@ -86,11 +86,11 @@ function handleEditorFocus(view) {
86
86
  var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Component) {
87
87
  (0, _inherits2.default)(ReactEditorView, _React$Component);
88
88
  var _super = _createSuper(ReactEditorView);
89
- function ReactEditorView(props, context) {
89
+ function ReactEditorView(props) {
90
90
  var _props$setEditorApi, _props$editorProps;
91
91
  var _this;
92
92
  (0, _classCallCheck2.default)(this, ReactEditorView);
93
- _this = _super.call(this, props, context);
93
+ _this = _super.call(this, props);
94
94
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "editorRef", /*#__PURE__*/_react.default.createRef());
95
95
  // ProseMirror is instantiated prior to the initial React render cycle,
96
96
  // so we allow transactions by default, to avoid discarding the initial one.
@@ -135,7 +135,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
135
135
  _this.featureFlags = (0, _featureFlagsFromProps.createFeatureFlagsFromProps)(_this.props.editorProps);
136
136
  _this.editorState = _this.createEditorState({
137
137
  props: _this.props,
138
- context: _this.context,
139
138
  doc: doc,
140
139
  resetting: true,
141
140
  selectionAtStart: !shouldScrollToBottom
@@ -201,9 +200,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
201
200
  eventDispatcher: _this.eventDispatcher,
202
201
  providerFactory: options.props.providerFactory,
203
202
  portalProviderAPI: _this.props.portalProviderAPI,
204
- reactContext: function reactContext() {
205
- return options.context;
206
- },
207
203
  dispatchAnalyticsEvent: _this.dispatchAnalyticsEvent,
208
204
  performanceTracking: _this.props.editorProps.performanceTracking,
209
205
  transactionTracker: _this.transactionTracker,
@@ -582,7 +578,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
582
578
  _this.eventDispatcher.on('resetEditorState', _this.resetEditorState);
583
579
  _this.editorState = _this.createEditorState({
584
580
  props: props,
585
- context: context,
586
581
  doc: props.editorProps.defaultValue,
587
582
  // ED-4759: Don't set selection at end for full-page editor - should be at start.
588
583
  selectionAtStart: (0, _isFullPage.isFullPage)(props.editorProps.appearance)
@@ -697,9 +692,6 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
697
692
  eventDispatcher: this.eventDispatcher,
698
693
  providerFactory: props.providerFactory,
699
694
  portalProviderAPI: props.portalProviderAPI,
700
- reactContext: function reactContext() {
701
- return _this2.context;
702
- },
703
695
  dispatchAnalyticsEvent: this.dispatchAnalyticsEvent,
704
696
  performanceTracking: props.editorProps.performanceTracking,
705
697
  transactionTracker: this.transactionTracker,
@@ -131,7 +131,6 @@ function createPMPlugins(config) {
131
131
  providerFactory: config.providerFactory,
132
132
  errorReporter: config.errorReporter,
133
133
  portalProviderAPI: config.portalProviderAPI,
134
- reactContext: config.reactContext,
135
134
  dispatchAnalyticsEvent: config.dispatchAnalyticsEvent,
136
135
  featureFlags: config.featureFlags || {},
137
136
  getIntl: config.getIntl
@@ -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 = "195.6.1";
8
+ var version = exports.version = "195.6.2";
@@ -86,9 +86,9 @@ export class ReactEditorView extends React.Component {
86
86
  // progressively opt out synthetic tenants.
87
87
  return ((_this$props$editorPro3 = this.props.editorProps) === null || _this$props$editorPro3 === void 0 ? void 0 : (_this$props$editorPro4 = _this$props$editorPro3.performanceTracking) === null || _this$props$editorPro4 === void 0 ? void 0 : (_this$props$editorPro5 = _this$props$editorPro4.transactionTracking) === null || _this$props$editorPro5 === void 0 ? void 0 : _this$props$editorPro5.enabled) === false;
88
88
  }
89
- constructor(props, context) {
89
+ constructor(props) {
90
90
  var _props$setEditorApi, _props$editorProps, _props$editorProps$pe, _props$editorProps$pe2;
91
- super(props, context);
91
+ super(props);
92
92
  _defineProperty(this, "editorRef", /*#__PURE__*/React.createRef());
93
93
  // ProseMirror is instantiated prior to the initial React render cycle,
94
94
  // so we allow transactions by default, to avoid discarding the initial one.
@@ -132,7 +132,6 @@ export class ReactEditorView extends React.Component {
132
132
  this.featureFlags = createFeatureFlagsFromProps(this.props.editorProps);
133
133
  this.editorState = this.createEditorState({
134
134
  props: this.props,
135
- context: this.context,
136
135
  doc: doc,
137
136
  resetting: true,
138
137
  selectionAtStart: !shouldScrollToBottom
@@ -200,7 +199,6 @@ export class ReactEditorView extends React.Component {
200
199
  eventDispatcher: this.eventDispatcher,
201
200
  providerFactory: options.props.providerFactory,
202
201
  portalProviderAPI: this.props.portalProviderAPI,
203
- reactContext: () => options.context,
204
202
  dispatchAnalyticsEvent: this.dispatchAnalyticsEvent,
205
203
  performanceTracking: this.props.editorProps.performanceTracking,
206
204
  transactionTracker: this.transactionTracker,
@@ -569,7 +567,6 @@ export class ReactEditorView extends React.Component {
569
567
  this.eventDispatcher.on('resetEditorState', this.resetEditorState);
570
568
  this.editorState = this.createEditorState({
571
569
  props,
572
- context,
573
570
  doc: props.editorProps.defaultValue,
574
571
  // ED-4759: Don't set selection at end for full-page editor - should be at start.
575
572
  selectionAtStart: isFullPage(props.editorProps.appearance)
@@ -650,7 +647,6 @@ export class ReactEditorView extends React.Component {
650
647
  eventDispatcher: this.eventDispatcher,
651
648
  providerFactory: props.providerFactory,
652
649
  portalProviderAPI: props.portalProviderAPI,
653
- reactContext: () => this.context,
654
650
  dispatchAnalyticsEvent: this.dispatchAnalyticsEvent,
655
651
  performanceTracking: props.editorProps.performanceTracking,
656
652
  transactionTracker: this.transactionTracker,
@@ -109,7 +109,6 @@ export function createPMPlugins(config) {
109
109
  providerFactory: config.providerFactory,
110
110
  errorReporter: config.errorReporter,
111
111
  portalProviderAPI: config.portalProviderAPI,
112
- reactContext: config.reactContext,
113
112
  dispatchAnalyticsEvent: config.dispatchAnalyticsEvent,
114
113
  featureFlags: config.featureFlags || {},
115
114
  getIntl: config.getIntl
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "195.6.1";
2
+ export const version = "195.6.2";
@@ -79,11 +79,11 @@ function handleEditorFocus(view) {
79
79
  export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
80
80
  _inherits(ReactEditorView, _React$Component);
81
81
  var _super = _createSuper(ReactEditorView);
82
- function ReactEditorView(props, context) {
82
+ function ReactEditorView(props) {
83
83
  var _props$setEditorApi, _props$editorProps;
84
84
  var _this;
85
85
  _classCallCheck(this, ReactEditorView);
86
- _this = _super.call(this, props, context);
86
+ _this = _super.call(this, props);
87
87
  _defineProperty(_assertThisInitialized(_this), "editorRef", /*#__PURE__*/React.createRef());
88
88
  // ProseMirror is instantiated prior to the initial React render cycle,
89
89
  // so we allow transactions by default, to avoid discarding the initial one.
@@ -128,7 +128,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
128
128
  _this.featureFlags = createFeatureFlagsFromProps(_this.props.editorProps);
129
129
  _this.editorState = _this.createEditorState({
130
130
  props: _this.props,
131
- context: _this.context,
132
131
  doc: doc,
133
132
  resetting: true,
134
133
  selectionAtStart: !shouldScrollToBottom
@@ -194,9 +193,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
194
193
  eventDispatcher: _this.eventDispatcher,
195
194
  providerFactory: options.props.providerFactory,
196
195
  portalProviderAPI: _this.props.portalProviderAPI,
197
- reactContext: function reactContext() {
198
- return options.context;
199
- },
200
196
  dispatchAnalyticsEvent: _this.dispatchAnalyticsEvent,
201
197
  performanceTracking: _this.props.editorProps.performanceTracking,
202
198
  transactionTracker: _this.transactionTracker,
@@ -575,7 +571,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
575
571
  _this.eventDispatcher.on('resetEditorState', _this.resetEditorState);
576
572
  _this.editorState = _this.createEditorState({
577
573
  props: props,
578
- context: context,
579
574
  doc: props.editorProps.defaultValue,
580
575
  // ED-4759: Don't set selection at end for full-page editor - should be at start.
581
576
  selectionAtStart: isFullPage(props.editorProps.appearance)
@@ -690,9 +685,6 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
690
685
  eventDispatcher: this.eventDispatcher,
691
686
  providerFactory: props.providerFactory,
692
687
  portalProviderAPI: props.portalProviderAPI,
693
- reactContext: function reactContext() {
694
- return _this2.context;
695
- },
696
688
  dispatchAnalyticsEvent: this.dispatchAnalyticsEvent,
697
689
  performanceTracking: props.editorProps.performanceTracking,
698
690
  transactionTracker: this.transactionTracker,
@@ -120,7 +120,6 @@ export function createPMPlugins(config) {
120
120
  providerFactory: config.providerFactory,
121
121
  errorReporter: config.errorReporter,
122
122
  portalProviderAPI: config.portalProviderAPI,
123
- reactContext: config.reactContext,
124
123
  dispatchAnalyticsEvent: config.dispatchAnalyticsEvent,
125
124
  featureFlags: config.featureFlags || {},
126
125
  getIntl: config.getIntl
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "195.6.1";
2
+ export var version = "195.6.2";
@@ -17,7 +17,7 @@ import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
17
17
  import { EventDispatcher } from '../event-dispatcher';
18
18
  import type { Dispatch } from '../event-dispatcher';
19
19
  import type { SetEditorAPI } from '../presets/context';
20
- import type { EditorAppearance, EditorConfig, EditorPlugin, EditorProps, EditorReactContext } from '../types';
20
+ import type { EditorAppearance, EditorConfig, EditorPlugin, EditorProps } from '../types';
21
21
  import type { EditorNextProps } from '../types/editor-props';
22
22
  import { TransactionTracker } from '../utils/performance/track-transactions';
23
23
  export interface EditorViewProps {
@@ -56,12 +56,11 @@ export interface EditorViewProps {
56
56
  }
57
57
  interface CreateEditorStateOptions {
58
58
  props: EditorViewProps;
59
- context: EditorReactContext;
60
59
  doc?: string | Object | PMNode;
61
60
  resetting?: boolean;
62
61
  selectionAtStart?: boolean;
63
62
  }
64
- export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
63
+ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}> {
65
64
  view?: EditorView;
66
65
  eventDispatcher: EventDispatcher;
67
66
  contentTransformer?: Transformer<string>;
@@ -77,7 +76,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
77
76
  static contextTypes: {
78
77
  getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
79
78
  };
80
- context: EditorReactContext;
81
79
  private canDispatchTransactions;
82
80
  private focusTimeoutId?;
83
81
  private reliabilityInterval?;
@@ -89,7 +87,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
89
87
  private getPluginNames;
90
88
  private countNodes;
91
89
  private isTransactionTrackingExplicitlyDisabled;
92
- constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
90
+ constructor(props: EditorViewProps & WrappedComponentProps & T);
93
91
  getEditorState: () => EditorState | undefined;
94
92
  getEditorView: () => EditorView | undefined;
95
93
  UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
@@ -7,7 +7,6 @@ import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-comm
7
7
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
8
8
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
9
9
  import type { Dispatch, EventDispatcher } from '../event-dispatcher';
10
- import type { EditorReactContext } from '../types/editor-react-context';
11
10
  import type { FeatureFlags } from '../types/feature-flags';
12
11
  import type { MarkConfig, NodeConfig } from '../types/pm-config';
13
12
  export type LightPMPluginFactoryParams = {
@@ -18,7 +17,6 @@ export type LightPMPluginFactoryParams = {
18
17
  props: {};
19
18
  prevProps?: {};
20
19
  portalProviderAPI: PortalProviderAPI;
21
- reactContext: () => EditorReactContext;
22
20
  dispatchAnalyticsEvent: DispatchAnalyticsEvent;
23
21
  featureFlags: FeatureFlags;
24
22
  getIntl: () => IntlShape;
@@ -17,7 +17,7 @@ import type { DirectEditorProps } from '@atlaskit/editor-prosemirror/view';
17
17
  import { EventDispatcher } from '../event-dispatcher';
18
18
  import type { Dispatch } from '../event-dispatcher';
19
19
  import type { SetEditorAPI } from '../presets/context';
20
- import type { EditorAppearance, EditorConfig, EditorPlugin, EditorProps, EditorReactContext } from '../types';
20
+ import type { EditorAppearance, EditorConfig, EditorPlugin, EditorProps } from '../types';
21
21
  import type { EditorNextProps } from '../types/editor-props';
22
22
  import { TransactionTracker } from '../utils/performance/track-transactions';
23
23
  export interface EditorViewProps {
@@ -56,12 +56,11 @@ export interface EditorViewProps {
56
56
  }
57
57
  interface CreateEditorStateOptions {
58
58
  props: EditorViewProps;
59
- context: EditorReactContext;
60
59
  doc?: string | Object | PMNode;
61
60
  resetting?: boolean;
62
61
  selectionAtStart?: boolean;
63
62
  }
64
- export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
63
+ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}> {
65
64
  view?: EditorView;
66
65
  eventDispatcher: EventDispatcher;
67
66
  contentTransformer?: Transformer<string>;
@@ -77,7 +76,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
77
76
  static contextTypes: {
78
77
  getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
79
78
  };
80
- context: EditorReactContext;
81
79
  private canDispatchTransactions;
82
80
  private focusTimeoutId?;
83
81
  private reliabilityInterval?;
@@ -89,7 +87,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
89
87
  private getPluginNames;
90
88
  private countNodes;
91
89
  private isTransactionTrackingExplicitlyDisabled;
92
- constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
90
+ constructor(props: EditorViewProps & WrappedComponentProps & T);
93
91
  getEditorState: () => EditorState | undefined;
94
92
  getEditorView: () => EditorView | undefined;
95
93
  UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
@@ -7,7 +7,6 @@ import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-comm
7
7
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
8
8
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
9
9
  import type { Dispatch, EventDispatcher } from '../event-dispatcher';
10
- import type { EditorReactContext } from '../types/editor-react-context';
11
10
  import type { FeatureFlags } from '../types/feature-flags';
12
11
  import type { MarkConfig, NodeConfig } from '../types/pm-config';
13
12
  export type LightPMPluginFactoryParams = {
@@ -18,7 +17,6 @@ export type LightPMPluginFactoryParams = {
18
17
  props: {};
19
18
  prevProps?: {};
20
19
  portalProviderAPI: PortalProviderAPI;
21
- reactContext: () => EditorReactContext;
22
20
  dispatchAnalyticsEvent: DispatchAnalyticsEvent;
23
21
  featureFlags: FeatureFlags;
24
22
  getIntl: () => IntlShape;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "195.6.1",
3
+ "version": "195.6.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/analytics-next": "^10.1.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^20.1.0",
48
- "@atlaskit/editor-common": "^87.13.0",
48
+ "@atlaskit/editor-common": "^88.0.0",
49
49
  "@atlaskit/editor-plugins": "^4.1.0",
50
50
  "@atlaskit/editor-prosemirror": "5.0.1",
51
51
  "@atlaskit/editor-shared-styles": "^2.13.0",
@@ -80,14 +80,14 @@
80
80
  "react-intl-next": "npm:react-intl@^5.18.1"
81
81
  },
82
82
  "devDependencies": {
83
- "@af/editor-examples-helpers": "0.2.0",
83
+ "@af/editor-examples-helpers": "0.3.1",
84
84
  "@af/editor-libra": "*",
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.8.0",
87
87
  "@atlaskit/analytics-listeners": "^8.11.0",
88
- "@atlaskit/collab-provider": "9.37.2",
88
+ "@atlaskit/collab-provider": "9.37.3",
89
89
  "@atlaskit/editor-json-transformer": "^8.18.0",
90
- "@atlaskit/editor-plugin-annotation": "1.19.0",
90
+ "@atlaskit/editor-plugin-annotation": "1.19.2",
91
91
  "@atlaskit/editor-plugin-card": "^2.13.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
93
93
  "@atlaskit/editor-plugin-list": "^3.8.0",
@@ -108,7 +108,7 @@
108
108
  "@atlaskit/visual-regression": "*",
109
109
  "@atlassian/adf-schema-json": "^1.22.0",
110
110
  "@atlassian/feature-flags-test-utils": "*",
111
- "@atlassian/search-provider": "2.4.108",
111
+ "@atlassian/search-provider": "2.4.111",
112
112
  "@emotion/jest": "^11.8.0",
113
113
  "@storybook/addon-knobs": "^5.3.18",
114
114
  "@testing-library/react": "^12.1.5",
@@ -240,10 +240,6 @@
240
240
  "platform.editor.core.increase-full-page-guttering": {
241
241
  "type": "boolean"
242
242
  },
243
- "platform.editor.no-telecursors-for-viewmode-users_hok8o": {
244
- "type": "boolean",
245
- "referenceOnly": "true"
246
- },
247
243
  "platform_editor_tables_padding_increase": {
248
244
  "type": "boolean",
249
245
  "referenceOnly": "true"