@atlaskit/inline-message 15.0.1 → 15.2.0

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,31 @@
1
1
  # @atlaskit/inline-message
2
2
 
3
+ ## 15.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157071](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157071)
8
+ [`a149a0b1559ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a149a0b1559ec) -
9
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
10
+ successful it will be available in a later release.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 15.1.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [#152852](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152852)
21
+ [`ae720e711e4d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae720e711e4d2) -
22
+ Adds `fallbackPlacements` prop for specifying a list of backup placements to try when the main
23
+ `placement` does not have enough space. This matches the API of `Popup`.
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 15.0.1
4
30
 
5
31
  ### Patch Changes
@@ -61,7 +61,8 @@ var InlineMessage = function InlineMessage(_ref) {
61
61
  appearance = _ref$appearance === void 0 ? 'connectivity' : _ref$appearance,
62
62
  children = _ref.children,
63
63
  testId = _ref.testId,
64
- iconLabel = _ref.iconLabel;
64
+ iconLabel = _ref.iconLabel,
65
+ fallbackPlacements = _ref.fallbackPlacements;
65
66
  var _useState = (0, _react.useState)(false),
66
67
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
67
68
  isOpen = _useState2[0],
@@ -82,7 +83,8 @@ var InlineMessage = function InlineMessage(_ref) {
82
83
  content: children,
83
84
  isOpen: isOpen,
84
85
  placement: placement,
85
- testId: testId && "".concat(testId, "--inline-dialog")
86
+ testId: testId && "".concat(testId, "--inline-dialog"),
87
+ fallbackPlacements: fallbackPlacements
86
88
  }, /*#__PURE__*/React.createElement(_button.default, {
87
89
  "data-ds--inline-message--button": true,
88
90
  appearance: "subtle-link",
@@ -46,7 +46,8 @@ const InlineMessage = ({
46
46
  appearance = 'connectivity',
47
47
  children,
48
48
  testId,
49
- iconLabel
49
+ iconLabel,
50
+ fallbackPlacements
50
51
  }) => {
51
52
  const [isOpen, setIsOpen] = useState(false);
52
53
  const toggleDialog = useCallback(() => {
@@ -61,7 +62,8 @@ const InlineMessage = ({
61
62
  content: children,
62
63
  isOpen: isOpen,
63
64
  placement: placement,
64
- testId: testId && `${testId}--inline-dialog`
65
+ testId: testId && `${testId}--inline-dialog`,
66
+ fallbackPlacements: fallbackPlacements
65
67
  }, /*#__PURE__*/React.createElement(Button, {
66
68
  "data-ds--inline-message--button": true,
67
69
  appearance: "subtle-link",
@@ -51,7 +51,8 @@ var InlineMessage = function InlineMessage(_ref) {
51
51
  appearance = _ref$appearance === void 0 ? 'connectivity' : _ref$appearance,
52
52
  children = _ref.children,
53
53
  testId = _ref.testId,
54
- iconLabel = _ref.iconLabel;
54
+ iconLabel = _ref.iconLabel,
55
+ fallbackPlacements = _ref.fallbackPlacements;
55
56
  var _useState = useState(false),
56
57
  _useState2 = _slicedToArray(_useState, 2),
57
58
  isOpen = _useState2[0],
@@ -72,7 +73,8 @@ var InlineMessage = function InlineMessage(_ref) {
72
73
  content: children,
73
74
  isOpen: isOpen,
74
75
  placement: placement,
75
- testId: testId && "".concat(testId, "--inline-dialog")
76
+ testId: testId && "".concat(testId, "--inline-dialog"),
77
+ fallbackPlacements: fallbackPlacements
76
78
  }, /*#__PURE__*/React.createElement(Button, {
77
79
  "data-ds--inline-message--button": true,
78
80
  appearance: "subtle-link",
@@ -3,8 +3,9 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type FC, type ReactNode } from 'react';
6
+ import { type InlineDialogProps } from '@atlaskit/inline-dialog';
6
7
  import type { IconAppearance, InlineDialogPlacement } from '../../types';
7
- interface InlineMessageProps {
8
+ interface InlineMessageProps extends Pick<InlineDialogProps, 'fallbackPlacements'> {
8
9
  /**
9
10
  * The elements to be displayed by the inline dialog.
10
11
  */
@@ -3,8 +3,9 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type FC, type ReactNode } from 'react';
6
+ import { type InlineDialogProps } from '@atlaskit/inline-dialog';
6
7
  import type { IconAppearance, InlineDialogPlacement } from '../../types';
7
- interface InlineMessageProps {
8
+ interface InlineMessageProps extends Pick<InlineDialogProps, 'fallbackPlacements'> {
8
9
  /**
9
10
  * The elements to be displayed by the inline dialog.
10
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "15.0.1",
3
+ "version": "15.2.0",
4
4
  "description": "An inline message lets users know when important information is available or when an action is required.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,12 +30,14 @@
30
30
  "runReact18": true
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/button": "^23.0.0",
34
- "@atlaskit/icon": "^26.0.0",
35
- "@atlaskit/inline-dialog": "^17.0.0",
36
- "@atlaskit/primitives": "^14.7.0",
33
+ "@atlaskit/button": "^23.2.0",
34
+ "@atlaskit/icon": "^26.1.0",
35
+ "@atlaskit/inline-dialog": "^17.2.0",
36
+ "@atlaskit/link": "^3.2.0",
37
+ "@atlaskit/platform-feature-flags": "^1.1.0",
38
+ "@atlaskit/primitives": "^14.8.0",
37
39
  "@atlaskit/theme": "^18.0.0",
38
- "@atlaskit/tokens": "^4.8.0",
40
+ "@atlaskit/tokens": "^4.9.0",
39
41
  "@babel/runtime": "^7.0.0",
40
42
  "@compiled/react": "^0.18.3"
41
43
  },
@@ -49,8 +51,7 @@
49
51
  "@atlaskit/docs": "^10.0.0",
50
52
  "@atlaskit/ds-lib": "^4.0.0",
51
53
  "@atlaskit/heading": "^5.2.0",
52
- "@atlaskit/link": "^3.1.0",
53
- "@atlaskit/modal-dialog": "^14.1.0",
54
+ "@atlaskit/modal-dialog": "^14.2.0",
54
55
  "@atlaskit/section-message": "^8.2.0",
55
56
  "@atlassian/ssr-tests": "^0.2.0",
56
57
  "@emotion/jest": "^11.8.0",
@@ -92,5 +93,10 @@
92
93
  ]
93
94
  }
94
95
  },
95
- "homepage": "https://atlassian.design/components/inline-message/"
96
+ "homepage": "https://atlassian.design/components/inline-message/",
97
+ "platform-feature-flags": {
98
+ "dst-a11y__replace-anchor-with-link__design-system-": {
99
+ "type": "boolean"
100
+ }
101
+ }
96
102
  }