@atlaskit/renderer 112.7.1 → 112.7.3
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 +17 -0
- package/dist/cjs/actions/index.js +1 -2
- package/dist/cjs/consts.js +3 -0
- package/dist/cjs/messages.js +3 -0
- package/dist/cjs/react/index.js +1 -2
- package/dist/cjs/react/marks/confluence-inline-comment.js +5 -7
- package/dist/cjs/react/nodes/TableStickyScrollbar.js +1 -2
- package/dist/cjs/react/nodes/decisionList.js +5 -7
- package/dist/cjs/react/nodes/emoji.js +6 -9
- package/dist/cjs/react/nodes/fallback.js +7 -10
- package/dist/cjs/react/nodes/heading-anchor.js +11 -14
- package/dist/cjs/react/nodes/media/index.js +8 -11
- package/dist/cjs/react/nodes/mediaGroup.js +9 -12
- package/dist/cjs/react/nodes/table/sticky.js +7 -9
- package/dist/cjs/react/nodes/table.js +27 -32
- package/dist/cjs/react/nodes/tableRow.js +8 -11
- package/dist/cjs/react/nodes/taskItem.js +6 -9
- package/dist/cjs/react/nodes/taskList.js +5 -7
- package/dist/cjs/react/utils/element-selection.js +1 -2
- package/dist/cjs/react/utils/use-select-all-trap.js +1 -2
- package/dist/cjs/render-document.js +3 -0
- package/dist/cjs/renderer-context.js +3 -0
- package/dist/cjs/text/index.js +1 -2
- package/dist/cjs/ui/Expand.js +1 -1
- package/dist/cjs/ui/MediaCard.js +9 -12
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +6 -9
- package/dist/cjs/ui/Renderer/index.js +12 -15
- package/dist/cjs/ui/Renderer/style.js +2 -2
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +5 -7
- package/dist/cjs/ui/SmartCardStorage.js +5 -7
- package/dist/cjs/ui/annotations/context.js +8 -11
- package/dist/cjs/ui/annotations/draft/dom.js +1 -2
- package/dist/cjs/use-feature-flags.js +3 -0
- package/dist/cjs/utils.js +3 -0
- package/dist/es2019/actions.js +3 -0
- package/dist/es2019/consts.js +3 -0
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/messages.js +3 -0
- package/dist/es2019/react/utils/use-select-all-trap.js +1 -2
- package/dist/es2019/render-document.js +3 -0
- package/dist/es2019/renderer-context.js +3 -0
- package/dist/es2019/text-serializer.js +3 -0
- package/dist/es2019/ui/Expand.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +2 -2
- package/dist/es2019/use-feature-flags.js +3 -0
- package/dist/es2019/utils.js +3 -0
- package/dist/esm/actions/index.js +1 -2
- package/dist/esm/actions.js +3 -0
- package/dist/esm/consts.js +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/messages.js +3 -0
- package/dist/esm/react/index.js +1 -2
- package/dist/esm/react/marks/confluence-inline-comment.js +5 -7
- package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -2
- package/dist/esm/react/nodes/decisionList.js +5 -7
- package/dist/esm/react/nodes/emoji.js +6 -9
- package/dist/esm/react/nodes/fallback.js +7 -10
- package/dist/esm/react/nodes/heading-anchor.js +11 -14
- package/dist/esm/react/nodes/media/index.js +8 -11
- package/dist/esm/react/nodes/mediaGroup.js +9 -12
- package/dist/esm/react/nodes/table/sticky.js +7 -9
- package/dist/esm/react/nodes/table.js +27 -32
- package/dist/esm/react/nodes/tableRow.js +8 -11
- package/dist/esm/react/nodes/taskItem.js +6 -9
- package/dist/esm/react/nodes/taskList.js +5 -7
- package/dist/esm/react/utils/element-selection.js +1 -2
- package/dist/esm/react/utils/use-select-all-trap.js +1 -2
- package/dist/esm/render-document.js +3 -0
- package/dist/esm/renderer-context.js +3 -0
- package/dist/esm/text/index.js +1 -2
- package/dist/esm/text-serializer.js +3 -0
- package/dist/esm/ui/Expand.js +1 -1
- package/dist/esm/ui/MediaCard.js +9 -12
- package/dist/esm/ui/Renderer/ErrorBoundary.js +6 -9
- package/dist/esm/ui/Renderer/index.js +12 -15
- package/dist/esm/ui/Renderer/style.js +2 -2
- package/dist/esm/ui/Renderer/truncated-wrapper.js +5 -7
- package/dist/esm/ui/SmartCardStorage.js +5 -7
- package/dist/esm/ui/annotations/context.js +8 -11
- package/dist/esm/ui/annotations/draft/dom.js +1 -2
- package/dist/esm/use-feature-flags.js +3 -0
- package/dist/esm/utils.js +3 -0
- package/package.json +3 -3
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
import React from 'react';
|
|
11
10
|
import { compose } from '@atlaskit/editor-common/utils';
|
|
12
11
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
13
12
|
import { RendererCssClassName } from '../../consts';
|
|
14
13
|
var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
15
|
-
_inherits(TableRow, _React$Component);
|
|
16
|
-
var _super = _createSuper(TableRow);
|
|
17
14
|
function TableRow() {
|
|
18
15
|
var _this;
|
|
19
16
|
_classCallCheck(this, TableRow);
|
|
20
17
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21
18
|
args[_key] = arguments[_key];
|
|
22
19
|
}
|
|
23
|
-
_this =
|
|
24
|
-
_defineProperty(
|
|
20
|
+
_this = _callSuper(this, TableRow, [].concat(args));
|
|
21
|
+
_defineProperty(_this, "state", {
|
|
25
22
|
colGroupWidths: []
|
|
26
23
|
});
|
|
27
|
-
_defineProperty(
|
|
24
|
+
_defineProperty(_this, "addSortableColumn", function (childrenArray) {
|
|
28
25
|
var _this$props = _this.props,
|
|
29
26
|
allowColumnSorting = _this$props.allowColumnSorting,
|
|
30
27
|
rowIndex = _this$props.index;
|
|
@@ -48,7 +45,7 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
|
48
45
|
}
|
|
49
46
|
return childrenArray;
|
|
50
47
|
});
|
|
51
|
-
_defineProperty(
|
|
48
|
+
_defineProperty(_this, "addColGroupWidth", function (childrenArray) {
|
|
52
49
|
if (_this.state.colGroupWidths) {
|
|
53
50
|
childrenArray = childrenArray.map(function (child, index) {
|
|
54
51
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
@@ -62,7 +59,8 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
|
62
59
|
});
|
|
63
60
|
return _this;
|
|
64
61
|
}
|
|
65
|
-
|
|
62
|
+
_inherits(TableRow, _React$Component);
|
|
63
|
+
return _createClass(TableRow, [{
|
|
66
64
|
key: "render",
|
|
67
65
|
value: function render() {
|
|
68
66
|
var _this$props2 = this.props,
|
|
@@ -79,6 +77,5 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
|
79
77
|
}, this.props.index), compose(this.addSortableColumn, this.addColGroupWidth)(childrenArray));
|
|
80
78
|
}
|
|
81
79
|
}]);
|
|
82
|
-
return TableRow;
|
|
83
80
|
}(React.Component);
|
|
84
81
|
export { TableRow as default };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function
|
|
8
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
10
|
import React, { PureComponent } from 'react';
|
|
12
11
|
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -14,13 +13,11 @@ import TaskItemWithProviders from './task-item-with-providers';
|
|
|
14
13
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
15
14
|
import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
16
15
|
var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
17
|
-
_inherits(TaskItem, _PureComponent);
|
|
18
|
-
var _super = _createSuper(TaskItem);
|
|
19
16
|
function TaskItem(props) {
|
|
20
17
|
var _this;
|
|
21
18
|
_classCallCheck(this, TaskItem);
|
|
22
|
-
_this =
|
|
23
|
-
_defineProperty(
|
|
19
|
+
_this = _callSuper(this, TaskItem, [props]);
|
|
20
|
+
_defineProperty(_this, "renderWithProvider", function (providers) {
|
|
24
21
|
var taskDecisionProvider = providers.taskDecisionProvider,
|
|
25
22
|
contextIdentifierProvider = providers.contextIdentifierProvider;
|
|
26
23
|
var _this$props = _this.props,
|
|
@@ -59,7 +56,8 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
59
56
|
_this.providerFactory = props.providers || new ProviderFactory();
|
|
60
57
|
return _this;
|
|
61
58
|
}
|
|
62
|
-
|
|
59
|
+
_inherits(TaskItem, _PureComponent);
|
|
60
|
+
return _createClass(TaskItem, [{
|
|
63
61
|
key: "componentWillUnmount",
|
|
64
62
|
value: function componentWillUnmount() {
|
|
65
63
|
if (!this.props.providers) {
|
|
@@ -78,6 +76,5 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
78
76
|
});
|
|
79
77
|
}
|
|
80
78
|
}]);
|
|
81
|
-
return TaskItem;
|
|
82
79
|
}(PureComponent);
|
|
83
80
|
export { TaskItem as default };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React, { PureComponent, Children } from 'react';
|
|
9
9
|
import { TaskList as AkTaskList } from '@atlaskit/task-decision';
|
|
10
10
|
var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
11
|
-
_inherits(TaskList, _PureComponent);
|
|
12
|
-
var _super = _createSuper(TaskList);
|
|
13
11
|
function TaskList() {
|
|
14
12
|
_classCallCheck(this, TaskList);
|
|
15
|
-
return
|
|
13
|
+
return _callSuper(this, TaskList, arguments);
|
|
16
14
|
}
|
|
17
|
-
|
|
15
|
+
_inherits(TaskList, _PureComponent);
|
|
16
|
+
return _createClass(TaskList, [{
|
|
18
17
|
key: "render",
|
|
19
18
|
value: function render() {
|
|
20
19
|
var _this$props = this.props,
|
|
@@ -28,6 +27,5 @@ var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
|
28
27
|
}, children);
|
|
29
28
|
}
|
|
30
29
|
}]);
|
|
31
|
-
return TaskList;
|
|
32
30
|
}(PureComponent);
|
|
33
31
|
export { TaskList as default };
|
|
@@ -8,7 +8,7 @@ export var ElementSelection = /*#__PURE__*/function () {
|
|
|
8
8
|
this.range = selection.getRangeAt(0);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
_createClass(ElementSelection, [{
|
|
11
|
+
return _createClass(ElementSelection, [{
|
|
12
12
|
key: "eq",
|
|
13
13
|
value: function eq(selection) {
|
|
14
14
|
if (!selection) {
|
|
@@ -47,5 +47,4 @@ export var ElementSelection = /*#__PURE__*/function () {
|
|
|
47
47
|
return new ElementSelection(win.getSelection());
|
|
48
48
|
}
|
|
49
49
|
}]);
|
|
50
|
-
return ElementSelection;
|
|
51
50
|
}();
|
|
@@ -2,7 +2,6 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import AnalyticsContext from '../../analytics/analyticsContext';
|
|
4
4
|
import { ElementSelection } from './element-selection';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
export var useSelectAllTrap = function useSelectAllTrap() {
|
|
7
6
|
var _React$useContext = React.useContext(AnalyticsContext),
|
|
8
7
|
fireAnalyticsEvent = _React$useContext.fireAnalyticsEvent;
|
|
@@ -21,7 +20,7 @@ export var useSelectAllTrap = function useSelectAllTrap() {
|
|
|
21
20
|
return;
|
|
22
21
|
}
|
|
23
22
|
var elementSelection = ElementSelection.fromWindow();
|
|
24
|
-
var isInput =
|
|
23
|
+
var isInput = (_e$target = e.target) === null || _e$target === void 0 || (_e$target$matches = _e$target.matches) === null || _e$target$matches === void 0 ? void 0 : _e$target$matches.call(_e$target, 'input');
|
|
25
24
|
if (elementSelection.eq(caught.current) || isInput) {
|
|
26
25
|
fireAnalyticsEvent({
|
|
27
26
|
eventType: EVENT_TYPE.TRACK,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
3
|
+
// Entry file in package.json
|
|
4
|
+
|
|
2
5
|
import memoizeOne from 'memoize-one';
|
|
3
6
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
4
7
|
import { getValidDocument } from '@atlaskit/editor-common/validator';
|
package/dist/esm/text/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var TextSerializer = /*#__PURE__*/function () {
|
|
|
8
8
|
this.schema = schema;
|
|
9
9
|
this.schema = schema;
|
|
10
10
|
}
|
|
11
|
-
_createClass(TextSerializer, [{
|
|
11
|
+
return _createClass(TextSerializer, [{
|
|
12
12
|
key: "serializeFragment",
|
|
13
13
|
value: function serializeFragment(fragment) {
|
|
14
14
|
var _this = this;
|
|
@@ -25,6 +25,5 @@ var TextSerializer = /*#__PURE__*/function () {
|
|
|
25
25
|
return new TextSerializer(schema);
|
|
26
26
|
}
|
|
27
27
|
}]);
|
|
28
|
-
return TextSerializer;
|
|
29
28
|
}();
|
|
30
29
|
export { TextSerializer as default };
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -30,7 +30,7 @@ var titleStyles = css({
|
|
|
30
30
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
32
|
lineHeight: akEditorLineHeight,
|
|
33
|
-
fontWeight:
|
|
33
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
34
34
|
display: 'flex',
|
|
35
35
|
flex: 1,
|
|
36
36
|
margin: 0,
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -2,15 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
11
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
|
-
function
|
|
12
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
14
|
import React, { Component, useContext } from 'react';
|
|
16
15
|
import { filter } from '@atlaskit/adf-utils/traverse';
|
|
@@ -48,17 +47,15 @@ export var getListOfIdentifiersFromDoc = function getListOfIdentifiersFromDoc(do
|
|
|
48
47
|
}, []);
|
|
49
48
|
};
|
|
50
49
|
export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
51
|
-
_inherits(MediaCardView, _Component);
|
|
52
|
-
var _super = _createSuper(MediaCardView);
|
|
53
50
|
function MediaCardView() {
|
|
54
51
|
var _this;
|
|
55
52
|
_classCallCheck(this, MediaCardView);
|
|
56
53
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
57
54
|
args[_key] = arguments[_key];
|
|
58
55
|
}
|
|
59
|
-
_this =
|
|
60
|
-
_defineProperty(
|
|
61
|
-
_defineProperty(
|
|
56
|
+
_this = _callSuper(this, MediaCardView, [].concat(args));
|
|
57
|
+
_defineProperty(_this, "state", {});
|
|
58
|
+
_defineProperty(_this, "saveFileState", /*#__PURE__*/function () {
|
|
62
59
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(id) {
|
|
63
60
|
var _this$props, collectionName, mediaClient, options, fileState;
|
|
64
61
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -96,7 +93,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
96
93
|
return _ref.apply(this, arguments);
|
|
97
94
|
};
|
|
98
95
|
}());
|
|
99
|
-
_defineProperty(
|
|
96
|
+
_defineProperty(_this, "renderLoadingCard", function () {
|
|
100
97
|
var cardDimensions = _this.props.cardDimensions;
|
|
101
98
|
return /*#__PURE__*/React.createElement(CardLoading, {
|
|
102
99
|
dimensions: cardDimensions,
|
|
@@ -109,7 +106,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
109
106
|
* This is due to consumers normally process this onClick call by opening media viewer and
|
|
110
107
|
* we don't want that to happened described above text.
|
|
111
108
|
*/
|
|
112
|
-
_defineProperty(
|
|
109
|
+
_defineProperty(_this, "getOnCardClickCallback", function (isInlinePlayer) {
|
|
113
110
|
var eventHandlers = _this.props.eventHandlers;
|
|
114
111
|
if (eventHandlers && eventHandlers.media && eventHandlers.media.onClick) {
|
|
115
112
|
return function (result, analyticsEvent) {
|
|
@@ -124,7 +121,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
124
121
|
});
|
|
125
122
|
return _this;
|
|
126
123
|
}
|
|
127
|
-
|
|
124
|
+
_inherits(MediaCardView, _Component);
|
|
125
|
+
return _createClass(MediaCardView, [{
|
|
128
126
|
key: "componentDidMount",
|
|
129
127
|
value: function () {
|
|
130
128
|
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
@@ -337,7 +335,6 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
337
335
|
}));
|
|
338
336
|
}
|
|
339
337
|
}]);
|
|
340
|
-
return MediaCardView;
|
|
341
338
|
}(Component);
|
|
342
339
|
// Needed for copy & paste
|
|
343
340
|
export var getClipboardAttrs = function getClipboardAttrs(_ref2) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
import React from 'react';
|
|
11
10
|
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
@@ -14,22 +13,21 @@ import { logException } from '@atlaskit/editor-common/monitoring';
|
|
|
14
13
|
import { PLATFORM } from '../../analytics/events';
|
|
15
14
|
import uuid from 'uuid';
|
|
16
15
|
export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
17
|
-
_inherits(ErrorBoundary, _React$Component);
|
|
18
|
-
var _super = _createSuper(ErrorBoundary);
|
|
19
16
|
function ErrorBoundary() {
|
|
20
17
|
var _this;
|
|
21
18
|
_classCallCheck(this, ErrorBoundary);
|
|
22
19
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23
20
|
args[_key] = arguments[_key];
|
|
24
21
|
}
|
|
25
|
-
_this =
|
|
26
|
-
_defineProperty(
|
|
22
|
+
_this = _callSuper(this, ErrorBoundary, [].concat(args));
|
|
23
|
+
_defineProperty(_this, "state", {
|
|
27
24
|
errorCaptured: false,
|
|
28
25
|
domError: false
|
|
29
26
|
});
|
|
30
27
|
return _this;
|
|
31
28
|
}
|
|
32
|
-
|
|
29
|
+
_inherits(ErrorBoundary, _React$Component);
|
|
30
|
+
return _createClass(ErrorBoundary, [{
|
|
33
31
|
key: "fireAnalyticsEvent",
|
|
34
32
|
value: function fireAnalyticsEvent(event) {
|
|
35
33
|
var createAnalyticsEvent = this.props.createAnalyticsEvent;
|
|
@@ -112,5 +110,4 @@ export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
112
110
|
return this.props.children;
|
|
113
111
|
}
|
|
114
112
|
}]);
|
|
115
|
-
return ErrorBoundary;
|
|
116
113
|
}(React.Component);
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
-
function
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
12
|
/**
|
|
14
13
|
* @jsxRuntime classic
|
|
@@ -55,7 +54,7 @@ import { countNodes } from './count-nodes';
|
|
|
55
54
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
55
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
56
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "112.7.
|
|
57
|
+
var packageVersion = "112.7.3";
|
|
59
58
|
var setAsQueryContainerStyles = css({
|
|
60
59
|
containerName: 'ak-renderer-wrapper',
|
|
61
60
|
containerType: 'inline-size',
|
|
@@ -68,18 +67,16 @@ export var defaultNodeComponents = nodeToReact;
|
|
|
68
67
|
*/
|
|
69
68
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
70
69
|
export var __RendererClassComponent = /*#__PURE__*/function (_PureComponent) {
|
|
71
|
-
_inherits(__RendererClassComponent, _PureComponent);
|
|
72
|
-
var _super = _createSuper(__RendererClassComponent);
|
|
73
70
|
function __RendererClassComponent(props) {
|
|
74
71
|
var _this;
|
|
75
72
|
_classCallCheck(this, __RendererClassComponent);
|
|
76
|
-
_this =
|
|
73
|
+
_this = _callSuper(this, __RendererClassComponent, [props]);
|
|
77
74
|
/**
|
|
78
75
|
* This is used in measuring the Renderer Mount time and is then
|
|
79
76
|
* deleted once that measurement occurs.
|
|
80
77
|
*/
|
|
81
|
-
_defineProperty(
|
|
82
|
-
_defineProperty(
|
|
78
|
+
_defineProperty(_this, "renderedMeasurementDistortedDurationMonitor", getDistortedDurationMonitor());
|
|
79
|
+
_defineProperty(_this, "createRendererContext", memoizeOne(function (featureFlags, isTopLevelRenderer) {
|
|
83
80
|
var normalizedFeatureFlags = normalizeFeatureFlags(featureFlags);
|
|
84
81
|
return {
|
|
85
82
|
featureFlags: normalizedFeatureFlags,
|
|
@@ -87,20 +84,20 @@ export var __RendererClassComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
87
84
|
isTopLevelRenderer: isTopLevelRenderer === undefined
|
|
88
85
|
};
|
|
89
86
|
}));
|
|
90
|
-
_defineProperty(
|
|
87
|
+
_defineProperty(_this, "fireAnalyticsEvent", function (event) {
|
|
91
88
|
var createAnalyticsEvent = _this.props.createAnalyticsEvent;
|
|
92
89
|
if (createAnalyticsEvent) {
|
|
93
90
|
var channel = FabricChannel.editor;
|
|
94
91
|
createAnalyticsEvent(event).fire(channel);
|
|
95
92
|
}
|
|
96
93
|
});
|
|
97
|
-
_defineProperty(
|
|
94
|
+
_defineProperty(_this, "getSchema", memoizeOne(function (schema, adfStage) {
|
|
98
95
|
if (schema) {
|
|
99
96
|
return schema;
|
|
100
97
|
}
|
|
101
98
|
return getSchemaBasedOnStage(adfStage);
|
|
102
99
|
}));
|
|
103
|
-
_defineProperty(
|
|
100
|
+
_defineProperty(_this, "onMouseDownEditView", function () {
|
|
104
101
|
// When the user is deselecting text on the screen by clicking, if they are clicking outside
|
|
105
102
|
// the current selection, by the time the onclick handler is called the window.getSelection()
|
|
106
103
|
// value will already be cleared.
|
|
@@ -108,7 +105,7 @@ export var __RendererClassComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
108
105
|
var windowSelection = window.getSelection();
|
|
109
106
|
_this.mouseDownSelection = windowSelection !== null ? windowSelection.toString() : undefined;
|
|
110
107
|
});
|
|
111
|
-
_defineProperty(
|
|
108
|
+
_defineProperty(_this, "handleMouseTripleClickInTables", function (event) {
|
|
112
109
|
var _parentElement, _parentElement2;
|
|
113
110
|
if (browser.ios || browser.android) {
|
|
114
111
|
return;
|
|
@@ -158,7 +155,8 @@ export var __RendererClassComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
158
155
|
startMeasure("Renderer Render Time: ".concat(_this.id));
|
|
159
156
|
return _this;
|
|
160
157
|
}
|
|
161
|
-
|
|
158
|
+
_inherits(__RendererClassComponent, _PureComponent);
|
|
159
|
+
return _createClass(__RendererClassComponent, [{
|
|
162
160
|
key: "anchorLinkAnalytics",
|
|
163
161
|
value: function anchorLinkAnalytics() {
|
|
164
162
|
var hash = window.location.hash && decodeURIComponent(window.location.hash.slice(1));
|
|
@@ -434,7 +432,6 @@ export var __RendererClassComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
434
432
|
}
|
|
435
433
|
}
|
|
436
434
|
}]);
|
|
437
|
-
return __RendererClassComponent;
|
|
438
435
|
}(PureComponent);
|
|
439
436
|
var handleMouseTripleClickInTables = function handleMouseTripleClickInTables(event) {
|
|
440
437
|
var _parentElement3, _parentElement4;
|
|
@@ -27,7 +27,7 @@ var tableShadowWidth = 32;
|
|
|
27
27
|
export var TELEPOINTER_ID = 'ai-streaming-telepointer';
|
|
28
28
|
var telepointerStyles = function telepointerStyles(colorMode) {
|
|
29
29
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
30
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t#", " {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: 1.5px;\n\t\t\theight: 25px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t", " -12.02%,\n\t\t\t\t", " 19.18%,\n\t\t\t\t", " 71.87%\n\t\t\t);\n\t\t\tmargin-left: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: 'AI';\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight:
|
|
30
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t#", " {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: 1.5px;\n\t\t\theight: 25px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t", " -12.02%,\n\t\t\t\t", " 19.18%,\n\t\t\t\t", " 71.87%\n\t\t\t);\n\t\t\tmargin-left: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: 'AI';\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\twidth: 12.5px;\n\t\t\t\theight: 13px;\n\t\t\t\tpadding-top: 1px;\n\t\t\t\tpadding-left: 1.5px;\n\t\t\t\tline-height: initial;\n\t\t\t\tborder-radius: 0px 2px 2px 0px;\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t45deg,\n\t\t\t\t\t", " -57%,\n\t\t\t\t\t", " 71.87%\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t"])), TELEPOINTER_ID, colorMode === 'dark' ? '#f5cd47' : '#f8e6a0', colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4', "var(--ds-space-025, 2px)", "var(--ds-font-weight-bold, 700)", "var(--ds-text-inverse, white)", colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4');
|
|
31
31
|
};
|
|
32
32
|
var getLineHeight = function getLineHeight(fontCode) {
|
|
33
33
|
return headingSizesImport[fontCode].lineHeight / headingSizesImport[fontCode].size;
|
|
@@ -151,7 +151,7 @@ export var rendererStyles = function rendererStyles(wrapperProps) {
|
|
|
151
151
|
var isAdvancedLayoutsOn = editorExperiment('advanced_layouts', true);
|
|
152
152
|
|
|
153
153
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression
|
|
154
|
-
return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\tfont-size: ", "px;\n\t\tline-height: 1.5rem;\n\t\tcolor: ", ";\n\n\t\t.", "::after {\n\t\t\t// we add a clearfix after ak-renderer-document in order to\n\t\t\t// contain internal floats (such as media images that are \"wrap-left\")\n\t\t\t// to just the renderer (and not spill outside of it)\n\t\t\tcontent: '';\n\t\t\tvisibility: hidden;\n\t\t\tdisplay: block;\n\t\t\theight: 0;\n\t\t\tclear: both;\n\t\t}\n\n\t\t", "\n\t\t", "\n\n .", " {\n\t\t\t", "\n\t\t}\n\n\t\t& h1 {\n\t\t\t", "\n\t\t}\n\n\t\t& h2 {\n\t\t\t", "\n\t\t}\n\n\t\t& h3 {\n\t\t\t", "\n\t\t}\n\n\t\t& h4 {\n\t\t\t", "\n\t\t}\n\n\t\t& h5 {\n\t\t\t", "\n\t\t}\n\n\t\t& h6 {\n\t\t\t", "\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcolor: ", ";\n\t\t\ttext-decoration: none;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: ", ";\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t& span[data-placeholder] {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t", "\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", "\n\t\t", "\n\n\t\t& .UnknownBlock {\n\t\t\tfont-family: ", ";\n\t\t\tfont-size: ", ";\n\t\t\tfont-weight: 400;\n\t\t\twhite-space: pre-wrap;\n\t\t\tword-wrap: break-word;\n\t\t}\n\n\t\t& span.date-node {\n\t\t\tbackground: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tcolor: ", ";\n\t\t\tpadding: ", " ", ";\n\t\t\tmargin: 0 1px;\n\t\t\ttransition: background 0.3s;\n\t\t}\n\n\t\t& span.date-node-highlighted {\n\t\t\tbackground: ", ";\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t& .renderer-image {\n\t\t\tmax-width: 100%;\n\t\t\tdisplay: block;\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t.", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .code-block,\n\t\t& blockquote,\n\t\t& hr,\n\t\t& > div > div:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t\t.", ".image-align-start,\n\t\t\t.", ".image-center,\n\t\t\t.", ".image-align-end {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .rich-media-wrapped {\n\t\t\t& + h1,\n\t\t\t& + h2,\n\t\t\t& + h3,\n\t\t\t& + h4,\n\t\t\t& + h5,\n\t\t\t& + h6 {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t\t/* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: 0;\n\t\t}\n\n\t\t/* Breakout for tables and extensions */\n\t\t.", " > {\n\t\t\t", "\n\n\t\t\t* .", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t& .", ":first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\t.", " {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t.", " .", " {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t.", " .", " {\n\t\t\tz-index: 0;\n\t\t\ttransition: all 0.1s linear;\n\t\t\tdisplay: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n\t\t\t/** Shadow overrides */\n\t\t\t&.", "::after, &.", "::before {\n\t\t\t\ttop: ", "px;\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t\tz-index: ", ";\n\t\t\t}\n\n\t\t\t", "\n\n\t\t\t", "\n\n\t\t\t&\n .", ",\n &\n .", " {\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t}\n\n\t\t\t/**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n\t\t\ttable {\n\t\t\t\theight: 1px; /* will be ignored */\n\t\t\t\t", ";\n\t\t\t\tmargin-left: 0;\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\n\t\t\ttable tr:first-of-type {\n\t\t\t\theight: 100%;\n\n\t\t\t\ttd,\n\t\t\t\tth {\n\t\t\t\t\tposition: relative;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttable[data-number-column='true'] {\n\t\t\t\t.", " {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-right: 1px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\twidth: ", "px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t}\n\n\t\t\t\t.fixed .", " {\n\t\t\t\t\tborder-right: 0px none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttr[data-header-row].fixed {\n\t\t\tposition: fixed !important;\n\t\t\tdisplay: flex;\n\t\t\toverflow: hidden;\n\t\t\tz-index: ", ";\n\n\t\t\tborder-right: 1px solid ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n\t\t\t/* this is to compensate for the table border */\n\t\t\ttransform: translateX(-1px);\n\t\t}\n\n\t\t.sticky > th {\n\t\t\tz-index: ", ";\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* Make the number column header sticky */\n\t\t.sticky > td {\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n\t\t.sticky th,\n\t\t.sticky td {\n\t\t\tbox-shadow:\n\t\t\t\t0px 1px ", ",\n\t\t\t\t0px -0.5px ", ",\n\t\t\t\tinset -1px 0px ", ",\n\t\t\t\t0px -1px ", ";\n\t\t}\n\n\t\t/* this will remove jumpiness caused in Chrome for sticky headers */\n\t\t.fixed + tr {\n\t\t\tmin-height: 0px;\n\t\t}\n\n\t\t/*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n\t\t& .code-block {\n\t\t\tmax-width: 100%;\n\t\t\t/* -ms- properties are necessary until MS supports the latest version of the grid spec */\n\t\t\t/* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n\t\t\tdisplay: block;\n\t\t\t/* stylelint-enable */\n\n\t\t\tposition: relative;\n\t\t\tborder-radius: ", ";\n\n\t\t\t/*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n\t\t\tword-wrap: normal;\n\t\t}\n\n\t\t& .MediaGroup,\n\t\t& .code-block {\n\t\t\tmargin-top: ", ";\n\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\n ", ";\n\t\t", ";\n\t\t& [data-layout-section] {\n\t\t\tmargin-top: ", ";\n\t\t\t& > div + div {\n\t\t\t\tmargin-left: ", ";\n\t\t\t}\n\n\t\t\t@media screen and (max-width: ", "px) {\n\t\t\t\t& > div + div {\n\t\t\t\t\tmargin-left: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .MediaGroup,\n\t\t\t& .code-block {\n\t\t\t\tmargin-top: ", ";\n\n\t\t\t\t&:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& li {\n\t\t\t> .code-block {\n\t\t\t\tmargin: ", " 0 0 0;\n\t\t\t}\n\t\t\t> .code-block:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t> div:last-of-type.code-block {\n\t\t\t\tmargin-bottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:not([data-node-type='decisionList']) > li,\n // This prevents https://product-fabric.atlassian.net/browse/ED-20924\n &:not(.", ") > li {\n\t\t\t", "\n\t\t}\n\t"])), editorFontSize(themeProps), "var(--ds-text, ".concat(colors.N800, ")"), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), RendererCssClassName.DOCUMENT, mediaInlineImageStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), "var(--ds-text-subtlest, ".concat(colors.N200, ")"), telepointerStyles(colorMode), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(typography), ruleSharedStyles(), paragraphSharedStyles(typography), listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(), shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles(), tasksAndDecisionsStyles, smartCardSharedStyles, getAnnotationStyles(wrapperProps), fontFamily(), relativeFontSizeToBase16(fontSize()), "var(--ds-background-neutral, ".concat(colors.N30A, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-text, ".concat(colors.N800, ")"), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)", "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), "var(--ds-space-300, 24px)", richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, "var(--ds-space-100, 8px)", alignedHeadingAnchorStyle(wrapperProps), mediaSingleSharedStyle, RendererCssClassName.DOCUMENT, breakoutWidthStyle(), RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.DOCUMENT, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, shadowObserverClassNames.SHADOW_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableSharedStyle(), RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, getShadowOverrides(), isStickyScrollbarEnabled(appearance) ? stickyScrollbarStyles : '', shadowObserverClassNames.SENTINEL_LEFT, shadowObserverClassNames.SENTINEL_RIGHT, tableMarginTop, tableSortableColumnStyle(wrapperProps), RendererCssClassName.NUMBER_COLUMN, "var(--ds-background-neutral, ".concat(akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), akEditorTableNumberColumnWidth, "var(--ds-text-subtlest, ".concat(colors.N200, ")"), relativeFontSizeToBase16(fontSize()), RendererCssClassName.NUMBER_COLUMN, akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), "var(--ds-border-radius-100, 3px)", blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), getLightWeightCodeBlockStylesForRootRendererStyleSheet(), isAdvancedLayoutsOn ? columnLayoutResponsiveSharedStyle : columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, "var(--ds-space-250, 20px)", isAdvancedLayoutsOn ? 0 : "var(--ds-space-400, 32px)", gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, browser.safari ? codeBlockInListSafariFix : '');
|
|
154
|
+
return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\tfont-size: ", "px;\n\t\tline-height: 1.5rem;\n\t\tcolor: ", ";\n\n\t\t.", "::after {\n\t\t\t// we add a clearfix after ak-renderer-document in order to\n\t\t\t// contain internal floats (such as media images that are \"wrap-left\")\n\t\t\t// to just the renderer (and not spill outside of it)\n\t\t\tcontent: '';\n\t\t\tvisibility: hidden;\n\t\t\tdisplay: block;\n\t\t\theight: 0;\n\t\t\tclear: both;\n\t\t}\n\n\t\t", "\n\t\t", "\n\n .", " {\n\t\t\t", "\n\t\t}\n\n\t\t& h1 {\n\t\t\t", "\n\t\t}\n\n\t\t& h2 {\n\t\t\t", "\n\t\t}\n\n\t\t& h3 {\n\t\t\t", "\n\t\t}\n\n\t\t& h4 {\n\t\t\t", "\n\t\t}\n\n\t\t& h5 {\n\t\t\t", "\n\t\t}\n\n\t\t& h6 {\n\t\t\t", "\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcolor: ", ";\n\t\t\ttext-decoration: none;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: ", ";\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t& span[data-placeholder] {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t", "\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", "\n\t\t", "\n\n\t\t& .UnknownBlock {\n\t\t\tfont-family: ", ";\n\t\t\tfont-size: ", ";\n\t\t\tfont-weight: ", ";\n\t\t\twhite-space: pre-wrap;\n\t\t\tword-wrap: break-word;\n\t\t}\n\n\t\t& span.date-node {\n\t\t\tbackground: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tcolor: ", ";\n\t\t\tpadding: ", " ", ";\n\t\t\tmargin: 0 1px;\n\t\t\ttransition: background 0.3s;\n\t\t}\n\n\t\t& span.date-node-highlighted {\n\t\t\tbackground: ", ";\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t& .renderer-image {\n\t\t\tmax-width: 100%;\n\t\t\tdisplay: block;\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t.", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .code-block,\n\t\t& blockquote,\n\t\t& hr,\n\t\t& > div > div:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t\t.", ".image-align-start,\n\t\t\t.", ".image-center,\n\t\t\t.", ".image-align-end {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .rich-media-wrapped {\n\t\t\t& + h1,\n\t\t\t& + h2,\n\t\t\t& + h3,\n\t\t\t& + h4,\n\t\t\t& + h5,\n\t\t\t& + h6 {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t\t/* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: 0;\n\t\t}\n\n\t\t/* Breakout for tables and extensions */\n\t\t.", " > {\n\t\t\t", "\n\n\t\t\t* .", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t& .", ":first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\t.", " {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t.", " .", " {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t.", " .", " {\n\t\t\tz-index: 0;\n\t\t\ttransition: all 0.1s linear;\n\t\t\tdisplay: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n\t\t\t/** Shadow overrides */\n\t\t\t&.", "::after, &.", "::before {\n\t\t\t\ttop: ", "px;\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t\tz-index: ", ";\n\t\t\t}\n\n\t\t\t", "\n\n\t\t\t", "\n\n\t\t\t&\n .", ",\n &\n .", " {\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t}\n\n\t\t\t/**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n\t\t\ttable {\n\t\t\t\theight: 1px; /* will be ignored */\n\t\t\t\t", ";\n\t\t\t\tmargin-left: 0;\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\n\t\t\ttable tr:first-of-type {\n\t\t\t\theight: 100%;\n\n\t\t\t\ttd,\n\t\t\t\tth {\n\t\t\t\t\tposition: relative;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttable[data-number-column='true'] {\n\t\t\t\t.", " {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-right: 1px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\twidth: ", "px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t}\n\n\t\t\t\t.fixed .", " {\n\t\t\t\t\tborder-right: 0px none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttr[data-header-row].fixed {\n\t\t\tposition: fixed !important;\n\t\t\tdisplay: flex;\n\t\t\toverflow: hidden;\n\t\t\tz-index: ", ";\n\n\t\t\tborder-right: 1px solid ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n\t\t\t/* this is to compensate for the table border */\n\t\t\ttransform: translateX(-1px);\n\t\t}\n\n\t\t.sticky > th {\n\t\t\tz-index: ", ";\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* Make the number column header sticky */\n\t\t.sticky > td {\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n\t\t.sticky th,\n\t\t.sticky td {\n\t\t\tbox-shadow:\n\t\t\t\t0px 1px ", ",\n\t\t\t\t0px -0.5px ", ",\n\t\t\t\tinset -1px 0px ", ",\n\t\t\t\t0px -1px ", ";\n\t\t}\n\n\t\t/* this will remove jumpiness caused in Chrome for sticky headers */\n\t\t.fixed + tr {\n\t\t\tmin-height: 0px;\n\t\t}\n\n\t\t/*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n\t\t& .code-block {\n\t\t\tmax-width: 100%;\n\t\t\t/* -ms- properties are necessary until MS supports the latest version of the grid spec */\n\t\t\t/* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n\t\t\tdisplay: block;\n\t\t\t/* stylelint-enable */\n\n\t\t\tposition: relative;\n\t\t\tborder-radius: ", ";\n\n\t\t\t/*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n\t\t\tword-wrap: normal;\n\t\t}\n\n\t\t& .MediaGroup,\n\t\t& .code-block {\n\t\t\tmargin-top: ", ";\n\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\n ", ";\n\t\t", ";\n\t\t& [data-layout-section] {\n\t\t\tmargin-top: ", ";\n\t\t\t& > div + div {\n\t\t\t\tmargin-left: ", ";\n\t\t\t}\n\n\t\t\t@media screen and (max-width: ", "px) {\n\t\t\t\t& > div + div {\n\t\t\t\t\tmargin-left: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .MediaGroup,\n\t\t\t& .code-block {\n\t\t\t\tmargin-top: ", ";\n\n\t\t\t\t&:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& li {\n\t\t\t> .code-block {\n\t\t\t\tmargin: ", " 0 0 0;\n\t\t\t}\n\t\t\t> .code-block:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t> div:last-of-type.code-block {\n\t\t\t\tmargin-bottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:not([data-node-type='decisionList']) > li,\n // This prevents https://product-fabric.atlassian.net/browse/ED-20924\n &:not(.", ") > li {\n\t\t\t", "\n\t\t}\n\t"])), editorFontSize(themeProps), "var(--ds-text, ".concat(colors.N800, ")"), RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), RendererCssClassName.DOCUMENT, mediaInlineImageStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), "var(--ds-text-subtlest, ".concat(colors.N200, ")"), telepointerStyles(colorMode), whitespaceSharedStyles, blockquoteSharedStyles, headingsSharedStyles(typography), ruleSharedStyles(), paragraphSharedStyles(typography), listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles(), shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles(), tasksAndDecisionsStyles, smartCardSharedStyles, getAnnotationStyles(wrapperProps), fontFamily(), relativeFontSizeToBase16(fontSize()), "var(--ds-font-weight-regular, 400)", "var(--ds-background-neutral, ".concat(colors.N30A, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-text, ".concat(colors.N800, ")"), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)", "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), "var(--ds-space-300, 24px)", richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, richMediaClassName, "var(--ds-space-100, 8px)", alignedHeadingAnchorStyle(wrapperProps), mediaSingleSharedStyle, RendererCssClassName.DOCUMENT, breakoutWidthStyle(), RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, RendererCssClassName.EXTENSION, RendererCssClassName.DOCUMENT, RendererCssClassName.EXTENSION, blockNodesVerticalMargin, RendererCssClassName.EXTENSION_CENTER_ALIGN, TableSharedCssClassName.TABLE_NODE_WRAPPER, shadowObserverClassNames.SHADOW_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableSharedStyle(), RendererCssClassName.DOCUMENT, TableSharedCssClassName.TABLE_CONTAINER, shadowClassNames.RIGHT_SHADOW, shadowClassNames.LEFT_SHADOW, tableMarginTop - 1, tableMarginTop, akEditorStickyHeaderZIndex, getShadowOverrides(), isStickyScrollbarEnabled(appearance) ? stickyScrollbarStyles : '', shadowObserverClassNames.SENTINEL_LEFT, shadowObserverClassNames.SENTINEL_RIGHT, tableMarginTop, tableSortableColumnStyle(wrapperProps), RendererCssClassName.NUMBER_COLUMN, "var(--ds-background-neutral, ".concat(akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), akEditorTableNumberColumnWidth, "var(--ds-text-subtlest, ".concat(colors.N200, ")"), relativeFontSizeToBase16(fontSize()), RendererCssClassName.NUMBER_COLUMN, akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableToolbar, ")"), "var(--ds-border-radius-100, 3px)", blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), getLightWeightCodeBlockStylesForRootRendererStyleSheet(), isAdvancedLayoutsOn ? columnLayoutResponsiveSharedStyle : columnLayoutSharedStyle, isAdvancedLayoutsOn && columnLayoutResponsiveRendererStyles, "var(--ds-space-250, 20px)", isAdvancedLayoutsOn ? 0 : "var(--ds-space-400, 32px)", gridMediumMaxWidth, blockNodesVerticalMargin, blockNodesVerticalMargin, blockNodesVerticalMargin, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, browser.safari ? codeBlockInListSafariFix : '');
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
157
|
var useGridRenderForCodeBlock = function useGridRenderForCodeBlock(codeBlockRenderAsBlock) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
/**
|
|
9
9
|
* @jsxRuntime classic
|
|
@@ -43,15 +43,14 @@ var FadeOut = function FadeOut(props) {
|
|
|
43
43
|
}, children);
|
|
44
44
|
};
|
|
45
45
|
export var TruncatedWrapper = /*#__PURE__*/function (_Component) {
|
|
46
|
-
_inherits(TruncatedWrapper, _Component);
|
|
47
|
-
var _super = _createSuper(TruncatedWrapper);
|
|
48
46
|
function TruncatedWrapper(props) {
|
|
49
47
|
_classCallCheck(this, TruncatedWrapper);
|
|
50
|
-
return
|
|
48
|
+
return _callSuper(this, TruncatedWrapper, [props]);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
// TODO: Quality ticket as elevation.surface will be issue when sits top of modal. https://product-fabric.atlassian.net/browse/DSP-4123
|
|
54
|
-
|
|
52
|
+
_inherits(TruncatedWrapper, _Component);
|
|
53
|
+
return _createClass(TruncatedWrapper, [{
|
|
55
54
|
key: "render",
|
|
56
55
|
value: function render() {
|
|
57
56
|
var _this$props = this.props,
|
|
@@ -69,5 +68,4 @@ export var TruncatedWrapper = /*#__PURE__*/function (_Component) {
|
|
|
69
68
|
}, children);
|
|
70
69
|
}
|
|
71
70
|
}]);
|
|
72
|
-
return TruncatedWrapper;
|
|
73
71
|
}(Component);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
-
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
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
9
|
import React from 'react';
|
|
10
10
|
export var Context = /*#__PURE__*/React.createContext(new Map());
|
|
@@ -16,13 +16,12 @@ export var Provider = function Provider(_ref) {
|
|
|
16
16
|
};
|
|
17
17
|
export var withSmartCardStorage = function withSmartCardStorage(WrappedComponent) {
|
|
18
18
|
return /*#__PURE__*/function (_React$Component) {
|
|
19
|
-
_inherits(_class, _React$Component);
|
|
20
|
-
var _super = _createSuper(_class);
|
|
21
19
|
function _class() {
|
|
22
20
|
_classCallCheck(this, _class);
|
|
23
|
-
return
|
|
21
|
+
return _callSuper(this, _class, arguments);
|
|
24
22
|
}
|
|
25
|
-
|
|
23
|
+
_inherits(_class, _React$Component);
|
|
24
|
+
return _createClass(_class, [{
|
|
26
25
|
key: "render",
|
|
27
26
|
value: function render() {
|
|
28
27
|
var _this = this;
|
|
@@ -33,6 +32,5 @@ export var withSmartCardStorage = function withSmartCardStorage(WrappedComponent
|
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
34
|
}]);
|
|
36
|
-
return _class;
|
|
37
35
|
}(React.Component);
|
|
38
36
|
};
|