@atlaskit/editor-common 105.6.2 → 105.7.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 +13 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/doc-utils/editor-use-only.js +15 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/doc-utils/editor-use-only.js +15 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/doc-utils/editor-use-only.js +15 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +13 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 105.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157072](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157072)
|
|
8
|
+
[`cc6bc0b7cd8b4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc6bc0b7cd8b4) -
|
|
9
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 105.6.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
{
|
|
75
75
|
"path": "../../../design-system/icon-object/afm-post-office/tsconfig.json"
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
"path": "../../../design-system/link/afm-post-office/tsconfig.json"
|
|
79
|
+
},
|
|
77
80
|
{
|
|
78
81
|
"path": "../../../linking-platform/link-datasource/afm-post-office/tsconfig.json"
|
|
79
82
|
},
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createEditorUseOnlyNotice = createEditorUseOnlyNotice;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
11
|
var _sectionMessage = _interopRequireDefault(require("@atlaskit/section-message"));
|
|
10
12
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
11
13
|
|
|
@@ -15,16 +17,26 @@ function AlternativePackagesMessage(_ref) {
|
|
|
15
17
|
return null;
|
|
16
18
|
}
|
|
17
19
|
if (alternatePackages.length === 1) {
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement("p", null, "Consider using
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement("p", null, "Consider using", ' ', (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
19
21
|
href: alternatePackages[0].link
|
|
20
|
-
}, alternatePackages[0].name)
|
|
22
|
+
}, alternatePackages[0].name) :
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
25
|
+
_react.default.createElement("a", {
|
|
26
|
+
href: alternatePackages[0].link
|
|
27
|
+
}, alternatePackages[0].name), "instead.");
|
|
21
28
|
}
|
|
22
29
|
return /*#__PURE__*/_react.default.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/_react.default.createElement("ul", null, alternatePackages.map(function (p) {
|
|
23
30
|
return (
|
|
24
31
|
/*#__PURE__*/
|
|
25
32
|
// Ignored via go/ees005
|
|
26
33
|
// eslint-disable-next-line react/jsx-key
|
|
27
|
-
_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement(
|
|
34
|
+
_react.default.createElement("li", null, (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
35
|
+
href: p.link
|
|
36
|
+
}, p.name) :
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
39
|
+
_react.default.createElement("a", {
|
|
28
40
|
href: p.link
|
|
29
41
|
}, p.name))
|
|
30
42
|
);
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "105.
|
|
20
|
+
var packageVersion = "105.7.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "105.
|
|
26
|
+
var packageVersion = "105.7.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import Link from '@atlaskit/link';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
5
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
6
|
function AlternativePackagesMessage({
|
|
5
7
|
alternatePackages
|
|
@@ -8,15 +10,25 @@ function AlternativePackagesMessage({
|
|
|
8
10
|
return null;
|
|
9
11
|
}
|
|
10
12
|
if (alternatePackages.length === 1) {
|
|
11
|
-
return /*#__PURE__*/React.createElement("p", null, "Consider using
|
|
13
|
+
return /*#__PURE__*/React.createElement("p", null, "Consider using", ' ', fg('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/React.createElement(Link, {
|
|
12
14
|
href: alternatePackages[0].link
|
|
13
|
-
}, alternatePackages[0].name)
|
|
15
|
+
}, alternatePackages[0].name) :
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
18
|
+
React.createElement("a", {
|
|
19
|
+
href: alternatePackages[0].link
|
|
20
|
+
}, alternatePackages[0].name), "instead.");
|
|
14
21
|
}
|
|
15
22
|
return /*#__PURE__*/React.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/React.createElement("ul", null, alternatePackages.map(p =>
|
|
16
23
|
/*#__PURE__*/
|
|
17
24
|
// Ignored via go/ees005
|
|
18
25
|
// eslint-disable-next-line react/jsx-key
|
|
19
|
-
React.createElement("li", null, /*#__PURE__*/React.createElement(
|
|
26
|
+
React.createElement("li", null, fg('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/React.createElement(Link, {
|
|
27
|
+
href: p.link
|
|
28
|
+
}, p.name) :
|
|
29
|
+
/*#__PURE__*/
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
31
|
+
React.createElement("a", {
|
|
20
32
|
href: p.link
|
|
21
33
|
}, p.name)))));
|
|
22
34
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "105.
|
|
4
|
+
const packageVersion = "105.7.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "105.
|
|
16
|
+
const packageVersion = "105.7.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-primitives-text */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import Link from '@atlaskit/link';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
5
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
6
|
function AlternativePackagesMessage(_ref) {
|
|
5
7
|
var alternatePackages = _ref.alternatePackages;
|
|
@@ -7,16 +9,26 @@ function AlternativePackagesMessage(_ref) {
|
|
|
7
9
|
return null;
|
|
8
10
|
}
|
|
9
11
|
if (alternatePackages.length === 1) {
|
|
10
|
-
return /*#__PURE__*/React.createElement("p", null, "Consider using
|
|
12
|
+
return /*#__PURE__*/React.createElement("p", null, "Consider using", ' ', fg('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/React.createElement(Link, {
|
|
11
13
|
href: alternatePackages[0].link
|
|
12
|
-
}, alternatePackages[0].name)
|
|
14
|
+
}, alternatePackages[0].name) :
|
|
15
|
+
/*#__PURE__*/
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
17
|
+
React.createElement("a", {
|
|
18
|
+
href: alternatePackages[0].link
|
|
19
|
+
}, alternatePackages[0].name), "instead.");
|
|
13
20
|
}
|
|
14
21
|
return /*#__PURE__*/React.createElement("p", null, "Consider using one of these packages instead:", /*#__PURE__*/React.createElement("ul", null, alternatePackages.map(function (p) {
|
|
15
22
|
return (
|
|
16
23
|
/*#__PURE__*/
|
|
17
24
|
// Ignored via go/ees005
|
|
18
25
|
// eslint-disable-next-line react/jsx-key
|
|
19
|
-
React.createElement("li", null, /*#__PURE__*/React.createElement(
|
|
26
|
+
React.createElement("li", null, fg('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/React.createElement(Link, {
|
|
27
|
+
href: p.link
|
|
28
|
+
}, p.name) :
|
|
29
|
+
/*#__PURE__*/
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
31
|
+
React.createElement("a", {
|
|
20
32
|
href: p.link
|
|
21
33
|
}, p.name))
|
|
22
34
|
);
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "105.
|
|
10
|
+
var packageVersion = "105.7.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "105.
|
|
23
|
+
var packageVersion = "105.7.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "105.
|
|
3
|
+
"version": "105.7.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -141,17 +141,18 @@
|
|
|
141
141
|
"@atlaskit/emoji": "^69.2.0",
|
|
142
142
|
"@atlaskit/icon": "^26.1.0",
|
|
143
143
|
"@atlaskit/icon-object": "^7.1.0",
|
|
144
|
-
"@atlaskit/link
|
|
145
|
-
"@atlaskit/link-
|
|
146
|
-
"@atlaskit/
|
|
144
|
+
"@atlaskit/link": "^3.2.0",
|
|
145
|
+
"@atlaskit/link-datasource": "^4.11.0",
|
|
146
|
+
"@atlaskit/link-picker": "^3.4.0",
|
|
147
|
+
"@atlaskit/media-card": "^79.3.0",
|
|
147
148
|
"@atlaskit/media-client": "^33.3.0",
|
|
148
149
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
149
|
-
"@atlaskit/media-common": "^12.
|
|
150
|
+
"@atlaskit/media-common": "^12.1.0",
|
|
150
151
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
151
152
|
"@atlaskit/media-picker": "^69.0.0",
|
|
152
|
-
"@atlaskit/media-ui": "^28.
|
|
153
|
-
"@atlaskit/media-viewer": "^52.
|
|
154
|
-
"@atlaskit/mention": "^24.
|
|
153
|
+
"@atlaskit/media-ui": "^28.2.0",
|
|
154
|
+
"@atlaskit/media-viewer": "^52.1.0",
|
|
155
|
+
"@atlaskit/mention": "^24.2.0",
|
|
155
156
|
"@atlaskit/menu": "^7.1.0",
|
|
156
157
|
"@atlaskit/onboarding": "^14.1.0",
|
|
157
158
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
"@atlaskit/profilecard": "^23.16.0",
|
|
162
163
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
163
164
|
"@atlaskit/section-message": "^8.2.0",
|
|
164
|
-
"@atlaskit/smart-card": "^38.
|
|
165
|
+
"@atlaskit/smart-card": "^38.3.0",
|
|
165
166
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
166
167
|
"@atlaskit/spinner": "^18.0.0",
|
|
167
168
|
"@atlaskit/task-decision": "^19.2.0",
|
|
@@ -382,6 +383,9 @@
|
|
|
382
383
|
},
|
|
383
384
|
"platform_editor_controls_patch_9": {
|
|
384
385
|
"type": "boolean"
|
|
386
|
+
},
|
|
387
|
+
"dst-a11y__replace-anchor-with-link__editor": {
|
|
388
|
+
"type": "boolean"
|
|
385
389
|
}
|
|
386
390
|
}
|
|
387
391
|
}
|