@atlaskit/renderer 118.1.1 → 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 +22 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +6 -0
- package/dist/cjs/react/nodes/fallback.js +9 -1
- package/dist/cjs/react/nodes/media/index.js +10 -7
- package/dist/cjs/react/utils/EditorMediaClientProvider.js +8 -22
- 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/react/utils/EditorMediaClientProvider.js +10 -24
- 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/react/utils/EditorMediaClientProvider.js +10 -24
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
16
|
+
## 118.1.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#155231](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/155231)
|
|
21
|
+
[`6fe1356da03dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fe1356da03dd) -
|
|
22
|
+
Cleanup FG platform_editor_speedup_media_client
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 118.1.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
{
|
|
48
48
|
"path": "../../editor-shared-styles/afm-post-office/tsconfig.json"
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../editor-tables/afm-post-office/tsconfig.json"
|
|
52
|
+
},
|
|
50
53
|
{
|
|
51
54
|
"path": "../../../elements/emoji/afm-post-office/tsconfig.json"
|
|
52
55
|
},
|
|
@@ -56,6 +59,9 @@
|
|
|
56
59
|
{
|
|
57
60
|
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
58
61
|
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../design-system/link/afm-post-office/tsconfig.json"
|
|
64
|
+
},
|
|
59
65
|
{
|
|
60
66
|
"path": "../../../linking-platform/link-datasource/afm-post-office/tsconfig.json"
|
|
61
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,
|
|
@@ -10,7 +10,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _mediaClientReact = require("@atlaskit/media-client-react");
|
|
12
12
|
var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
14
|
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; }
|
|
16
15
|
var EditorMediaClientProvider = exports.EditorMediaClientProvider = function EditorMediaClientProvider(_ref) {
|
|
@@ -20,14 +19,13 @@ var EditorMediaClientProvider = exports.EditorMediaClientProvider = function Edi
|
|
|
20
19
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
21
20
|
mediaClientConfig = _useState2[0],
|
|
22
21
|
setMediaClientConfig = _useState2[1];
|
|
23
|
-
var oldMediaProvider = (0, _providerFactory.useProvider)('mediaProvider');
|
|
24
22
|
var mediaProvider = (0, _providerFactory.useProviderLayout)('mediaProvider');
|
|
25
23
|
|
|
26
24
|
/**
|
|
27
25
|
* If a mediaClientConfig is provided then we will force
|
|
28
26
|
* skip the mediaClient from context
|
|
29
27
|
*/
|
|
30
|
-
var shouldSkipContext = Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) ||
|
|
28
|
+
var shouldSkipContext = Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) || mediaProvider);
|
|
31
29
|
var contextMediaClient = (0, _react.useContext)(_mediaClientReact.MediaClientContext);
|
|
32
30
|
|
|
33
31
|
// MediaClientProvider currently requires a mediaClientConfig
|
|
@@ -41,26 +39,14 @@ var EditorMediaClientProvider = exports.EditorMediaClientProvider = function Edi
|
|
|
41
39
|
// by not providing both SSR config and mediaProvider,
|
|
42
40
|
// and provide a top level mediaClient context
|
|
43
41
|
// This is useful for testing and creating examples.
|
|
44
|
-
|
|
45
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_speedup_media_client')) {
|
|
46
|
-
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
47
|
-
setMediaClientConfig(ssr.config);
|
|
48
|
-
} else if (oldMediaProvider) {
|
|
49
|
-
oldMediaProvider.then(function (provider) {
|
|
50
|
-
setMediaClientConfig(provider.viewMediaClientConfig);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}, [oldMediaProvider, ssr]);
|
|
42
|
+
|
|
55
43
|
(0, _react.useLayoutEffect)(function () {
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
63
|
-
}
|
|
44
|
+
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
45
|
+
setMediaClientConfig(ssr.config);
|
|
46
|
+
} else if (mediaProvider) {
|
|
47
|
+
mediaProvider.then(function (provider) {
|
|
48
|
+
setMediaClientConfig(provider.viewMediaClientConfig);
|
|
49
|
+
});
|
|
64
50
|
}
|
|
65
51
|
}, [mediaProvider, ssr]);
|
|
66
52
|
return /*#__PURE__*/_react.default.createElement(_mediaClientReact.MediaClientContext.Provider, {
|
|
@@ -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,
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import React, { useContext,
|
|
1
|
+
import React, { useContext, useLayoutEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { MediaClientContext, getMediaClient } from '@atlaskit/media-client-react';
|
|
3
|
-
import { useProviderLayout
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
+
import { useProviderLayout } from '@atlaskit/editor-common/provider-factory';
|
|
5
4
|
export const EditorMediaClientProvider = ({
|
|
6
5
|
children,
|
|
7
6
|
ssr
|
|
8
7
|
}) => {
|
|
9
8
|
const [mediaClientConfig, setMediaClientConfig] = useState();
|
|
10
|
-
const oldMediaProvider = useProvider('mediaProvider');
|
|
11
9
|
const mediaProvider = useProviderLayout('mediaProvider');
|
|
12
10
|
|
|
13
11
|
/**
|
|
14
12
|
* If a mediaClientConfig is provided then we will force
|
|
15
13
|
* skip the mediaClient from context
|
|
16
14
|
*/
|
|
17
|
-
const shouldSkipContext = Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) ||
|
|
15
|
+
const shouldSkipContext = Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) || mediaProvider);
|
|
18
16
|
const contextMediaClient = useContext(MediaClientContext);
|
|
19
17
|
|
|
20
18
|
// MediaClientProvider currently requires a mediaClientConfig
|
|
@@ -26,26 +24,14 @@ export const EditorMediaClientProvider = ({
|
|
|
26
24
|
// by not providing both SSR config and mediaProvider,
|
|
27
25
|
// and provide a top level mediaClient context
|
|
28
26
|
// This is useful for testing and creating examples.
|
|
29
|
-
|
|
30
|
-
if (!fg('platform_editor_speedup_media_client')) {
|
|
31
|
-
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
32
|
-
setMediaClientConfig(ssr.config);
|
|
33
|
-
} else if (oldMediaProvider) {
|
|
34
|
-
oldMediaProvider.then(provider => {
|
|
35
|
-
setMediaClientConfig(provider.viewMediaClientConfig);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}, [oldMediaProvider, ssr]);
|
|
27
|
+
|
|
40
28
|
useLayoutEffect(() => {
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
48
|
-
}
|
|
29
|
+
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
30
|
+
setMediaClientConfig(ssr.config);
|
|
31
|
+
} else if (mediaProvider) {
|
|
32
|
+
mediaProvider.then(provider => {
|
|
33
|
+
setMediaClientConfig(provider.viewMediaClientConfig);
|
|
34
|
+
});
|
|
49
35
|
}
|
|
50
36
|
}, [mediaProvider, ssr]);
|
|
51
37
|
return /*#__PURE__*/React.createElement(MediaClientContext.Provider, {
|
|
@@ -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,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { useContext,
|
|
2
|
+
import React, { useContext, useLayoutEffect, useMemo, useState } from 'react';
|
|
3
3
|
import { MediaClientContext, getMediaClient } from '@atlaskit/media-client-react';
|
|
4
|
-
import { useProviderLayout
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { useProviderLayout } from '@atlaskit/editor-common/provider-factory';
|
|
6
5
|
export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref) {
|
|
7
6
|
var children = _ref.children,
|
|
8
7
|
ssr = _ref.ssr;
|
|
@@ -10,14 +9,13 @@ export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref)
|
|
|
10
9
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11
10
|
mediaClientConfig = _useState2[0],
|
|
12
11
|
setMediaClientConfig = _useState2[1];
|
|
13
|
-
var oldMediaProvider = useProvider('mediaProvider');
|
|
14
12
|
var mediaProvider = useProviderLayout('mediaProvider');
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* If a mediaClientConfig is provided then we will force
|
|
18
16
|
* skip the mediaClient from context
|
|
19
17
|
*/
|
|
20
|
-
var shouldSkipContext = Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) ||
|
|
18
|
+
var shouldSkipContext = Boolean((ssr === null || ssr === void 0 ? void 0 : ssr.config) || mediaProvider);
|
|
21
19
|
var contextMediaClient = useContext(MediaClientContext);
|
|
22
20
|
|
|
23
21
|
// MediaClientProvider currently requires a mediaClientConfig
|
|
@@ -31,26 +29,14 @@ export var EditorMediaClientProvider = function EditorMediaClientProvider(_ref)
|
|
|
31
29
|
// by not providing both SSR config and mediaProvider,
|
|
32
30
|
// and provide a top level mediaClient context
|
|
33
31
|
// This is useful for testing and creating examples.
|
|
34
|
-
|
|
35
|
-
if (!fg('platform_editor_speedup_media_client')) {
|
|
36
|
-
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
37
|
-
setMediaClientConfig(ssr.config);
|
|
38
|
-
} else if (oldMediaProvider) {
|
|
39
|
-
oldMediaProvider.then(function (provider) {
|
|
40
|
-
setMediaClientConfig(provider.viewMediaClientConfig);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}, [oldMediaProvider, ssr]);
|
|
32
|
+
|
|
45
33
|
useLayoutEffect(function () {
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
});
|
|
53
|
-
}
|
|
34
|
+
if (ssr !== null && ssr !== void 0 && ssr.config) {
|
|
35
|
+
setMediaClientConfig(ssr.config);
|
|
36
|
+
} else if (mediaProvider) {
|
|
37
|
+
mediaProvider.then(function (provider) {
|
|
38
|
+
setMediaClientConfig(provider.viewMediaClientConfig);
|
|
39
|
+
});
|
|
54
40
|
}
|
|
55
41
|
}, [mediaProvider, ssr]);
|
|
56
42
|
return /*#__PURE__*/React.createElement(MediaClientContext.Provider, {
|
|
@@ -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",
|
|
@@ -138,9 +139,6 @@
|
|
|
138
139
|
"platform_renderer_annotations_create_debug_logging": {
|
|
139
140
|
"type": "boolean"
|
|
140
141
|
},
|
|
141
|
-
"platform_editor_speedup_media_client": {
|
|
142
|
-
"type": "boolean"
|
|
143
|
-
},
|
|
144
142
|
"platform_editor_annotation_position_comment_nodes": {
|
|
145
143
|
"type": "boolean"
|
|
146
144
|
},
|
|
@@ -266,6 +264,9 @@
|
|
|
266
264
|
},
|
|
267
265
|
"smartcard_avatar_margin_fix": {
|
|
268
266
|
"type": "boolean"
|
|
267
|
+
},
|
|
268
|
+
"dst-a11y__replace-anchor-with-link__editor": {
|
|
269
|
+
"type": "boolean"
|
|
269
270
|
}
|
|
270
271
|
},
|
|
271
272
|
"af:exports": {
|