@atlaskit/progress-indicator 10.2.1 → 10.3.0

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,18 @@
1
1
  # @atlaskit/progress-indicator
2
2
 
3
+ ## 10.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#110836](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110836)
8
+ [`a8bd419fd70b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a8bd419fd70b9) -
9
+ Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
10
+ is implicitly set to automatic.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 10.2.1
4
17
 
5
18
  ### Patch Changes
@@ -12,7 +25,7 @@
12
25
 
13
26
  - [#96761](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96761)
14
27
  [`e355b0808d12`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e355b0808d12) -
15
- Add support for React 18.
28
+ Add support for React 18 in non-strict mode.
16
29
 
17
30
  ## 10.1.0
18
31
 
package/README.md CHANGED
@@ -10,4 +10,5 @@ yarn add @atlaskit/progress-indicator
10
10
 
11
11
  ## Usage
12
12
 
13
- Detailed docs and example usage can be found [here](https://atlassian.design/components/progress-indicator/).
13
+ Detailed docs and example usage can be found
14
+ [here](https://atlassian.design/components/progress-indicator/).
@@ -1,99 +1,83 @@
1
- import {
2
- type API,
3
- type default as core,
4
- type FileInfo,
5
- type Options,
6
- } from 'jscodeshift';
1
+ import { type API, type default as core, type FileInfo, type Options } from 'jscodeshift';
7
2
 
8
3
  function hasImportDeclaration(
9
- j: core.JSCodeshift,
10
- source: ReturnType<typeof j>,
11
- importPath: string,
4
+ j: core.JSCodeshift,
5
+ source: ReturnType<typeof j>,
6
+ importPath: string,
12
7
  ) {
13
- return !!source
14
- .find(j.ImportDeclaration)
15
- .filter((path) => path.node.source.value === importPath).length;
8
+ return !!source.find(j.ImportDeclaration).filter((path) => path.node.source.value === importPath)
9
+ .length;
16
10
  }
17
11
 
18
- function hasNameImport(
19
- j: core.JSCodeshift,
20
- source: ReturnType<typeof j>,
21
- importName: string,
22
- ) {
23
- return !!source
24
- .find(j.ImportDeclaration)
25
- .find(j.ImportSpecifier)
26
- .find(j.Identifier)
27
- .filter((identifier) => identifier!.value!.name === importName).length;
12
+ function hasNameImport(j: core.JSCodeshift, source: ReturnType<typeof j>, importName: string) {
13
+ return !!source
14
+ .find(j.ImportDeclaration)
15
+ .find(j.ImportSpecifier)
16
+ .find(j.Identifier)
17
+ .filter((identifier) => identifier!.value!.name === importName).length;
28
18
  }
29
19
 
30
20
  function hasVariableAlreadyDeclared(
31
- j: core.JSCodeshift,
32
- source: ReturnType<typeof j>,
33
- variableName: string,
21
+ j: core.JSCodeshift,
22
+ source: ReturnType<typeof j>,
23
+ variableName: string,
34
24
  ) {
35
- return !!source
36
- .find(j.VariableDeclaration)
37
- .find(j.VariableDeclarator)
38
- .find(j.Identifier)
39
- .filter((identifier) => identifier!.value!.name === variableName).length;
25
+ return !!source
26
+ .find(j.VariableDeclaration)
27
+ .find(j.VariableDeclarator)
28
+ .find(j.Identifier)
29
+ .filter((identifier) => identifier!.value!.name === variableName).length;
40
30
  }
41
31
 
42
- export default function transformer(
43
- fileInfo: FileInfo,
44
- { jscodeshift: j }: API,
45
- options: Options,
46
- ) {
47
- const source = j(fileInfo.source);
32
+ export default function transformer(fileInfo: FileInfo, { jscodeshift: j }: API, options: Options) {
33
+ const source = j(fileInfo.source);
48
34
 
49
- if (hasImportDeclaration(j, source, '@atlaskit/progress-indicator')) {
50
- if (hasNameImport(j, source, 'ProgressDots')) {
51
- source
52
- .find(j.ImportDeclaration)
53
- .find(j.Identifier)
54
- .filter((identifier) => identifier.value.name === 'ProgressDots')
55
- .replaceWith(j.identifier('ProgressIndicator'));
35
+ if (hasImportDeclaration(j, source, '@atlaskit/progress-indicator')) {
36
+ if (hasNameImport(j, source, 'ProgressDots')) {
37
+ source
38
+ .find(j.ImportDeclaration)
39
+ .find(j.Identifier)
40
+ .filter((identifier) => identifier.value.name === 'ProgressDots')
41
+ .replaceWith(j.identifier('ProgressIndicator'));
56
42
 
57
- if (hasVariableAlreadyDeclared(j, source, 'ProgressIndicator')) {
58
- source
59
- .find(j.ImportDeclaration)
60
- .find(j.ImportSpecifier)
61
- .filter(
62
- (specifier) => specifier!.node!.local!.name === 'ProgressIndicator',
63
- )
64
- .find(j.Identifier)
65
- .replaceWith(
66
- j.importSpecifier(
67
- j.identifier('ProgressIndicator'),
68
- j.identifier('AKProgressIndicator'),
69
- ),
70
- );
43
+ if (hasVariableAlreadyDeclared(j, source, 'ProgressIndicator')) {
44
+ source
45
+ .find(j.ImportDeclaration)
46
+ .find(j.ImportSpecifier)
47
+ .filter((specifier) => specifier!.node!.local!.name === 'ProgressIndicator')
48
+ .find(j.Identifier)
49
+ .replaceWith(
50
+ j.importSpecifier(
51
+ j.identifier('ProgressIndicator'),
52
+ j.identifier('AKProgressIndicator'),
53
+ ),
54
+ );
71
55
 
72
- source
73
- .find(j.VariableDeclarator)
74
- .find(j.Identifier)
75
- .filter((identifier) => identifier.value.name === 'ProgressDots')
76
- .replaceWith(j.identifier('AKProgressIndicator'));
56
+ source
57
+ .find(j.VariableDeclarator)
58
+ .find(j.Identifier)
59
+ .filter((identifier) => identifier.value.name === 'ProgressDots')
60
+ .replaceWith(j.identifier('AKProgressIndicator'));
77
61
 
78
- source
79
- .find(j.JSXIdentifier)
80
- .filter((identifier) => identifier.value.name === 'ProgressDots')
81
- .replaceWith(j.identifier('AKProgressIndicator'));
82
- } else {
83
- source
84
- .find(j.VariableDeclarator)
85
- .find(j.Identifier)
86
- .filter((identifier) => identifier.value.name === 'ProgressDots')
87
- .replaceWith(j.identifier('ProgressIndicator'));
88
- source
89
- .find(j.JSXIdentifier)
90
- .filter((identifier) => identifier.value.name === 'ProgressDots')
91
- .replaceWith(j.identifier('ProgressIndicator'));
92
- }
93
- }
62
+ source
63
+ .find(j.JSXIdentifier)
64
+ .filter((identifier) => identifier.value.name === 'ProgressDots')
65
+ .replaceWith(j.identifier('AKProgressIndicator'));
66
+ } else {
67
+ source
68
+ .find(j.VariableDeclarator)
69
+ .find(j.Identifier)
70
+ .filter((identifier) => identifier.value.name === 'ProgressDots')
71
+ .replaceWith(j.identifier('ProgressIndicator'));
72
+ source
73
+ .find(j.JSXIdentifier)
74
+ .filter((identifier) => identifier.value.name === 'ProgressDots')
75
+ .replaceWith(j.identifier('ProgressIndicator'));
76
+ }
77
+ }
94
78
 
95
- return source.toSource(options.printOptions || { quote: 'single' });
96
- }
79
+ return source.toSource(options.printOptions || { quote: 'single' });
80
+ }
97
81
 
98
- return fileInfo.source;
82
+ return fileInfo.source;
99
83
  }
@@ -5,54 +5,54 @@ import transformer from '../9.0.0-import-rename';
5
5
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
6
6
 
7
7
  describe('Update Avatar props', () => {
8
- defineInlineTest(
9
- { default: transformer, parser: 'tsx' },
10
- {},
11
- `import React from 'react';`,
12
- `import React from 'react';`,
13
- 'should not transform if imports are not present',
14
- );
8
+ defineInlineTest(
9
+ { default: transformer, parser: 'tsx' },
10
+ {},
11
+ `import React from 'react';`,
12
+ `import React from 'react';`,
13
+ 'should not transform if imports are not present',
14
+ );
15
15
 
16
- defineInlineTest(
17
- { default: transformer, parser: 'tsx' },
18
- {},
19
- `import {ProgressDots} from '@atlaskit/progress-indicator';`,
20
- `import {ProgressIndicator} from '@atlaskit/progress-indicator';`,
21
- 'transforms import name `ProgressDots` to `ProgressIndicator`',
22
- );
16
+ defineInlineTest(
17
+ { default: transformer, parser: 'tsx' },
18
+ {},
19
+ `import {ProgressDots} from '@atlaskit/progress-indicator';`,
20
+ `import {ProgressIndicator} from '@atlaskit/progress-indicator';`,
21
+ 'transforms import name `ProgressDots` to `ProgressIndicator`',
22
+ );
23
23
 
24
- defineInlineTest(
25
- { default: transformer, parser: 'tsx' },
26
- {},
27
- `import { ProgressDots as CodeComponent } from '@atlaskit/progress-indicator';`,
28
- `import { ProgressIndicator as CodeComponent } from '@atlaskit/progress-indicator';`,
29
- 'transforms import name `ProgressDots` with some other name to `ProgressIndicator`',
30
- );
24
+ defineInlineTest(
25
+ { default: transformer, parser: 'tsx' },
26
+ {},
27
+ `import { ProgressDots as CodeComponent } from '@atlaskit/progress-indicator';`,
28
+ `import { ProgressIndicator as CodeComponent } from '@atlaskit/progress-indicator';`,
29
+ 'transforms import name `ProgressDots` with some other name to `ProgressIndicator`',
30
+ );
31
31
 
32
- defineInlineTest(
33
- { default: transformer, parser: 'tsx' },
34
- {},
35
- `
32
+ defineInlineTest(
33
+ { default: transformer, parser: 'tsx' },
34
+ {},
35
+ `
36
36
  import { ProgressDots } from '@atlaskit/progress-indicator';
37
37
  const Component = () => <ProgressDots />;
38
38
  const x = <ProgressDots />
39
39
  const y = <ProgressDots ></ProgressDots>
40
40
  const z = ProgressDots
41
41
  `,
42
- `
42
+ `
43
43
  import { ProgressIndicator } from '@atlaskit/progress-indicator';
44
44
  const Component = () => <ProgressIndicator />;
45
45
  const x = <ProgressIndicator />
46
46
  const y = <ProgressIndicator ></ProgressIndicator>
47
47
  const z = ProgressIndicator
48
48
  `,
49
- 'transforms import name `ProgressDots` to `ProgressIndicator` along with its usage',
50
- );
49
+ 'transforms import name `ProgressDots` to `ProgressIndicator` along with its usage',
50
+ );
51
51
 
52
- defineInlineTest(
53
- { default: transformer, parser: 'tsx' },
54
- {},
55
- `
52
+ defineInlineTest(
53
+ { default: transformer, parser: 'tsx' },
54
+ {},
55
+ `
56
56
  import { ProgressDots } from '@atlaskit/progress-indicator';
57
57
 
58
58
  const Component = () =>{
@@ -65,7 +65,7 @@ describe('Update Avatar props', () => {
65
65
  );
66
66
  }
67
67
  `,
68
- `
68
+ `
69
69
  import { ProgressIndicator } from '@atlaskit/progress-indicator';
70
70
 
71
71
  const Component = () =>{
@@ -78,34 +78,34 @@ describe('Update Avatar props', () => {
78
78
  );
79
79
  }
80
80
  `,
81
- 'transforms import name `ProgressDots` to `ProgressIndicator` along with its usage inside component',
82
- );
81
+ 'transforms import name `ProgressDots` to `ProgressIndicator` along with its usage inside component',
82
+ );
83
83
 
84
- defineInlineTest(
85
- { default: transformer, parser: 'tsx' },
86
- {},
87
- `
84
+ defineInlineTest(
85
+ { default: transformer, parser: 'tsx' },
86
+ {},
87
+ `
88
88
  import { ProgressDots as CodeComponent } from '@atlaskit/progress-indicator';
89
89
  const Component = () => <CodeComponent />;
90
90
  `,
91
- `
91
+ `
92
92
  import { ProgressIndicator as CodeComponent } from '@atlaskit/progress-indicator';
93
93
  const Component = () => <CodeComponent />;
94
94
  `,
95
- 'transforms import name `ProgressDots` to `ProgressIndicator` with some other name along with its usage',
96
- );
95
+ 'transforms import name `ProgressDots` to `ProgressIndicator` with some other name along with its usage',
96
+ );
97
97
 
98
- defineInlineTest(
99
- { default: transformer, parser: 'tsx' },
100
- {},
101
- `
98
+ defineInlineTest(
99
+ { default: transformer, parser: 'tsx' },
100
+ {},
101
+ `
102
102
  import { ProgressDots } from '@atlaskit/progress-indicator';
103
103
  const ProgressIndicator = () => <ProgressDots />;
104
104
  `,
105
- `
105
+ `
106
106
  import { ProgressIndicator as AKProgressIndicator } from '@atlaskit/progress-indicator';
107
107
  const ProgressIndicator = () => <AKProgressIndicator />;
108
108
  `,
109
- 'transforms import name `ProgressDots` to `AKProgressIndicator` by renaming its imported name when `ProgressIndicator` variable is already declared',
110
- );
109
+ 'transforms import name `ProgressDots` to `AKProgressIndicator` by renaming its imported name when `ProgressIndicator` variable is already declared',
110
+ );
111
111
  });
@@ -44,17 +44,23 @@ var selectedColorMap = {
44
44
  })
45
45
  };
46
46
  var commonStyles = (0, _primitives.xcss)({
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
48
  width: "var(".concat(_constants.varDotsSize, ")"),
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
48
50
  height: "var(".concat(_constants.varDotsSize, ")"),
49
51
  position: 'relative',
50
52
  borderRadius: 'border.radius.circle',
51
53
  '::before': {
52
54
  display: 'block',
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
53
56
  width: "calc(var(".concat(_constants.varDotsSize, ") + var(").concat(_constants.varDotsMargin, "))"),
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
54
58
  height: "calc(var(".concat(_constants.varDotsSize, ") + var(").concat(_constants.varDotsMargin, "))"),
55
59
  position: 'absolute',
56
60
  content: '""',
61
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
57
62
  insetBlockStart: "calc(-1 * var(".concat(_constants.varDotsMargin, ") / 2)"),
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
58
64
  insetInlineStart: "calc(-1 * var(".concat(_constants.varDotsMargin, ") / 2)")
59
65
  }
60
66
  });
@@ -18,10 +18,15 @@ var _constants = require("./constants");
18
18
  var _indicator = require("./indicator");
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ /**
22
+ * @jsxRuntime classic
23
+ */
21
24
  /** @jsx jsx */
22
25
 
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
+
23
28
  var packageName = "@atlaskit/progress-indicator";
24
- var packageVersion = "10.2.1";
29
+ var packageVersion = "10.3.0";
25
30
 
26
31
  /**
27
32
  * __ProgressDots__
@@ -37,17 +37,23 @@ const selectedColorMap = {
37
37
  })
38
38
  };
39
39
  const commonStyles = xcss({
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
41
  width: `var(${varDotsSize})`,
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
43
  height: `var(${varDotsSize})`,
42
44
  position: 'relative',
43
45
  borderRadius: 'border.radius.circle',
44
46
  '::before': {
45
47
  display: 'block',
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
49
  width: `calc(var(${varDotsSize}) + var(${varDotsMargin}))`,
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
51
  height: `calc(var(${varDotsSize}) + var(${varDotsMargin}))`,
48
52
  position: 'absolute',
49
53
  content: '""',
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
55
  insetBlockStart: `calc(-1 * var(${varDotsMargin}) / 2)`,
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
51
57
  insetInlineStart: `calc(-1 * var(${varDotsMargin}) / 2)`
52
58
  }
53
59
  });
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React, { useCallback, useEffect, useRef } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { jsx } from '@emotion/react';
4
9
  import { bind } from 'bind-event-listener';
5
10
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
@@ -8,7 +13,7 @@ import { Box, Inline } from '@atlaskit/primitives';
8
13
  import { progressIndicatorGapMap, sizes, varDotsMargin, varDotsSize } from './constants';
9
14
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
10
15
  const packageName = "@atlaskit/progress-indicator";
11
- const packageVersion = "10.2.1";
16
+ const packageVersion = "10.3.0";
12
17
 
13
18
  /**
14
19
  * __ProgressDots__
@@ -87,8 +92,11 @@ const ProgressDots = ({
87
92
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
88
93
  , {
89
94
  style: {
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
90
96
  [varDotsSize]: `${sizes[size]}px`,
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
91
98
  [varDotsMargin]: rawGapValue
99
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
92
100
  },
93
101
  role: onSelect && 'tablist'
94
102
  }, jsx(Inline, {
@@ -37,17 +37,23 @@ var selectedColorMap = {
37
37
  })
38
38
  };
39
39
  var commonStyles = xcss({
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
40
41
  width: "var(".concat(varDotsSize, ")"),
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
43
  height: "var(".concat(varDotsSize, ")"),
42
44
  position: 'relative',
43
45
  borderRadius: 'border.radius.circle',
44
46
  '::before': {
45
47
  display: 'block',
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
49
  width: "calc(var(".concat(varDotsSize, ") + var(").concat(varDotsMargin, "))"),
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
51
  height: "calc(var(".concat(varDotsSize, ") + var(").concat(varDotsMargin, "))"),
48
52
  position: 'absolute',
49
53
  content: '""',
54
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
55
  insetBlockStart: "calc(-1 * var(".concat(varDotsMargin, ") / 2)"),
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
51
57
  insetInlineStart: "calc(-1 * var(".concat(varDotsMargin, ") / 2)")
52
58
  }
53
59
  });
@@ -1,7 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import React, { useCallback, useEffect, useRef } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { jsx } from '@emotion/react';
6
11
  import { bind } from 'bind-event-listener';
7
12
  import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
@@ -10,7 +15,7 @@ import { Box, Inline } from '@atlaskit/primitives';
10
15
  import { progressIndicatorGapMap, sizes, varDotsMargin, varDotsSize } from './constants';
11
16
  import { ButtonIndicator, PresentationalIndicator } from './indicator';
12
17
  var packageName = "@atlaskit/progress-indicator";
13
- var packageVersion = "10.2.1";
18
+ var packageVersion = "10.3.0";
14
19
 
15
20
  /**
16
21
  * __ProgressDots__
@@ -10,7 +10,7 @@ type CommonProps = {
10
10
  *
11
11
  * A presentational indicator with no interactivity
12
12
  */
13
- export declare const PresentationalIndicator: ({ appearance, isSelected, testId, }: CommonProps) => JSX.Element;
13
+ export declare const PresentationalIndicator: ({ appearance, isSelected, testId }: CommonProps) => JSX.Element;
14
14
  type ButtonIndicatorProps = {
15
15
  panelId: string;
16
16
  tabId: string;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FC } from 'react';
3
6
  import type { ProgressDotsProps } from '../types';
@@ -10,7 +10,7 @@ type CommonProps = {
10
10
  *
11
11
  * A presentational indicator with no interactivity
12
12
  */
13
- export declare const PresentationalIndicator: ({ appearance, isSelected, testId, }: CommonProps) => JSX.Element;
13
+ export declare const PresentationalIndicator: ({ appearance, isSelected, testId }: CommonProps) => JSX.Element;
14
14
  type ButtonIndicatorProps = {
15
15
  panelId: string;
16
16
  tabId: string;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FC } from 'react';
3
6
  import type { ProgressDotsProps } from '../types';
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
1
  {
2
- "name": "@atlaskit/progress-indicator",
3
- "version": "10.2.1",
4
- "description": "A progress indicator shows the user where they are along the steps of a journey.",
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
- "sideEffects": false,
16
- "atlaskit:src": "src/index.tsx",
17
- "atlassian": {
18
- "team": "Design System Team",
19
- "releaseModel": "continuous",
20
- "runReact18": true,
21
- "productPushConsumption": [
22
- "jira"
23
- ],
24
- "website": {
25
- "name": "Progress indicator",
26
- "category": "Components"
27
- }
28
- },
29
- "dependencies": {
30
- "@atlaskit/analytics-next": "^9.3.0",
31
- "@atlaskit/ds-lib": "^2.3.0",
32
- "@atlaskit/primitives": "^7.0.0",
33
- "@atlaskit/tokens": "^1.49.0",
34
- "@atlaskit/visually-hidden": "^1.3.0",
35
- "@babel/runtime": "^7.0.0",
36
- "@emotion/react": "^11.7.1",
37
- "bind-event-listener": "^3.0.0"
38
- },
39
- "peerDependencies": {
40
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
41
- },
42
- "devDependencies": {
43
- "@af/accessibility-testing": "*",
44
- "@af/visual-regression": "*",
45
- "@atlaskit/ssr": "*",
46
- "@atlaskit/visual-regression": "*",
47
- "@testing-library/react": "^12.1.5",
48
- "@testing-library/user-event": "^14.4.3",
49
- "@types/jscodeshift": "^0.11.0",
50
- "jscodeshift": "^0.13.0",
51
- "react-dom": "^16.8.0",
52
- "react-lorem-component": "^0.13.0",
53
- "typescript": "~5.4.2"
54
- },
55
- "techstack": {
56
- "@atlassian/frontend": {
57
- "import-structure": "atlassian-conventions"
58
- },
59
- "@repo/internal": {
60
- "dom-events": "use-bind-event-listener",
61
- "ui-components": [
62
- "lite-mode",
63
- "primitives"
64
- ],
65
- "design-system": "v1",
66
- "styling": [
67
- "static",
68
- "emotion"
69
- ],
70
- "analytics": "analytics-next",
71
- "design-tokens": [
72
- "color",
73
- "spacing"
74
- ],
75
- "deprecation": "no-deprecated-imports"
76
- }
77
- },
78
- "typesVersions": {
79
- ">=4.5 <4.9": {
80
- "*": [
81
- "dist/types-ts4.5/*",
82
- "dist/types-ts4.5/index.d.ts"
83
- ]
84
- }
85
- },
86
- "af:exports": {
87
- "./types": "./src/types.tsx",
88
- ".": "./src/index.tsx"
89
- },
90
- "homepage": "https://atlassian.design/components/progress-indicator/"
91
- }
2
+ "name": "@atlaskit/progress-indicator",
3
+ "version": "10.3.0",
4
+ "description": "A progress indicator shows the user where they are along the steps of a journey.",
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
+ "sideEffects": false,
16
+ "atlaskit:src": "src/index.tsx",
17
+ "atlassian": {
18
+ "team": "Design System Team",
19
+ "releaseModel": "continuous",
20
+ "runReact18": true,
21
+ "productPushConsumption": [
22
+ "jira"
23
+ ],
24
+ "website": {
25
+ "name": "Progress indicator",
26
+ "category": "Components"
27
+ }
28
+ },
29
+ "dependencies": {
30
+ "@atlaskit/analytics-next": "^9.3.0",
31
+ "@atlaskit/ds-lib": "^2.3.0",
32
+ "@atlaskit/primitives": "^7.4.0",
33
+ "@atlaskit/tokens": "^1.51.0",
34
+ "@atlaskit/visually-hidden": "^1.4.0",
35
+ "@babel/runtime": "^7.0.0",
36
+ "@emotion/react": "^11.7.1",
37
+ "bind-event-listener": "^3.0.0"
38
+ },
39
+ "peerDependencies": {
40
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
41
+ },
42
+ "devDependencies": {
43
+ "@af/accessibility-testing": "*",
44
+ "@af/visual-regression": "*",
45
+ "@atlaskit/ssr": "*",
46
+ "@atlaskit/visual-regression": "*",
47
+ "@testing-library/react": "^12.1.5",
48
+ "@testing-library/user-event": "^14.4.3",
49
+ "@types/jscodeshift": "^0.11.0",
50
+ "jscodeshift": "^0.13.0",
51
+ "react-dom": "^16.8.0",
52
+ "react-lorem-component": "^0.13.0",
53
+ "typescript": "~5.4.2"
54
+ },
55
+ "techstack": {
56
+ "@atlassian/frontend": {
57
+ "import-structure": "atlassian-conventions"
58
+ },
59
+ "@repo/internal": {
60
+ "dom-events": "use-bind-event-listener",
61
+ "ui-components": [
62
+ "lite-mode",
63
+ "primitives"
64
+ ],
65
+ "design-system": "v1",
66
+ "styling": [
67
+ "static",
68
+ "emotion"
69
+ ],
70
+ "analytics": "analytics-next",
71
+ "design-tokens": [
72
+ "color",
73
+ "spacing"
74
+ ],
75
+ "deprecation": "no-deprecated-imports"
76
+ }
77
+ },
78
+ "typesVersions": {
79
+ ">=4.5 <4.9": {
80
+ "*": [
81
+ "dist/types-ts4.5/*",
82
+ "dist/types-ts4.5/index.d.ts"
83
+ ]
84
+ }
85
+ },
86
+ "af:exports": {
87
+ "./types": "./src/types.tsx",
88
+ ".": "./src/index.tsx"
89
+ },
90
+ "homepage": "https://atlassian.design/components/progress-indicator/"
91
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/progress-indicator"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
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
@@ -25,21 +26,21 @@ type DotsAppearance = 'default' | 'help' | 'inverted' | 'primary';
25
26
 
26
27
  // @public (undocumented)
27
28
  export interface ProgressDotsProps {
28
- appearance?: DotsAppearance;
29
- ariaControls?: string;
30
- ariaLabel?: string;
31
- onSelect?: (
32
- eventData: {
33
- event: React.MouseEvent<HTMLButtonElement>;
34
- index: number;
35
- },
36
- analyticsEvent: UIAnalyticsEvent,
37
- ) => void;
38
- selectedIndex: number;
39
- size?: Size;
40
- spacing?: Spacing;
41
- testId?: string;
42
- values: any[];
29
+ appearance?: DotsAppearance;
30
+ ariaControls?: string;
31
+ ariaLabel?: string;
32
+ onSelect?: (
33
+ eventData: {
34
+ event: React.MouseEvent<HTMLButtonElement>;
35
+ index: number;
36
+ },
37
+ analyticsEvent: UIAnalyticsEvent,
38
+ ) => void;
39
+ selectedIndex: number;
40
+ size?: Size;
41
+ spacing?: Spacing;
42
+ testId?: string;
43
+ values: any[];
43
44
  }
44
45
 
45
46
  // @public
@@ -62,7 +63,7 @@ type Spacing = 'comfortable' | 'compact' | 'cozy';
62
63
 
63
64
  ```json
64
65
  {
65
- "react": "^16.8.0"
66
+ "react": "^16.8.0"
66
67
  }
67
68
  ```
68
69