@atlaskit/renderer 108.11.18 → 108.13.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 +16 -0
- package/dist/cjs/react/nodes/embedCard.js +4 -2
- package/dist/cjs/react/nodes/mediaSingle/index.js +5 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/embedCard.js +4 -2
- package/dist/es2019/react/nodes/mediaSingle/index.js +5 -2
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/embedCard.js +4 -2
- package/dist/esm/react/nodes/mediaSingle/index.js +6 -2
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/nodes/embedCard.d.ts +4 -2
- package/dist/types/react/nodes/index.d.ts +1 -0
- package/dist/types/react/nodes/mediaSingle/index.d.ts +6 -6
- package/dist/types/types/mediaOptions.d.ts +3 -2
- package/dist/types/types/smartLinksOptions.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +4 -2
- package/dist/types-ts4.5/react/nodes/index.d.ts +1 -0
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +6 -6
- package/dist/types-ts4.5/types/mediaOptions.d.ts +3 -2
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +2 -0
- package/package.json +4 -4
- package/report.api.md +8 -3
- package/tmp/api-report-tmp.d.ts +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 108.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3d5a4dfddba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d5a4dfddba) - Make Smart Card frameStyle for embeds configurable via `@atlaskit/renderer`
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 108.12.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`ec4867e1376`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec4867e1376) - Removed captions flag and replaced with a new media prop `allowCaptions`. `allowCaptions` is set to `false` by default and products will need to opt in to be able to use captions from now on.
|
|
18
|
+
|
|
3
19
|
## 108.11.18
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -31,7 +31,8 @@ function EmbedCard(props) {
|
|
|
31
31
|
layout = props.layout,
|
|
32
32
|
width = props.width,
|
|
33
33
|
isInsideOfBlockNode = props.isInsideOfBlockNode,
|
|
34
|
-
rendererAppearance = props.rendererAppearance
|
|
34
|
+
rendererAppearance = props.rendererAppearance,
|
|
35
|
+
smartLinks = props.smartLinks;
|
|
35
36
|
var embedIframeRef = (0, _react2.useRef)(null);
|
|
36
37
|
var onClick = (0, _getCardClickHandler.getCardClickHandler)(eventHandlers, url);
|
|
37
38
|
var platform = (0, _react2.useMemo)(function () {
|
|
@@ -43,7 +44,8 @@ function EmbedCard(props) {
|
|
|
43
44
|
onClick: onClick,
|
|
44
45
|
container: portal,
|
|
45
46
|
platform: platform,
|
|
46
|
-
showActions: platform === 'web'
|
|
47
|
+
showActions: platform === 'web',
|
|
48
|
+
frameStyle: smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle
|
|
47
49
|
};
|
|
48
50
|
var _useState = (0, _react2.useState)(null),
|
|
49
51
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -56,8 +56,11 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
56
56
|
layout = props.layout,
|
|
57
57
|
children = props.children,
|
|
58
58
|
widthAttr = props.width,
|
|
59
|
-
widthType = props.widthType
|
|
59
|
+
widthType = props.widthType,
|
|
60
|
+
_props$allowCaptions = props.allowCaptions,
|
|
61
|
+
allowCaptions = _props$allowCaptions === void 0 ? false : _props$allowCaptions;
|
|
60
62
|
var isCaptionsFlaggedOn = (0, _mediaCommon.getMediaFeatureFlag)('captions', featureFlags);
|
|
63
|
+
var showCaptions = allowCaptions ? allowCaptions : isCaptionsFlaggedOn;
|
|
61
64
|
var _React$useState = _react.default.useState({
|
|
62
65
|
width: 0,
|
|
63
66
|
height: 0
|
|
@@ -169,7 +172,7 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
169
172
|
widthType: widthType
|
|
170
173
|
},
|
|
171
174
|
fullWidthMode: isFullWidth
|
|
172
|
-
}, (0, _react2.jsx)(_react.Fragment, null, mediaComponent),
|
|
175
|
+
}, (0, _react2.jsx)(_react.Fragment, null, mediaComponent), showCaptions && caption);
|
|
173
176
|
};
|
|
174
177
|
return (0, _react2.jsx)(_ui.WidthConsumer, null, function (_ref3) {
|
|
175
178
|
var width = _ref3.width,
|
|
@@ -55,7 +55,7 @@ exports.NORMAL_SEVERITY_THRESHOLD = NORMAL_SEVERITY_THRESHOLD;
|
|
|
55
55
|
var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
exports.DEGRADED_SEVERITY_THRESHOLD = DEGRADED_SEVERITY_THRESHOLD;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "108.
|
|
58
|
+
var packageVersion = "108.13.0";
|
|
59
59
|
var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -38,7 +38,8 @@ export default function EmbedCard(props) {
|
|
|
38
38
|
layout,
|
|
39
39
|
width,
|
|
40
40
|
isInsideOfBlockNode,
|
|
41
|
-
rendererAppearance
|
|
41
|
+
rendererAppearance,
|
|
42
|
+
smartLinks
|
|
42
43
|
} = props;
|
|
43
44
|
const embedIframeRef = useRef(null);
|
|
44
45
|
const onClick = getCardClickHandler(eventHandlers, url);
|
|
@@ -49,7 +50,8 @@ export default function EmbedCard(props) {
|
|
|
49
50
|
onClick,
|
|
50
51
|
container: portal,
|
|
51
52
|
platform,
|
|
52
|
-
showActions: platform === 'web'
|
|
53
|
+
showActions: platform === 'web',
|
|
54
|
+
frameStyle: smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle
|
|
53
55
|
};
|
|
54
56
|
const [liveHeight, setLiveHeight] = useState(null);
|
|
55
57
|
const [aspectRatio, setAspectRatio] = useState();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
|
|
2
3
|
import { default as React, Fragment } from 'react';
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -43,9 +44,11 @@ const MediaSingle = props => {
|
|
|
43
44
|
layout,
|
|
44
45
|
children,
|
|
45
46
|
width: widthAttr,
|
|
46
|
-
widthType
|
|
47
|
+
widthType,
|
|
48
|
+
allowCaptions = false
|
|
47
49
|
} = props;
|
|
48
50
|
const isCaptionsFlaggedOn = getMediaFeatureFlag('captions', featureFlags);
|
|
51
|
+
const showCaptions = allowCaptions ? allowCaptions : isCaptionsFlaggedOn;
|
|
49
52
|
const [externalImageDimensions, setExternalImageDimensions] = React.useState({
|
|
50
53
|
width: 0,
|
|
51
54
|
height: 0
|
|
@@ -154,7 +157,7 @@ const MediaSingle = props => {
|
|
|
154
157
|
widthType
|
|
155
158
|
},
|
|
156
159
|
fullWidthMode: isFullWidth
|
|
157
|
-
}, jsx(Fragment, null, mediaComponent),
|
|
160
|
+
}, jsx(Fragment, null, mediaComponent), showCaptions && caption);
|
|
158
161
|
};
|
|
159
162
|
return jsx(WidthConsumer, null, ({
|
|
160
163
|
width,
|
|
@@ -35,7 +35,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
35
35
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
36
36
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
37
37
|
const packageName = "@atlaskit/renderer";
|
|
38
|
-
const packageVersion = "108.
|
|
38
|
+
const packageVersion = "108.13.0";
|
|
39
39
|
export class Renderer extends PureComponent {
|
|
40
40
|
constructor(props) {
|
|
41
41
|
super(props);
|
|
@@ -24,7 +24,8 @@ export default function EmbedCard(props) {
|
|
|
24
24
|
layout = props.layout,
|
|
25
25
|
width = props.width,
|
|
26
26
|
isInsideOfBlockNode = props.isInsideOfBlockNode,
|
|
27
|
-
rendererAppearance = props.rendererAppearance
|
|
27
|
+
rendererAppearance = props.rendererAppearance,
|
|
28
|
+
smartLinks = props.smartLinks;
|
|
28
29
|
var embedIframeRef = useRef(null);
|
|
29
30
|
var onClick = getCardClickHandler(eventHandlers, url);
|
|
30
31
|
var platform = useMemo(function () {
|
|
@@ -36,7 +37,8 @@ export default function EmbedCard(props) {
|
|
|
36
37
|
onClick: onClick,
|
|
37
38
|
container: portal,
|
|
38
39
|
platform: platform,
|
|
39
|
-
showActions: platform === 'web'
|
|
40
|
+
showActions: platform === 'web',
|
|
41
|
+
frameStyle: smartLinks === null || smartLinks === void 0 ? void 0 : smartLinks.frameStyle
|
|
40
42
|
};
|
|
41
43
|
var _useState = useState(null),
|
|
42
44
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
|
|
3
4
|
import { default as React, Fragment } from 'react';
|
|
4
5
|
import { jsx } from '@emotion/react';
|
|
5
6
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -44,8 +45,11 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
44
45
|
layout = props.layout,
|
|
45
46
|
children = props.children,
|
|
46
47
|
widthAttr = props.width,
|
|
47
|
-
widthType = props.widthType
|
|
48
|
+
widthType = props.widthType,
|
|
49
|
+
_props$allowCaptions = props.allowCaptions,
|
|
50
|
+
allowCaptions = _props$allowCaptions === void 0 ? false : _props$allowCaptions;
|
|
48
51
|
var isCaptionsFlaggedOn = getMediaFeatureFlag('captions', featureFlags);
|
|
52
|
+
var showCaptions = allowCaptions ? allowCaptions : isCaptionsFlaggedOn;
|
|
49
53
|
var _React$useState = React.useState({
|
|
50
54
|
width: 0,
|
|
51
55
|
height: 0
|
|
@@ -157,7 +161,7 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
157
161
|
widthType: widthType
|
|
158
162
|
},
|
|
159
163
|
fullWidthMode: isFullWidth
|
|
160
|
-
}, jsx(Fragment, null, mediaComponent),
|
|
164
|
+
}, jsx(Fragment, null, mediaComponent), showCaptions && caption);
|
|
161
165
|
};
|
|
162
166
|
return jsx(WidthConsumer, null, function (_ref3) {
|
|
163
167
|
var width = _ref3.width,
|
|
@@ -45,7 +45,7 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
|
|
|
45
45
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
var packageName = "@atlaskit/renderer";
|
|
48
|
-
var packageVersion = "108.
|
|
48
|
+
var packageVersion = "108.13.0";
|
|
49
49
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
50
50
|
_inherits(Renderer, _PureComponent);
|
|
51
51
|
var _super = _createSuper(Renderer);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
+
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
3
4
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
5
|
+
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
6
|
+
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
6
7
|
export default function EmbedCard(props: {
|
|
7
8
|
url?: string;
|
|
8
9
|
data?: object;
|
|
@@ -14,4 +15,5 @@ export default function EmbedCard(props: {
|
|
|
14
15
|
layout: RichMediaLayout;
|
|
15
16
|
rendererAppearance?: RendererAppearance;
|
|
16
17
|
isInsideOfBlockNode?: boolean;
|
|
18
|
+
smartLinks?: SmartLinksOptions;
|
|
17
19
|
}): jsx.JSX.Element;
|
|
@@ -43,6 +43,7 @@ declare const EmbedCard: React.ComponentType<{
|
|
|
43
43
|
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
44
44
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
45
45
|
isInsideOfBlockNode?: boolean | undefined;
|
|
46
|
+
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions | undefined;
|
|
46
47
|
}> & Loadable.LoadableComponent;
|
|
47
48
|
declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
|
|
48
49
|
declare const BlockCard: React.ComponentType<{
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { default as React } from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
4
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
6
5
|
import type { EventHandlers, MediaSingleWidthType } from '@atlaskit/editor-common/ui';
|
|
7
|
-
import { AnalyticsEventPayload } from '../../../analytics/events';
|
|
8
|
-
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
6
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
7
|
+
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
9
8
|
export interface Props {
|
|
10
9
|
children: React.ReactNode;
|
|
11
10
|
layout: MediaSingleLayout;
|
|
@@ -16,6 +15,7 @@ export interface Props {
|
|
|
16
15
|
rendererAppearance: RendererAppearance;
|
|
17
16
|
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
18
17
|
featureFlags?: MediaFeatureFlags;
|
|
18
|
+
allowCaptions?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
21
21
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
|
-
import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
1
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
|
+
import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
3
|
export type MediaSSR = {
|
|
4
4
|
mode: SSR;
|
|
5
5
|
config: MediaClientConfig;
|
|
@@ -9,4 +9,5 @@ export interface MediaOptions {
|
|
|
9
9
|
enableDownloadButton?: boolean;
|
|
10
10
|
featureFlags?: MediaFeatureFlags;
|
|
11
11
|
ssr?: MediaSSR;
|
|
12
|
+
allowCaptions?: boolean;
|
|
12
13
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
+
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
3
4
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
5
|
+
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
6
|
+
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
6
7
|
export default function EmbedCard(props: {
|
|
7
8
|
url?: string;
|
|
8
9
|
data?: object;
|
|
@@ -14,4 +15,5 @@ export default function EmbedCard(props: {
|
|
|
14
15
|
layout: RichMediaLayout;
|
|
15
16
|
rendererAppearance?: RendererAppearance;
|
|
16
17
|
isInsideOfBlockNode?: boolean;
|
|
18
|
+
smartLinks?: SmartLinksOptions;
|
|
17
19
|
}): jsx.JSX.Element;
|
|
@@ -43,6 +43,7 @@ declare const EmbedCard: React.ComponentType<{
|
|
|
43
43
|
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
44
44
|
rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
|
|
45
45
|
isInsideOfBlockNode?: boolean | undefined;
|
|
46
|
+
smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions | undefined;
|
|
46
47
|
}> & Loadable.LoadableComponent;
|
|
47
48
|
declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
|
|
48
49
|
declare const BlockCard: React.ComponentType<{
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { default as React } from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
4
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
6
5
|
import type { EventHandlers, MediaSingleWidthType } from '@atlaskit/editor-common/ui';
|
|
7
|
-
import { AnalyticsEventPayload } from '../../../analytics/events';
|
|
8
|
-
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
6
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
7
|
+
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
9
8
|
export interface Props {
|
|
10
9
|
children: React.ReactNode;
|
|
11
10
|
layout: MediaSingleLayout;
|
|
@@ -16,6 +15,7 @@ export interface Props {
|
|
|
16
15
|
rendererAppearance: RendererAppearance;
|
|
17
16
|
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
18
17
|
featureFlags?: MediaFeatureFlags;
|
|
18
|
+
allowCaptions?: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
21
21
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
|
-
import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
1
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
|
+
import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
3
|
export type MediaSSR = {
|
|
4
4
|
mode: SSR;
|
|
5
5
|
config: MediaClientConfig;
|
|
@@ -9,4 +9,5 @@ export interface MediaOptions {
|
|
|
9
9
|
enableDownloadButton?: boolean;
|
|
10
10
|
featureFlags?: MediaFeatureFlags;
|
|
11
11
|
ssr?: MediaSSR;
|
|
12
|
+
allowCaptions?: boolean;
|
|
12
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "108.
|
|
3
|
+
"version": "108.13.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
32
32
|
"@atlaskit/button": "^16.10.0",
|
|
33
33
|
"@atlaskit/code": "^14.6.0",
|
|
34
|
-
"@atlaskit/editor-common": "^75.
|
|
34
|
+
"@atlaskit/editor-common": "^75.1.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.5.1",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^2.6.0",
|
|
39
39
|
"@atlaskit/emoji": "^67.5.0",
|
|
40
40
|
"@atlaskit/icon": "^21.12.0",
|
|
41
|
-
"@atlaskit/link-datasource": "^1.
|
|
41
|
+
"@atlaskit/link-datasource": "^1.2.0",
|
|
42
42
|
"@atlaskit/media-card": "^77.0.0",
|
|
43
43
|
"@atlaskit/media-client": "^24.0.0",
|
|
44
44
|
"@atlaskit/media-common": "^9.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/media-ui": "^25.0.0",
|
|
47
47
|
"@atlaskit/media-viewer": "^48.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
|
-
"@atlaskit/smart-card": "^26.
|
|
49
|
+
"@atlaskit/smart-card": "^26.26.0",
|
|
50
50
|
"@atlaskit/status": "^1.3.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.8.0",
|
|
52
52
|
"@atlaskit/theme": "^12.6.0",
|
package/report.api.md
CHANGED
|
@@ -22,6 +22,7 @@ import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
|
22
22
|
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
23
23
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
24
24
|
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
25
|
+
import type { CardProps } from '@atlaskit/smart-card';
|
|
25
26
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
26
27
|
import { DocNode } from '@atlaskit/adf-schema';
|
|
27
28
|
import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
@@ -31,8 +32,8 @@ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
|
31
32
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
32
33
|
import { jsx } from '@emotion/react';
|
|
33
34
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
34
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
35
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
35
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
36
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
36
37
|
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
37
38
|
import { OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
38
39
|
import { PropsDifference } from '@atlaskit/editor-common/utils';
|
|
@@ -41,7 +42,7 @@ import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
|
41
42
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
42
43
|
import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
|
|
43
44
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
44
|
-
import { SSR } from '@atlaskit/media-common';
|
|
45
|
+
import type { SSR } from '@atlaskit/media-common';
|
|
45
46
|
import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
|
|
46
47
|
import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
47
48
|
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
@@ -236,6 +237,8 @@ type MediaLnkTransformedAEP = AEP<
|
|
|
236
237
|
|
|
237
238
|
// @public (undocumented)
|
|
238
239
|
interface MediaOptions {
|
|
240
|
+
// (undocumented)
|
|
241
|
+
allowCaptions?: boolean;
|
|
239
242
|
// (undocumented)
|
|
240
243
|
allowLinking?: boolean;
|
|
241
244
|
// (undocumented)
|
|
@@ -643,6 +646,8 @@ export interface Serializer<T> {
|
|
|
643
646
|
|
|
644
647
|
// @public (undocumented)
|
|
645
648
|
interface SmartLinksOptions {
|
|
649
|
+
// (undocumented)
|
|
650
|
+
frameStyle?: CardProps['frameStyle'];
|
|
646
651
|
// (undocumented)
|
|
647
652
|
showAuthTooltip?: boolean;
|
|
648
653
|
// (undocumented)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
|
11
11
|
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
12
12
|
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
13
13
|
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
14
|
+
import type { CardProps } from '@atlaskit/smart-card';
|
|
14
15
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
15
16
|
import { DocNode } from '@atlaskit/adf-schema';
|
|
16
17
|
import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
@@ -20,8 +21,8 @@ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
|
20
21
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
21
22
|
import { jsx } from '@emotion/react';
|
|
22
23
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
23
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
24
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
24
|
+
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
25
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
25
26
|
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
26
27
|
import { OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
27
28
|
import { PropsDifference } from '@atlaskit/editor-common/utils';
|
|
@@ -30,7 +31,7 @@ import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
|
30
31
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
31
32
|
import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
|
|
32
33
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
33
|
-
import { SSR } from '@atlaskit/media-common';
|
|
34
|
+
import type { SSR } from '@atlaskit/media-common';
|
|
34
35
|
import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
|
|
35
36
|
import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
36
37
|
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
@@ -139,6 +140,8 @@ type MediaLnkTransformedAEP = AEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.
|
|
|
139
140
|
|
|
140
141
|
// @public (undocumented)
|
|
141
142
|
interface MediaOptions {
|
|
143
|
+
// (undocumented)
|
|
144
|
+
allowCaptions?: boolean;
|
|
142
145
|
// (undocumented)
|
|
143
146
|
allowLinking?: boolean;
|
|
144
147
|
// (undocumented)
|
|
@@ -470,6 +473,8 @@ export interface Serializer<T> {
|
|
|
470
473
|
|
|
471
474
|
// @public (undocumented)
|
|
472
475
|
interface SmartLinksOptions {
|
|
476
|
+
// (undocumented)
|
|
477
|
+
frameStyle?: CardProps['frameStyle'];
|
|
473
478
|
// (undocumented)
|
|
474
479
|
showAuthTooltip?: boolean;
|
|
475
480
|
// (undocumented)
|