@atlaskit/renderer 124.17.3 → 124.17.4
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 +7 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +5 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +5 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +5 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,12 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
+
var _textWrap = _interopRequireDefault(require("@atlaskit/icon/core/text-wrap"));
|
|
10
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
11
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
13
|
var _icon = _interopRequireDefault(require("@atlaskit/icon"));
|
|
13
14
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
15
|
var _analyticsContext = _interopRequireDefault(require("../../../../analytics/analyticsContext"));
|
|
15
16
|
var _enums = require("../../../../analytics/enums");
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
18
|
/**
|
|
17
19
|
* @jsxRuntime classic
|
|
18
20
|
* @jsx jsx
|
|
@@ -52,7 +54,9 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
52
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
55
|
,
|
|
54
56
|
className: "wrap-code ".concat(wrapLongLines ? 'clicked' : ''),
|
|
55
|
-
iconBefore: (0, _react.jsx)(
|
|
57
|
+
iconBefore: (0, _platformFeatureFlags.fg)('platform-custom-icon-migration') ? (0, _react.jsx)(_textWrap.default, {
|
|
58
|
+
label: ""
|
|
59
|
+
}) : (0, _react.jsx)(_icon.default, {
|
|
56
60
|
glyph: WrapIcon,
|
|
57
61
|
label: ""
|
|
58
62
|
}),
|
|
@@ -69,7 +69,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
69
69
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
70
70
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
71
71
|
var packageName = "@atlaskit/renderer";
|
|
72
|
-
var packageVersion = "124.17.
|
|
72
|
+
var packageVersion = "124.17.3";
|
|
73
73
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
74
74
|
containerName: 'ak-renderer-wrapper',
|
|
75
75
|
containerType: 'inline-size'
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
|
+
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
8
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
10
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
10
11
|
import Icon from '@atlaskit/icon';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
13
14
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
16
|
const WrapIcon = () => {
|
|
15
17
|
return jsx("svg", {
|
|
16
18
|
width: "24",
|
|
@@ -45,7 +47,9 @@ const CodeBlockWrapButton = ({
|
|
|
45
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
46
48
|
,
|
|
47
49
|
className: `wrap-code ${wrapLongLines ? 'clicked' : ''}`,
|
|
48
|
-
iconBefore: jsx(
|
|
50
|
+
iconBefore: fg('platform-custom-icon-migration') ? jsx(TextWrapIcon, {
|
|
51
|
+
label: ""
|
|
52
|
+
}) : jsx(Icon, {
|
|
49
53
|
glyph: WrapIcon,
|
|
50
54
|
label: ""
|
|
51
55
|
}),
|
|
@@ -55,7 +55,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
55
55
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
56
56
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
57
57
|
const packageName = "@atlaskit/renderer";
|
|
58
|
-
const packageVersion = "124.17.
|
|
58
|
+
const packageVersion = "124.17.3";
|
|
59
59
|
const setAsQueryContainerStyles = css({
|
|
60
60
|
containerName: 'ak-renderer-wrapper',
|
|
61
61
|
containerType: 'inline-size'
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
|
+
import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
|
|
8
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
10
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
10
11
|
import Icon from '@atlaskit/icon';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
13
14
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
16
|
var WrapIcon = function WrapIcon() {
|
|
15
17
|
return jsx("svg", {
|
|
16
18
|
width: "24",
|
|
@@ -44,7 +46,9 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
44
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
45
47
|
,
|
|
46
48
|
className: "wrap-code ".concat(wrapLongLines ? 'clicked' : ''),
|
|
47
|
-
iconBefore: jsx(
|
|
49
|
+
iconBefore: fg('platform-custom-icon-migration') ? jsx(TextWrapIcon, {
|
|
50
|
+
label: ""
|
|
51
|
+
}) : jsx(Icon, {
|
|
48
52
|
glyph: WrapIcon,
|
|
49
53
|
label: ""
|
|
50
54
|
}),
|
|
@@ -60,7 +60,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
60
60
|
// we want to calculate all the table widths (which causes reflows) after the renderer has finished loading to mitigate performance impact
|
|
61
61
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
62
62
|
var packageName = "@atlaskit/renderer";
|
|
63
|
-
var packageVersion = "124.17.
|
|
63
|
+
var packageVersion = "124.17.3";
|
|
64
64
|
var setAsQueryContainerStyles = css({
|
|
65
65
|
containerName: 'ak-renderer-wrapper',
|
|
66
66
|
containerType: 'inline-size'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.17.
|
|
3
|
+
"version": "124.17.4",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -248,6 +248,9 @@
|
|
|
248
248
|
},
|
|
249
249
|
"jfp-magma-ssr-iv-editor-codeblock": {
|
|
250
250
|
"type": "boolean"
|
|
251
|
+
},
|
|
252
|
+
"platform-custom-icon-migration": {
|
|
253
|
+
"type": "boolean"
|
|
251
254
|
}
|
|
252
255
|
}
|
|
253
256
|
}
|