@atlaskit/renderer 126.8.9 → 126.8.10

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 126.8.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5f18296b04721`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f18296b04721) -
8
+ [EDITOR-5051] Fix jsx-props-no-spreading violations in renderer expands
9
+ - Updated dependencies
10
+
3
11
  ## 126.8.9
4
12
 
5
13
  ### Patch Changes
@@ -7,8 +7,6 @@ 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"));
11
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
10
  var _react = require("@emotion/react");
13
11
  var _react2 = _interopRequireWildcard(require("react"));
14
12
  var _analytics = require("@atlaskit/editor-common/analytics");
@@ -22,14 +20,15 @@ var _reactIntlNext = require("react-intl-next");
22
20
  var _events = require("../analytics/events");
23
21
  var _activeHeaderIdProvider = require("./active-header-id-provider");
24
22
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
25
- var _excluded = ["expanded"];
23
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
26
24
  /**
27
25
  * @jsxRuntime classic
28
26
  * @jsx jsx
29
27
  */
30
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
29
+
31
30
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
32
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
31
+
33
32
  var titleStyles = (0, _react.css)({
34
33
  outline: 'none',
35
34
  border: 'none',
@@ -151,32 +150,36 @@ var LazyChildren = /*#__PURE__*/(0, _react2.lazy)(function () {
151
150
  });
152
151
  });
153
152
  var Container = function Container(props) {
154
- return (0, _react.jsx)("div", (0, _extends2.default)({
155
- css: [containerStyles, props['data-node-type'] === 'expand' && containerStylesDataNodeTypeExpand, props.expanded && containerStylesExpanded, props.focused && containerStylesFocused]
156
- // Ignored via go/ees005
157
- // eslint-disable-next-line react/jsx-props-no-spreading
158
- }, props), props.children);
153
+ return (0, _react.jsx)("div", {
154
+ css: [containerStyles, props['data-node-type'] === 'expand' && containerStylesDataNodeTypeExpand, props.expanded && containerStylesExpanded, props.focused && containerStylesFocused],
155
+ "data-testid": props['data-testid'],
156
+ "data-node-type": props['data-node-type'],
157
+ "data-title": props['data-title'],
158
+ "data-expanded": props['data-expanded'],
159
+ "data-local-id": props['data-local-id']
160
+ }, props.children);
159
161
  };
160
162
  var TitleContainer = function TitleContainer(props) {
161
- var expanded = props.expanded,
162
- buttonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
163
+ var expanded = props.expanded;
163
164
  return (
164
165
  // eslint-disable-next-line @atlaskit/design-system/no-html-button
165
- (0, _react.jsx)("button", (0, _extends2.default)({
166
+ (0, _react.jsx)("button", {
166
167
  type: "button",
167
- css: [titleContainerStyles, expanded && titleContainerStylesExpanded]
168
- // Ignored via go/ees005
169
- // eslint-disable-next-line react/jsx-props-no-spreading
170
- }, buttonProps), props.children)
168
+ css: [titleContainerStyles, expanded && titleContainerStylesExpanded],
169
+ onClick: props.onClick,
170
+ onFocus: props.onFocus,
171
+ onBlur: props.onBlur,
172
+ "aria-labelledby": props['aria-labelledby'],
173
+ "aria-expanded": props['aria-expanded'],
174
+ contentEditable: props.contentEditable
175
+ }, props.children)
171
176
  );
172
177
  };
173
178
  TitleContainer.displayName = 'TitleContainerButton';
174
179
  var ContentContainer = function ContentContainer(props) {
175
- return (0, _react.jsx)("div", (0, _extends2.default)({
180
+ return (0, _react.jsx)("div", {
176
181
  css: [contentContainerStyles, props.expanded && contentContainerStylesExpanded, !props.expanded && contentContainerStylesNotExpanded]
177
- // Ignored via go/ees005
178
- // eslint-disable-next-line react/jsx-props-no-spreading
179
- }, props), props.children);
182
+ }, props.children);
180
183
  };
181
184
  function fireExpandToggleAnalytics(nodeType, expanded, fireAnalyticsEvent) {
182
185
  if (!fireAnalyticsEvent) {
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
71
71
  var TABLE_INFO_TIMEOUT = 10000;
72
72
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
73
73
  var packageName = "@atlaskit/renderer";
74
- var packageVersion = "126.8.8";
74
+ var packageVersion = "126.8.9";
75
75
  var setAsQueryContainerStyles = (0, _react2.css)({
76
76
  containerName: 'ak-renderer-wrapper',
77
77
  containerType: 'inline-size'
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  /**
3
2
  * @jsxRuntime classic
4
3
  * @jsx jsx
@@ -140,34 +139,38 @@ const LazyChildren = /*#__PURE__*/lazy(() => {
140
139
  });
141
140
  });
142
141
  const Container = props => {
143
- return jsx("div", _extends({
144
- css: [containerStyles, props['data-node-type'] === 'expand' && containerStylesDataNodeTypeExpand, props.expanded && containerStylesExpanded, props.focused && containerStylesFocused]
145
- // Ignored via go/ees005
146
- // eslint-disable-next-line react/jsx-props-no-spreading
147
- }, props), props.children);
142
+ return jsx("div", {
143
+ css: [containerStyles, props['data-node-type'] === 'expand' && containerStylesDataNodeTypeExpand, props.expanded && containerStylesExpanded, props.focused && containerStylesFocused],
144
+ "data-testid": props['data-testid'],
145
+ "data-node-type": props['data-node-type'],
146
+ "data-title": props['data-title'],
147
+ "data-expanded": props['data-expanded'],
148
+ "data-local-id": props['data-local-id']
149
+ }, props.children);
148
150
  };
149
151
  const TitleContainer = props => {
150
152
  const {
151
- expanded,
152
- ...buttonProps
153
+ expanded
153
154
  } = props;
154
155
  return (
155
156
  // eslint-disable-next-line @atlaskit/design-system/no-html-button
156
- jsx("button", _extends({
157
+ jsx("button", {
157
158
  type: "button",
158
- css: [titleContainerStyles, expanded && titleContainerStylesExpanded]
159
- // Ignored via go/ees005
160
- // eslint-disable-next-line react/jsx-props-no-spreading
161
- }, buttonProps), props.children)
159
+ css: [titleContainerStyles, expanded && titleContainerStylesExpanded],
160
+ onClick: props.onClick,
161
+ onFocus: props.onFocus,
162
+ onBlur: props.onBlur,
163
+ "aria-labelledby": props['aria-labelledby'],
164
+ "aria-expanded": props['aria-expanded'],
165
+ contentEditable: props.contentEditable
166
+ }, props.children)
162
167
  );
163
168
  };
164
169
  TitleContainer.displayName = 'TitleContainerButton';
165
170
  const ContentContainer = props => {
166
- return jsx("div", _extends({
171
+ return jsx("div", {
167
172
  css: [contentContainerStyles, props.expanded && contentContainerStylesExpanded, !props.expanded && contentContainerStylesNotExpanded]
168
- // Ignored via go/ees005
169
- // eslint-disable-next-line react/jsx-props-no-spreading
170
- }, props), props.children);
173
+ }, props.children);
171
174
  };
172
175
  function fireExpandToggleAnalytics(nodeType, expanded, fireAnalyticsEvent) {
173
176
  if (!fireAnalyticsEvent) {
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  const TABLE_INFO_TIMEOUT = 10000;
58
58
  const RENDER_EVENT_SAMPLE_RATE = 0.2;
59
59
  const packageName = "@atlaskit/renderer";
60
- const packageVersion = "126.8.8";
60
+ const packageVersion = "126.8.9";
61
61
  const setAsQueryContainerStyles = css({
62
62
  containerName: 'ak-renderer-wrapper',
63
63
  containerType: 'inline-size'
@@ -1,7 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- import _extends from "@babel/runtime/helpers/extends";
4
- var _excluded = ["expanded"];
5
2
  /**
6
3
  * @jsxRuntime classic
7
4
  * @jsx jsx
@@ -142,32 +139,36 @@ var LazyChildren = /*#__PURE__*/lazy(function () {
142
139
  });
143
140
  });
144
141
  var Container = function Container(props) {
145
- return jsx("div", _extends({
146
- css: [containerStyles, props['data-node-type'] === 'expand' && containerStylesDataNodeTypeExpand, props.expanded && containerStylesExpanded, props.focused && containerStylesFocused]
147
- // Ignored via go/ees005
148
- // eslint-disable-next-line react/jsx-props-no-spreading
149
- }, props), props.children);
142
+ return jsx("div", {
143
+ css: [containerStyles, props['data-node-type'] === 'expand' && containerStylesDataNodeTypeExpand, props.expanded && containerStylesExpanded, props.focused && containerStylesFocused],
144
+ "data-testid": props['data-testid'],
145
+ "data-node-type": props['data-node-type'],
146
+ "data-title": props['data-title'],
147
+ "data-expanded": props['data-expanded'],
148
+ "data-local-id": props['data-local-id']
149
+ }, props.children);
150
150
  };
151
151
  var TitleContainer = function TitleContainer(props) {
152
- var expanded = props.expanded,
153
- buttonProps = _objectWithoutProperties(props, _excluded);
152
+ var expanded = props.expanded;
154
153
  return (
155
154
  // eslint-disable-next-line @atlaskit/design-system/no-html-button
156
- jsx("button", _extends({
155
+ jsx("button", {
157
156
  type: "button",
158
- css: [titleContainerStyles, expanded && titleContainerStylesExpanded]
159
- // Ignored via go/ees005
160
- // eslint-disable-next-line react/jsx-props-no-spreading
161
- }, buttonProps), props.children)
157
+ css: [titleContainerStyles, expanded && titleContainerStylesExpanded],
158
+ onClick: props.onClick,
159
+ onFocus: props.onFocus,
160
+ onBlur: props.onBlur,
161
+ "aria-labelledby": props['aria-labelledby'],
162
+ "aria-expanded": props['aria-expanded'],
163
+ contentEditable: props.contentEditable
164
+ }, props.children)
162
165
  );
163
166
  };
164
167
  TitleContainer.displayName = 'TitleContainerButton';
165
168
  var ContentContainer = function ContentContainer(props) {
166
- return jsx("div", _extends({
169
+ return jsx("div", {
167
170
  css: [contentContainerStyles, props.expanded && contentContainerStylesExpanded, !props.expanded && contentContainerStylesNotExpanded]
168
- // Ignored via go/ees005
169
- // eslint-disable-next-line react/jsx-props-no-spreading
170
- }, props), props.children);
171
+ }, props.children);
171
172
  };
172
173
  function fireExpandToggleAnalytics(nodeType, expanded, fireAnalyticsEvent) {
173
174
  if (!fireAnalyticsEvent) {
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
62
62
  var TABLE_INFO_TIMEOUT = 10000;
63
63
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "126.8.8";
65
+ var packageVersion = "126.8.9";
66
66
  var setAsQueryContainerStyles = css({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "126.8.9",
3
+ "version": "126.8.10",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^111.12.0",
74
+ "@atlaskit/editor-common": "^111.13.0",
75
75
  "@atlaskit/link-provider": "^4.2.0",
76
76
  "@atlaskit/media-core": "^37.0.0",
77
77
  "react": "^18.2.0",