@atlaskit/inline-message 15.6.14 → 16.0.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
+ ## 16.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
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
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 15.6.14
4
30
 
5
31
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/constants.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/constants.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/constants.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-message",
3
- "version": "15.6.14",
3
+ "version": "16.0.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/"
@@ -31,16 +31,16 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/button": "^23.11.0",
35
- "@atlaskit/ds-lib": "^7.0.0",
36
- "@atlaskit/icon": "^35.1.0",
37
- "@atlaskit/link": "^3.4.0",
38
- "@atlaskit/platform-feature-flags": "^1.1.0",
39
- "@atlaskit/popper": "^7.2.0",
40
- "@atlaskit/popup": "^4.21.0",
41
- "@atlaskit/primitives": "^19.0.0",
42
- "@atlaskit/theme": "^25.0.0",
43
- "@atlaskit/tokens": "^13.0.0",
34
+ "@atlaskit/button": "^24.0.0",
35
+ "@atlaskit/ds-lib": "^8.0.0",
36
+ "@atlaskit/icon": "^36.0.0",
37
+ "@atlaskit/link": "^4.0.0",
38
+ "@atlaskit/platform-feature-flags": "^2.0.0",
39
+ "@atlaskit/popper": "^8.0.0",
40
+ "@atlaskit/popup": "^5.0.0",
41
+ "@atlaskit/primitives": "^20.0.0",
42
+ "@atlaskit/theme": "^26.0.0",
43
+ "@atlaskit/tokens": "^14.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@compiled/react": "^0.20.0"
46
46
  },
@@ -51,10 +51,10 @@
51
51
  "@af/accessibility-testing": "workspace:^",
52
52
  "@af/integration-testing": "workspace:^",
53
53
  "@af/visual-regression": "workspace:^",
54
- "@atlaskit/docs": "^11.8.0",
55
- "@atlaskit/heading": "^5.4.0",
56
- "@atlaskit/modal-dialog": "^15.2.0",
57
- "@atlaskit/section-message": "^8.13.0",
54
+ "@atlaskit/docs": "^12.0.0",
55
+ "@atlaskit/heading": "^6.0.0",
56
+ "@atlaskit/modal-dialog": "^16.0.0",
57
+ "@atlaskit/section-message": "^9.0.0",
58
58
  "@atlassian/react-compiler-gating": "workspace:^",
59
59
  "@atlassian/ssr-tests": "workspace:^",
60
60
  "@atlassian/structured-docs-types": "workspace:^",
@@ -88,14 +88,6 @@
88
88
  "deprecation": "no-deprecated-imports"
89
89
  }
90
90
  },
91
- "typesVersions": {
92
- ">=4.5 <4.9": {
93
- "*": [
94
- "dist/types-ts4.5/*",
95
- "dist/types-ts4.5/index.d.ts"
96
- ]
97
- }
98
- },
99
91
  "homepage": "https://atlassian.design/components/inline-message/",
100
92
  "platform-feature-flags": {
101
93
  "platform-dst-motion-uplift-popup": {
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/types.d.ts"
17
10
  }
@@ -1,75 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type FC, type ReactNode } from 'react';
6
- import { type PopupProps } from '@atlaskit/popup';
7
- import type { IconAppearance, IconSpacing, PopupPlacement } from '../../types';
8
- interface InlineMessageProps extends Pick<PopupProps, 'fallbackPlacements'> {
9
- /**
10
- * The elements to be displayed by the popup.
11
- */
12
- children?: ReactNode;
13
- /**
14
- * The placement to be passed to the popup. Determines where around
15
- * the text the dialog is displayed.
16
- */
17
- placement?: PopupPlacement;
18
- /**
19
- * Text to display second.
20
- */
21
- secondaryText?: ReactNode;
22
- /**
23
- * Text to display first, bolded for emphasis.
24
- */
25
- title?: ReactNode;
26
- /**
27
- * Set the icon to be used before the title. Options are: connectivity,
28
- * confirmation, info, warning, and error.
29
- */
30
- appearance?: IconAppearance;
31
- /**
32
- * The spacing of the underlying icon button. Options are: spacious and compact.
33
- */
34
- spacing?: IconSpacing;
35
- /**
36
- * A unique string that appears as a data attribute, `data-testid`,
37
- * in the rendered code. It is provided to serve as a hook for automated tests.
38
- *
39
- * The value of `testId` is attached to the different sub-components in Inline Message:
40
- * - `testId`: the top-level inline message component
41
- * - `testId--popup`: the content of the message
42
- * - `testId--button`: the button element that opens the dialog on press
43
- * - `testId--title`: the title of the message
44
- * - `testId--text`: the text of the message
45
- */
46
- testId?: string;
47
- /**
48
- * Text to be used as the label for the button icon. You must use this to provide information for people who use assistive technology when there is no title and/or secondaryText.
49
- */
50
- iconLabel?: string;
51
- }
52
- /**
53
- * __Inline message__
54
- *
55
- * An inline message lets users know when important information is available or when an action is required.
56
- *
57
- * - [Examples](https://atlassian.design/components/inline-message/examples)
58
- * - [Code](https://atlassian.design/components/inline-message/code)
59
- * - [Usage](https://atlassian.design/components/inline-message/usage)
60
- *
61
- * @example
62
- *
63
- * ```jsx
64
- * const Component = () => (
65
- * <InlineMessage
66
- * title="Inline Message Title Example"
67
- * secondaryText="Secondary Text"
68
- * >
69
- * <p>Some text that would be inside the open dialog and otherwise hidden.</p>
70
- * </InlineMessage>
71
- * );
72
- * ```
73
- */
74
- declare const InlineMessage: FC<InlineMessageProps>;
75
- export default InlineMessage;
@@ -1,20 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { FC } from 'react';
6
- import type { IconAppearance, IconSpacing } from '../../types';
7
- interface MessageIconProps {
8
- appearance: IconAppearance;
9
- isOpen: boolean;
10
- label?: string;
11
- spacing: IconSpacing;
12
- }
13
- /**
14
- * __Selected icon__
15
- *
16
- * The selected icon is used as the primary interactive element for the dialog.
17
- * Can be used with or without supporting text.
18
- */
19
- declare const SelectedIcon: FC<MessageIconProps>;
20
- export default SelectedIcon;
@@ -1,2 +0,0 @@
1
- import type { IconAppearanceMap } from './types';
2
- export declare const typesMapping: IconAppearanceMap;
@@ -1 +0,0 @@
1
- export { default } from './components/inline-message';
@@ -1,10 +0,0 @@
1
- import { type ComponentType } from 'react';
2
- import type { NewCoreIconProps } from '@atlaskit/icon';
3
- export interface Icon {
4
- defaultLabel: string;
5
- icon: ComponentType<NewCoreIconProps>;
6
- }
7
- export type IconAppearanceMap = Record<IconAppearance, Icon>;
8
- export type IconAppearance = 'connectivity' | 'confirmation' | 'info' | 'warning' | 'error';
9
- export type IconSpacing = 'spacious' | 'compact';
10
- export type { Placement as PopupPlacement } from '@atlaskit/popper';