@atlaskit/editor-core 185.6.0 → 185.6.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,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 185.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d73305e0246`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d73305e0246) - ED-18796 enable FF for table cell optimisation
8
+
9
+ ## 185.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`a1a0ac82bce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a1a0ac82bce) - ED-18861 Update editor wrapper div when assistiveLabel prop change.
14
+ - [`8d460228bf3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d460228bf3) - NONE: fix collabparticipant import
15
+ - Updated dependencies
16
+
3
17
  ## 185.6.0
4
18
 
5
19
  ### Minor Changes
@@ -486,14 +486,24 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
486
486
  });
487
487
  }
488
488
  });
489
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "editor", /*#__PURE__*/_react.default.createElement("div", {
490
- className: getUAPrefix(),
491
- key: "ProseMirror",
492
- ref: _this.handleEditorViewRef,
493
- "aria-label": _this.props.editorProps.assistiveLabel ? _this.props.editorProps.assistiveLabel : _this.props.intl.formatMessage(_messages.editorMessages.editorAssistiveLabel),
494
- role: "textbox",
495
- id: EDIT_AREA_ID
496
- }));
489
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createEditor", function (assistiveLabel) {
490
+ return /*#__PURE__*/_react.default.createElement("div", {
491
+ className: getUAPrefix(),
492
+ key: "ProseMirror",
493
+ ref: _this.handleEditorViewRef,
494
+ "aria-label": assistiveLabel || _this.props.intl.formatMessage(_messages.editorMessages.editorAssistiveLabel)
495
+ // setting aria-multiline to true when not mobile appearance.
496
+ // because somehow mobile tests are failing when it set.
497
+ // don't know why that is happening.
498
+ // Created https://product-fabric.atlassian.net/jira/servicedesk/projects/DTR/queues/issue/DTR-1675
499
+ // to investigate further.
500
+ ,
501
+ "aria-multiline": _this.props.editorProps.appearance !== 'mobile' ? true : false,
502
+ role: "textbox",
503
+ id: EDIT_AREA_ID
504
+ });
505
+ });
506
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "editor", _this.createEditor(_this.props.editorProps.assistiveLabel));
497
507
  _this.pluginInjectionAPI = new _preset.EditorPluginInjectionAPI({
498
508
  getEditorState: _this.getEditorState
499
509
  });
@@ -622,6 +632,9 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
622
632
  if (!this.transactionTracking.enabled) {
623
633
  this.pluginPerformanceObserver.disconnect();
624
634
  }
635
+ if (nextProps.editorProps.assistiveLabel !== this.props.editorProps.assistiveLabel) {
636
+ this.editor = this.createEditor(nextProps.editorProps.assistiveLabel);
637
+ }
625
638
  }
626
639
  }, {
627
640
  key: "reconfigureState",
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "185.6.0";
9
+ var version = "185.6.3";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.6.0",
3
+ "version": "185.6.3",
4
4
  "sideEffects": false
5
5
  }
@@ -486,14 +486,24 @@ export class ReactEditorView extends React.Component {
486
486
  });
487
487
  }
488
488
  });
489
- _defineProperty(this, "editor", /*#__PURE__*/React.createElement("div", {
490
- className: getUAPrefix(),
491
- key: "ProseMirror",
492
- ref: this.handleEditorViewRef,
493
- "aria-label": this.props.editorProps.assistiveLabel ? this.props.editorProps.assistiveLabel : this.props.intl.formatMessage(editorMessages.editorAssistiveLabel),
494
- role: "textbox",
495
- id: EDIT_AREA_ID
496
- }));
489
+ _defineProperty(this, "createEditor", assistiveLabel => {
490
+ return /*#__PURE__*/React.createElement("div", {
491
+ className: getUAPrefix(),
492
+ key: "ProseMirror",
493
+ ref: this.handleEditorViewRef,
494
+ "aria-label": assistiveLabel || this.props.intl.formatMessage(editorMessages.editorAssistiveLabel)
495
+ // setting aria-multiline to true when not mobile appearance.
496
+ // because somehow mobile tests are failing when it set.
497
+ // don't know why that is happening.
498
+ // Created https://product-fabric.atlassian.net/jira/servicedesk/projects/DTR/queues/issue/DTR-1675
499
+ // to investigate further.
500
+ ,
501
+ "aria-multiline": this.props.editorProps.appearance !== 'mobile' ? true : false,
502
+ role: "textbox",
503
+ id: EDIT_AREA_ID
504
+ });
505
+ });
506
+ _defineProperty(this, "editor", this.createEditor(this.props.editorProps.assistiveLabel));
497
507
  this.pluginInjectionAPI = new EditorPluginInjectionAPI({
498
508
  getEditorState: this.getEditorState
499
509
  });
@@ -582,6 +592,9 @@ export class ReactEditorView extends React.Component {
582
592
  if (!this.transactionTracking.enabled) {
583
593
  this.pluginPerformanceObserver.disconnect();
584
594
  }
595
+ if (nextProps.editorProps.assistiveLabel !== this.props.editorProps.assistiveLabel) {
596
+ this.editor = this.createEditor(nextProps.editorProps.assistiveLabel);
597
+ }
585
598
  }
586
599
  reconfigureState(props) {
587
600
  if (!this.view) {
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "185.6.0";
2
+ export const version = "185.6.3";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.6.0",
3
+ "version": "185.6.3",
4
4
  "sideEffects": false
5
5
  }
@@ -481,14 +481,24 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
481
481
  });
482
482
  }
483
483
  });
484
- _defineProperty(_assertThisInitialized(_this), "editor", /*#__PURE__*/React.createElement("div", {
485
- className: getUAPrefix(),
486
- key: "ProseMirror",
487
- ref: _this.handleEditorViewRef,
488
- "aria-label": _this.props.editorProps.assistiveLabel ? _this.props.editorProps.assistiveLabel : _this.props.intl.formatMessage(editorMessages.editorAssistiveLabel),
489
- role: "textbox",
490
- id: EDIT_AREA_ID
491
- }));
484
+ _defineProperty(_assertThisInitialized(_this), "createEditor", function (assistiveLabel) {
485
+ return /*#__PURE__*/React.createElement("div", {
486
+ className: getUAPrefix(),
487
+ key: "ProseMirror",
488
+ ref: _this.handleEditorViewRef,
489
+ "aria-label": assistiveLabel || _this.props.intl.formatMessage(editorMessages.editorAssistiveLabel)
490
+ // setting aria-multiline to true when not mobile appearance.
491
+ // because somehow mobile tests are failing when it set.
492
+ // don't know why that is happening.
493
+ // Created https://product-fabric.atlassian.net/jira/servicedesk/projects/DTR/queues/issue/DTR-1675
494
+ // to investigate further.
495
+ ,
496
+ "aria-multiline": _this.props.editorProps.appearance !== 'mobile' ? true : false,
497
+ role: "textbox",
498
+ id: EDIT_AREA_ID
499
+ });
500
+ });
501
+ _defineProperty(_assertThisInitialized(_this), "editor", _this.createEditor(_this.props.editorProps.assistiveLabel));
492
502
  _this.pluginInjectionAPI = new EditorPluginInjectionAPI({
493
503
  getEditorState: _this.getEditorState
494
504
  });
@@ -617,6 +627,9 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
617
627
  if (!this.transactionTracking.enabled) {
618
628
  this.pluginPerformanceObserver.disconnect();
619
629
  }
630
+ if (nextProps.editorProps.assistiveLabel !== this.props.editorProps.assistiveLabel) {
631
+ this.editor = this.createEditor(nextProps.editorProps.assistiveLabel);
632
+ }
620
633
  }
621
634
  }, {
622
635
  key: "reconfigureState",
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "185.6.0";
2
+ export var version = "185.6.3";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.6.0",
3
+ "version": "185.6.3",
4
4
  "sideEffects": false
5
5
  }
@@ -110,6 +110,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
110
110
  private createEditorView;
111
111
  handleEditorViewRef: (node: HTMLDivElement) => void;
112
112
  dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
113
+ private createEditor;
113
114
  private editor;
114
115
  render(): JSX.Element;
115
116
  }
@@ -1,4 +1,4 @@
1
- import { CollabParticipant } from '@atlaskit/collab-provider';
1
+ import type { CollabParticipant } from '@atlaskit/collab-provider';
2
2
  export interface ReadOnlyParticipants {
3
3
  get(sessionId: string): CollabParticipant | undefined;
4
4
  toArray(): ReadonlyArray<CollabParticipant>;
@@ -110,6 +110,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
110
110
  private createEditorView;
111
111
  handleEditorViewRef: (node: HTMLDivElement) => void;
112
112
  dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
113
+ private createEditor;
113
114
  private editor;
114
115
  render(): JSX.Element;
115
116
  }
@@ -1,4 +1,4 @@
1
- import { CollabParticipant } from '@atlaskit/collab-provider';
1
+ import type { CollabParticipant } from '@atlaskit/collab-provider';
2
2
  export interface ReadOnlyParticipants {
3
3
  get(sessionId: string): CollabParticipant | undefined;
4
4
  toArray(): ReadonlyArray<CollabParticipant>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "185.6.0",
3
+ "version": "185.6.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
61
61
  "@atlaskit/editor-plugin-floating-toolbar": "^0.2.0",
62
62
  "@atlaskit/editor-plugin-grid": "^0.1.0",
63
- "@atlaskit/editor-plugin-table": "^1.6.0",
63
+ "@atlaskit/editor-plugin-table": "^1.7.0",
64
64
  "@atlaskit/editor-plugin-width": "^0.1.0",
65
65
  "@atlaskit/editor-shared-styles": "^2.4.0",
66
66
  "@atlaskit/editor-tables": "^2.3.0",
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/icon": "^21.12.0",
71
71
  "@atlaskit/icon-object": "^6.3.0",
72
72
  "@atlaskit/link-analytics": "^8.1.0",
73
- "@atlaskit/link-datasource": "^0.26.0",
73
+ "@atlaskit/link-datasource": "^0.27.0",
74
74
  "@atlaskit/link-picker": "^1.25.0",
75
75
  "@atlaskit/locale": "^2.5.0",
76
76
  "@atlaskit/logo": "^13.14.0",
@@ -100,7 +100,7 @@
100
100
  "@atlaskit/textfield": "^5.5.0",
101
101
  "@atlaskit/theme": "^12.5.0",
102
102
  "@atlaskit/toggle": "^12.6.0",
103
- "@atlaskit/tokens": "^1.10.0",
103
+ "@atlaskit/tokens": "^1.11.0",
104
104
  "@atlaskit/tooltip": "^17.8.0",
105
105
  "@atlaskit/width-detector": "^4.1.0",
106
106
  "@babel/runtime": "^7.0.0",
@@ -152,13 +152,13 @@
152
152
  "@atlaskit/atlassian-navigation": "^2.6.0",
153
153
  "@atlaskit/breadcrumbs": "11.10.4",
154
154
  "@atlaskit/code": "^14.6.0",
155
- "@atlaskit/collab-provider": "9.4.0",
155
+ "@atlaskit/collab-provider": "9.5.0",
156
156
  "@atlaskit/docs": "*",
157
157
  "@atlaskit/drawer": "^7.5.0",
158
158
  "@atlaskit/dropdown-menu": "^11.10.0",
159
159
  "@atlaskit/editor-card-provider": "^3.1.0",
160
160
  "@atlaskit/editor-extension-dropbox": "^0.4.0",
161
- "@atlaskit/editor-plugin-table": "^1.6.0",
161
+ "@atlaskit/editor-plugin-table": "^1.7.0",
162
162
  "@atlaskit/editor-test-helpers": "^18.7.0",
163
163
  "@atlaskit/flag": "^15.2.0",
164
164
  "@atlaskit/inline-dialog": "^13.6.0",
@@ -171,7 +171,7 @@
171
171
  "@atlaskit/menu": "^1.9.0",
172
172
  "@atlaskit/page-layout": "^1.7.0",
173
173
  "@atlaskit/platform-feature-flags": "^0.2.0",
174
- "@atlaskit/renderer": "^108.5.0",
174
+ "@atlaskit/renderer": "^108.6.0",
175
175
  "@atlaskit/section-message": "^6.4.0",
176
176
  "@atlaskit/share": "*",
177
177
  "@atlaskit/smart-user-picker": "^6.1.0",
@@ -253,6 +253,10 @@
253
253
  "platform.design-system-team.menu-selected-state-change_0see9": {
254
254
  "type": "boolean",
255
255
  "referenceOnly": "true"
256
+ },
257
+ "platform.editor.update-table-cell-width-via-step": {
258
+ "type": "boolean",
259
+ "referenceOnly": "true"
256
260
  }
257
261
  }
258
262
  }