@atlaskit/renderer 124.17.2 → 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 +16 -0
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +5 -1
- package/dist/cjs/ui/Renderer/index.js +2 -4
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +5 -1
- package/dist/es2019/ui/Renderer/index.js +2 -4
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +5 -1
- package/dist/esm/ui/Renderer/index.js +2 -4
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.17.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`840338033507a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/840338033507a) -
|
|
8
|
+
Migrating custom icons behind feature flag.
|
|
9
|
+
|
|
10
|
+
## 124.17.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`582b3b46480e1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/582b3b46480e1) -
|
|
15
|
+
NO-ISSUE Flipped false evaluations of editor_tinymce_full_width_mode from false to !true to
|
|
16
|
+
prevent them from evaluating as a null value
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 124.17.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -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 = "
|
|
72
|
+
var packageVersion = "124.17.3";
|
|
73
73
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
74
74
|
containerName: 'ak-renderer-wrapper',
|
|
75
75
|
containerType: 'inline-size'
|
|
@@ -783,9 +783,7 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
|
|
|
783
783
|
var innerRef = props.innerRef || localRef;
|
|
784
784
|
|
|
785
785
|
// @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
|
|
786
|
-
if (props.appearance === 'max' &&
|
|
787
|
-
// @ts-expect-error - false is not allowed as an expected value
|
|
788
|
-
(0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', false)) {
|
|
786
|
+
if (props.appearance === 'max' && !(0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true)) {
|
|
789
787
|
props.appearance = 'full-width';
|
|
790
788
|
}
|
|
791
789
|
if (!allowAnnotations) {
|
|
@@ -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 = "
|
|
58
|
+
const packageVersion = "124.17.3";
|
|
59
59
|
const setAsQueryContainerStyles = css({
|
|
60
60
|
containerName: 'ak-renderer-wrapper',
|
|
61
61
|
containerType: 'inline-size'
|
|
@@ -770,9 +770,7 @@ const RendererWithAnnotationSelection = props => {
|
|
|
770
770
|
const innerRef = props.innerRef || localRef;
|
|
771
771
|
|
|
772
772
|
// @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
|
|
773
|
-
if (props.appearance === 'max' &&
|
|
774
|
-
// @ts-expect-error - false is not allowed as an expected value
|
|
775
|
-
expValEquals('editor_tinymce_full_width_mode', 'isEnabled', false)) {
|
|
773
|
+
if (props.appearance === 'max' && !expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)) {
|
|
776
774
|
props.appearance = 'full-width';
|
|
777
775
|
}
|
|
778
776
|
if (!allowAnnotations) {
|
|
@@ -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 = "
|
|
63
|
+
var packageVersion = "124.17.3";
|
|
64
64
|
var setAsQueryContainerStyles = css({
|
|
65
65
|
containerName: 'ak-renderer-wrapper',
|
|
66
66
|
containerType: 'inline-size'
|
|
@@ -774,9 +774,7 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
|
|
|
774
774
|
var innerRef = props.innerRef || localRef;
|
|
775
775
|
|
|
776
776
|
// @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
|
|
777
|
-
if (props.appearance === 'max' &&
|
|
778
|
-
// @ts-expect-error - false is not allowed as an expected value
|
|
779
|
-
expValEquals('editor_tinymce_full_width_mode', 'isEnabled', false)) {
|
|
777
|
+
if (props.appearance === 'max' && !expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)) {
|
|
780
778
|
props.appearance = 'full-width';
|
|
781
779
|
}
|
|
782
780
|
if (!allowAnnotations) {
|
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
|
}
|