@atlaskit/inline-message 15.5.8 → 15.6.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/inline-message
2
2
 
3
+ ## 15.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`8a0f486ff624f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8a0f486ff624f) -
14
+ [ux] Cleans up add-max-width-and-height-to-inline-message as this feature gate is fully rolled out
15
+ now.
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 15.5.8
4
22
 
5
23
  ### Patch Changes
@@ -14,9 +14,7 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
15
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
16
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
- var _react2 = require("@compiled/react");
18
17
  var _useId = require("@atlaskit/ds-lib/use-id");
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
18
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
21
19
  var _compiled = require("@atlaskit/primitives/compiled");
22
20
  var _colors = require("@atlaskit/theme/colors");
@@ -24,8 +22,7 @@ var _messageIcon = _interopRequireDefault(require("../message-icon"));
24
22
  var _excluded = ["ref"];
25
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
  var styles = {
27
- contentStyles: "_bozg1ejb _y4ti1ejb _1q51pxbi _85i5pxbi",
28
- heightAndWidthConstraints: "_1reo1wug _18m91wug _p12flti4 _c71llti4",
25
+ contentStyles: "_1reo1wug _18m91wug _bozg1ejb _y4ti1ejb _1q51pxbi _85i5pxbi _p12flti4 _c71llti4",
29
26
  rootStyles: "_1e0c1o8l _p12f1osq _1yyu1kum _y2mv1w7i",
30
27
  pressableStyles: "_2rko1qi0 _11c8fhey _1rjcze3t _18zrze3t _1e0c116y _bfhksm61 _syazazsu _o5721q9c _kqswh2mm _4cvr1q9y _p12f1osq _4t3i1wug _1bsb1wug _s7n41q9y _9oik1r31 _1bnx8stv _jf4cnqa1"
31
28
  };
