@atlaskit/editor-core 185.6.0 → 185.6.1
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 +8 -0
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +21 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +21 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorViewInternal.js +21 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +1 -0
- package/dist/types/plugins/collab-edit/participants.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +1 -0
- package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 185.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a1a0ac82bce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a1a0ac82bce) - ED-18861 Update editor wrapper div when assistiveLabel prop change.
|
|
8
|
+
- [`8d460228bf3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d460228bf3) - NONE: fix collabparticipant import
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 185.6.0
|
|
4
12
|
|
|
5
13
|
### 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), "
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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.
|
|
9
|
+
var version = "185.6.1";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -486,14 +486,24 @@ export class ReactEditorView extends React.Component {
|
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
|
-
_defineProperty(this, "
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -481,14 +481,24 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
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",
|
package/dist/esm/version.json
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "185.6.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -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.
|
|
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",
|
|
@@ -152,7 +152,7 @@
|
|
|
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.
|
|
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",
|