@atlaskit/onboarding 10.8.5 → 10.8.7

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,18 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 10.8.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
8
+ - Updated dependencies
9
+
10
+ ## 10.8.6
11
+
12
+ ### Patch Changes
13
+
14
+ - [`36e3e86da5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36e3e86da5d) - SpotlightCard width prop now accepts either a number or the string `'100%'` and refactors how our range of 160px – 600px works via css `min-width` and `max-width` instead of raw math.
15
+
3
16
  ## 10.8.5
4
17
 
5
18
  ### Patch Changes
@@ -117,7 +117,9 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
117
117
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
118
118
  container],
119
119
  style: {
120
- width: "".concat(Math.min(Math.max(width, 160), 600), "px")
120
+ minWidth: '160px',
121
+ maxWidth: '600px',
122
+ width: typeof width === 'string' ? width : "".concat(width, "px")
121
123
  },
122
124
  ref: ref || innerRef,
123
125
  "data-testid": testId
@@ -27,7 +27,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
27
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
28
28
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
29
  var packageName = "@atlaskit/onboarding";
30
- var packageVersion = "10.8.5";
30
+ var packageVersion = "10.8.7";
31
31
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
32
32
  (0, _inherits2.default)(SpotlightDialog, _Component);
33
33
  var _super = _createSuper(SpotlightDialog);
@@ -34,6 +34,8 @@ var modalImageStyles = (0, _react.css)({
34
34
  height: 'auto',
35
35
  borderTopLeftRadius: "var(--ds-border-radius, 3px)",
36
36
  borderTopRightRadius: "var(--ds-border-radius, 3px)",
37
+ // TODO: Use new breakpoints
38
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
37
39
  '@media (min-width: 320px) and (max-width: 480px)': {
38
40
  borderRadius: 0
39
41
  }
@@ -101,7 +101,9 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
101
101
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
102
102
  container],
103
103
  style: {
104
- width: `${Math.min(Math.max(width, 160), 600)}px`
104
+ minWidth: '160px',
105
+ maxWidth: '600px',
106
+ width: typeof width === 'string' ? width : `${width}px`
105
107
  },
106
108
  ref: ref || innerRef,
107
109
  "data-testid": testId
@@ -7,7 +7,7 @@ import { DialogImage } from '../styled/dialog';
7
7
  import SpotlightCard from './spotlight-card';
8
8
  import ValueChanged from './value-changed';
9
9
  const packageName = "@atlaskit/onboarding";
10
- const packageVersion = "10.8.5";
10
+ const packageVersion = "10.8.7";
11
11
  class SpotlightDialog extends Component {
12
12
  constructor(...args) {
13
13
  super(...args);
@@ -28,6 +28,8 @@ const modalImageStyles = css({
28
28
  height: 'auto',
29
29
  borderTopLeftRadius: "var(--ds-border-radius, 3px)",
30
30
  borderTopRightRadius: "var(--ds-border-radius, 3px)",
31
+ // TODO: Use new breakpoints
32
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
31
33
  '@media (min-width: 320px) and (max-width: 480px)': {
32
34
  borderRadius: 0
33
35
  }
@@ -107,7 +107,9 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
107
107
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
108
108
  container],
109
109
  style: {
110
- width: "".concat(Math.min(Math.max(width, 160), 600), "px")
110
+ minWidth: '160px',
111
+ maxWidth: '600px',
112
+ width: typeof width === 'string' ? width : "".concat(width, "px")
111
113
  },
112
114
  ref: ref || innerRef,
113
115
  "data-testid": testId
@@ -17,7 +17,7 @@ import { DialogImage } from '../styled/dialog';
17
17
  import SpotlightCard from './spotlight-card';
18
18
  import ValueChanged from './value-changed';
19
19
  var packageName = "@atlaskit/onboarding";
20
- var packageVersion = "10.8.5";
20
+ var packageVersion = "10.8.7";
21
21
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
22
22
  _inherits(SpotlightDialog, _Component);
23
23
  var _super = _createSuper(SpotlightDialog);
@@ -28,6 +28,8 @@ var modalImageStyles = css({
28
28
  height: 'auto',
29
29
  borderTopLeftRadius: "var(--ds-border-radius, 3px)",
30
30
  borderTopRightRadius: "var(--ds-border-radius, 3px)",
31
+ // TODO: Use new breakpoints
32
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
31
33
  '@media (min-width: 320px) and (max-width: 480px)': {
32
34
  borderRadius: 0
33
35
  }
@@ -53,9 +53,12 @@ interface SpotlightCardProps {
53
53
  */
54
54
  theme?: ThemeProp<CardTokens, {}>;
55
55
  /**
56
- * Width of the card in pixels.
56
+ * Specifies the width of the card component. Accepts either a number or the string '100%'.
57
+ * When a number is provided, the width is set in pixels. When '100%' is provided, the width
58
+ * is set to occupy 100% of the parent container's width. Regardless of whether `width` is set,
59
+ * the width is constrained to a minimum width of 160px and a maximum width of 600px.
57
60
  */
58
- width?: number;
61
+ width?: number | '100%';
59
62
  /**
60
63
  * @deprecated
61
64
  * Use `ref` instead.
@@ -53,9 +53,12 @@ interface SpotlightCardProps {
53
53
  */
54
54
  theme?: ThemeProp<CardTokens, {}>;
55
55
  /**
56
- * Width of the card in pixels.
56
+ * Specifies the width of the card component. Accepts either a number or the string '100%'.
57
+ * When a number is provided, the width is set in pixels. When '100%' is provided, the width
58
+ * is set to occupy 100% of the parent container's width. Regardless of whether `width` is set,
59
+ * the width is constrained to a minimum width of 160px and a maximum width of 600px.
57
60
  */
58
- width?: number;
61
+ width?: number | '100%';
59
62
  /**
60
63
  * @deprecated
61
64
  * Use `ref` instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.8.5",
3
+ "version": "10.8.7",
4
4
  "description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,14 +34,14 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/analytics-next": "^9.1.0",
37
- "@atlaskit/button": "^16.8.0",
37
+ "@atlaskit/button": "^16.9.0",
38
38
  "@atlaskit/ds-lib": "^2.2.0",
39
39
  "@atlaskit/heading": "^1.3.0",
40
40
  "@atlaskit/modal-dialog": "^12.6.0",
41
41
  "@atlaskit/popper": "^5.5.0",
42
42
  "@atlaskit/portal": "^4.3.0",
43
43
  "@atlaskit/theme": "^12.5.0",
44
- "@atlaskit/tokens": "^1.11.0",
44
+ "@atlaskit/tokens": "^1.15.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1",
47
47
  "bind-event-listener": "^2.1.1",
@@ -58,10 +58,7 @@
58
58
  "react-dom": "^16.8.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@atlaskit/avatar": "^21.3.0",
62
- "@atlaskit/docs": "*",
63
- "@atlaskit/icon": "^21.12.0",
64
- "@atlaskit/progress-indicator": "^9.5.0",
61
+ "@af/accessibility-testing": "*",
65
62
  "@atlaskit/ssr": "*",
66
63
  "@atlaskit/visual-regression": "*",
67
64
  "@atlaskit/webdriver-runner": "*",
package/report.api.md CHANGED
@@ -131,7 +131,7 @@ interface SpotlightCardProps {
131
131
  testId?: string;
132
132
  // @deprecated (undocumented)
133
133
  theme?: ThemeProp<CardTokens, {}>;
134
- width?: number;
134
+ width?: '100%' | number;
135
135
  }
136
136
 
137
137
  // @public
@@ -101,7 +101,7 @@ interface SpotlightCardProps {
101
101
  testId?: string;
102
102
  // @deprecated (undocumented)
103
103
  theme?: ThemeProp<CardTokens, {}>;
104
- width?: number;
104
+ width?: '100%' | number;
105
105
  }
106
106
 
107
107
  // @public
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/onboarding",
3
- "version": "10.8.5",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/onboarding",
3
- "version": "10.8.5",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/onboarding",
3
- "version": "10.8.5",
4
- "sideEffects": false
5
- }