@@ -94,7 +91,7 @@ var InlineMessage = function InlineMessage(_ref) {
94
91
  onClose: onCloseDialog,
95
92
  content: function content() {
96
93
  return /*#__PURE__*/React.createElement(_compiled.Box, {
97
- xcss: (0, _react2.cx)(styles.contentStyles, (0, _platformFeatureFlags.fg)('add-max-width-and-height-to-inline-message') && styles.heightAndWidthConstraints)
94
+ xcss: styles.contentStyles
98
95
  }, children);
99
96
  },
100
97
  isOpen: isOpen,
@@ -4,16 +4,13 @@ import "./index.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { useCallback, useState } from 'react';
7
- import { cx } from '@compiled/react';
8
7
  import { useId } from '@atlaskit/ds-lib/use-id';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
8
  import Popup from '@atlaskit/popup';
11
9
  import { Box, Inline, Pressable, Text } from '@atlaskit/primitives/compiled';
12
10
  import { B300, G200, P200, R300, Y200 } from '@atlaskit/theme/colors';
13
11
  import MessageIcon from '../message-icon';
14
12
  const styles = {
15
- contentStyles: "_bozg1ejb _y4ti1ejb _1q51pxbi _85i5pxbi",
16
- heightAndWidthConstraints: "_1reo1wug _18m91wug _p12flti4 _c71llti4",
13
+ contentStyles: "_1reo1wug _18m91wug _bozg1ejb _y4ti1ejb _1q51pxbi _85i5pxbi _p12flti4 _c71llti4",
17
14
  rootStyles: "_1e0c1o8l _p12f1osq _1yyu1kum _y2mv1w7i",
18
15
  pressableStyles: "_2rko1qi0 _11c8fhey _1rjcze3t _18zrze3t _1e0c116y _bfhksm61 _syazazsu _o5721q9c _kqswh2mm _4cvr1q9y _p12f1osq _4t3i1wug _1bsb1wug _s7n41q9y _9oik1r31 _1bnx8stv _jf4cnqa1"
19
16
  };
@@ -70,7 +67,7 @@ const InlineMessage = ({
70
67
  }, /*#__PURE__*/React.createElement(Popup, {
71
68
  onClose: onCloseDialog,
72
69
  content: () => /*#__PURE__*/React.createElement(Box, {
73
- xcss: cx(styles.contentStyles, fg('add-max-width-and-height-to-inline-message') && styles.heightAndWidthConstraints)
70
+ xcss: styles.contentStyles
74
71
  }, children),
75
72
  isOpen: isOpen,
76
73
  placement: placement,
@@ -7,16 +7,13 @@ import "./index.compiled.css";
7
7
  import * as React from 'react';
8
8
  import { ax, ix } from "@compiled/react/runtime";
9
9
  import { useCallback, useState } from 'react';
10
- import { cx } from '@compiled/react';
11
10
  import { useId } from '@atlaskit/ds-lib/use-id';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
11
  import Popup from '@atlaskit/popup';
14
12
  import { Box, Inline, Pressable, Text } from '@atlaskit/primitives/compiled';
15
13
  import { B300, G200, P200, R300, Y200 } from '@atlaskit/theme/colors';
16
14
  import MessageIcon from '../message-icon';
17
15
  var styles = {
18
- contentStyles: "_bozg1ejb _y4ti1ejb _1q51pxbi _85i5pxbi",
19
- heightAndWidthConstraints: "_1reo1wug _18m91wug _p12flti4 _c71llti4",
16
+ contentStyles: "_1reo1wug _18m91wug _bozg1ejb _y4ti1ejb _1q51pxbi _85i5pxbi _p12flti4 _c71llti4",
20
17
  rootStyles: "_1e0c1o8l _p12f1osq _1yyu1kum _y2mv1w7i",
21
18
  pressableStyles: "_2rko1qi0 _11c8fhey _1rjcze3t _18zrze3t _1e0c116y _bfhksm61 _syazazsu _o5721q9c _kqswh2mm _4cvr1q9y _p12f1osq _4t3i1wug _1bsb1wug _s7n41q9y _9oik1r31 _1bnx8stv _jf4cnqa1"
22
19
  };
@@ -85,7 +82,7 @@ var InlineMessage = function InlineMessage(_ref) {
85
82
  onClose: onCloseDialog,
86
83
  content: function content() {
87
84
  return /*#__PURE__*/React.createElement(Box, {
88
- xcss: cx(styles.contentStyles, fg('add-max-width-and-height-to-inline-message') && styles.heightAndWidthConstraints)
85
+ xcss: styles.contentStyles
89
86
  }, children);
90
87
  },
91
88
  isOpen: isOpen,
@@ -0,0 +1,53 @@
1
+ import path from 'path';
2
+
3
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
4
+
5
+ const documentation: ComponentStructuredContentSource[] = [
6
+ {
7
+ name: 'InlineMessage',
8
+ description: 'In-context notification for more info, warning, error, or confirmation.',
9
+ status: 'general-availability',
10
+ import: {
11
+ name: 'InlineMessage',
12
+ package: '@atlaskit/inline-message',
13
+ type: 'default',
14
+ packagePath: path.resolve(__dirname),
15
+ packageJson: require('./package.json'),
16
+ },
17
+ usageGuidelines: [
18
+ 'Use for in-context notifications: more info, warning, error, confirmation',
19
+ 'Icon/title/secondary can be used to reveal full message in a popup with context/links',
20
+ 'Keep content to a maximum of five lines (truncation is not accessible)',
21
+ 'Use Flag for minimal interaction; Banner for critical/system; Modal when immediate action is required',
22
+ ],
23
+ contentGuidelines: [
24
+ 'Use clear, concise message text',
25
+ 'Provide specific, actionable feedback',
26
+ 'Use appropriate tone for message type',
27
+ 'Keep messages focused and relevant',
28
+ 'Warning: before action, empathy, offer alternative',
29
+ 'Error: explain and next step; use "we" not "you"',
30
+ 'Confirmation: confirm, then get out of the way',
31
+ 'Information: inform, no action needed',
32
+ 'Use clear, concise message text; keep focused and relevant',
33
+ ],
34
+ accessibilityGuidelines: [
35
+ 'Keep to max five lines—truncation is not accessible',
36
+ 'Recommend a title; icon-only is easily missed by screen readers',
37
+ 'Use iconLabel when there is no title or when the icon adds context (e.g. error)',
38
+ 'Ensure message content is announced by screen readers',
39
+ 'Use appropriate message types and colors',
40
+ ],
41
+ examples: [
42
+ {
43
+ name: 'Inline Message',
44
+ description: 'Inline Message example',
45
+ source: path.resolve(__dirname, './examples/ai/inline-message.tsx'),
46
+ },
47
+ ],
48
+ keywords: ['message', 'inline', 'feedback', 'status', 'alert'],
49
+ categories: ['feedback'],
50
+ },
51
+ ];
52
+
53
+ export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "15.5.8",
3
+ "version": "15.6.1",
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/"
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/button": "^23.10.0",
28
28
  "@atlaskit/ds-lib": "^6.0.0",
29
- "@atlaskit/icon": "^32.0.0",
29
+ "@atlaskit/icon": "^33.0.0",
30
30
  "@atlaskit/link": "^3.3.0",
31
31
  "@atlaskit/platform-feature-flags": "^1.1.0",
32
32
  "@atlaskit/popper": "^7.1.0",
@@ -44,11 +44,12 @@
44
44
  "@af/accessibility-testing": "workspace:^",
45
45
  "@af/integration-testing": "workspace:^",
46
46
  "@af/visual-regression": "workspace:^",
47
- "@atlaskit/docs": "^11.6.0",
47
+ "@atlaskit/docs": "^11.7.0",
48
48
  "@atlaskit/heading": "^5.3.0",
49
49
  "@atlaskit/modal-dialog": "^14.11.0",
50
50
  "@atlaskit/section-message": "^8.12.0",
51
51
  "@atlassian/ssr-tests": "workspace:^",
52
+ "@atlassian/structured-docs-types": "workspace:^",
52
53
  "@testing-library/react": "^16.3.0",
53
54
  "@testing-library/user-event": "^14.4.3",
54
55
  "react-dom": "^18.2.0"
@@ -90,9 +91,6 @@
90
91
  "platform-feature-flags": {
91
92
  "dst-a11y__replace-anchor-with-link__design-system-": {
92
93
  "type": "boolean"
93
- },
94
- "add-max-width-and-height-to-inline-message": {
95
- "type": "boolean"
96
94
  }
97
95
  }
98
96
  }