@atlaskit/inline-message 11.5.1 → 11.5.3

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.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`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.
8
+
9
+ ## 11.5.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
14
+
3
15
  ## 11.5.1
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "11.5.1",
3
+ "version": "11.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "11.5.1",
3
+ "version": "11.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "11.5.1",
3
+ "version": "11.5.3",
4
4
  "sideEffects": false
5
5
  }
@@ -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
  /**
@@ -0,0 +1,73 @@
1
+ /** @jsx jsx */
2
+ import { FC, ReactNode } from 'react';
3
+ import type { IconAppearance, InlineDialogPlacement } from '../../types';
4
+ interface InlineMessageProps {
5
+ /**
6
+ * The elements to be displayed by the inline dialog.
7
+ */
8
+ children?: ReactNode;
9
+ /**
10
+ * The placement to be passed to the inline dialog. Determines where around
11
+ * the text the dialog is displayed.
12
+ */
13
+ placement?: InlineDialogPlacement;
14
+ /**
15
+ * Text to display second.
16
+ */
17
+ secondaryText?: ReactNode;
18
+ /**
19
+ * Text to display first, bolded for emphasis.
20
+ */
21
+ title?: ReactNode;
22
+ /**
23
+ * Set the icon to be used before the title. Options are: connectivity,
24
+ * confirmation, info, warning, and error.
25
+ */
26
+ appearance?: IconAppearance;
27
+ /**
28
+ * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-162 Internal documentation for deprecation (no external access)} Please avoid using this prop as we intend to remove the prop completely in a future release. See DSP-5207 for more information.
29
+ * Instead use the 'appearance' prop.
30
+ * Set the icon to be used before the title.
31
+ */
32
+ type?: IconAppearance;
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
43
+ */
44
+ testId?: string;
45
+ /**
46
+ * Text to be used as label for the button icon. Can be used to provide useful information for users with screen readers when there is no title and/or secondaryText
47
+ */
48
+ iconLabel?: string;
49
+ }
50
+ /**
51
+ * __Inline message__
52
+ *
53
+ * An inline message lets users know when important information is available or when an action is required.
54
+ *
55
+ * - [Examples](https://atlassian.design/components/inline-message/examples)
56
+ * - [Code](https://atlassian.design/components/inline-message/code)
57
+ * - [Usage](https://atlassian.design/components/inline-message/usage)
58
+ *
59
+ * @example
60
+ *
61
+ * ```jsx
62
+ * const Component = () => (
63
+ * <InlineMessage
64
+ * title="Inline Message Title Example"
65
+ * secondaryText="Secondary Text"
66
+ * >
67
+ * <p>Some text that would be inside the open dialog and otherwise hidden.</p>
68
+ * </InlineMessage>
69
+ * );
70
+ * ```
71
+ */
72
+ declare const InlineMessage: FC<InlineMessageProps>;
73
+ export default InlineMessage;
@@ -0,0 +1,16 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ import type { IconAppearance } from '../../types';
4
+ interface MessageIconProps {
5
+ appearance: IconAppearance;
6
+ isOpen: boolean;
7
+ label?: string;
8
+ }
9
+ /**
10
+ * __Selected icon__
11
+ *
12
+ * The selected icon is used as the primary interactive element for the dialog.
13
+ * Can be used with or without supporting text.
14
+ */
15
+ declare const SelectedIcon: FC<MessageIconProps>;
16
+ export default SelectedIcon;
@@ -0,0 +1,3 @@
1
+ import type { IconAppearanceMap } from './types';
2
+ export declare const typesMapping: IconAppearanceMap;
3
+ export declare const VAR_SECONDARY_TEXT_COLOR = "--secondary-text-color";
@@ -0,0 +1 @@
1
+ export { default } from './components/inline-message';
@@ -0,0 +1,9 @@
1
+ import { ComponentType } from 'react';
2
+ import type { GlyphProps } from '@atlaskit/icon';
3
+ export interface Icon {
4
+ defaultLabel: string;
5
+ icon: ComponentType<GlyphProps>;
6
+ }
7
+ export type IconAppearanceMap = Record<IconAppearance, Icon>;
8
+ export type IconAppearance = 'connectivity' | 'confirmation' | 'info' | 'warning' | 'error';
9
+ export type InlineDialogPlacement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "11.5.1",
3
+ "version": "11.5.3",
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/"
@@ -25,18 +25,18 @@
25
25
  "atlassian": {
26
26
  "team": "Design System Team",
27
27
  "deprecatedAutoEntryPoints": true,
28
- "releaseModel": "scheduled",
28
+ "releaseModel": "continuous",
29
29
  "website": {
30
30
  "name": "Inline message",
31
31
  "category": "Components"
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/button": "^16.7.0",
35
+ "@atlaskit/button": "^16.8.0",
36
36
  "@atlaskit/icon": "^21.12.0",
37
37
  "@atlaskit/inline-dialog": "^13.6.0",
38
38
  "@atlaskit/theme": "^12.5.0",
39
- "@atlaskit/tokens": "^1.4.0",
39
+ "@atlaskit/tokens": "^1.11.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "@emotion/react": "^11.7.1"
42
42
  },
@@ -44,9 +44,8 @@
44
44
  "react": "^16.8.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@atlaskit/docs": "*",
47
+ "@af/accessibility-testing": "*",
48
48
  "@atlaskit/ds-lib": "^2.2.0",
49
- "@atlaskit/section-message": "^6.4.0",
50
49
  "@atlaskit/ssr": "*",
51
50
  "@atlaskit/visual-regression": "*",
52
51
  "@atlaskit/webdriver-runner": "*",