@atlaskit/codemod-cli 0.34.4 → 0.34.6
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 +12 -0
- package/dist/types/main.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/add-comment-for-custom-theme-buttons.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/add-comment-for-overlay-prop.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/generate-link-element.d.ts +2 -2
- package/dist/types/presets/migrate-to-new-buttons/utils/generate-new-button-element.d.ts +3 -3
- package/dist/types/presets/migrate-to-new-buttons/utils/move-icon-value-from-link-button-to-link-children.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/rename-default-button-to-legacy-button.d.ts +1 -1
- package/dist/types-ts4.5/main.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/add-comment-for-custom-theme-buttons.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/add-comment-for-overlay-prop.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/generate-link-element.d.ts +2 -2
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/generate-new-button-element.d.ts +3 -3
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/move-icon-value-from-link-button-to-link-children.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/rename-default-button-to-legacy-button.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/types/main.d.ts
CHANGED
package/dist/types/presets/migrate-to-new-buttons/utils/add-comment-for-custom-theme-buttons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API[
|
|
2
|
+
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API['jscodeshift']) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const modifyLinkAttributes: (element: JSXElement, j: API[
|
|
3
|
-
export declare const generateLinkComponent: (element: JSXElement, j: API[
|
|
2
|
+
export declare const modifyLinkAttributes: (element: JSXElement, j: API['jscodeshift']) => void;
|
|
3
|
+
export declare const generateLinkComponent: (element: JSXElement, j: API['jscodeshift']) => JSXElement | undefined;
|
|
@@ -15,6 +15,6 @@ export declare const getIconElement: (iconAttr: JSXAttribute) => JSXElement | nu
|
|
|
15
15
|
* @param j
|
|
16
16
|
* @param iconRenamed
|
|
17
17
|
*/
|
|
18
|
-
export declare const handleIconAttributes: (element: JSXElement, j: API[
|
|
19
|
-
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API[
|
|
20
|
-
export declare const modifyButtonAttributes: (element: JSXElement, j: API[
|
|
18
|
+
export declare const handleIconAttributes: (element: JSXElement, j: API['jscodeshift'], iconRenamed?: boolean) => void;
|
|
19
|
+
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API['jscodeshift']) => JSXElement;
|
|
20
|
+
export declare const modifyButtonAttributes: (element: JSXElement, j: API['jscodeshift'], hasSpacingNone: boolean) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type ASTPath, type JSXElement, type JSXExpressionContainer } from 'jscodeshift';
|
|
2
|
-
declare const moveIcon: (j: API[
|
|
2
|
+
declare const moveIcon: (j: API['jscodeshift'], path: ASTPath<JSXElement>, iconNode: JSXExpressionContainer | undefined | null, beforeOrAfter: 'iconBefore' | 'iconAfter') => void;
|
|
3
3
|
export default moveIcon;
|
package/dist/types/presets/migrate-to-new-buttons/utils/rename-default-button-to-legacy-button.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, ImportDeclaration, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API[
|
|
2
|
+
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API['jscodeshift']) => void;
|
package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/add-comment-for-overlay-prop.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const modifyLinkAttributes: (element: JSXElement, j: API[
|
|
3
|
-
export declare const generateLinkComponent: (element: JSXElement, j: API[
|
|
2
|
+
export declare const modifyLinkAttributes: (element: JSXElement, j: API['jscodeshift']) => void;
|
|
3
|
+
export declare const generateLinkComponent: (element: JSXElement, j: API['jscodeshift']) => JSXElement | undefined;
|
package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/generate-new-button-element.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export declare const getIconElement: (iconAttr: JSXAttribute) => JSXElement | nu
|
|
|
15
15
|
* @param j
|
|
16
16
|
* @param iconRenamed
|
|
17
17
|
*/
|
|
18
|
-
export declare const handleIconAttributes: (element: JSXElement, j: API[
|
|
19
|
-
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API[
|
|
20
|
-
export declare const modifyButtonAttributes: (element: JSXElement, j: API[
|
|
18
|
+
export declare const handleIconAttributes: (element: JSXElement, j: API['jscodeshift'], iconRenamed?: boolean) => void;
|
|
19
|
+
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API['jscodeshift']) => JSXElement;
|
|
20
|
+
export declare const modifyButtonAttributes: (element: JSXElement, j: API['jscodeshift'], hasSpacingNone: boolean) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type ASTPath, type JSXElement, type JSXExpressionContainer } from 'jscodeshift';
|
|
2
|
-
declare const moveIcon: (j: API[
|
|
2
|
+
declare const moveIcon: (j: API['jscodeshift'], path: ASTPath<JSXElement>, iconNode: JSXExpressionContainer | undefined | null, beforeOrAfter: 'iconBefore' | 'iconAfter') => void;
|
|
3
3
|
export default moveIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, ImportDeclaration, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/codemod-cli",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.6",
|
|
4
4
|
"description": "A cli for distributing codemods for atlassian-frontend components and services",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"bin": "./bin/codemod-cli.js",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
32
|
-
"@atlaskit/icon": "^
|
|
33
|
-
"@atlaskit/icon-lab": "^5.
|
|
32
|
+
"@atlaskit/icon": "^32.0.0",
|
|
33
|
+
"@atlaskit/icon-lab": "^5.17.0",
|
|
34
34
|
"@atlaskit/tokens": "^11.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@codeshift/utils": "^0.2.4",
|