@atlaskit/renderer 109.42.5 → 109.42.7
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 +18 -0
- package/dist/cjs/react/marks/alignment.js +4 -1
- package/dist/cjs/react/marks/border.js +4 -1
- package/dist/cjs/react/marks/breakout.js +4 -1
- package/dist/cjs/react/marks/link.js +4 -1
- package/dist/cjs/react/nodes/blockCard.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
- package/dist/cjs/react/nodes/embedCard.js +4 -1
- package/dist/cjs/react/nodes/emoji.js +4 -1
- package/dist/cjs/react/nodes/extensionFrame.js +4 -1
- package/dist/cjs/react/nodes/heading-anchor.js +4 -1
- package/dist/cjs/react/nodes/inlineCard.js +4 -1
- package/dist/cjs/react/nodes/layoutColumn.js +4 -1
- package/dist/cjs/react/nodes/media/index.js +4 -1
- package/dist/cjs/react/nodes/mediaSingle/index.js +4 -1
- package/dist/cjs/react/nodes/mediaSingle/styles.js +4 -1
- package/dist/cjs/react/nodes/multiBodiedExtension.js +4 -1
- package/dist/cjs/react/nodes/panel.js +4 -1
- package/dist/cjs/react/nodes/table/colgroup.js +3 -1
- package/dist/cjs/react/nodes/table/sticky.js +4 -1
- package/dist/cjs/react/nodes/table/table.js +4 -0
- package/dist/cjs/react/nodes/table.js +5 -1
- package/dist/cjs/react/utils/appearance.js +4 -1
- package/dist/cjs/ui/Expand.js +4 -1
- package/dist/cjs/ui/ExtensionRenderer.js +4 -1
- package/dist/cjs/ui/Renderer/index.js +10 -6
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +4 -1
- package/dist/cjs/ui/annotations/draft/component.js +4 -1
- package/dist/cjs/ui/annotations/element/mark.js +4 -1
- package/dist/es2019/react/marks/alignment.js +4 -1
- package/dist/es2019/react/marks/border.js +4 -1
- package/dist/es2019/react/marks/breakout.js +4 -1
- package/dist/es2019/react/marks/link.js +4 -1
- package/dist/es2019/react/nodes/blockCard.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
- package/dist/es2019/react/nodes/embedCard.js +4 -1
- package/dist/es2019/react/nodes/emoji.js +4 -1
- package/dist/es2019/react/nodes/extensionFrame.js +4 -1
- package/dist/es2019/react/nodes/heading-anchor.js +4 -1
- package/dist/es2019/react/nodes/inlineCard.js +4 -1
- package/dist/es2019/react/nodes/layoutColumn.js +4 -1
- package/dist/es2019/react/nodes/media/index.js +4 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +4 -1
- package/dist/es2019/react/nodes/mediaSingle/styles.js +4 -1
- package/dist/es2019/react/nodes/multiBodiedExtension.js +4 -1
- package/dist/es2019/react/nodes/panel.js +4 -1
- package/dist/es2019/react/nodes/table/colgroup.js +3 -1
- package/dist/es2019/react/nodes/table/sticky.js +4 -1
- package/dist/es2019/react/nodes/table/table.js +5 -1
- package/dist/es2019/react/nodes/table.js +6 -2
- package/dist/es2019/react/utils/appearance.js +1 -0
- package/dist/es2019/ui/Expand.js +4 -1
- package/dist/es2019/ui/ExtensionRenderer.js +4 -1
- package/dist/es2019/ui/Renderer/index.js +10 -6
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +4 -1
- package/dist/es2019/ui/annotations/draft/component.js +4 -1
- package/dist/es2019/ui/annotations/element/mark.js +4 -1
- package/dist/esm/react/marks/alignment.js +4 -1
- package/dist/esm/react/marks/border.js +4 -1
- package/dist/esm/react/marks/breakout.js +4 -1
- package/dist/esm/react/marks/link.js +4 -1
- package/dist/esm/react/nodes/blockCard.js +4 -1
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +4 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +4 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +4 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +4 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -1
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
- package/dist/esm/react/nodes/embedCard.js +4 -1
- package/dist/esm/react/nodes/emoji.js +4 -1
- package/dist/esm/react/nodes/extensionFrame.js +4 -1
- package/dist/esm/react/nodes/heading-anchor.js +4 -1
- package/dist/esm/react/nodes/inlineCard.js +4 -1
- package/dist/esm/react/nodes/layoutColumn.js +4 -1
- package/dist/esm/react/nodes/media/index.js +4 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +4 -1
- package/dist/esm/react/nodes/mediaSingle/styles.js +4 -1
- package/dist/esm/react/nodes/multiBodiedExtension.js +4 -1
- package/dist/esm/react/nodes/panel.js +4 -1
- package/dist/esm/react/nodes/table/colgroup.js +3 -1
- package/dist/esm/react/nodes/table/sticky.js +4 -1
- package/dist/esm/react/nodes/table/table.js +4 -0
- package/dist/esm/react/nodes/table.js +6 -2
- package/dist/esm/react/utils/appearance.js +3 -0
- package/dist/esm/ui/Expand.js +4 -1
- package/dist/esm/ui/ExtensionRenderer.js +4 -1
- package/dist/esm/ui/Renderer/index.js +10 -6
- package/dist/esm/ui/Renderer/truncated-wrapper.js +4 -1
- package/dist/esm/ui/annotations/draft/component.js +4 -1
- package/dist/esm/ui/annotations/element/mark.js +4 -1
- package/dist/types/react/marks/border.d.ts +4 -1
- package/dist/types/react/marks/breakout.d.ts +4 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +4 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockContainer.d.ts +4 -1
- package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +4 -1
- package/dist/types/react/nodes/embedCard.d.ts +4 -1
- package/dist/types/react/nodes/emoji.d.ts +4 -1
- package/dist/types/react/nodes/extensionFrame.d.ts +4 -1
- package/dist/types/react/nodes/layoutColumn.d.ts +4 -1
- package/dist/types/react/nodes/media/index.d.ts +4 -1
- package/dist/types/react/nodes/multiBodiedExtension.d.ts +4 -1
- package/dist/types/react/nodes/panel.d.ts +4 -1
- package/dist/types/react/nodes/table/sticky.d.ts +4 -1
- package/dist/types/react/utils/appearance.d.ts +1 -0
- package/dist/types/ui/Renderer/index.d.ts +4 -1
- package/dist/types/ui/Renderer/truncated-wrapper.d.ts +4 -1
- package/dist/types/ui/annotations/draft/component.d.ts +4 -1
- package/dist/types/ui/annotations/element/mark.d.ts +4 -1
- package/dist/types-ts4.5/react/marks/border.d.ts +4 -1
- package/dist/types-ts4.5/react/marks/breakout.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/panel.d.ts +4 -1
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +4 -1
- package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -0
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +4 -1
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +4 -1
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +4 -1
- package/package.json +9 -6
|
@@ -3,7 +3,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _templateObject, _templateObject2;
|
|
5
5
|
var _excluded = ["backgroundColor", "hasIcon"];
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
import React from 'react';
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
12
|
import { css, jsx } from '@emotion/react';
|
|
@@ -60,10 +60,12 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
|
60
60
|
if (!columnWidths) {
|
|
61
61
|
return [];
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
// isTableResized checks if table columns were resized
|
|
63
65
|
var tableResized = isTableResized(columnWidths);
|
|
64
66
|
var noOfColumns = columnWidths.length;
|
|
65
67
|
var targetWidths;
|
|
66
|
-
var tableContainerWidth = getTableContainerWidth(tableNode);
|
|
68
|
+
var tableContainerWidth = rendererAppearance === 'comment' && isTableResizingEnabled(rendererAppearance) && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width) ? renderWidth : getTableContainerWidth(tableNode);
|
|
67
69
|
if (isTableResizingEnabled(rendererAppearance) && !isInsideOfBlockNode && !isinsideMultiBodiedExtension && !tableResized) {
|
|
68
70
|
// for tables with no column widths defined, assume that the real table width
|
|
69
71
|
// is defined by node.attrs.width
|
|
@@ -2,7 +2,10 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import React from 'react';
|
|
7
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
11
|
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Colgroup } from './colgroup';
|
|
3
3
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
4
4
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { isTableResizingEnabled } from '../table';
|
|
5
6
|
export var Table = /*#__PURE__*/React.memo(function (_ref) {
|
|
6
7
|
var innerRef = _ref.innerRef,
|
|
7
8
|
isNumberColumnEnabled = _ref.isNumberColumnEnabled,
|
|
@@ -14,6 +15,9 @@ export var Table = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
14
15
|
isInsideOfBlockNode = _ref.isInsideOfBlockNode,
|
|
15
16
|
isinsideMultiBodiedExtension = _ref.isinsideMultiBodiedExtension;
|
|
16
17
|
var tableWidth = tableNode ? getTableContainerWidth(tableNode) : akEditorDefaultLayoutWidth;
|
|
18
|
+
if (rendererAppearance === 'comment' && isTableResizingEnabled(rendererAppearance) && tableNode && !tableNode.attrs.width) {
|
|
19
|
+
tableWidth = renderWidth; // we could set it to 'inherit' here
|
|
20
|
+
}
|
|
17
21
|
var tableLayout = tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.layout;
|
|
18
22
|
var tableDisplayMode = tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.displayMode;
|
|
19
23
|
return /*#__PURE__*/React.createElement("table", {
|
|
@@ -24,9 +24,11 @@ import { TableHeader } from './tableCell';
|
|
|
24
24
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
25
25
|
import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
|
|
26
26
|
import { Table } from './table/table';
|
|
27
|
-
import { isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
|
|
27
|
+
import { isCommentAppearance, isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
|
|
28
28
|
export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
29
|
-
return isFullWidthOrFullPageAppearance(appearance)
|
|
29
|
+
return isFullWidthOrFullPageAppearance(appearance) ||
|
|
30
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
31
|
+
isCommentAppearance(appearance) && fg('platform_editor_table_support_in_comment');
|
|
30
32
|
};
|
|
31
33
|
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus) {
|
|
32
34
|
if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
|
|
@@ -302,6 +304,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
302
304
|
var calcDefaultLayoutWidthByAppearance = function calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode) {
|
|
303
305
|
if (rendererAppearance === 'full-width' && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
|
|
304
306
|
return isRenderWidthValid ? Math.min(akEditorFullWidthLayoutWidth, renderWidth) : akEditorFullWidthLayoutWidth;
|
|
307
|
+
} else if (rendererAppearance === 'comment' && isTableResizingEnabled(rendererAppearance) && !(tableNode !== null && tableNode !== void 0 && tableNode.attrs.width)) {
|
|
308
|
+
return renderWidth;
|
|
305
309
|
} else {
|
|
306
310
|
// custom width, or width mapped to breakpoint
|
|
307
311
|
var tableContainerWidth = getTableContainerWidth(tableNode);
|
|
@@ -4,6 +4,9 @@ export var isFullWidthAppearance = function isFullWidthAppearance(appearance) {
|
|
|
4
4
|
export var isFullPageAppearance = function isFullPageAppearance(appearance) {
|
|
5
5
|
return appearance === 'full-page';
|
|
6
6
|
};
|
|
7
|
+
export var isCommentAppearance = function isCommentAppearance(appearance) {
|
|
8
|
+
return appearance === 'comment';
|
|
9
|
+
};
|
|
7
10
|
export var isFullWidthOrFullPageAppearance = function isFullWidthOrFullPageAppearance(appearance) {
|
|
8
11
|
return isFullPageAppearance(appearance) || isFullWidthAppearance(appearance);
|
|
9
12
|
};
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -4,7 +4,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
5
|
var _excluded = ["expanded"];
|
|
6
6
|
var _templateObject, _templateObject2, _templateObject3;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @jsxRuntime classic
|
|
9
|
+
* @jsx jsx
|
|
10
|
+
*/
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
12
|
import { css, jsx } from '@emotion/react';
|
|
10
13
|
import React, { useCallback, useMemo, useRef } from 'react';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
5
8
|
import React, { Fragment } from 'react';
|
|
@@ -10,7 +10,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
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; }
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
import React, { Fragment, useContext, useLayoutEffect, useRef, PureComponent } from 'react';
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
import { jsx } from '@emotion/react';
|
|
@@ -18,8 +21,9 @@ import { getSchemaBasedOnStage } from '@atlaskit/adf-schema/schema-default';
|
|
|
18
21
|
import { reduce } from '@atlaskit/adf-utils/traverse';
|
|
19
22
|
import { ProviderFactory, ProviderFactoryProvider } from '@atlaskit/editor-common/provider-factory';
|
|
20
23
|
import { UnsupportedBlock, BaseTheme, WidthProvider, WithCreateAnalyticsEvent, IntlErrorBoundary } from '@atlaskit/editor-common/ui';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
24
|
+
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
25
|
+
import { getAnalyticsAppearance, getAnalyticsEventSeverity, getResponseEndTime, shouldForceTracking, measureTTI, getDistortedDurationMonitor, browser } from '@atlaskit/editor-common/utils';
|
|
26
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
27
|
import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
24
28
|
import { akEditorFullPageDefaultFontSize } from '@atlaskit/editor-shared-styles';
|
|
25
29
|
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
@@ -48,7 +52,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
48
52
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
53
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
54
|
var packageName = "@atlaskit/renderer";
|
|
51
|
-
var packageVersion = "109.42.
|
|
55
|
+
var packageVersion = "109.42.7";
|
|
52
56
|
export var defaultNodeComponents = nodeToReact;
|
|
53
57
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
54
58
|
_inherits(Renderer, _PureComponent);
|
|
@@ -275,7 +279,7 @@ export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
|
275
279
|
nodeComponents: props.nodeComponents,
|
|
276
280
|
// does not currently support SSR, should not be enabled in environments where Renderer is SSR-ed
|
|
277
281
|
allowWindowedCodeBlock: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.allowWindowedCodeBlock,
|
|
278
|
-
isInsideOfInlineExtension:
|
|
282
|
+
isInsideOfInlineExtension: fg('platform.editor.inline_extension.extended_lcqdn') && props.isInsideOfInlineExtension,
|
|
279
283
|
textHighlighter: props.UNSTABLE_textHighlighter,
|
|
280
284
|
isCommentsOnMediaMediaInlineBugFixEnabled: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.commentsOnMediaMediaInlineBugFix
|
|
281
285
|
};
|
|
@@ -532,7 +536,7 @@ var RendererWrapper = /*#__PURE__*/React.memo(function (props) {
|
|
|
532
536
|
, {
|
|
533
537
|
className: "ak-renderer-wrapper is-".concat(appearance),
|
|
534
538
|
"data-appearance": appearance,
|
|
535
|
-
shouldCheckExistingValue:
|
|
539
|
+
shouldCheckExistingValue: fg('platform.editor.inline_extension.extended_lcqdn') && isInsideOfInlineExtension
|
|
536
540
|
}, jsx(BaseTheme, {
|
|
537
541
|
baseFontSize: appearance && appearance !== 'comment' ? akEditorFullPageDefaultFontSize : undefined
|
|
538
542
|
}, jsx(EditorMediaClientProvider, {
|
|
@@ -5,7 +5,10 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
13
|
import { css, jsx } from '@emotion/react';
|
|
11
14
|
import { Component } from 'react';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React, { Fragment } from 'react';
|
|
4
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -4,7 +4,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
4
4
|
var _templateObject;
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @jsxRuntime classic
|
|
9
|
+
* @jsx jsx
|
|
10
|
+
*/
|
|
8
11
|
|
|
9
12
|
import { useMemo, useCallback } from 'react';
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import { type EmojiAttributes } from '@atlaskit/adf-schema';
|
|
5
8
|
import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type RendererAppearance } from '../../ui/Renderer/types';
|
|
2
2
|
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => boolean;
|
|
3
3
|
export declare const isFullPageAppearance: (appearance: RendererAppearance) => boolean;
|
|
4
|
+
export declare const isCommentAppearance: (appearance: RendererAppearance) => boolean;
|
|
4
5
|
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => boolean;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import { type EmojiAttributes } from '@atlaskit/adf-schema';
|
|
5
8
|
import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
8
|
import type { RendererContext } from '../types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type RendererAppearance } from '../../ui/Renderer/types';
|
|
2
2
|
export declare const isFullWidthAppearance: (appearance: RendererAppearance) => boolean;
|
|
3
3
|
export declare const isFullPageAppearance: (appearance: RendererAppearance) => boolean;
|
|
4
|
+
export declare const isCommentAppearance: (appearance: RendererAppearance) => boolean;
|
|
4
5
|
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.42.
|
|
3
|
+
"version": "109.42.7",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
32
32
|
"@atlaskit/button": "^19.0.0",
|
|
33
33
|
"@atlaskit/code": "^15.4.0",
|
|
34
|
-
"@atlaskit/editor-common": "^86.
|
|
34
|
+
"@atlaskit/editor-common": "^86.5.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.6.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
39
39
|
"@atlaskit/emoji": "^67.6.0",
|
|
40
40
|
"@atlaskit/feature-gate-js-client": "^4.18.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.7.0",
|
|
42
42
|
"@atlaskit/link-datasource": "^2.5.0",
|
|
43
43
|
"@atlaskit/media-card": "^78.0.0",
|
|
44
44
|
"@atlaskit/media-client": "^27.3.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/media-ui": "^25.10.0",
|
|
49
49
|
"@atlaskit/media-viewer": "^48.6.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
51
|
-
"@atlaskit/smart-card": "^27.
|
|
51
|
+
"@atlaskit/smart-card": "^27.10.0",
|
|
52
52
|
"@atlaskit/status": "^1.4.0",
|
|
53
53
|
"@atlaskit/task-decision": "^17.10.0",
|
|
54
54
|
"@atlaskit/theme": "^12.11.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"uuid": "^3.1.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@atlaskit/link-provider": "^1.
|
|
66
|
+
"@atlaskit/link-provider": "^1.13.0",
|
|
67
67
|
"@atlaskit/media-core": "^34.2.0",
|
|
68
68
|
"react": "^16.8.0",
|
|
69
69
|
"react-dom": "^16.8.0"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
75
75
|
"@atlaskit/css-reset": "^6.9.0",
|
|
76
76
|
"@atlaskit/editor-test-helpers": "^18.26.0",
|
|
77
|
-
"@atlaskit/link-provider": "^1.
|
|
77
|
+
"@atlaskit/link-provider": "^1.13.0",
|
|
78
78
|
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
79
79
|
"@atlaskit/linking-common": "^5.7.0",
|
|
80
80
|
"@atlaskit/media-core": "^34.2.0",
|
|
@@ -131,6 +131,9 @@
|
|
|
131
131
|
"platform_editor_tables_padding_increase": {
|
|
132
132
|
"type": "boolean"
|
|
133
133
|
},
|
|
134
|
+
"platform_editor_table_support_in_comment": {
|
|
135
|
+
"type": "boolean"
|
|
136
|
+
},
|
|
134
137
|
"editor_inline_comments_on_inline_nodes": {
|
|
135
138
|
"type": "boolean"
|
|
136
139
|
},
|