@atlaskit/editor-core 198.0.1 → 198.1.0
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/ReactEditorView.js +4 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +4 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 198.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#146229](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146229)
|
|
8
|
+
[`a22cd98ea95ee`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a22cd98ea95ee) -
|
|
9
|
+
[ux] EDF-1218: Attach unique data IDs to editor instances (for use by AI event hub plugin)
|
|
10
|
+
|
|
3
11
|
## 198.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
17
|
var _reactIntlNext = require("react-intl-next");
|
|
18
|
+
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
18
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
19
20
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
20
21
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
@@ -523,6 +524,7 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
523
524
|
});
|
|
524
525
|
}
|
|
525
526
|
});
|
|
527
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "editorId", (0, _v.default)());
|
|
526
528
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createEditor", function (assistiveLabel, assistiveDescribedBy) {
|
|
527
529
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
528
530
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -539,7 +541,8 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
539
541
|
"aria-multiline": true,
|
|
540
542
|
role: "textbox",
|
|
541
543
|
id: EDIT_AREA_ID,
|
|
542
|
-
"aria-describedby": assistiveDescribedBy
|
|
544
|
+
"aria-describedby": assistiveDescribedBy,
|
|
545
|
+
"data-editor-id": _this.editorId
|
|
543
546
|
});
|
|
544
547
|
});
|
|
545
548
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "editor", _this.createEditor(_this.props.editorProps.assistiveLabel, (_this$props$editorPro5 = _this.props.editorProps) === null || _this$props$editorPro5 === void 0 ? void 0 : _this$props$editorPro5.assistiveDescribedBy));
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
|
+
import uuid from 'uuid/v4';
|
|
5
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE, getAnalyticsEventsFromTransaction, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
7
8
|
import { getDocStructure } from '@atlaskit/editor-common/core-utils';
|
|
@@ -521,6 +522,7 @@ export class ReactEditorView extends React.Component {
|
|
|
521
522
|
});
|
|
522
523
|
}
|
|
523
524
|
});
|
|
525
|
+
_defineProperty(this, "editorId", uuid());
|
|
524
526
|
_defineProperty(this, "createEditor", (assistiveLabel, assistiveDescribedBy) => {
|
|
525
527
|
return /*#__PURE__*/React.createElement("div", {
|
|
526
528
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -537,7 +539,8 @@ export class ReactEditorView extends React.Component {
|
|
|
537
539
|
"aria-multiline": true,
|
|
538
540
|
role: "textbox",
|
|
539
541
|
id: EDIT_AREA_ID,
|
|
540
|
-
"aria-describedby": assistiveDescribedBy
|
|
542
|
+
"aria-describedby": assistiveDescribedBy,
|
|
543
|
+
"data-editor-id": this.editorId
|
|
541
544
|
});
|
|
542
545
|
});
|
|
543
546
|
_defineProperty(this, "editor", this.createEditor(this.props.editorProps.assistiveLabel, (_this$props$editorPro12 = this.props.editorProps) === null || _this$props$editorPro12 === void 0 ? void 0 : _this$props$editorPro12.assistiveDescribedBy));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "198.0
|
|
2
|
+
export const version = "198.1.0";
|
|
@@ -12,6 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import { injectIntl } from 'react-intl-next';
|
|
15
|
+
import uuid from 'uuid/v4';
|
|
15
16
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE, getAnalyticsEventsFromTransaction, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
16
17
|
import { browser } from '@atlaskit/editor-common/browser';
|
|
17
18
|
import { getDocStructure } from '@atlaskit/editor-common/core-utils';
|
|
@@ -516,6 +517,7 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
516
517
|
});
|
|
517
518
|
}
|
|
518
519
|
});
|
|
520
|
+
_defineProperty(_assertThisInitialized(_this), "editorId", uuid());
|
|
519
521
|
_defineProperty(_assertThisInitialized(_this), "createEditor", function (assistiveLabel, assistiveDescribedBy) {
|
|
520
522
|
return /*#__PURE__*/React.createElement("div", {
|
|
521
523
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -532,7 +534,8 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
532
534
|
"aria-multiline": true,
|
|
533
535
|
role: "textbox",
|
|
534
536
|
id: EDIT_AREA_ID,
|
|
535
|
-
"aria-describedby": assistiveDescribedBy
|
|
537
|
+
"aria-describedby": assistiveDescribedBy,
|
|
538
|
+
"data-editor-id": _this.editorId
|
|
536
539
|
});
|
|
537
540
|
});
|
|
538
541
|
_defineProperty(_assertThisInitialized(_this), "editor", _this.createEditor(_this.props.editorProps.assistiveLabel, (_this$props$editorPro5 = _this.props.editorProps) === null || _this$props$editorPro5 === void 0 ? void 0 : _this$props$editorPro5.assistiveDescribedBy));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "198.0
|
|
2
|
+
export var version = "198.1.0";
|
|
@@ -114,6 +114,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
114
114
|
private createEditorView;
|
|
115
115
|
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
116
116
|
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
117
|
+
private editorId;
|
|
117
118
|
private createEditor;
|
|
118
119
|
private editor;
|
|
119
120
|
render(): JSX.Element;
|
|
@@ -114,6 +114,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
114
114
|
private createEditorView;
|
|
115
115
|
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
116
116
|
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
117
|
+
private editorId;
|
|
117
118
|
private createEditor;
|
|
118
119
|
private editor;
|
|
119
120
|
render(): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "198.0
|
|
3
|
+
"version": "198.1.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
86
86
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
87
87
|
"@atlaskit/collab-provider": "9.42.0",
|
|
88
|
-
"@atlaskit/editor-plugin-annotation": "1.19.
|
|
89
|
-
"@atlaskit/editor-plugin-card": "^3.
|
|
88
|
+
"@atlaskit/editor-plugin-annotation": "1.19.9",
|
|
89
|
+
"@atlaskit/editor-plugin-card": "^3.3.0",
|
|
90
90
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
91
91
|
"@atlaskit/editor-plugin-paste": "^1.12.0",
|
|
92
92
|
"@atlaskit/editor-test-helpers": "*",
|