@atlaskit/renderer 128.2.3 → 128.3.1
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 +20 -0
- package/dist/cjs/react/index.js +8 -6
- package/dist/cjs/react/marks/data-consumer.js +3 -1
- package/dist/cjs/react/marks/link.js +7 -6
- package/dist/cjs/react/nodes/blockCard.js +16 -11
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/emoji.js +6 -2
- package/dist/cjs/react/nodes/heading.js +3 -1
- package/dist/cjs/react/nodes/inlineCard.js +19 -6
- package/dist/cjs/react/nodes/media/index.js +20 -5
- package/dist/cjs/react/nodes/mediaInline.js +4 -1
- package/dist/cjs/react/nodes/mediaSingle/index.js +3 -1
- package/dist/cjs/react/nodes/panel.js +7 -7
- package/dist/cjs/react/nodes/status.js +6 -2
- package/dist/cjs/react/nodes/table/sticky.js +2 -3
- package/dist/cjs/react/nodes/table.js +7 -4
- package/dist/cjs/react/nodes/taskItem.js +9 -3
- package/dist/cjs/ui/Expand.js +9 -5
- package/dist/cjs/ui/ExtensionRenderer.js +3 -1
- package/dist/cjs/ui/MediaCard.js +3 -1
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +67 -68
- package/dist/cjs/ui/Renderer/index.js +22 -10
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -2
- package/dist/es2019/react/index.js +7 -6
- package/dist/es2019/react/marks/data-consumer.js +3 -1
- package/dist/es2019/react/marks/link.js +7 -6
- package/dist/es2019/react/nodes/blockCard.js +16 -11
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/emoji.js +6 -2
- package/dist/es2019/react/nodes/heading.js +3 -1
- package/dist/es2019/react/nodes/inlineCard.js +19 -6
- package/dist/es2019/react/nodes/media/index.js +20 -5
- package/dist/es2019/react/nodes/mediaInline.js +5 -2
- package/dist/es2019/react/nodes/mediaSingle/index.js +3 -1
- package/dist/es2019/react/nodes/panel.js +7 -7
- package/dist/es2019/react/nodes/status.js +6 -2
- package/dist/es2019/react/nodes/table/sticky.js +4 -5
- package/dist/es2019/react/nodes/table.js +7 -4
- package/dist/es2019/react/nodes/taskItem.js +9 -3
- package/dist/es2019/ui/Expand.js +9 -5
- package/dist/es2019/ui/ExtensionRenderer.js +3 -1
- package/dist/es2019/ui/MediaCard.js +3 -1
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +73 -74
- package/dist/es2019/ui/Renderer/index.js +22 -10
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -2
- package/dist/esm/react/index.js +8 -6
- package/dist/esm/react/marks/data-consumer.js +3 -1
- package/dist/esm/react/marks/link.js +7 -6
- package/dist/esm/react/nodes/blockCard.js +16 -11
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/esm/react/nodes/emoji.js +6 -2
- package/dist/esm/react/nodes/heading.js +3 -1
- package/dist/esm/react/nodes/inlineCard.js +19 -6
- package/dist/esm/react/nodes/media/index.js +20 -5
- package/dist/esm/react/nodes/mediaInline.js +4 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +3 -1
- package/dist/esm/react/nodes/panel.js +7 -7
- package/dist/esm/react/nodes/status.js +6 -2
- package/dist/esm/react/nodes/table/sticky.js +2 -3
- package/dist/esm/react/nodes/table.js +7 -4
- package/dist/esm/react/nodes/taskItem.js +9 -3
- package/dist/esm/ui/Expand.js +9 -5
- package/dist/esm/ui/ExtensionRenderer.js +3 -1
- package/dist/esm/ui/MediaCard.js +3 -1
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +68 -69
- package/dist/esm/ui/Renderer/index.js +22 -10
- package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -2
- package/dist/types/types/mediaOptions.d.ts +3 -0
- package/dist/types/ui/MediaCard.d.ts +3 -0
- package/dist/types-ts4.5/types/mediaOptions.d.ts +3 -0
- package/dist/types-ts4.5/ui/MediaCard.d.ts +3 -0
- package/package.json +5 -5
|
@@ -37,7 +37,7 @@ var panelBaseStyles = css({
|
|
|
37
37
|
position: 'relative',
|
|
38
38
|
alignItems: 'normal',
|
|
39
39
|
wordBreak: 'break-word',
|
|
40
|
-
backgroundColor: "var(--ds-background-accent-blue-subtlest, #
|
|
40
|
+
backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
41
41
|
color: 'inherit',
|
|
42
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
43
43
|
'.ak-editor-panel__icon': {
|
|
@@ -90,7 +90,7 @@ var panelBaseStyles = css({
|
|
|
90
90
|
},
|
|
91
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
92
92
|
'&[data-panel-type="note"]': {
|
|
93
|
-
backgroundColor: "var(--ds-background-accent-purple-subtlest, #
|
|
93
|
+
backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
|
|
94
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
95
95
|
'.ak-editor-panel__icon': {
|
|
96
96
|
color: "var(--ds-icon-discovery, #AF59E1)"
|
|
@@ -98,7 +98,7 @@ var panelBaseStyles = css({
|
|
|
98
98
|
},
|
|
99
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
100
100
|
'&[data-panel-type="tip"]': {
|
|
101
|
-
backgroundColor: "var(--ds-background-accent-green-subtlest, #
|
|
101
|
+
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
102
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
103
103
|
'.ak-editor-panel__icon': {
|
|
104
104
|
color: "var(--ds-icon-success, #6A9A23)"
|
|
@@ -106,7 +106,7 @@ var panelBaseStyles = css({
|
|
|
106
106
|
},
|
|
107
107
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
108
108
|
'&[data-panel-type="warning"]': {
|
|
109
|
-
backgroundColor: "var(--ds-background-accent-yellow-subtlest, #
|
|
109
|
+
backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
110
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
111
111
|
'.ak-editor-panel__icon': {
|
|
112
112
|
color: "var(--ds-icon-warning, #E06C00)"
|
|
@@ -114,7 +114,7 @@ var panelBaseStyles = css({
|
|
|
114
114
|
},
|
|
115
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
116
116
|
'&[data-panel-type="error"]': {
|
|
117
|
-
backgroundColor: "var(--ds-background-accent-red-subtlest, #
|
|
117
|
+
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
118
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
119
119
|
'.ak-editor-panel__icon': {
|
|
120
120
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
@@ -122,7 +122,7 @@ var panelBaseStyles = css({
|
|
|
122
122
|
},
|
|
123
123
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
124
124
|
'&[data-panel-type="success"]': {
|
|
125
|
-
backgroundColor: "var(--ds-background-accent-green-subtlest, #
|
|
125
|
+
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
126
126
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
127
127
|
'.ak-editor-panel__icon': {
|
|
128
128
|
color: "var(--ds-icon-success, #6A9A23)"
|
|
@@ -150,7 +150,7 @@ var panelNestedIconStyles = css({
|
|
|
150
150
|
var nestedPanelStyles = css({
|
|
151
151
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
152
152
|
'.ak-editor-panel__content .ak-editor-panel': {
|
|
153
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #
|
|
153
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
var panelCustomBackground = css({
|
|
@@ -12,7 +12,9 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
12
12
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
13
13
|
return /*#__PURE__*/React.createElement("span", _extends({}, inlineAnnotationProps, {
|
|
14
14
|
role: 'emphasis'
|
|
15
|
-
}), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
15
|
+
}), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
16
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
17
|
+
, {
|
|
16
18
|
data: {
|
|
17
19
|
userContext: 'document'
|
|
18
20
|
}
|
|
@@ -24,7 +26,9 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
24
26
|
isBold: fg('platform-component-visual-refresh')
|
|
25
27
|
})));
|
|
26
28
|
}
|
|
27
|
-
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
29
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
, {
|
|
28
32
|
data: {
|
|
29
33
|
userContext: 'document'
|
|
30
34
|
}
|
|
@@ -13,7 +13,6 @@ import React from 'react';
|
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
15
15
|
import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
|
-
import { N40A } from '@atlaskit/theme/colors';
|
|
17
16
|
import { Table } from './table';
|
|
18
17
|
import { recursivelyInjectProps } from '../../utils/inject-props';
|
|
19
18
|
export var tableStickyPadding = 8;
|
|
@@ -38,9 +37,9 @@ var fixedTableDivStaticStyles = css(_defineProperty(_defineProperty(_definePrope
|
|
|
38
37
|
marginBottom: 0,
|
|
39
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
39
|
tr: {
|
|
41
|
-
background: "var(--ds-surface,
|
|
40
|
+
background: "var(--ds-surface, #FFFFFF)"
|
|
42
41
|
}
|
|
43
|
-
}), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface,
|
|
42
|
+
}), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, #FFFFFF)")), "background", "var(--ds-surface-overlay, #FFFFFF)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, #1E1F211f)")), "div[data-expanded='false'] &", {
|
|
44
43
|
display: 'none'
|
|
45
44
|
}), "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.right-shadow::after, & .").concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.left-shadow::before"), {
|
|
46
45
|
top: '0px',
|
|
@@ -92,8 +92,7 @@ export var shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tab
|
|
|
92
92
|
return tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
93
93
|
};
|
|
94
94
|
export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-explicit-any
|
|
97
96
|
) {
|
|
98
97
|
return React.Children.map(rows, function (row, index) {
|
|
99
98
|
if (index === 0) {
|
|
@@ -704,7 +703,9 @@ var TableWithShadows = overflowShadow(TableProcessor, {
|
|
|
704
703
|
var TableWithWidth = function TableWithWidth(props) {
|
|
705
704
|
if (fg('platform-ssr-table-resize')) {
|
|
706
705
|
var _props$columnWidths;
|
|
707
|
-
var colWidthsSum =
|
|
706
|
+
var colWidthsSum =
|
|
707
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
708
|
+
((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
|
|
708
709
|
return total + val;
|
|
709
710
|
}, 0)) || 0;
|
|
710
711
|
if (colWidthsSum || props.allowTableResizing) {
|
|
@@ -721,7 +722,9 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
721
722
|
var _props$columnWidths2;
|
|
722
723
|
var width = _ref3.width;
|
|
723
724
|
var renderWidth = props.rendererAppearance === 'full-page' ? width - FullPagePadding * 2 : width;
|
|
724
|
-
var colWidthsSum =
|
|
725
|
+
var colWidthsSum =
|
|
726
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
727
|
+
((_props$columnWidths2 = props.columnWidths) === null || _props$columnWidths2 === void 0 ? void 0 : _props$columnWidths2.reduce(function (total, val) {
|
|
725
728
|
return total + val;
|
|
726
729
|
}, 0)) || 0;
|
|
727
730
|
if (colWidthsSum || props.allowTableResizing) {
|
|
@@ -36,7 +36,9 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
36
36
|
if (rendererContext) {
|
|
37
37
|
objectAri = rendererContext.objectAri || '';
|
|
38
38
|
}
|
|
39
|
-
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
39
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
41
|
+
, {
|
|
40
42
|
data: {
|
|
41
43
|
userContext: 'document'
|
|
42
44
|
}
|
|
@@ -52,7 +54,9 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
52
54
|
disableOnChange: disableOnChange,
|
|
53
55
|
taskDecisionProvider: taskDecisionProvider,
|
|
54
56
|
contextIdentifierProvider: contextIdentifierProvider,
|
|
55
|
-
dataAttributes: dataAttributes
|
|
57
|
+
dataAttributes: dataAttributes
|
|
58
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
,
|
|
56
60
|
onChange: function onChange(_, isChecked) {
|
|
57
61
|
dispatch(isChecked);
|
|
58
62
|
}
|
|
@@ -75,7 +79,9 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
75
79
|
}, {
|
|
76
80
|
key: "render",
|
|
77
81
|
value: function render() {
|
|
78
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
82
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
83
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
84
|
+
, {
|
|
79
85
|
providers: ['taskDecisionProvider', 'contextIdentifierProvider'],
|
|
80
86
|
providerFactory: this.providerFactory,
|
|
81
87
|
renderNode: this.renderWithProvider
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -42,12 +42,12 @@ var containerStyles = css({
|
|
|
42
42
|
borderColor: 'transparent',
|
|
43
43
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
44
44
|
minHeight: '25px',
|
|
45
|
-
background: "var(--ds-background-neutral-subtle,
|
|
45
|
+
background: "var(--ds-background-neutral-subtle, #00000000)",
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
47
|
transition: "background 0.3s ".concat(akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(akEditorSwoopCubicBezier),
|
|
48
48
|
padding: "var(--ds-space-0, 0px)",
|
|
49
49
|
paddingBottom: "var(--ds-space-0, 0px)",
|
|
50
|
-
marginTop: "var(--ds-space-050,
|
|
50
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
51
51
|
marginBottom: 0,
|
|
52
52
|
marginLeft: 0,
|
|
53
53
|
marginRight: 0,
|
|
@@ -57,7 +57,7 @@ var containerStyles = css({
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
var containerStylesExpanded = css({
|
|
60
|
-
background: "var(--ds-surface,
|
|
60
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
61
61
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
62
62
|
borderColor: "var(--ds-border, #0B120E24)"
|
|
63
63
|
});
|
|
@@ -228,14 +228,18 @@ function Expand(_ref2) {
|
|
|
228
228
|
expanded: expanded,
|
|
229
229
|
focused: focused
|
|
230
230
|
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? jsx(ActiveHeaderIdConsumer, {
|
|
231
|
-
nestedHeaderIds: nestedHeaderIds
|
|
231
|
+
nestedHeaderIds: nestedHeaderIds
|
|
232
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
233
|
+
,
|
|
232
234
|
onNestedHeaderIdMatch: function onNestedHeaderIdMatch() {
|
|
233
235
|
if (!hasLoadedChildren) {
|
|
234
236
|
setHasLoadedChildren(true);
|
|
235
237
|
}
|
|
236
238
|
setExpanded(true);
|
|
237
239
|
}
|
|
238
|
-
}) : null, jsx(TitleContainer
|
|
240
|
+
}) : null, jsx(TitleContainer
|
|
241
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
242
|
+
, {
|
|
239
243
|
onClick: function onClick(e) {
|
|
240
244
|
e.preventDefault();
|
|
241
245
|
e.stopPropagation();
|
|
@@ -130,7 +130,9 @@ export default function ExtensionRenderer(props) {
|
|
|
130
130
|
if (!props.providers) {
|
|
131
131
|
return setupAndRenderExtensionNode({});
|
|
132
132
|
}
|
|
133
|
-
return jsx(WithProviders
|
|
133
|
+
return jsx(WithProviders
|
|
134
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
135
|
+
, {
|
|
134
136
|
providers: ['extensionProvider'],
|
|
135
137
|
providerFactory: props.providers,
|
|
136
138
|
renderNode: setupAndRenderExtensionNode
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -299,7 +299,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
299
299
|
mediaClient = _this$props7.mediaClient,
|
|
300
300
|
dataAttributes = _this$props7.dataAttributes,
|
|
301
301
|
enableSyncMediaCard = _this$props7.enableSyncMediaCard,
|
|
302
|
-
localId = _this$props7.localId
|
|
302
|
+
localId = _this$props7.localId,
|
|
303
|
+
mediaViewerExtensions = _this$props7.mediaViewerExtensions;
|
|
303
304
|
var isMobile = false;
|
|
304
305
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
305
306
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -360,6 +361,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
360
361
|
shouldEnableDownloadButton: shouldEnableDownloadButton,
|
|
361
362
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
362
363
|
shouldHideTooltip: isMobile,
|
|
364
|
+
mediaViewerExtensions: mediaViewerExtensions,
|
|
363
365
|
onError: expValEquals('platform_editor_media_error_analytics', 'isEnabled', true) ? this.onError : undefined
|
|
364
366
|
}));
|
|
365
367
|
}
|