@atlaskit/renderer 118.1.2 → 118.2.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/react/nodes/fallback.js +9 -1
- package/dist/cjs/react/nodes/media/index.js +10 -7
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/fallback.js +9 -1
- package/dist/es2019/react/nodes/media/index.js +10 -7
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/fallback.js +9 -1
- package/dist/esm/react/nodes/media/index.js +10 -7
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +14 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 118.2.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
|
## 118.1.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
{
|
|
60
60
|
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../design-system/link/afm-post-office/tsconfig.json"
|
|
64
|
+
},
|
|
62
65
|
{
|
|
63
66
|
"path": "../../../linking-platform/link-datasource/afm-post-office/tsconfig.json"
|
|
64
67
|
},
|
|
@@ -11,6 +11,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
11
11
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
16
|
var _react = _interopRequireDefault(require("react"));
|
|
15
17
|
var _ = require("./");
|
|
16
18
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
@@ -53,7 +55,13 @@ var CardErrorBoundary = exports.CardErrorBoundary = /*#__PURE__*/function (_Reac
|
|
|
53
55
|
UnsupportedComponent = _this$props2.unsupportedComponent,
|
|
54
56
|
datasourceId = _this$props2.datasourceId;
|
|
55
57
|
if (url) {
|
|
56
|
-
var fallback = /*#__PURE__*/_react.default.createElement(
|
|
58
|
+
var fallback = (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
59
|
+
href: url,
|
|
60
|
+
onClick: this.onClickFallback
|
|
61
|
+
}, url) :
|
|
62
|
+
/*#__PURE__*/
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
64
|
+
_react.default.createElement("a", {
|
|
57
65
|
href: url,
|
|
58
66
|
onClick: this.onClickFallback
|
|
59
67
|
}, url);
|
|
@@ -101,13 +101,16 @@ var MediaLink = function MediaLink(_ref2) {
|
|
|
101
101
|
return (0, _react2.jsx)(_react.Fragment, null, children);
|
|
102
102
|
}
|
|
103
103
|
var linkHref = mark === null || mark === void 0 ? void 0 : mark.attrs.href;
|
|
104
|
-
return (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
return (
|
|
105
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
106
|
+
(0, _react2.jsx)("a", {
|
|
107
|
+
href: linkHref,
|
|
108
|
+
rel: "noreferrer noopener",
|
|
109
|
+
onClick: onClick,
|
|
110
|
+
"data-block-link": linkHref,
|
|
111
|
+
css: linkStyle
|
|
112
|
+
}, children)
|
|
113
|
+
);
|
|
111
114
|
};
|
|
112
115
|
var MediaAnnotation = function MediaAnnotation(_ref3) {
|
|
113
116
|
var mark = _ref3.mark,
|
|
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
63
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
64
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "118.
|
|
66
|
+
var packageVersion = "118.2.0";
|
|
67
67
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import Link from '@atlaskit/link';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
4
|
import React from 'react';
|
|
3
5
|
import { InlineCard } from './';
|
|
4
6
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
@@ -38,7 +40,13 @@ export class CardErrorBoundary extends React.PureComponent {
|
|
|
38
40
|
datasourceId
|
|
39
41
|
} = this.props;
|
|
40
42
|
if (url) {
|
|
41
|
-
const fallback = /*#__PURE__*/React.createElement(
|
|
43
|
+
const fallback = fg('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/React.createElement(Link, {
|
|
44
|
+
href: url,
|
|
45
|
+
onClick: this.onClickFallback
|
|
46
|
+
}, url) :
|
|
47
|
+
/*#__PURE__*/
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
49
|
+
React.createElement("a", {
|
|
42
50
|
href: url,
|
|
43
51
|
onClick: this.onClickFallback
|
|
44
52
|
}, url);
|
|
@@ -81,13 +81,16 @@ const MediaLink = ({
|
|
|
81
81
|
return jsx(Fragment, null, children);
|
|
82
82
|
}
|
|
83
83
|
const linkHref = mark === null || mark === void 0 ? void 0 : mark.attrs.href;
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
return (
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
86
|
+
jsx("a", {
|
|
87
|
+
href: linkHref,
|
|
88
|
+
rel: "noreferrer noopener",
|
|
89
|
+
onClick: onClick,
|
|
90
|
+
"data-block-link": linkHref,
|
|
91
|
+
css: linkStyle
|
|
92
|
+
}, children)
|
|
93
|
+
);
|
|
91
94
|
};
|
|
92
95
|
const MediaAnnotation = ({
|
|
93
96
|
mark,
|
|
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
|
|
|
48
48
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
const packageName = "@atlaskit/renderer";
|
|
51
|
-
const packageVersion = "118.
|
|
51
|
+
const packageVersion = "118.2.0";
|
|
52
52
|
const setAsQueryContainerStyles = css({
|
|
53
53
|
containerName: 'ak-renderer-wrapper',
|
|
54
54
|
containerType: 'inline-size'
|
|
@@ -6,6 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
+
import Link from '@atlaskit/link';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
11
|
import React from 'react';
|
|
10
12
|
import { InlineCard } from './';
|
|
11
13
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
@@ -46,7 +48,13 @@ export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
46
48
|
UnsupportedComponent = _this$props2.unsupportedComponent,
|
|
47
49
|
datasourceId = _this$props2.datasourceId;
|
|
48
50
|
if (url) {
|
|
49
|
-
var fallback = /*#__PURE__*/React.createElement(
|
|
51
|
+
var fallback = fg('dst-a11y__replace-anchor-with-link__editor') ? /*#__PURE__*/React.createElement(Link, {
|
|
52
|
+
href: url,
|
|
53
|
+
onClick: this.onClickFallback
|
|
54
|
+
}, url) :
|
|
55
|
+
/*#__PURE__*/
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
57
|
+
React.createElement("a", {
|
|
50
58
|
href: url,
|
|
51
59
|
onClick: this.onClickFallback
|
|
52
60
|
}, url);
|
|
@@ -92,13 +92,16 @@ var MediaLink = function MediaLink(_ref2) {
|
|
|
92
92
|
return jsx(Fragment, null, children);
|
|
93
93
|
}
|
|
94
94
|
var linkHref = mark === null || mark === void 0 ? void 0 : mark.attrs.href;
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
return (
|
|
96
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
|
|
97
|
+
jsx("a", {
|
|
98
|
+
href: linkHref,
|
|
99
|
+
rel: "noreferrer noopener",
|
|
100
|
+
onClick: onClick,
|
|
101
|
+
"data-block-link": linkHref,
|
|
102
|
+
css: linkStyle
|
|
103
|
+
}, children)
|
|
104
|
+
);
|
|
102
105
|
};
|
|
103
106
|
var MediaAnnotation = function MediaAnnotation(_ref3) {
|
|
104
107
|
var mark = _ref3.mark,
|
|
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
|
|
|
53
53
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
54
54
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
55
55
|
var packageName = "@atlaskit/renderer";
|
|
56
|
-
var packageVersion = "118.
|
|
56
|
+
var packageVersion = "118.2.0";
|
|
57
57
|
var setAsQueryContainerStyles = css({
|
|
58
58
|
containerName: 'ak-renderer-wrapper',
|
|
59
59
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "118.
|
|
3
|
+
"version": "118.2.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
32
32
|
"@atlaskit/button": "^23.2.0",
|
|
33
33
|
"@atlaskit/code": "^17.2.0",
|
|
34
|
-
"@atlaskit/editor-common": "^105.
|
|
34
|
+
"@atlaskit/editor-common": "^105.7.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -40,18 +40,19 @@
|
|
|
40
40
|
"@atlaskit/emoji": "^69.2.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.3.0",
|
|
42
42
|
"@atlaskit/icon": "^26.1.0",
|
|
43
|
-
"@atlaskit/link
|
|
44
|
-
"@atlaskit/
|
|
43
|
+
"@atlaskit/link": "^3.2.0",
|
|
44
|
+
"@atlaskit/link-datasource": "^4.11.0",
|
|
45
|
+
"@atlaskit/media-card": "^79.3.0",
|
|
45
46
|
"@atlaskit/media-client": "^33.3.0",
|
|
46
47
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
47
|
-
"@atlaskit/media-common": "^12.
|
|
48
|
-
"@atlaskit/media-filmstrip": "^50.
|
|
49
|
-
"@atlaskit/media-ui": "^28.
|
|
50
|
-
"@atlaskit/media-viewer": "^52.
|
|
48
|
+
"@atlaskit/media-common": "^12.1.0",
|
|
49
|
+
"@atlaskit/media-filmstrip": "^50.1.0",
|
|
50
|
+
"@atlaskit/media-ui": "^28.2.0",
|
|
51
|
+
"@atlaskit/media-viewer": "^52.1.0",
|
|
51
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
52
53
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
53
54
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
54
|
-
"@atlaskit/smart-card": "^38.
|
|
55
|
+
"@atlaskit/smart-card": "^38.3.0",
|
|
55
56
|
"@atlaskit/status": "^3.0.0",
|
|
56
57
|
"@atlaskit/task-decision": "^19.2.0",
|
|
57
58
|
"@atlaskit/theme": "^18.0.0",
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
"@atlaskit/media-core": "^36.1.0",
|
|
87
88
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
88
89
|
"@atlaskit/media-test-helpers": "^36.0.0",
|
|
89
|
-
"@atlaskit/mention": "^24.
|
|
90
|
+
"@atlaskit/mention": "^24.2.0",
|
|
90
91
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
91
92
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-d1445f2f74.patch",
|
|
92
93
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -263,6 +264,9 @@
|
|
|
263
264
|
},
|
|
264
265
|
"smartcard_avatar_margin_fix": {
|
|
265
266
|
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"dst-a11y__replace-anchor-with-link__editor": {
|
|
269
|
+
"type": "boolean"
|
|
266
270
|
}
|
|
267
271
|
},
|
|
268
272
|
"af:exports": {
|