@atlaskit/renderer 128.3.0 → 128.3.1
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 +8 -0
- package/dist/cjs/react/marks/link.js +3 -4
- package/dist/cjs/react/nodes/blockCard.js +9 -10
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/panel.js +7 -7
- package/dist/cjs/react/nodes/table/sticky.js +2 -3
- package/dist/cjs/ui/Expand.js +3 -3
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +67 -68
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -2
- package/dist/es2019/react/marks/link.js +3 -4
- package/dist/es2019/react/nodes/blockCard.js +9 -10
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/panel.js +7 -7
- package/dist/es2019/react/nodes/table/sticky.js +4 -5
- package/dist/es2019/ui/Expand.js +3 -3
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +73 -74
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -2
- package/dist/esm/react/marks/link.js +3 -4
- package/dist/esm/react/nodes/blockCard.js +9 -10
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
- package/dist/esm/react/nodes/panel.js +7 -7
- package/dist/esm/react/nodes/table/sticky.js +2 -3
- package/dist/esm/ui/Expand.js +3 -3
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +68 -69
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 128.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 128.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -9,7 +9,6 @@ exports.default = Link;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _utils = require("../../utils");
|
|
15
14
|
var _events = require("../../analytics/events");
|
|
@@ -25,13 +24,13 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
25
|
|
|
27
26
|
var anchorStyles = (0, _react2.css)({
|
|
28
|
-
color: "var(--ds-link,
|
|
27
|
+
color: "var(--ds-link, #1868DB)",
|
|
29
28
|
'&:hover': {
|
|
30
|
-
color: "var(--ds-link,
|
|
29
|
+
color: "var(--ds-link, #1868DB)",
|
|
31
30
|
textDecoration: 'underline'
|
|
32
31
|
},
|
|
33
32
|
'&:active': {
|
|
34
|
-
color: "var(--ds-link-pressed,
|
|
33
|
+
color: "var(--ds-link-pressed, #1558BC)"
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
36
|
function Link(props) {
|
|
@@ -18,7 +18,6 @@ var _linkDatasource = require("@atlaskit/link-datasource");
|
|
|
18
18
|
var _ssr = require("@atlaskit/smart-card/ssr");
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
22
21
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
23
22
|
var _PortalContext = require("../../ui/Renderer/PortalContext");
|
|
24
23
|
var _consts = require("../../consts");
|
|
@@ -29,32 +28,32 @@ var _consts = require("../../consts");
|
|
|
29
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
29
|
|
|
31
30
|
var datasourceCenterWrapperStyles = (0, _react.css)({
|
|
32
|
-
marginTop: "var(--ds-space-150,
|
|
33
|
-
marginBottom: "var(--ds-space-150,
|
|
31
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
32
|
+
marginBottom: "var(--ds-space-150, 12px)"
|
|
34
33
|
});
|
|
35
34
|
var datasourceContainerStyleWithMarginTop = (0, _react.css)({
|
|
36
35
|
borderRadius: "var(--ds-radius-large, 8px)",
|
|
37
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
36
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
38
37
|
overflow: 'hidden',
|
|
39
|
-
marginTop: "var(--ds-space-150,
|
|
40
|
-
marginBottom: "var(--ds-space-150,
|
|
38
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
39
|
+
marginBottom: "var(--ds-space-150, 12px)"
|
|
41
40
|
});
|
|
42
41
|
|
|
43
42
|
// No vertical margin when inside center wrapper (wrapper has margin so it participates in collapse). Styles from datasourceContainerStyleLegacy
|
|
44
43
|
var datasourceContainerStyleNoVerticalMargin = (0, _react.css)({
|
|
45
44
|
borderRadius: "var(--ds-radius-large, 8px)",
|
|
46
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
45
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
47
46
|
overflow: 'hidden'
|
|
48
47
|
});
|
|
49
48
|
var datasourceContainerStyleLegacy = (0, _react.css)({
|
|
50
49
|
borderRadius: "var(--ds-radius-large, 8px)",
|
|
51
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
50
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
52
51
|
overflow: 'hidden',
|
|
53
52
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
54
53
|
marginLeft: '50%',
|
|
55
|
-
marginBottom: "var(--ds-space-150,
|
|
54
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
56
55
|
transform: 'translateX(-50%)',
|
|
57
|
-
marginTop: "var(--ds-space-150,
|
|
56
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
58
57
|
});
|
|
59
58
|
function BlockCard(props) {
|
|
60
59
|
var url = props.url,
|
|
@@ -8,7 +8,6 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _codeBlockCopyButton = _interopRequireDefault(require("./codeBlockCopyButton"));
|
|
10
10
|
var _codeBlockWrapButton = _interopRequireDefault(require("./codeBlockWrapButton"));
|
|
11
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
12
11
|
/**
|
|
13
12
|
* @jsxRuntime classic
|
|
14
13
|
* @jsx jsx
|
|
@@ -18,7 +17,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
18
17
|
var codeBlockButtonsWrapper = (0, _react.css)({
|
|
19
18
|
position: 'sticky',
|
|
20
19
|
top: '0px',
|
|
21
|
-
background: "
|
|
20
|
+
background: "var(--ds-surface, #FFFFFF)"
|
|
22
21
|
});
|
|
23
22
|
var codeBlockButtonsStyle = (0, _react.css)({
|
|
24
23
|
display: 'flex',
|
|
@@ -33,24 +32,24 @@ var codeBlockButtonsStyle = (0, _react.css)({
|
|
|
33
32
|
button: {
|
|
34
33
|
height: '32px',
|
|
35
34
|
width: '32px',
|
|
36
|
-
border: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border,
|
|
35
|
+
border: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
37
36
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
38
37
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
39
38
|
padding: "var(--ds-space-025, 2px)",
|
|
40
|
-
background: "
|
|
41
|
-
color: "var(--ds-icon,
|
|
39
|
+
background: "var(--ds-surface-overlay, #FFFFFF)",
|
|
40
|
+
color: "var(--ds-icon, #292A2E)",
|
|
42
41
|
'&:hover': {
|
|
43
42
|
borderWidth: "var(--ds-border-width-selected, 2px)",
|
|
44
|
-
backgroundColor: "
|
|
43
|
+
backgroundColor: "var(--ds-surface-overlay-hovered, #F0F1F2)",
|
|
45
44
|
height: '32px',
|
|
46
45
|
width: '32px'
|
|
47
46
|
},
|
|
48
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
48
|
'&.clicked': {
|
|
50
|
-
backgroundColor: "
|
|
49
|
+
backgroundColor: "var(--ds-background-neutral-bold-pressed, #505258)",
|
|
51
50
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
52
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
53
|
-
color: "
|
|
52
|
+
color: "var(--ds-icon-inverse, #FFFFFF)".concat(" !important")
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
});
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
11
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
12
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -20,7 +19,7 @@ var _codeBlockButtonContainer = _interopRequireDefault(require("./codeBlockButto
|
|
|
20
19
|
|
|
21
20
|
var codeBlockStyleOverrides = (0, _react.css)((0, _defineProperty2.default)({
|
|
22
21
|
tabSize: 4,
|
|
23
|
-
backgroundColor: "var(--ds-surface-raised,
|
|
22
|
+
backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
|
|
24
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
25
24
|
button: {
|
|
26
25
|
opacity: 0,
|
|
@@ -120,7 +120,7 @@ var codeBlockSharedStyles = (0, _react2.css)((0, _defineProperty2.default)((0, _
|
|
|
120
120
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
121
121
|
lineHeight: '1.5rem',
|
|
122
122
|
textAlign: 'right',
|
|
123
|
-
color: "var(--ds-text-subtlest, #
|
|
123
|
+
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
124
124
|
boxSizing: 'content-box'
|
|
125
125
|
})));
|
|
126
126
|
var lightWeightCodeBlockStyles = (0, _react2.css)((0, _defineProperty2.default)({}, ".".concat(_styles.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
|
|
@@ -44,7 +44,7 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
44
44
|
position: 'relative',
|
|
45
45
|
alignItems: 'normal',
|
|
46
46
|
wordBreak: 'break-word',
|
|
47
|
-
backgroundColor: "var(--ds-background-accent-blue-subtlest, #
|
|
47
|
+
backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
48
48
|
color: 'inherit',
|
|
49
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
50
|
'.ak-editor-panel__icon': {
|
|
@@ -97,7 +97,7 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
97
97
|
},
|
|
98
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
99
99
|
'&[data-panel-type="note"]': {
|
|
100
|
-
backgroundColor: "var(--ds-background-accent-purple-subtlest, #
|
|
100
|
+
backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
|
|
101
101
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
102
102
|
'.ak-editor-panel__icon': {
|
|
103
103
|
color: "var(--ds-icon-discovery, #AF59E1)"
|
|
@@ -105,7 +105,7 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
105
105
|
},
|
|
106
106
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
107
107
|
'&[data-panel-type="tip"]': {
|
|
108
|
-
backgroundColor: "var(--ds-background-accent-green-subtlest, #
|
|
108
|
+
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
109
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
110
110
|
'.ak-editor-panel__icon': {
|
|
111
111
|
color: "var(--ds-icon-success, #6A9A23)"
|
|
@@ -113,7 +113,7 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
113
113
|
},
|
|
114
114
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
115
115
|
'&[data-panel-type="warning"]': {
|
|
116
|
-
backgroundColor: "var(--ds-background-accent-yellow-subtlest, #
|
|
116
|
+
backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
117
117
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
118
118
|
'.ak-editor-panel__icon': {
|
|
119
119
|
color: "var(--ds-icon-warning, #E06C00)"
|
|
@@ -121,7 +121,7 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
121
121
|
},
|
|
122
122
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
123
123
|
'&[data-panel-type="error"]': {
|
|
124
|
-
backgroundColor: "var(--ds-background-accent-red-subtlest, #
|
|
124
|
+
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
125
125
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
126
126
|
'.ak-editor-panel__icon': {
|
|
127
127
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
@@ -129,7 +129,7 @@ var panelBaseStyles = (0, _react2.css)({
|
|
|
129
129
|
},
|
|
130
130
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
131
131
|
'&[data-panel-type="success"]': {
|
|
132
|
-
backgroundColor: "var(--ds-background-accent-green-subtlest, #
|
|
132
|
+
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
133
133
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
134
134
|
'.ak-editor-panel__icon': {
|
|
135
135
|
color: "var(--ds-icon-success, #6A9A23)"
|
|
@@ -157,7 +157,7 @@ var panelNestedIconStyles = (0, _react2.css)({
|
|
|
157
157
|
var nestedPanelStyles = (0, _react2.css)({
|
|
158
158
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
159
159
|
'.ak-editor-panel__content .ak-editor-panel': {
|
|
160
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #
|
|
160
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
var panelCustomBackground = (0, _react2.css)({
|
|
@@ -13,7 +13,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
15
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
16
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
17
16
|
var _table = require("./table");
|
|
18
17
|
var _injectProps = require("../../utils/inject-props");
|
|
19
18
|
/**
|
|
@@ -47,9 +46,9 @@ var fixedTableDivStaticStyles = (0, _react2.css)((0, _defineProperty2.default)((
|
|
|
47
46
|
marginBottom: 0,
|
|
48
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
48
|
tr: {
|
|
50
|
-
background: "var(--ds-surface,
|
|
49
|
+
background: "var(--ds-surface, #FFFFFF)"
|
|
51
50
|
}
|
|
52
|
-
}), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface,
|
|
51
|
+
}), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, #FFFFFF)")), "background", "var(--ds-surface-overlay, #FFFFFF)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, #1E1F211f)")), "div[data-expanded='false'] &", {
|
|
53
52
|
display: 'none'
|
|
54
53
|
}), "& .".concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.right-shadow::after, & .").concat(_styles.TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.left-shadow::before"), {
|
|
55
54
|
top: '0px',
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -53,12 +53,12 @@ var containerStyles = (0, _react.css)({
|
|
|
53
53
|
borderColor: 'transparent',
|
|
54
54
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
55
55
|
minHeight: '25px',
|
|
56
|
-
background: "var(--ds-background-neutral-subtle,
|
|
56
|
+
background: "var(--ds-background-neutral-subtle, #00000000)",
|
|
57
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
58
|
transition: "background 0.3s ".concat(_editorSharedStyles.akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(_editorSharedStyles.akEditorSwoopCubicBezier),
|
|
59
59
|
padding: "var(--ds-space-0, 0px)",
|
|
60
60
|
paddingBottom: "var(--ds-space-0, 0px)",
|
|
61
|
-
marginTop: "var(--ds-space-050,
|
|
61
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
62
62
|
marginBottom: 0,
|
|
63
63
|
marginLeft: 0,
|
|
64
64
|
marginRight: 0,
|
|
@@ -68,7 +68,7 @@ var containerStyles = (0, _react.css)({
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
var containerStylesExpanded = (0, _react.css)({
|
|
71
|
-
background: "var(--ds-surface,
|
|
71
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
72
72
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
73
73
|
borderColor: "var(--ds-border, #0B120E24)"
|
|
74
74
|
});
|