@atlaskit/inline-message 11.5.2 → 11.5.4

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,17 @@
1
1
  # @atlaskit/inline-message
2
2
 
3
+ ## 11.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`56b444b56a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56b444b56a8) - Fix a bug where text descenders were cut off at high zoom levels on Windows
8
+
9
+ ## 11.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
14
+
3
15
  ## 11.5.2
4
16
 
5
17
  ### Patch Changes
@@ -32,9 +32,15 @@ var titleStyles = (0, _react2.css)({
32
32
  var textStyles = (0, _react2.css)({
33
33
  padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)"),
34
34
  color: "var(".concat(_constants.VAR_SECONDARY_TEXT_COLOR, ")"),
35
- overflow: 'hidden',
36
35
  textOverflow: 'ellipsis',
37
- whiteSpace: 'nowrap'
36
+ whiteSpace: 'nowrap',
37
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
38
+ '@supports not (overflow-x: clip)': {
39
+ overflow: 'hidden'
40
+ },
41
+ '@supports (overflow-x: clip)': {
42
+ overflowX: 'clip'
43
+ }
38
44
  });
39
45
  var rootStyles = (0, _react2.css)({
40
46
  display: 'inline-block',
@@ -43,17 +49,17 @@ var rootStyles = (0, _react2.css)({
43
49
  outline: '1px solid'
44
50
  },
45
51
  '&:hover': {
46
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
52
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
47
53
  '[data-ds--inline-message--icon]': {
48
54
  // Legacy style
49
55
  color: 'var(--icon-accent-color)'
50
56
  },
51
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
57
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
52
58
  '[data-ds--inline-message--button]': {
53
59
  textDecoration: 'underline'
54
60
  }
55
61
  },
56
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
62
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
57
63
  '[data-ds--inline-message--button]': {
58
64
  '&:active [data-ds--inline-message--secondary-text]': {
59
65
  color: "var(--ds-text-subtle, ".concat("var(".concat(_constants.VAR_SECONDARY_TEXT_COLOR, ")"), ")")
@@ -19,9 +19,15 @@ const titleStyles = css({
19
19
  const textStyles = css({
20
20
  padding: `${"var(--ds-space-0, 0px)"} ${"var(--ds-space-050, 4px)"}`,
21
21
  color: `var(${VAR_SECONDARY_TEXT_COLOR})`,
22
- overflow: 'hidden',
23
22
  textOverflow: 'ellipsis',
24
- whiteSpace: 'nowrap'
23
+ whiteSpace: 'nowrap',
24
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
25
+ '@supports not (overflow-x: clip)': {
26
+ overflow: 'hidden'
27
+ },
28
+ '@supports (overflow-x: clip)': {
29
+ overflowX: 'clip'
30
+ }
25
31
  });
26
32
  const rootStyles = css({
27
33
  display: 'inline-block',
@@ -30,17 +36,17 @@ const rootStyles = css({
30
36
  outline: '1px solid'
31
37
  },
32
38
  '&:hover': {
33
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
39
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
34
40
  '[data-ds--inline-message--icon]': {
35
41
  // Legacy style
36
42
  color: 'var(--icon-accent-color)'
37
43
  },
38
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
44
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
39
45
  '[data-ds--inline-message--button]': {
40
46
  textDecoration: 'underline'
41
47
  }
42
48
  },
43
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
49
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
44
50
  '[data-ds--inline-message--button]': {
45
51
  '&:active [data-ds--inline-message--secondary-text]': {
46
52
  color: `var(--ds-text-subtle, ${`var(${VAR_SECONDARY_TEXT_COLOR})`})`
@@ -21,9 +21,15 @@ var titleStyles = css({
21
21
  var textStyles = css({
22
22
  padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)"),
23
23
  color: "var(".concat(VAR_SECONDARY_TEXT_COLOR, ")"),
24
- overflow: 'hidden',
25
24
  textOverflow: 'ellipsis',
26
- whiteSpace: 'nowrap'
25
+ whiteSpace: 'nowrap',
26
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
27
+ '@supports not (overflow-x: clip)': {
28
+ overflow: 'hidden'
29
+ },
30
+ '@supports (overflow-x: clip)': {
31
+ overflowX: 'clip'
32
+ }
27
33
  });
28
34
  var rootStyles = css({
29
35
  display: 'inline-block',
@@ -32,17 +38,17 @@ var rootStyles = css({
32
38
  outline: '1px solid'
33
39
  },
34
40
  '&:hover': {
35
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
41
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
36
42
  '[data-ds--inline-message--icon]': {
37
43
  // Legacy style
38
44
  color: 'var(--icon-accent-color)'
39
45
  },
40
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
46
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
41
47
  '[data-ds--inline-message--button]': {
42
48
  textDecoration: 'underline'
43
49
  }
44
50
  },
45
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
51
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
46
52
  '[data-ds--inline-message--button]': {
47
53
  '&:active [data-ds--inline-message--secondary-text]': {
48
54
  color: "var(--ds-text-subtle, ".concat("var(".concat(VAR_SECONDARY_TEXT_COLOR, ")"), ")")
@@ -31,15 +31,15 @@ interface InlineMessageProps {
31
31
  */
32
32
  type?: IconAppearance;
33
33
  /**
34
- A unique string that appears as a data attribute, `data-testid`,
35
- in the rendered code. It is provided to serve as a hook for automated tests.
36
-
37
- The value of `testId` is attached to the different sub-components in Inline Message:
38
- - `testId`: the top-level inline message component
39
- - `testId--inline-dialog`: the content of the message
40
- - `testId--button`: the button element that opens the dialog on press
41
- - `testId--title`: the title of the message
42
- - `testId--text`: the text of the message
34
+ * A unique string that appears as a data attribute, `data-testid`,
35
+ * in the rendered code. It is provided to serve as a hook for automated tests.
36
+ *
37
+ * The value of `testId` is attached to the different sub-components in Inline Message:
38
+ * - `testId`: the top-level inline message component
39
+ * - `testId--inline-dialog`: the content of the message
40
+ * - `testId--button`: the button element that opens the dialog on press
41
+ * - `testId--title`: the title of the message
42
+ * - `testId--text`: the text of the message
43
43
  */
44
44
  testId?: string;
45
45
  /**
@@ -31,15 +31,15 @@ interface InlineMessageProps {
31
31
  */
32
32
  type?: IconAppearance;
33
33
  /**
34
- A unique string that appears as a data attribute, `data-testid`,
35
- in the rendered code. It is provided to serve as a hook for automated tests.
36
-
37
- The value of `testId` is attached to the different sub-components in Inline Message:
38
- - `testId`: the top-level inline message component
39
- - `testId--inline-dialog`: the content of the message
40
- - `testId--button`: the button element that opens the dialog on press
41
- - `testId--title`: the title of the message
42
- - `testId--text`: the text of the message
34
+ * A unique string that appears as a data attribute, `data-testid`,
35
+ * in the rendered code. It is provided to serve as a hook for automated tests.
36
+ *
37
+ * The value of `testId` is attached to the different sub-components in Inline Message:
38
+ * - `testId`: the top-level inline message component
39
+ * - `testId--inline-dialog`: the content of the message
40
+ * - `testId--button`: the button element that opens the dialog on press
41
+ * - `testId--title`: the title of the message
42
+ * - `testId--text`: the text of the message
43
43
  */
44
44
  testId?: string;
45
45
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "11.5.2",
3
+ "version": "11.5.4",
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/"
@@ -12,31 +12,23 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.tsx",
25
17
  "atlassian": {
26
18
  "team": "Design System Team",
27
19
  "deprecatedAutoEntryPoints": true,
28
- "releaseModel": "scheduled",
20
+ "releaseModel": "continuous",
29
21
  "website": {
30
22
  "name": "Inline message",
31
23
  "category": "Components"
32
24
  }
33
25
  },
34
26
  "dependencies": {
35
- "@atlaskit/button": "^16.7.0",
27
+ "@atlaskit/button": "^16.9.0",
36
28
  "@atlaskit/icon": "^21.12.0",
37
29
  "@atlaskit/inline-dialog": "^13.6.0",
38
30
  "@atlaskit/theme": "^12.5.0",
39
- "@atlaskit/tokens": "^1.4.0",
31
+ "@atlaskit/tokens": "^1.14.0",
40
32
  "@babel/runtime": "^7.0.0",
41
33
  "@emotion/react": "^11.7.1"
42
34
  },
@@ -44,9 +36,9 @@
44
36
  "react": "^16.8.0"
45
37
  },
46
38
  "devDependencies": {
47
- "@atlaskit/docs": "*",
39
+ "@af/accessibility-testing": "*",
40
+ "@af/visual-regression": "*",
48
41
  "@atlaskit/ds-lib": "^2.2.0",
49
- "@atlaskit/section-message": "^6.4.0",
50
42
  "@atlaskit/ssr": "*",
51
43
  "@atlaskit/visual-regression": "*",
52
44
  "@atlaskit/webdriver-runner": "*",
@@ -82,6 +74,14 @@
82
74
  "deprecation": "no-deprecated-imports"
83
75
  }
84
76
  },
77
+ "typesVersions": {
78
+ ">=4.5 <4.9": {
79
+ "*": [
80
+ "dist/types-ts4.5/*",
81
+ "dist/types-ts4.5/index.d.ts"
82
+ ]
83
+ }
84
+ },
85
85
  "homepage": "https://atlassian.design/components/inline-message/",
86
86
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
87
87
  }
@@ -0,0 +1,35 @@
1
+ ## API Report File for "@atlaskit/inline-message"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { FC } from 'react';
8
+ import { ReactNode } from 'react';
9
+
10
+ // @public (undocumented)
11
+ type IconAppearance = 'confirmation' | 'connectivity' | 'error' | 'info' | 'warning';
12
+
13
+ // @public (undocumented)
14
+ type InlineDialogPlacement = 'auto' | 'auto-end' | 'auto-start' | 'bottom' | 'bottom-end' | 'bottom-start' | 'left' | 'left-end' | 'left-start' | 'right' | 'right-end' | 'right-start' | 'top' | 'top-end' | 'top-start';
15
+
16
+ // @public
17
+ const InlineMessage: FC<InlineMessageProps>;
18
+ export default InlineMessage;
19
+
20
+ // @public (undocumented)
21
+ interface InlineMessageProps {
22
+ appearance?: IconAppearance;
23
+ children?: ReactNode;
24
+ iconLabel?: string;
25
+ placement?: InlineDialogPlacement;
26
+ secondaryText?: ReactNode;
27
+ testId?: string;
28
+ title?: ReactNode;
29
+ // @deprecated (undocumented)
30
+ type?: IconAppearance;
31
+ }
32
+
33
+ // (No @packageDocumentation comment for this package)
34
+
35
+ ```
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/inline-message",
3
- "version": "11.5.2",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/inline-message",
3
- "version": "11.5.2",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/inline-message",
3
- "version": "11.5.2",
4
- "sideEffects": false
5
- }