@atlaskit/renderer 109.12.3 → 109.12.5
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 +13 -0
- package/dist/cjs/react/nodes/blockCard.js +5 -8
- package/dist/cjs/ui/Expand.js +6 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/blockCard.js +5 -8
- package/dist/es2019/ui/Expand.js +6 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/blockCard.js +5 -8
- package/dist/esm/ui/Expand.js +6 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.12.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#86429](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86429) [`f7ed11720c73`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7ed11720c73) - ED-22675: removes redundant attribute from editor html button, adds gemini error log pattern
|
|
8
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724) [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) - [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from 35.7.0 to 35.8.0
|
|
9
|
+
|
|
10
|
+
## 109.12.4
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#85294](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85294) [`be63992e342e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be63992e342e) - Fixes bug regarding datasources not expanding to full width in renderer
|
|
15
|
+
|
|
3
16
|
## 109.12.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -22,11 +22,10 @@ var _utils2 = require("@atlaskit/editor-common/utils");
|
|
|
22
22
|
|
|
23
23
|
var datasourceContainerStyle = (0, _react2.css)({
|
|
24
24
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
25
|
-
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")"))
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
justifyContent: 'center'
|
|
25
|
+
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N40, ")")),
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
27
|
+
marginLeft: '50%',
|
|
28
|
+
transform: 'translateX(-50%)'
|
|
30
29
|
});
|
|
31
30
|
function BlockCard(props) {
|
|
32
31
|
var url = props.url,
|
|
@@ -104,8 +103,6 @@ function BlockCard(props) {
|
|
|
104
103
|
}, cardProps), (0, _react2.jsx)(_ui.WidthConsumer, null, function (_ref5) {
|
|
105
104
|
var width = _ref5.width;
|
|
106
105
|
return (0, _react2.jsx)("div", {
|
|
107
|
-
css: parentContainerStyle
|
|
108
|
-
}, (0, _react2.jsx)("div", {
|
|
109
106
|
css: datasourceContainerStyle,
|
|
110
107
|
"data-testid": "renderer-datasource-table",
|
|
111
108
|
style: {
|
|
@@ -118,7 +115,7 @@ function BlockCard(props) {
|
|
|
118
115
|
columnCustomSizes: columnCustomSizes,
|
|
119
116
|
wrappedColumnKeys: wrappedColumnKeys && wrappedColumnKeys.length > 0 ? wrappedColumnKeys : undefined,
|
|
120
117
|
url: url
|
|
121
|
-
}))
|
|
118
|
+
}));
|
|
122
119
|
})));
|
|
123
120
|
}
|
|
124
121
|
return (0, _react2.jsx)(_inlineCard.default, {
|
package/dist/cjs/ui/Expand.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
12
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
12
13
|
var _react = require("@emotion/react");
|
|
@@ -22,6 +23,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
22
23
|
var _events = require("../analytics/events");
|
|
23
24
|
var _utils = require("../utils");
|
|
24
25
|
var _activeHeaderIdProvider = require("./active-header-id-provider");
|
|
26
|
+
var _excluded = ["expanded"];
|
|
25
27
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
26
28
|
/** @jsx jsx */
|
|
27
29
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -43,10 +45,12 @@ var TitleContainer = function TitleContainer(props) {
|
|
|
43
45
|
var styles = function styles() {
|
|
44
46
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n padding: ", ";\n padding-bottom: ", ";\n "])), _ui.sharedExpandStyles.titleContainerStyles(), "var(--ds-space-100, 8px)", paddingBottom);
|
|
45
47
|
};
|
|
48
|
+
var expanded = props.expanded,
|
|
49
|
+
buttonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
46
50
|
return (0, _react.jsx)("button", (0, _extends2.default)({
|
|
47
51
|
type: "button",
|
|
48
52
|
css: styles
|
|
49
|
-
},
|
|
53
|
+
}, buttonProps), props.children);
|
|
50
54
|
};
|
|
51
55
|
TitleContainer.displayName = 'TitleContainerButton';
|
|
52
56
|
var ContentContainer = function ContentContainer(props) {
|
|
@@ -103,6 +107,7 @@ function Expand(_ref) {
|
|
|
103
107
|
return setFocused(false);
|
|
104
108
|
}, []);
|
|
105
109
|
return (0, _react.jsx)(Container, {
|
|
110
|
+
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
106
111
|
"data-node-type": nodeType,
|
|
107
112
|
"data-title": title,
|
|
108
113
|
"data-expanded": expanded,
|
|
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
55
55
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "109.12.
|
|
58
|
+
var packageVersion = "109.12.5";
|
|
59
59
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
60
60
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
61
61
|
var _super = _createSuper(Renderer);
|
|
@@ -14,11 +14,10 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
14
14
|
import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
15
15
|
const datasourceContainerStyle = css({
|
|
16
16
|
borderRadius: `${"var(--ds-border-radius-200, 8px)"}`,
|
|
17
|
-
border: `1px solid ${`var(--ds-border, ${N40})`}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
justifyContent: 'center'
|
|
17
|
+
border: `1px solid ${`var(--ds-border, ${N40})`}`,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
19
|
+
marginLeft: '50%',
|
|
20
|
+
transform: 'translateX(-50%)'
|
|
22
21
|
});
|
|
23
22
|
export default function BlockCard(props) {
|
|
24
23
|
const {
|
|
@@ -90,8 +89,6 @@ export default function BlockCard(props) {
|
|
|
90
89
|
}, cardProps), jsx(WidthConsumer, null, ({
|
|
91
90
|
width
|
|
92
91
|
}) => jsx("div", {
|
|
93
|
-
css: parentContainerStyle
|
|
94
|
-
}, jsx("div", {
|
|
95
92
|
css: datasourceContainerStyle,
|
|
96
93
|
"data-testid": "renderer-datasource-table",
|
|
97
94
|
style: {
|
|
@@ -104,7 +101,7 @@ export default function BlockCard(props) {
|
|
|
104
101
|
columnCustomSizes: columnCustomSizes,
|
|
105
102
|
wrappedColumnKeys: wrappedColumnKeys && wrappedColumnKeys.length > 0 ? wrappedColumnKeys : undefined,
|
|
106
103
|
url: url
|
|
107
|
-
})))))
|
|
104
|
+
})))));
|
|
108
105
|
}
|
|
109
106
|
return jsx(InlineCard, {
|
|
110
107
|
data: data,
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -45,10 +45,14 @@ const TitleContainer = props => {
|
|
|
45
45
|
padding: ${"var(--ds-space-100, 8px)"};
|
|
46
46
|
padding-bottom: ${paddingBottom};
|
|
47
47
|
`;
|
|
48
|
+
const {
|
|
49
|
+
expanded,
|
|
50
|
+
...buttonProps
|
|
51
|
+
} = props;
|
|
48
52
|
return jsx("button", _extends({
|
|
49
53
|
type: "button",
|
|
50
54
|
css: styles
|
|
51
|
-
},
|
|
55
|
+
}, buttonProps), props.children);
|
|
52
56
|
};
|
|
53
57
|
TitleContainer.displayName = 'TitleContainerButton';
|
|
54
58
|
const ContentContainer = props => {
|
|
@@ -98,6 +102,7 @@ function Expand({
|
|
|
98
102
|
const handleFocus = useCallback(() => setFocused(true), []);
|
|
99
103
|
const handleBlur = useCallback(() => setFocused(false), []);
|
|
100
104
|
return jsx(Container, {
|
|
105
|
+
"data-testid": `expand-container-${nodeType}-${id}`,
|
|
101
106
|
"data-node-type": nodeType,
|
|
102
107
|
"data-title": title,
|
|
103
108
|
"data-expanded": expanded,
|
|
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
36
36
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
37
37
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
38
38
|
const packageName = "@atlaskit/renderer";
|
|
39
|
-
const packageVersion = "109.12.
|
|
39
|
+
const packageVersion = "109.12.5";
|
|
40
40
|
export class Renderer extends PureComponent {
|
|
41
41
|
constructor(props) {
|
|
42
42
|
super(props);
|
|
@@ -14,11 +14,10 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
14
14
|
import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/utils';
|
|
15
15
|
var datasourceContainerStyle = css({
|
|
16
16
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
17
|
-
border: "1px solid ".concat("var(--ds-border, ".concat(N40, ")"))
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
justifyContent: 'center'
|
|
17
|
+
border: "1px solid ".concat("var(--ds-border, ".concat(N40, ")")),
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
19
|
+
marginLeft: '50%',
|
|
20
|
+
transform: 'translateX(-50%)'
|
|
22
21
|
});
|
|
23
22
|
export default function BlockCard(props) {
|
|
24
23
|
var url = props.url,
|
|
@@ -96,8 +95,6 @@ export default function BlockCard(props) {
|
|
|
96
95
|
}, cardProps), jsx(WidthConsumer, null, function (_ref5) {
|
|
97
96
|
var width = _ref5.width;
|
|
98
97
|
return jsx("div", {
|
|
99
|
-
css: parentContainerStyle
|
|
100
|
-
}, jsx("div", {
|
|
101
98
|
css: datasourceContainerStyle,
|
|
102
99
|
"data-testid": "renderer-datasource-table",
|
|
103
100
|
style: {
|
|
@@ -110,7 +107,7 @@ export default function BlockCard(props) {
|
|
|
110
107
|
columnCustomSizes: columnCustomSizes,
|
|
111
108
|
wrappedColumnKeys: wrappedColumnKeys && wrappedColumnKeys.length > 0 ? wrappedColumnKeys : undefined,
|
|
112
109
|
url: url
|
|
113
|
-
}))
|
|
110
|
+
}));
|
|
114
111
|
})));
|
|
115
112
|
}
|
|
116
113
|
return jsx(InlineCard, {
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
|
+
var _excluded = ["expanded"];
|
|
4
6
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
5
7
|
/** @jsx jsx */
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -33,10 +35,12 @@ var TitleContainer = function TitleContainer(props) {
|
|
|
33
35
|
var styles = function styles() {
|
|
34
36
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n padding: ", ";\n padding-bottom: ", ";\n "])), sharedExpandStyles.titleContainerStyles(), "var(--ds-space-100, 8px)", paddingBottom);
|
|
35
37
|
};
|
|
38
|
+
var expanded = props.expanded,
|
|
39
|
+
buttonProps = _objectWithoutProperties(props, _excluded);
|
|
36
40
|
return jsx("button", _extends({
|
|
37
41
|
type: "button",
|
|
38
42
|
css: styles
|
|
39
|
-
},
|
|
43
|
+
}, buttonProps), props.children);
|
|
40
44
|
};
|
|
41
45
|
TitleContainer.displayName = 'TitleContainerButton';
|
|
42
46
|
var ContentContainer = function ContentContainer(props) {
|
|
@@ -93,6 +97,7 @@ function Expand(_ref) {
|
|
|
93
97
|
return setFocused(false);
|
|
94
98
|
}, []);
|
|
95
99
|
return jsx(Container, {
|
|
100
|
+
"data-testid": "expand-container-".concat(nodeType, "-").concat(id),
|
|
96
101
|
"data-node-type": nodeType,
|
|
97
102
|
"data-title": title,
|
|
98
103
|
"data-expanded": expanded,
|
|
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
|
|
|
46
46
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
47
47
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
48
48
|
var packageName = "@atlaskit/renderer";
|
|
49
|
-
var packageVersion = "109.12.
|
|
49
|
+
var packageVersion = "109.12.5";
|
|
50
50
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
51
51
|
_inherits(Renderer, _PureComponent);
|
|
52
52
|
var _super = _createSuper(Renderer);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.12.
|
|
3
|
+
"version": "109.12.5",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"runReact18": true
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^35.
|
|
27
|
+
"@atlaskit/adf-schema": "^35.8.0",
|
|
28
28
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|