@atlaskit/codemod-cli 0.34.5 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/codemod-cli
2
2
 
3
+ ## 0.34.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 0.34.5
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { type Default, type Flags } from './types';
2
2
  declare const defaultFlags: {
3
- parser: "babel";
3
+ parser: 'babel';
4
4
  extensions: string;
5
5
  ignorePattern: string;
6
6
  logger: Console;
@@ -1,2 +1,2 @@
1
1
  import type { API, Collection } from 'jscodeshift';
2
- export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API["jscodeshift"]) => void;
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["jscodeshift"]) => void;
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["jscodeshift"]) => void;
3
- export declare const generateLinkComponent: (element: JSXElement, j: API["jscodeshift"]) => JSXElement | undefined;
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["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;
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["jscodeshift"], path: ASTPath<JSXElement>, iconNode: JSXExpressionContainer | undefined | null, beforeOrAfter: "iconBefore" | "iconAfter") => void;
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["jscodeshift"]) => void;
2
+ export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API['jscodeshift']) => void;
@@ -1,6 +1,6 @@
1
1
  import { type Default, type Flags } from './types';
2
2
  declare const defaultFlags: {
3
- parser: "babel";
3
+ parser: 'babel';
4
4
  extensions: string;
5
5
  ignorePattern: string;
6
6
  logger: Console;
@@ -1,2 +1,2 @@
1
1
  import type { API, Collection } from 'jscodeshift';
2
- export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API["jscodeshift"]) => void;
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["jscodeshift"]) => void;
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["jscodeshift"]) => void;
3
- export declare const generateLinkComponent: (element: JSXElement, j: API["jscodeshift"]) => JSXElement | undefined;
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["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;
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["jscodeshift"], path: ASTPath<JSXElement>, iconNode: JSXExpressionContainer | undefined | null, beforeOrAfter: "iconBefore" | "iconAfter") => void;
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["jscodeshift"]) => void;
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.5",
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": "^31.0.0",
33
- "@atlaskit/icon-lab": "^5.16.0",
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",