@atlaskit/radio 8.4.3 → 8.4.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/radio
2
2
 
3
+ ## 8.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 8.4.3
4
10
 
5
11
  ### Patch Changes
@@ -1,15 +1,11 @@
1
1
  import { createRenameFuncFor } from '../utils';
2
2
 
3
- export const migrateRadioAriaLabelledby: (j: import("jscodeshift/src/core").JSCodeshift, source: import("jscodeshift/src/Collection").Collection<Node>) => void = createRenameFuncFor(
4
- '@atlaskit/radio',
5
- 'Radio',
6
- 'aria-labelledby',
7
- 'labelId',
8
- );
3
+ export const migrateRadioAriaLabelledby: (
4
+ j: import('jscodeshift/src/core').JSCodeshift,
5
+ source: import('jscodeshift/src/Collection').Collection<Node>,
6
+ ) => void = createRenameFuncFor('@atlaskit/radio', 'Radio', 'aria-labelledby', 'labelId');
9
7
 
10
- export const migrateRadioGroupAriaLabelledby: (j: import("jscodeshift/src/core").JSCodeshift, source: import("jscodeshift/src/Collection").Collection<Node>) => void = createRenameFuncFor(
11
- '@atlaskit/radio',
12
- 'RadioGroup',
13
- 'aria-labelledby',
14
- 'labelId',
15
- );
8
+ export const migrateRadioGroupAriaLabelledby: (
9
+ j: import('jscodeshift/src/core').JSCodeshift,
10
+ source: import('jscodeshift/src/Collection').Collection<Node>,
11
+ ) => void = createRenameFuncFor('@atlaskit/radio', 'RadioGroup', 'aria-labelledby', 'labelId');
@@ -61,7 +61,11 @@ export function getJSXAttributesByName(
61
61
  });
62
62
  }
63
63
 
64
- export function hasImportDeclaration(j: core.JSCodeshift, source: any, importPath: string): boolean {
64
+ export function hasImportDeclaration(
65
+ j: core.JSCodeshift,
66
+ source: any,
67
+ importPath: string,
68
+ ): boolean {
65
69
  const imports = source
66
70
  .find(j.ImportDeclaration)
67
71
  .filter(
@@ -223,7 +227,12 @@ export function addToImport({
223
227
  });
224
228
  }
225
229
 
226
- export const createRenameFuncFor: (component: string, importName: string, from: string, to: string) => (j: core.JSCodeshift, source: Collection<Node>) => void =
230
+ export const createRenameFuncFor: (
231
+ component: string,
232
+ importName: string,
233
+ from: string,
234
+ to: string,
235
+ ) => (j: core.JSCodeshift, source: Collection<Node>) => void =
227
236
  (component: string, importName: string, from: string, to: string) =>
228
237
  (j: core.JSCodeshift, source: Collection<Node>) => {
229
238
  const specifier = getNamedSpecifier(j, source, component, importName);
@@ -255,7 +264,12 @@ export const createRenameFuncFor: (component: string, importName: string, from:
255
264
  // }
256
265
  };
257
266
 
258
- export const createRemoveFuncFor: (component: string, importName: string, prop: string, comment?: string) => (j: core.JSCodeshift, source: Collection<Node>) => void =
267
+ export const createRemoveFuncFor: (
268
+ component: string,
269
+ importName: string,
270
+ prop: string,
271
+ comment?: string,
272
+ ) => (j: core.JSCodeshift, source: Collection<Node>) => void =
259
273
  (component: string, importName: string, prop: string, comment?: string) =>
260
274
  (j: core.JSCodeshift, source: Collection<Node>) => {
261
275
  const specifier =
@@ -276,11 +290,16 @@ export const createRemoveFuncFor: (component: string, importName: string, prop:
276
290
  });
277
291
  };
278
292
 
279
- export const createRenameImportFor: ({ componentName, newComponentName, oldPackagePath, newPackagePath, }: {
280
- componentName: string;
281
- newComponentName?: string;
282
- oldPackagePath: string;
283
- newPackagePath: string;
293
+ export const createRenameImportFor: ({
294
+ componentName,
295
+ newComponentName,
296
+ oldPackagePath,
297
+ newPackagePath,
298
+ }: {
299
+ componentName: string;
300
+ newComponentName?: string;
301
+ oldPackagePath: string;
302
+ newPackagePath: string;
284
303
  }) => (j: core.JSCodeshift, source: Collection<Node>) => void =
285
304
  ({
286
305
  componentName,
@@ -362,10 +381,14 @@ export const createRenameImportFor: ({ componentName, newComponentName, oldPacka
362
381
  .remove();
363
382
  };
364
383
 
365
- export const createRemoveImportsFor: ({ importsToRemove, packagePath, comment, }: {
366
- importsToRemove: string[];
367
- packagePath: string;
368
- comment: string;
384
+ export const createRemoveImportsFor: ({
385
+ importsToRemove,
386
+ packagePath,
387
+ comment,
388
+ }: {
389
+ importsToRemove: string[];
390
+ packagePath: string;
391
+ comment: string;
369
392
  }) => (j: core.JSCodeshift, source: Collection<Node>) => void =
370
393
  ({
371
394
  importsToRemove,
@@ -436,9 +459,12 @@ export const createRemoveImportsFor: ({ importsToRemove, packagePath, comment, }
436
459
  }
437
460
  };
438
461
 
439
- export const createTransformer: (component: string, migrates: {
440
- (j: core.JSCodeshift, source: Collection<Node>): void;
441
- }[]) => (fileInfo: FileInfo, api: API, options: Options) => string =
462
+ export const createTransformer: (
463
+ component: string,
464
+ migrates: {
465
+ (j: core.JSCodeshift, source: Collection<Node>): void;
466
+ }[],
467
+ ) => (fileInfo: FileInfo, api: API, options: Options) => string =
442
468
  (component: string, migrates: { (j: core.JSCodeshift, source: Collection<Node>): void }[]) =>
443
469
  (fileInfo: FileInfo, { jscodeshift: j }: API, options: Options) => {
444
470
  const source: Collection<Node> = j(fileInfo.source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "8.4.3",
3
+ "version": "8.4.4",
4
4
  "description": "A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/css": "^0.19.0",
37
37
  "@atlaskit/ds-lib": "^5.3.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
- "@atlaskit/theme": "^21.0.0",
39
+ "@atlaskit/theme": "^22.0.0",
40
40
  "@atlaskit/tokens": "^11.0.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@compiled/react": "^0.18.6"
@@ -48,9 +48,9 @@
48
48
  "@af/accessibility-testing": "workspace:^",
49
49
  "@af/integration-testing": "workspace:^",
50
50
  "@af/visual-regression": "workspace:^",
51
- "@atlaskit/button": "^23.9.0",
51
+ "@atlaskit/button": "^23.10.0",
52
52
  "@atlaskit/checkbox": "^17.3.0",
53
- "@atlaskit/docs": "^11.3.0",
53
+ "@atlaskit/docs": "^11.5.0",
54
54
  "@atlaskit/form": "^15.3.0",
55
55
  "@atlaskit/link": "^3.3.0",
56
56
  "@atlaskit/primitives": "^18.0.0",
@@ -88,9 +88,6 @@
88
88
  },
89
89
  "homepage": "https://atlassian.design/components/radio/",
90
90
  "platform-feature-flags": {
91
- "platform-visual-refresh-icons": {
92
- "type": "boolean"
93
- },
94
91
  "platform-radio-atomic-styles": {
95
92
  "type": "boolean"
96
93
  }