@atlaskit/renderer 130.2.12 → 130.2.15
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 +19 -0
- package/dist/cjs/react/nodes/tableNew.js +1 -1
- package/dist/cjs/react/utils/getCardClickHandler.js +2 -1
- package/dist/cjs/steps/index.js +2 -0
- package/dist/cjs/ui/Expand.js +4 -1
- package/dist/cjs/ui/ExtensionRenderer.js +4 -1
- package/dist/cjs/ui/Renderer/PortalContext.js +2 -0
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +2 -1
- package/dist/cjs/ui/Renderer/breakout-ssr.js +5 -1
- package/dist/cjs/ui/Renderer/count-nodes.js +2 -0
- package/dist/cjs/ui/Renderer/index.js +8 -7
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -1
- package/dist/cjs/ui/Renderer/useMemoFromPropsDerivative.js +2 -0
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -0
- package/dist/cjs/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +2 -0
- package/dist/cjs/ui/active-header-id-provider.js +3 -3
- package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
- package/dist/cjs/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
- package/dist/cjs/ui/annotations/draft/component.js +2 -1
- package/dist/cjs/ui/annotations/draft/dom.js +2 -0
- package/dist/cjs/ui/annotations/element/mark.js +1 -0
- package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +2 -0
- package/dist/es2019/react/nodes/tableNew.js +1 -1
- package/dist/es2019/react/utils/getCardClickHandler.js +2 -2
- package/dist/es2019/steps/index.js +1 -0
- package/dist/es2019/ui/Expand.js +4 -1
- package/dist/es2019/ui/ExtensionRenderer.js +4 -2
- package/dist/es2019/ui/Renderer/PortalContext.js +1 -0
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +3 -2
- package/dist/es2019/ui/Renderer/breakout-ssr.js +4 -1
- package/dist/es2019/ui/Renderer/count-nodes.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +9 -8
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +2 -2
- package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/es2019/ui/RendererActionsContext/index.js +1 -0
- package/dist/es2019/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/es2019/ui/active-header-id-provider.js +3 -4
- package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
- package/dist/es2019/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
- package/dist/es2019/ui/annotations/draft/component.js +3 -2
- package/dist/es2019/ui/annotations/draft/dom.js +2 -0
- package/dist/es2019/ui/annotations/element/mark.js +1 -0
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/esm/react/nodes/tableNew.js +1 -1
- package/dist/esm/react/utils/getCardClickHandler.js +2 -2
- package/dist/esm/steps/index.js +1 -0
- package/dist/esm/ui/Expand.js +4 -1
- package/dist/esm/ui/ExtensionRenderer.js +4 -2
- package/dist/esm/ui/Renderer/PortalContext.js +1 -0
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +3 -2
- package/dist/esm/ui/Renderer/breakout-ssr.js +4 -1
- package/dist/esm/ui/Renderer/count-nodes.js +1 -0
- package/dist/esm/ui/Renderer/index.js +9 -8
- package/dist/esm/ui/Renderer/truncated-wrapper.js +2 -2
- package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
- package/dist/esm/ui/RendererActionsContext/index.js +1 -0
- package/dist/esm/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
- package/dist/esm/ui/active-header-id-provider.js +3 -3
- package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
- package/dist/esm/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
- package/dist/esm/ui/annotations/draft/component.js +3 -2
- package/dist/esm/ui/annotations/draft/dom.js +2 -0
- package/dist/esm/ui/annotations/element/mark.js +1 -0
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -0
- package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +57 -32
- package/dist/types/ui/Expand.d.ts +3 -3
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -1
- package/dist/types/ui/MediaCard.d.ts +2 -2
- package/dist/types/ui/Renderer/RendererStyleContainer.d.ts +2 -2
- package/dist/types/ui/Renderer/ValidationContext.d.ts +3 -2
- package/dist/types/ui/Renderer/get-base-font-size.d.ts +1 -1
- package/dist/types/ui/Renderer/index.d.ts +2 -3
- package/dist/types/ui/annotations/context.d.ts +3 -2
- package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +83 -82
- package/dist/types/ui/annotations/element/useInlineAnnotationProps.d.ts +6 -6
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +57 -32
- package/dist/types-ts4.5/ui/Expand.d.ts +3 -3
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +2 -1
- package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
- package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +2 -2
- package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +3 -2
- package/dist/types-ts4.5/ui/Renderer/get-base-font-size.d.ts +1 -1
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/annotations/context.d.ts +3 -2
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +83 -82
- package/dist/types-ts4.5/ui/annotations/element/useInlineAnnotationProps.d.ts +6 -6
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +2 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 130.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 130.2.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`436af8c4665e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/436af8c4665e1) -
|
|
14
|
+
Enforce max width on table
|
|
15
|
+
|
|
16
|
+
## 130.2.13
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 130.2.12
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -552,7 +552,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
552
552
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
553
553
|
className: _styles.TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP,
|
|
554
554
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
555
|
-
}), stickyHeaders && tableNode && tableCanBeSticky(tableNode, children) && /*#__PURE__*/_react.default.createElement(_sticky.StickyTable, {
|
|
555
|
+
}), stickyHeaders && tableNode && !isContentModeTable && tableCanBeSticky(tableNode, children) && /*#__PURE__*/_react.default.createElement(_sticky.StickyTable, {
|
|
556
556
|
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
557
557
|
tableWidth: "inherit",
|
|
558
558
|
renderWidth: 0,
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getCardClickHandler = void 0;
|
|
7
7
|
var _utils = require("../../utils");
|
|
8
|
+
var getCardClickHandler = exports.getCardClickHandler = function getCardClickHandler(eventHandlers, url
|
|
8
9
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
-
|
|
10
|
+
) {
|
|
10
11
|
var handler = (0, _utils.getEventHandler)(eventHandlers, 'smartCard');
|
|
11
12
|
return handler ? function (e) {
|
|
12
13
|
return handler(e, url);
|
package/dist/cjs/steps/index.js
CHANGED
|
@@ -11,6 +11,8 @@ exports.isRendererRoot = isRendererRoot;
|
|
|
11
11
|
exports.resolvePos = resolvePos;
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
13
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
14
|
+
/* eslint-disable jsdoc/require-jsdoc -- internal step helpers */
|
|
15
|
+
|
|
14
16
|
function getStartPos(element) {
|
|
15
17
|
return parseInt(element.dataset.rendererStartPos || '-1', 10);
|
|
16
18
|
}
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -303,4 +303,7 @@ function Expand(_ref2) {
|
|
|
303
303
|
fallback: (0, _react.jsx)("div", null, intl.formatMessage(_ui.expandMessages.loading))
|
|
304
304
|
}, (0, _react.jsx)(LazyChildren, null, children)) : null : children))));
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
|
|
307
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
308
|
+
var _default_1 = (0, _reactIntl.injectIntl)(Expand);
|
|
309
|
+
var _default2 = exports.default = _default_1;
|
|
@@ -17,7 +17,8 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
17
17
|
* @jsxRuntime classic
|
|
18
18
|
* @jsx jsx
|
|
19
19
|
*/
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
21
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
21
22
|
|
|
22
23
|
var inlineExtensionStyle = (0, _react.css)({
|
|
23
24
|
display: 'inline-block',
|
|
@@ -44,6 +45,8 @@ var plainTextMacroStyle = (0, _react.css)({
|
|
|
44
45
|
display: 'inline'
|
|
45
46
|
}
|
|
46
47
|
});
|
|
48
|
+
|
|
49
|
+
/** Renders extension (macro) nodes inside the ADF renderer. */
|
|
47
50
|
function ExtensionRenderer(props) {
|
|
48
51
|
var extensionHandlers = props.extensionHandlers,
|
|
49
52
|
rendererContext = props.rendererContext,
|
|
@@ -8,6 +8,8 @@ exports.PortalContext = void 0;
|
|
|
8
8
|
exports.usePortal = usePortal;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
|
+
/* eslint-disable jsdoc/require-jsdoc -- thin portal context helpers */
|
|
12
|
+
|
|
11
13
|
var PortalContext = exports.PortalContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
12
14
|
function usePortal(props) {
|
|
13
15
|
var portalFromContext = (0, _react.useContext)(PortalContext);
|
|
@@ -34,7 +34,8 @@ var _css9, _$concat3, _$concat6;
|
|
|
34
34
|
* @jsxRuntime classic
|
|
35
35
|
* @jsx jsx
|
|
36
36
|
*/
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
38
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
38
39
|
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; }
|
|
39
40
|
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) { (0, _defineProperty2.default)(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; }
|
|
40
41
|
var wrappedMediaBreakoutPoint = 410;
|
|
@@ -12,6 +12,8 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
13
|
var _style = require("./style");
|
|
14
14
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
|
+
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
16
|
+
|
|
15
17
|
/**
|
|
16
18
|
* Inline Script that updates breakout node width on client side,
|
|
17
19
|
* before main JavaScript bundle is ready.
|
|
@@ -79,7 +81,9 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript, fla
|
|
|
79
81
|
element = element.parentElement;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
|
-
var renderer = findUp(
|
|
84
|
+
var renderer = findUp(
|
|
85
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- inline script runs in browser document context
|
|
86
|
+
document.querySelector("[data-breakout-script-id=\"".concat(id, "\"]")), function (elem) {
|
|
83
87
|
var _elem$parentElement;
|
|
84
88
|
return !!((_elem$parentElement = elem.parentElement) !== null && _elem$parentElement !== void 0 && _elem$parentElement.classList.contains('ak-renderer-wrapper'));
|
|
85
89
|
});
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.countNodes = countNodes;
|
|
7
7
|
var _traverse = require("@atlaskit/adf-utils/traverse");
|
|
8
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
|
9
|
+
|
|
8
10
|
// Ignored via go/ees005
|
|
9
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
12
|
function countNodes(adfDocument) {
|
|
@@ -61,8 +61,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
61
61
|
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) { (0, _defineProperty2.default)(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; } /**
|
|
62
62
|
* @jsxRuntime classic
|
|
63
63
|
* @jsx jsx
|
|
64
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
65
|
-
//
|
|
64
|
+
*/ // eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
65
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
66
66
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
67
67
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
68
68
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
71
71
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
72
72
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
73
73
|
var packageName = "@atlaskit/renderer";
|
|
74
|
-
var packageVersion = "
|
|
74
|
+
var packageVersion = "0.0.0-development";
|
|
75
75
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
76
76
|
containerName: 'ak-renderer-wrapper',
|
|
77
77
|
containerType: 'inline-size'
|
|
@@ -308,6 +308,7 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
308
308
|
var hash = window.location.hash && decodeURIComponent(window.location.hash.slice(1));
|
|
309
309
|
var disableHeadingIDs = props.disableHeadingIDs;
|
|
310
310
|
if (!disableHeadingIDs && hash && editorRef && editorRef.current instanceof HTMLElement) {
|
|
311
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- anchor navigation uses document.getElementById for hash targets
|
|
311
312
|
var anchorLinkElement = document.getElementById(hash);
|
|
312
313
|
if (anchorLinkElement && editorRef.current.contains(anchorLinkElement)) {
|
|
313
314
|
_fireAnalyticsEvent({
|
|
@@ -546,9 +547,8 @@ var RendererFunctionalComponentWithPortalContext = /*#__PURE__*/_react.default.m
|
|
|
546
547
|
});
|
|
547
548
|
|
|
548
549
|
/**
|
|
549
|
-
*
|
|
550
|
-
* @param props
|
|
551
|
-
* @example
|
|
550
|
+
* Top-level ADF renderer: renders document content with analytics and validation context.
|
|
551
|
+
* @param props Renderer configuration and document tree.
|
|
552
552
|
*/
|
|
553
553
|
function Renderer(props) {
|
|
554
554
|
var _props$isTopLevelRend;
|
|
@@ -626,6 +626,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
626
626
|
isTopLevelRenderer = props.isTopLevelRenderer,
|
|
627
627
|
allowRendererContainerStyles = props.allowRendererContainerStyles;
|
|
628
628
|
var createTelepointer = function createTelepointer() {
|
|
629
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- telepointer span for collaborative presence
|
|
629
630
|
var telepointer = document.createElement('span');
|
|
630
631
|
telepointer.textContent = "\u200B";
|
|
631
632
|
telepointer.id = _style.TELEPOINTER_ID;
|
|
@@ -711,7 +712,7 @@ var RendererWrapper = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
711
712
|
}
|
|
712
713
|
}, [innerRef, addTelepointer]);
|
|
713
714
|
var renderer = (0, _react2.jsx)(_ui.WidthProvider
|
|
714
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop --
|
|
715
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop -- legacy renderer wrapper appearance classes
|
|
715
716
|
, {
|
|
716
717
|
className: "ak-renderer-wrapper is-".concat(appearance),
|
|
717
718
|
"data-appearance": appearance,
|
|
@@ -16,7 +16,8 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
16
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
17
17
|
* @jsxRuntime classic
|
|
18
18
|
* @jsx jsx
|
|
19
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
19
|
+
*/ // eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
20
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
20
21
|
var fadeOutStyles = function fadeOutStyles(maxHeight, top, backgroundColor) {
|
|
21
22
|
return (0, _react.css)({
|
|
22
23
|
position: 'relative',
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useMemoFromPropsDerivative = useMemoFromPropsDerivative;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
|
11
|
+
|
|
10
12
|
function useMemoFromPropsDerivative(factory, propsDerivator, props) {
|
|
11
13
|
// cache the last set of props
|
|
12
14
|
var prev = (0, _react.useRef)(props);
|
|
@@ -14,6 +14,8 @@ var _analyticsListeners = require("@atlaskit/analytics-listeners");
|
|
|
14
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
15
|
var _index = _interopRequireDefault(require("../../actions/index"));
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
|
18
|
+
|
|
17
19
|
var RendererContext = exports.RendererContext = /*#__PURE__*/_react.default.createContext(new _index.default());
|
|
18
20
|
function RendererActionsContext(_ref) {
|
|
19
21
|
var children = _ref.children,
|
|
@@ -8,6 +8,8 @@ exports.TaskItemsFormatConsumer = TaskItemsFormatConsumer;
|
|
|
8
8
|
exports.TaskItemsFormatProvider = TaskItemsFormatProvider;
|
|
9
9
|
exports.useTaskItemsFormatContext = useTaskItemsFormatContext;
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
|
12
|
+
|
|
11
13
|
var defaultValue = [undefined, function () {}];
|
|
12
14
|
var TaskItemsFormatContext = /*#__PURE__*/_react.default.createContext(defaultValue);
|
|
13
15
|
var reducer = function reducer(_state, action) {
|
|
@@ -9,9 +9,9 @@ exports.ActiveHeaderIdProvider = exports.ActiveHeaderIdConsumer = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
var dest = /*#__PURE__*/_react.default.createContext(undefined);
|
|
13
|
+
var Provider = exports.ActiveHeaderIdProvider = dest.Provider;
|
|
14
|
+
var Consumer = dest.Consumer;
|
|
15
15
|
/**
|
|
16
16
|
* We need to expose this abstraction on top of the native Consumer in order to control when
|
|
17
17
|
* The consumer will get notified when a match has happened. If we use the Consumer directly in
|
|
@@ -293,6 +293,7 @@ var AnnotationManagerProvider = exports.AnnotationManagerProvider = function Ann
|
|
|
293
293
|
dispatch({
|
|
294
294
|
type: 'setSelectedMarkRef',
|
|
295
295
|
data: {
|
|
296
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- resolve mark node by id in the document
|
|
296
297
|
markRef: document.getElementById(id) || undefined
|
|
297
298
|
}
|
|
298
299
|
});
|
|
@@ -151,6 +151,7 @@ var AnnotationRangeProviderInner = exports.AnnotationRangeProviderInner = functi
|
|
|
151
151
|
if (!mediaNode) {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- range for media hover highlight
|
|
154
155
|
var range = document.createRange();
|
|
155
156
|
range.setStartBefore(mediaNode);
|
|
156
157
|
range.setEndAfter(mediaNode);
|
|
@@ -23,7 +23,8 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
27
|
+
// oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
27
28
|
|
|
28
29
|
// Localized AnnotationSharedCSSByState().common and AnnotationSharedCSSByState().focus
|
|
29
30
|
var markStyles = (0, _react2.css)({
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.updateWindowSelectionAroundDraft = exports.dataAttributes = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
/* eslint-disable @atlaskit/platform/no-direct-document-usage -- draft selection uses document range APIs */
|
|
11
|
+
|
|
10
12
|
var dataAttributes = exports.dataAttributes = function dataAttributes(_ref) {
|
|
11
13
|
var from = _ref.from,
|
|
12
14
|
to = _ref.to;
|
|
@@ -208,6 +208,7 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
|
208
208
|
}, [annotationIds, onClick, state, isAnnotationManagerEnabled]);
|
|
209
209
|
var onMarkEnter = function onMarkEnter(evt) {
|
|
210
210
|
var _document$activeEleme;
|
|
211
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- keyboard focus for mark / Enter handling
|
|
211
212
|
var focusedElementTag = (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.tagName;
|
|
212
213
|
if (focusedElementTag === 'MARK' && evt.key === 'Enter') {
|
|
213
214
|
onMarkClick(evt);
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useInlineAnnotationProps = useInlineAnnotationProps;
|
|
7
7
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
8
|
var _AnnotationRangeContext = require("../contexts/AnnotationRangeContext");
|
|
9
|
+
/* eslint-disable jsdoc/require-jsdoc */
|
|
10
|
+
|
|
9
11
|
function useInlineAnnotationProps(props) {
|
|
10
12
|
var _useAnnotationRangeSt = (0, _AnnotationRangeContext.useAnnotationRangeState)(),
|
|
11
13
|
draftPosition = _useAnnotationRangeSt.selectionDraftDocumentPosition;
|
|
@@ -498,7 +498,7 @@ export class TableContainer extends React.Component {
|
|
|
498
498
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
499
499
|
className: TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP,
|
|
500
500
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
501
|
-
}), stickyHeaders && tableNode && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
|
|
501
|
+
}), stickyHeaders && tableNode && !isContentModeTable && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
|
|
502
502
|
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
503
503
|
tableWidth: "inherit",
|
|
504
504
|
renderWidth: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEventHandler } from '../../utils';
|
|
2
|
-
|
|
2
|
+
export const getCardClickHandler = (eventHandlers, url
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
-
|
|
4
|
+
) => {
|
|
5
5
|
const handler = getEventHandler(eventHandlers, 'smartCard');
|
|
6
6
|
return handler ? e => handler(e, url) : undefined;
|
|
7
7
|
};
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -283,4 +283,7 @@ function Expand({
|
|
|
283
283
|
fallback: jsx("div", null, intl.formatMessage(expandMessages.loading))
|
|
284
284
|
}, jsx(LazyChildren, null, children)) : null : children))));
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
|
|
287
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
288
|
+
const _default_1 = injectIntl(Expand);
|
|
289
|
+
export default _default_1;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import memoizeOne from 'memoize-one';
|
|
9
9
|
import { getNodeRenderer } from '@atlaskit/editor-common/extensions';
|
|
@@ -34,6 +34,8 @@ const plainTextMacroStyle = css({
|
|
|
34
34
|
display: 'inline'
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
+
|
|
38
|
+
/** Renders extension (macro) nodes inside the ADF renderer. */
|
|
37
39
|
export default function ExtensionRenderer(props) {
|
|
38
40
|
const {
|
|
39
41
|
extensionHandlers,
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* @jsxRuntime classic
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
9
|
+
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
10
|
+
|
|
10
11
|
import { FullPagePadding } from './style';
|
|
11
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
13
|
import { RendererCssClassName } from '../../consts';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { breakoutConsts } from '@atlaskit/editor-common/utils';
|
|
3
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -84,7 +85,9 @@ function applyBreakoutAfterSSR(id, breakoutConsts, shouldSkipBreakoutScript, fla
|
|
|
84
85
|
element = element.parentElement;
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
const renderer = findUp(
|
|
88
|
+
const renderer = findUp(
|
|
89
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- inline script runs in browser document context
|
|
90
|
+
document.querySelector(`[data-breakout-script-id="${id}"]`), elem => {
|
|
88
91
|
var _elem$parentElement;
|
|
89
92
|
return !!((_elem$parentElement = elem.parentElement) !== null && _elem$parentElement !== void 0 && _elem$parentElement.classList.contains('ak-renderer-wrapper'));
|
|
90
93
|
});
|
|
@@ -4,13 +4,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React, { Fragment, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef } from 'react';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
7
|
import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
9
8
|
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
10
9
|
import { BaseTheme, IntlErrorBoundary, UnsupportedBlock, WidthProvider, WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
13
|
-
import { css, jsx } from '@emotion/react';
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
12
|
+
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
13
|
+
|
|
14
14
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
15
15
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
16
16
|
import { getDistortedDurationMonitor } from '@atlaskit/editor-common/performance/measure-render';
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "
|
|
60
|
+
const packageVersion = "0.0.0-development";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -296,6 +296,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
296
296
|
const hash = window.location.hash && decodeURIComponent(window.location.hash.slice(1));
|
|
297
297
|
const disableHeadingIDs = props.disableHeadingIDs;
|
|
298
298
|
if (!disableHeadingIDs && hash && editorRef && editorRef.current instanceof HTMLElement) {
|
|
299
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- anchor navigation uses document.getElementById for hash targets
|
|
299
300
|
const anchorLinkElement = document.getElementById(hash);
|
|
300
301
|
if (anchorLinkElement && editorRef.current.contains(anchorLinkElement)) {
|
|
301
302
|
fireAnalyticsEvent({
|
|
@@ -533,9 +534,8 @@ const RendererFunctionalComponentWithPortalContext = /*#__PURE__*/React.memo(pro
|
|
|
533
534
|
});
|
|
534
535
|
|
|
535
536
|
/**
|
|
536
|
-
*
|
|
537
|
-
* @param props
|
|
538
|
-
* @example
|
|
537
|
+
* Top-level ADF renderer: renders document content with analytics and validation context.
|
|
538
|
+
* @param props Renderer configuration and document tree.
|
|
539
539
|
*/
|
|
540
540
|
export function Renderer(props) {
|
|
541
541
|
var _props$isTopLevelRend;
|
|
@@ -614,6 +614,7 @@ const RendererWrapper = /*#__PURE__*/React.memo(props => {
|
|
|
614
614
|
allowRendererContainerStyles
|
|
615
615
|
} = props;
|
|
616
616
|
const createTelepointer = () => {
|
|
617
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- telepointer span for collaborative presence
|
|
617
618
|
const telepointer = document.createElement('span');
|
|
618
619
|
telepointer.textContent = '\u200b';
|
|
619
620
|
telepointer.id = TELEPOINTER_ID;
|
|
@@ -698,7 +699,7 @@ const RendererWrapper = /*#__PURE__*/React.memo(props => {
|
|
|
698
699
|
}
|
|
699
700
|
}, [innerRef, addTelepointer]);
|
|
700
701
|
const renderer = jsx(WidthProvider
|
|
701
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop --
|
|
702
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-classname-prop -- legacy renderer wrapper appearance classes
|
|
702
703
|
, {
|
|
703
704
|
className: `ak-renderer-wrapper is-${appearance}`,
|
|
704
705
|
"data-appearance": appearance,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
6
|
-
import { css, jsx } from '@emotion/react';
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
const fadeOutStyles = (maxHeight, top, backgroundColor) => css({
|
|
9
9
|
position: 'relative',
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} = /*#__PURE__*/React.createContext(undefined);
|
|
2
|
+
const dest = /*#__PURE__*/React.createContext(undefined);
|
|
3
|
+
const Provider = dest.Provider;
|
|
4
|
+
const Consumer = dest.Consumer;
|
|
6
5
|
/**
|
|
7
6
|
* We need to expose this abstraction on top of the native Consumer in order to control when
|
|
8
7
|
* The consumer will get notified when a match has happened. If we use the Consumer directly in
|
|
@@ -290,6 +290,7 @@ export const AnnotationManagerProvider = ({
|
|
|
290
290
|
dispatch({
|
|
291
291
|
type: 'setSelectedMarkRef',
|
|
292
292
|
data: {
|
|
293
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- resolve mark node by id in the document
|
|
293
294
|
markRef: document.getElementById(id) || undefined
|
|
294
295
|
}
|
|
295
296
|
});
|
|
@@ -139,6 +139,7 @@ export const AnnotationRangeProviderInner = ({
|
|
|
139
139
|
if (!mediaNode) {
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- range for media hover highlight
|
|
142
143
|
const range = document.createRange();
|
|
143
144
|
range.setStartBefore(mediaNode);
|
|
144
145
|
range.setEndAfter(mediaNode);
|
|
@@ -4,8 +4,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React, { Fragment, useCallback } from 'react';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled --
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- emotion jsx pragma; go/DSP-18766
|
|
8
|
+
import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/consistent-type-imports -- classic @jsx jsx factory + jsx.JSX.Element types
|
|
9
|
+
|
|
9
10
|
import { InsertDraftPosition } from '../types';
|
|
10
11
|
import { splitText, calcTextSplitOffset, findTextString } from './text';
|
|
11
12
|
import { calcInsertDraftPositionOnText } from './position';
|
|
@@ -215,6 +215,7 @@ export const MarkComponent = ({
|
|
|
215
215
|
}, [annotationIds, onClick, state, isAnnotationManagerEnabled]);
|
|
216
216
|
const onMarkEnter = evt => {
|
|
217
217
|
var _document$activeEleme;
|
|
218
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage -- keyboard focus for mark / Enter handling
|
|
218
219
|
const focusedElementTag = (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.tagName;
|
|
219
220
|
if (focusedElementTag === 'MARK' && evt.key === 'Enter') {
|
|
220
221
|
onMarkClick(evt);
|
|
@@ -546,7 +546,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
546
546
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
547
547
|
className: TableSharedCssClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP,
|
|
548
548
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
549
|
-
}), stickyHeaders && tableNode && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
|
|
549
|
+
}), stickyHeaders && tableNode && !isContentModeTable && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
|
|
550
550
|
isNumberColumnEnabled: isNumberColumnEnabled,
|
|
551
551
|
tableWidth: "inherit",
|
|
552
552
|
renderWidth: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEventHandler } from '../../utils';
|
|
2
|
-
|
|
2
|
+
export var getCardClickHandler = function getCardClickHandler(eventHandlers, url
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
-
|
|
4
|
+
) {
|
|
5
5
|
var handler = getEventHandler(eventHandlers, 'smartCard');
|
|
6
6
|
return handler ? function (e) {
|
|
7
7
|
return handler(e, url);
|
package/dist/esm/steps/index.js
CHANGED