@atlaskit/section-message 6.1.0 → 6.1.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 +25 -0
- package/codemods/internal/map-actions-prop.ts +30 -23
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/section-message
|
|
2
2
|
|
|
3
|
+
## 6.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 6.1.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 6.1.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`3f6e98f8d0d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f6e98f8d0d) - Removes styled-components as a dev-dep
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 6.1.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
@@ -119,13 +119,13 @@ export const mapActionsProp = (
|
|
|
119
119
|
? `Atlaskit${SECTION_MESSAGE_ACTION_COMPONENT_NAME}`
|
|
120
120
|
: SECTION_MESSAGE_ACTION_COMPONENT_NAME;
|
|
121
121
|
|
|
122
|
-
let actionsAttributes =
|
|
122
|
+
let actionsAttributes: Collection<JSXAttribute> | null = null;
|
|
123
123
|
|
|
124
124
|
source
|
|
125
125
|
.findJSXElements(
|
|
126
126
|
sectionMessageDefaultSpecifierName || sectionMessageDynamicImportName,
|
|
127
127
|
)
|
|
128
|
-
.forEach((element
|
|
128
|
+
.forEach((element) => {
|
|
129
129
|
const linkComponentAttributeValue = transferLinkComponentProp(j, element);
|
|
130
130
|
actionsAttributes = getJSXAttributesByName(j, element, ACTIONS_PROP_NAME);
|
|
131
131
|
|
|
@@ -185,26 +185,33 @@ export const mapActionsProp = (
|
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
if (actionsAttributes && actionsAttributes.length > 0) {
|
|
190
|
+
if (sectionMessageDefaultSpecifierName) {
|
|
191
|
+
addSectionMessageActionImportSpecifier(
|
|
192
|
+
j,
|
|
193
|
+
source,
|
|
194
|
+
sectionMessageActionName,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (sectionMessageDynamicImportName) {
|
|
199
|
+
addSectionMessageActionDynamicImport(
|
|
200
|
+
j,
|
|
201
|
+
source.find(j.VariableDeclaration).filter((variableDeclarationPath) => {
|
|
202
|
+
return (
|
|
203
|
+
j(variableDeclarationPath)
|
|
204
|
+
.find(j.VariableDeclarator)
|
|
205
|
+
.filter(
|
|
206
|
+
(variableDeclaratorPath) =>
|
|
207
|
+
variableDeclaratorPath.node.id.type === 'Identifier' &&
|
|
208
|
+
variableDeclaratorPath.node.id.name ===
|
|
209
|
+
sectionMessageDynamicImportName,
|
|
210
|
+
).length > 0
|
|
211
|
+
);
|
|
212
|
+
}),
|
|
213
|
+
sectionMessageActionName,
|
|
214
|
+
);
|
|
215
|
+
}
|
|
209
216
|
}
|
|
210
217
|
};
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/section-message",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.4",
|
|
4
4
|
"description": "A section message is used to alert users to a particular section of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/button": "^16.1.0",
|
|
33
|
-
"@atlaskit/codemod-utils": "^3.
|
|
34
|
-
"@atlaskit/icon": "^21.
|
|
35
|
-
"@atlaskit/theme": "^
|
|
36
|
-
"@atlaskit/tokens": "^0.
|
|
33
|
+
"@atlaskit/codemod-utils": "^3.4.0",
|
|
34
|
+
"@atlaskit/icon": "^21.9.0",
|
|
35
|
+
"@atlaskit/theme": "^12.0.0",
|
|
36
|
+
"@atlaskit/tokens": "^0.3.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"@emotion/core": "^10.0.9"
|
|
39
39
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/build-utils": "*",
|
|
46
46
|
"@atlaskit/code": "^14.0.0",
|
|
47
47
|
"@atlaskit/docs": "*",
|
|
48
|
-
"@atlaskit/range": "^5.0
|
|
48
|
+
"@atlaskit/range": "^5.1.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
50
|
"@atlaskit/visual-regression": "*",
|
|
51
51
|
"@atlaskit/webdriver-runner": "*",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"react-dom": "^16.8.0",
|
|
58
58
|
"react-test-renderer": "^16.8.0",
|
|
59
59
|
"storybook-addon-performance": "^0.16.0",
|
|
60
|
-
"styled-components": "^3.2.6",
|
|
61
60
|
"typescript": "3.9.6"
|
|
62
61
|
},
|
|
63
62
|
"techstack": {
|