@atlaskit/section-message 6.5.2 → 6.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 +13 -1
- package/README.md +2 -1
- package/__perf__/default.tsx +1 -3
- package/__perf__/with-actions.tsx +18 -18
- package/__perf__/without-actions.tsx +8 -8
- package/codemods/6.0.0-lite-mode.tsx +5 -8
- package/codemods/__tests__/6.0.0-lite-mode.tsx +49 -49
- package/codemods/__tests__/change-appearance-prop.tsx +63 -63
- package/codemods/__tests__/map-actions-prop.tsx +96 -96
- package/codemods/internal/change-appearance-prop.tsx +75 -95
- package/codemods/internal/constants.tsx +4 -4
- package/codemods/internal/map-actions-prop.tsx +163 -190
- package/codemods/internal/utils.tsx +45 -61
- package/dist/types/entry-points/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +94 -94
- package/report.api.md +16 -23
package/package.json
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
2
|
+
"name": "@atlaskit/section-message",
|
|
3
|
+
"version": "6.5.4",
|
|
4
|
+
"description": "A section message is used to alert users to a particular section of the screen.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
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
|
+
"sideEffects": false,
|
|
24
|
+
"atlaskit:src": "src/index.tsx",
|
|
25
|
+
"atlassian": {
|
|
26
|
+
"team": "Design System Team",
|
|
27
|
+
"releaseModel": "continuous",
|
|
28
|
+
"website": {
|
|
29
|
+
"name": "Section message",
|
|
30
|
+
"category": "Components"
|
|
31
|
+
},
|
|
32
|
+
"productPushConsumption": [
|
|
33
|
+
"jira"
|
|
34
|
+
],
|
|
35
|
+
"runReact18": true
|
|
36
|
+
},
|
|
37
|
+
"af:exports": {
|
|
38
|
+
"./section-message": "./src/entry-points/section-message.tsx",
|
|
39
|
+
"./section-message-action": "./src/entry-points/section-message-action.tsx",
|
|
40
|
+
"./types": "./src/entry-points/types.tsx",
|
|
41
|
+
".": "./src/index.tsx"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@atlaskit/button": "^17.22.0",
|
|
45
|
+
"@atlaskit/codemod-utils": "^4.2.0",
|
|
46
|
+
"@atlaskit/heading": "^2.4.0",
|
|
47
|
+
"@atlaskit/icon": "^22.4.0",
|
|
48
|
+
"@atlaskit/primitives": "^8.0.0",
|
|
49
|
+
"@atlaskit/theme": "^12.10.0",
|
|
50
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
51
|
+
"@babel/runtime": "^7.0.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@af/accessibility-testing": "*",
|
|
58
|
+
"@af/integration-testing": "*",
|
|
59
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
60
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
61
|
+
"@atlaskit/ssr": "*",
|
|
62
|
+
"@atlaskit/visual-regression": "*",
|
|
63
|
+
"@testing-library/react": "^12.1.5",
|
|
64
|
+
"exenv": "^1.2.2",
|
|
65
|
+
"jest-in-case": "^1.0.2",
|
|
66
|
+
"jscodeshift": "^0.13.0",
|
|
67
|
+
"react-dom": "^16.8.0",
|
|
68
|
+
"react-test-renderer": "^16.8.0",
|
|
69
|
+
"storybook-addon-performance": "^0.16.0",
|
|
70
|
+
"typescript": "~5.4.2"
|
|
71
|
+
},
|
|
72
|
+
"techstack": {
|
|
73
|
+
"@atlassian/frontend": {
|
|
74
|
+
"import-structure": "atlassian-conventions"
|
|
75
|
+
},
|
|
76
|
+
"@repo/internal": {
|
|
77
|
+
"design-system": "v1",
|
|
78
|
+
"dom-events": "use-bind-event-listener",
|
|
79
|
+
"ui-components": [
|
|
80
|
+
"primitives",
|
|
81
|
+
"lite-mode"
|
|
82
|
+
],
|
|
83
|
+
"analytics": "analytics-next",
|
|
84
|
+
"styling": [
|
|
85
|
+
"emotion"
|
|
86
|
+
],
|
|
87
|
+
"design-tokens": [
|
|
88
|
+
"color",
|
|
89
|
+
"spacing"
|
|
90
|
+
],
|
|
91
|
+
"deprecation": "no-deprecated-imports"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"homepage": "https://atlassian.design/components/section-message/"
|
|
95
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/section-message"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -20,16 +21,11 @@ import type { ReactElement } from 'react';
|
|
|
20
21
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
21
22
|
|
|
22
23
|
// @public
|
|
23
|
-
export type Appearance =
|
|
24
|
-
| 'discovery'
|
|
25
|
-
| 'error'
|
|
26
|
-
| 'information'
|
|
27
|
-
| 'success'
|
|
28
|
-
| 'warning';
|
|
24
|
+
export type Appearance = 'discovery' | 'error' | 'information' | 'success' | 'warning';
|
|
29
25
|
|
|
30
26
|
// @public
|
|
31
27
|
const SectionMessage: React_2.ForwardRefExoticComponent<
|
|
32
|
-
|
|
28
|
+
SectionMessageProps & React_2.RefAttributes<HTMLElement>
|
|
33
29
|
>;
|
|
34
30
|
export default SectionMessage;
|
|
35
31
|
|
|
@@ -38,24 +34,21 @@ export const SectionMessageAction: React_2.NamedExoticComponent<SectionMessageAc
|
|
|
38
34
|
|
|
39
35
|
// @public (undocumented)
|
|
40
36
|
export interface SectionMessageActionProps {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
analyticsEvent: UIAnalyticsEvent,
|
|
47
|
-
) => void;
|
|
48
|
-
testId?: string;
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
href?: string;
|
|
39
|
+
linkComponent?: React.ComponentType<any>;
|
|
40
|
+
onClick?: (e: React.MouseEvent<HTMLElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
41
|
+
testId?: string;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
44
|
// @public (undocumented)
|
|
52
45
|
export interface SectionMessageProps {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
actions?: ReactElement | ReactElement<SectionMessageActionProps>[];
|
|
47
|
+
appearance?: Appearance;
|
|
48
|
+
children: React.ReactNode;
|
|
49
|
+
icon?: React.ElementType;
|
|
50
|
+
testId?: string;
|
|
51
|
+
title?: string;
|
|
59
52
|
}
|
|
60
53
|
|
|
61
54
|
// (No @packageDocumentation comment for this package)
|
|
@@ -69,7 +62,7 @@ export interface SectionMessageProps {
|
|
|
69
62
|
|
|
70
63
|
```json
|
|
71
64
|
{
|
|
72
|
-
|
|
65
|
+
"react": "^16.8.0"
|
|
73
66
|
}
|
|
74
67
|
```
|
|
75
68
|
|