@atlaskit/lozenge 11.7.3 → 11.8.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/lozenge
2
2
 
3
+ ## 11.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#110670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110670)
8
+ [`c733254a2dd6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c733254a2dd6e) -
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
  ## 11.7.3
4
17
 
5
18
  ### Patch Changes
@@ -26,7 +39,7 @@
26
39
 
27
40
  - [#93677](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93677)
28
41
  [`1a4242743804`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1a4242743804) -
29
- Add support for React 18.
42
+ Add support for React 18 in non-strict mode.
30
43
 
31
44
  ## 11.6.6
32
45
 
@@ -1,18 +1,15 @@
1
1
  import { type JSCodeshift } from 'jscodeshift';
2
2
  import { type Collection } from 'jscodeshift/src/Collection';
3
3
 
4
- import {
5
- createTransformer,
6
- hasImportDeclaration,
7
- } from '@atlaskit/codemod-utils';
4
+ import { createTransformer, hasImportDeclaration } from '@atlaskit/codemod-utils';
8
5
 
9
6
  import moveObjectAppearanceToStyle from './migrations/11.0.0-lite-mode/move-object-appearance-to-style';
10
7
  import removeThemeProp from './migrations/11.0.0-lite-mode/remove-theme-prop';
11
8
 
12
9
  const transformer = createTransformer(
13
- [moveObjectAppearanceToStyle, removeThemeProp],
14
- (j: JSCodeshift, source: Collection<Node>) =>
15
- hasImportDeclaration(j, source, '@atlaskit/lozenge'),
10
+ [moveObjectAppearanceToStyle, removeThemeProp],
11
+ (j: JSCodeshift, source: Collection<Node>) =>
12
+ hasImportDeclaration(j, source, '@atlaskit/lozenge'),
16
13
  );
17
14
 
18
15
  export default transformer;
@@ -3,10 +3,10 @@ import transformer from '../11.0.0-lite-mode';
3
3
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
4
4
 
5
5
  describe('Lozenge codemod', () => {
6
- defineInlineTest(
7
- { default: transformer, parser: 'tsx' },
8
- {},
9
- `
6
+ defineInlineTest(
7
+ { default: transformer, parser: 'tsx' },
8
+ {},
9
+ `
10
10
  import React from 'react';
11
11
  import Lozenge from '@atlaskit/lozenge';
12
12
 
@@ -20,7 +20,7 @@ describe('Lozenge codemod', () => {
20
20
  );
21
21
  }
22
22
  `,
23
- `
23
+ `
24
24
  import React from 'react';
25
25
  import Lozenge from '@atlaskit/lozenge';
26
26
 
@@ -37,13 +37,13 @@ describe('Lozenge codemod', () => {
37
37
  );
38
38
  }
39
39
  `,
40
- `should move object appearance values to style prop`,
41
- );
40
+ `should move object appearance values to style prop`,
41
+ );
42
42
 
43
- defineInlineTest(
44
- { default: transformer, parser: 'tsx' },
45
- {},
46
- `
43
+ defineInlineTest(
44
+ { default: transformer, parser: 'tsx' },
45
+ {},
46
+ `
47
47
  import React from 'react';
48
48
  import Lozenge from '@atlaskit/custom-lozenge';
49
49
 
@@ -57,7 +57,7 @@ describe('Lozenge codemod', () => {
57
57
  );
58
58
  }
59
59
  `,
60
- `
60
+ `
61
61
  import React from 'react';
62
62
  import Lozenge from '@atlaskit/custom-lozenge';
63
63
 
@@ -71,13 +71,13 @@ describe('Lozenge codemod', () => {
71
71
  );
72
72
  }
73
73
  `,
74
- `should not be modified when not imported from "@atlaskit/lozenge"`,
75
- );
74
+ `should not be modified when not imported from "@atlaskit/lozenge"`,
75
+ );
76
76
 
77
- defineInlineTest(
78
- { default: transformer, parser: 'tsx' },
79
- {},
80
- `
77
+ defineInlineTest(
78
+ { default: transformer, parser: 'tsx' },
79
+ {},
80
+ `
81
81
  import React from 'react';
82
82
  import Lozenge from '@atlaskit/lozenge';
83
83
 
@@ -89,7 +89,7 @@ describe('Lozenge codemod', () => {
89
89
  );
90
90
  }
91
91
  `,
92
- `
92
+ `
93
93
  import React from 'react';
94
94
  import Lozenge from '@atlaskit/lozenge';
95
95
 
@@ -101,13 +101,13 @@ describe('Lozenge codemod', () => {
101
101
  );
102
102
  }
103
103
  `,
104
- `should not be modified when appearance prop is not an object`,
105
- );
104
+ `should not be modified when appearance prop is not an object`,
105
+ );
106
106
 
107
- defineInlineTest(
108
- { default: transformer, parser: 'tsx' },
109
- {},
110
- `
107
+ defineInlineTest(
108
+ { default: transformer, parser: 'tsx' },
109
+ {},
110
+ `
111
111
  import React from 'react';
112
112
  import Lozenge from '@atlaskit/lozenge';
113
113
 
@@ -119,7 +119,7 @@ describe('Lozenge codemod', () => {
119
119
  );
120
120
  }
121
121
  `,
122
- `
122
+ `
123
123
  import React from 'react';
124
124
  import Lozenge from '@atlaskit/lozenge';
125
125
 
@@ -131,13 +131,13 @@ describe('Lozenge codemod', () => {
131
131
  );
132
132
  }
133
133
  `,
134
- `should not be modified when appearance prop is dynamic`,
135
- );
134
+ `should not be modified when appearance prop is dynamic`,
135
+ );
136
136
 
137
- defineInlineTest(
138
- { default: transformer, parser: 'tsx' },
139
- {},
140
- `
137
+ defineInlineTest(
138
+ { default: transformer, parser: 'tsx' },
139
+ {},
140
+ `
141
141
  import React from 'react';
142
142
  import Lozenge from '@atlaskit/lozenge';
143
143
 
@@ -152,7 +152,7 @@ describe('Lozenge codemod', () => {
152
152
  );
153
153
  }
154
154
  `,
155
- `
155
+ `
156
156
  import React from 'react';
157
157
  import Lozenge from '@atlaskit/lozenge';
158
158
 
@@ -167,6 +167,6 @@ describe('Lozenge codemod', () => {
167
167
  );
168
168
  }
169
169
  `,
170
- `should not be modified when appearance prop is not type of object and style prop is also present`,
171
- );
170
+ `should not be modified when appearance prop is not type of object and style prop is also present`,
171
+ );
172
172
  });
@@ -3,10 +3,10 @@ import transformer from '../11.0.0-lite-mode';
3
3
  const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
4
4
 
5
5
  describe('remove theme prop', () => {
6
- defineInlineTest(
7
- { default: transformer, parser: 'tsx' },
8
- {},
9
- `
6
+ defineInlineTest(
7
+ { default: transformer, parser: 'tsx' },
8
+ {},
9
+ `
10
10
  import React from 'react';
11
11
  import Lozenge from '@atlaskit/lozenge';
12
12
  import { useTheme } from '../../theme';
@@ -24,7 +24,7 @@ describe('remove theme prop', () => {
24
24
  );
25
25
  }
26
26
  `,
27
- `
27
+ `
28
28
  /* TODO: (from codemod)
29
29
  We could not automatically convert this code to the new API.
30
30
 
@@ -49,13 +49,13 @@ describe('remove theme prop', () => {
49
49
  );
50
50
  }
51
51
  `,
52
- `should remove theme if it is defined inline`,
53
- );
52
+ `should remove theme if it is defined inline`,
53
+ );
54
54
 
55
- defineInlineTest(
56
- { default: transformer, parser: 'tsx' },
57
- {},
58
- `
55
+ defineInlineTest(
56
+ { default: transformer, parser: 'tsx' },
57
+ {},
58
+ `
59
59
  import React from 'react';
60
60
  import Lozenge from '@atlaskit/lozenge';
61
61
  import { lozengeTheme } from '../../theme';
@@ -68,7 +68,7 @@ describe('remove theme prop', () => {
68
68
  );
69
69
  }
70
70
  `,
71
- `
71
+ `
72
72
  /* TODO: (from codemod)
73
73
  We could not automatically convert this code to the new API.
74
74
 
@@ -88,6 +88,6 @@ describe('remove theme prop', () => {
88
88
  );
89
89
  }
90
90
  `,
91
- `should remove theme if it is imported`,
92
- );
91
+ `should remove theme if it is imported`,
92
+ );
93
93
  });
@@ -1,97 +1,69 @@
1
- import {
2
- type ASTPath,
3
- type JSCodeshift,
4
- type JSXAttribute,
5
- type JSXElement,
6
- } from 'jscodeshift';
1
+ import { type ASTPath, type JSCodeshift, type JSXAttribute, type JSXElement } from 'jscodeshift';
7
2
  import { type Collection } from 'jscodeshift/src/Collection';
8
3
 
9
- import {
10
- getDefaultSpecifier,
11
- getJSXAttributesByName,
12
- } from '@atlaskit/codemod-utils';
4
+ import { getDefaultSpecifier, getJSXAttributesByName } from '@atlaskit/codemod-utils';
13
5
 
14
6
  const APPEARANCE_PROP_NAME = 'appearance';
15
7
 
16
8
  const STYLE_PROP_NAME = 'style';
17
9
 
18
- const moveObjectAppearanceToStyle = (
19
- j: JSCodeshift,
20
- source: Collection<Node>,
21
- ) => {
22
- const defaultSpecifier = getDefaultSpecifier(j, source, '@atlaskit/lozenge');
10
+ const moveObjectAppearanceToStyle = (j: JSCodeshift, source: Collection<Node>) => {
11
+ const defaultSpecifier = getDefaultSpecifier(j, source, '@atlaskit/lozenge');
23
12
 
24
- if (!defaultSpecifier) {
25
- return;
26
- }
13
+ if (!defaultSpecifier) {
14
+ return;
15
+ }
27
16
 
28
- source
29
- .findJSXElements(defaultSpecifier)
30
- .forEach((element: ASTPath<JSXElement>) => {
31
- getJSXAttributesByName(j, element, APPEARANCE_PROP_NAME).forEach(
32
- (attribute: ASTPath<JSXAttribute>) => {
33
- const { value } = attribute.node;
17
+ source.findJSXElements(defaultSpecifier).forEach((element: ASTPath<JSXElement>) => {
18
+ getJSXAttributesByName(j, element, APPEARANCE_PROP_NAME).forEach(
19
+ (attribute: ASTPath<JSXAttribute>) => {
20
+ const { value } = attribute.node;
34
21
 
35
- if (!value) {
36
- return;
37
- }
22
+ if (!value) {
23
+ return;
24
+ }
38
25
 
39
- switch (value.type) {
40
- case 'JSXExpressionContainer':
41
- const { expression: appearanceExpression } = value;
42
- if (appearanceExpression.type === 'ObjectExpression') {
43
- const styleAttributes = getJSXAttributesByName(
44
- j,
45
- element,
46
- STYLE_PROP_NAME,
47
- );
26
+ switch (value.type) {
27
+ case 'JSXExpressionContainer':
28
+ const { expression: appearanceExpression } = value;
29
+ if (appearanceExpression.type === 'ObjectExpression') {
30
+ const styleAttributes = getJSXAttributesByName(j, element, STYLE_PROP_NAME);
48
31
 
49
- if (styleAttributes.length === 0) {
50
- j(element)
51
- .find(j.JSXOpeningElement)
52
- .forEach((openingElement) => {
53
- openingElement.node.attributes?.push(
54
- j.jsxAttribute(
55
- j.jsxIdentifier(STYLE_PROP_NAME),
56
- j.jsxExpressionContainer(
57
- getMappedAppearance(j, appearanceExpression),
58
- ),
59
- ),
60
- );
61
- });
62
- j(attribute).remove();
63
- }
64
- }
65
- break;
66
- }
67
- },
68
- );
69
- });
32
+ if (styleAttributes.length === 0) {
33
+ j(element)
34
+ .find(j.JSXOpeningElement)
35
+ .forEach((openingElement) => {
36
+ openingElement.node.attributes?.push(
37
+ j.jsxAttribute(
38
+ j.jsxIdentifier(STYLE_PROP_NAME),
39
+ j.jsxExpressionContainer(getMappedAppearance(j, appearanceExpression)),
40
+ ),
41
+ );
42
+ });
43
+ j(attribute).remove();
44
+ }
45
+ }
46
+ break;
47
+ }
48
+ },
49
+ );
50
+ });
70
51
  };
71
52
 
72
- function getMappedAppearance(
73
- j: JSCodeshift,
74
- expression: Parameters<typeof j.memberExpression>[0],
75
- ) {
76
- const backgroundColorMemberExpression = j.memberExpression(
77
- expression,
78
- j.stringLiteral('backgroundColor'),
79
- );
80
- backgroundColorMemberExpression.computed = true;
53
+ function getMappedAppearance(j: JSCodeshift, expression: Parameters<typeof j.memberExpression>[0]) {
54
+ const backgroundColorMemberExpression = j.memberExpression(
55
+ expression,
56
+ j.stringLiteral('backgroundColor'),
57
+ );
58
+ backgroundColorMemberExpression.computed = true;
81
59
 
82
- const textColorMemberExpression = j.memberExpression(
83
- expression,
84
- j.stringLiteral('textColor'),
85
- );
86
- textColorMemberExpression.computed = true;
60
+ const textColorMemberExpression = j.memberExpression(expression, j.stringLiteral('textColor'));
61
+ textColorMemberExpression.computed = true;
87
62
 
88
- return j.objectExpression([
89
- j.objectProperty(
90
- j.identifier('backgroundColor'),
91
- backgroundColorMemberExpression,
92
- ),
93
- j.objectProperty(j.identifier('color'), textColorMemberExpression),
94
- ]);
63
+ return j.objectExpression([
64
+ j.objectProperty(j.identifier('backgroundColor'), backgroundColorMemberExpression),
65
+ j.objectProperty(j.identifier('color'), textColorMemberExpression),
66
+ ]);
95
67
  }
96
68
 
97
69
  export default moveObjectAppearanceToStyle;
@@ -10,9 +10,9 @@ See the example on https://atlaskit.atlassian.com/examples/design-system/lozenge
10
10
  `;
11
11
 
12
12
  const removeThemeProp = createRemoveFuncWithDefaultSpecifierFor(
13
- '@atlaskit/lozenge',
14
- 'theme',
15
- comment,
13
+ '@atlaskit/lozenge',
14
+ 'theme',
15
+ comment,
16
16
  );
17
17
 
18
18
  export default removeThemeProp;
@@ -2,26 +2,26 @@ import type core from 'jscodeshift';
2
2
  import { type Collection } from 'jscodeshift/src/Collection';
3
3
 
4
4
  import {
5
- addCommentToStartOfFile,
6
- getDefaultSpecifier,
7
- getJSXAttributesByName,
5
+ addCommentToStartOfFile,
6
+ getDefaultSpecifier,
7
+ getJSXAttributesByName,
8
8
  } from '@atlaskit/codemod-utils';
9
9
 
10
10
  export const createRemoveFuncWithDefaultSpecifierFor =
11
- (component: string, prop: string, comment?: string) =>
12
- (j: core.JSCodeshift, source: Collection<Node>) => {
13
- const specifier = getDefaultSpecifier(j, source, component);
11
+ (component: string, prop: string, comment?: string) =>
12
+ (j: core.JSCodeshift, source: Collection<Node>) => {
13
+ const specifier = getDefaultSpecifier(j, source, component);
14
14
 
15
- if (!specifier) {
16
- return;
17
- }
15
+ if (!specifier) {
16
+ return;
17
+ }
18
18
 
19
- source.findJSXElements(specifier).forEach((element) => {
20
- getJSXAttributesByName(j, element, prop).forEach((attribute: any) => {
21
- if (comment) {
22
- addCommentToStartOfFile({ j, base: source, message: comment });
23
- }
24
- j(attribute).remove();
25
- });
26
- });
27
- };
19
+ source.findJSXElements(specifier).forEach((element) => {
20
+ getJSXAttributesByName(j, element, prop).forEach((attribute: any) => {
21
+ if (comment) {
22
+ addCommentToStartOfFile({ j, base: source, message: comment });
23
+ }
24
+ j(attribute).remove();
25
+ });
26
+ });
27
+ };
@@ -7,8 +7,13 @@ exports.default = void 0;
7
7
  var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
9
  var _primitives = require("@atlaskit/primitives");
10
+ /**
11
+ * @jsxRuntime classic
12
+ */
10
13
  /** @jsx jsx */
11
14
 
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
+
12
17
  var baseStyles = (0, _primitives.xcss)({
13
18
  display: 'inline-flex',
14
19
  borderRadius: 'border.radius',
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { memo } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { Box, xcss } from '@atlaskit/primitives';
5
10
  const baseStyles = xcss({
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { memo } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { Box, xcss } from '@atlaskit/primitives';
5
10
  var baseStyles = xcss({
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type CSSProperties, type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type CSSProperties, type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
1
  {
2
- "name": "@atlaskit/lozenge",
3
- "version": "11.7.3",
4
- "description": "A lozenge is a visual indicator used to highlight an item's status for quick recognition.",
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
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "sideEffects": false,
24
- "atlaskit:src": "src/index.tsx",
25
- "af:exports": {
26
- ".": "./src/index.tsx",
27
- "./theme": "./src/theme.tsx"
28
- },
29
- "atlassian": {
30
- "team": "Design System Team",
31
- "releaseModel": "continuous",
32
- "productPushConsumption": [
33
- "jira"
34
- ],
35
- "website": {
36
- "name": "Lozenge",
37
- "category": "Components"
38
- },
39
- "runReact18": true
40
- },
41
- "dependencies": {
42
- "@atlaskit/codemod-utils": "^4.2.0",
43
- "@atlaskit/primitives": "^7.0.0",
44
- "@atlaskit/theme": "^12.9.0",
45
- "@atlaskit/tokens": "^1.49.0",
46
- "@babel/runtime": "^7.0.0",
47
- "@emotion/react": "^11.7.1"
48
- },
49
- "peerDependencies": {
50
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
51
- },
52
- "devDependencies": {
53
- "@af/accessibility-testing": "*",
54
- "@af/integration-testing": "*",
55
- "@af/visual-regression": "*",
56
- "@atlaskit/ds-lib": "^2.3.0",
57
- "@atlaskit/heading": "^2.3.0",
58
- "@atlaskit/ssr": "*",
59
- "@atlaskit/visual-regression": "*",
60
- "@testing-library/react": "^12.1.5",
61
- "jscodeshift": "^0.13.0",
62
- "react-dom": "^16.8.0",
63
- "typescript": "~5.4.2",
64
- "wait-for-expect": "^1.2.0"
65
- },
66
- "techstack": {
67
- "@atlassian/frontend": {
68
- "import-structure": "atlassian-conventions"
69
- },
70
- "@repo/internal": {
71
- "dom-events": "use-bind-event-listener",
72
- "design-system": "v1",
73
- "styling": [
74
- "static",
75
- "emotion"
76
- ],
77
- "ui-components": [
78
- "primitives",
79
- "lite-mode"
80
- ],
81
- "analytics": "analytics-next",
82
- "design-tokens": [
83
- "color",
84
- "spacing"
85
- ],
86
- "deprecation": "no-deprecated-imports"
87
- }
88
- },
89
- "homepage": "https://atlassian.design/components/lozenge/"
90
- }
2
+ "name": "@atlaskit/lozenge",
3
+ "version": "11.8.0",
4
+ "description": "A lozenge is a visual indicator used to highlight an item's status for quick recognition.",
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
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "sideEffects": false,
24
+ "atlaskit:src": "src/index.tsx",
25
+ "af:exports": {
26
+ ".": "./src/index.tsx",
27
+ "./theme": "./src/theme.tsx"
28
+ },
29
+ "atlassian": {
30
+ "team": "Design System Team",
31
+ "releaseModel": "continuous",
32
+ "productPushConsumption": [
33
+ "jira"
34
+ ],
35
+ "website": {
36
+ "name": "Lozenge",
37
+ "category": "Components"
38
+ },
39
+ "runReact18": true
40
+ },
41
+ "dependencies": {
42
+ "@atlaskit/codemod-utils": "^4.2.0",
43
+ "@atlaskit/primitives": "^7.4.0",
44
+ "@atlaskit/theme": "^12.10.0",
45
+ "@atlaskit/tokens": "^1.51.0",
46
+ "@babel/runtime": "^7.0.0",
47
+ "@emotion/react": "^11.7.1"
48
+ },
49
+ "peerDependencies": {
50
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
51
+ },
52
+ "devDependencies": {
53
+ "@af/accessibility-testing": "*",
54
+ "@af/integration-testing": "*",
55
+ "@af/visual-regression": "*",
56
+ "@atlaskit/ds-lib": "^2.3.0",
57
+ "@atlaskit/heading": "^2.4.0",
58
+ "@atlaskit/ssr": "*",
59
+ "@atlaskit/visual-regression": "*",
60
+ "@testing-library/react": "^12.1.5",
61
+ "jscodeshift": "^0.13.0",
62
+ "react-dom": "^16.8.0",
63
+ "typescript": "~5.4.2",
64
+ "wait-for-expect": "^1.2.0"
65
+ },
66
+ "techstack": {
67
+ "@atlassian/frontend": {
68
+ "import-structure": "atlassian-conventions"
69
+ },
70
+ "@repo/internal": {
71
+ "dom-events": "use-bind-event-listener",
72
+ "design-system": "v1",
73
+ "styling": [
74
+ "static",
75
+ "emotion"
76
+ ],
77
+ "ui-components": [
78
+ "primitives",
79
+ "lite-mode"
80
+ ],
81
+ "analytics": "analytics-next",
82
+ "design-tokens": [
83
+ "color",
84
+ "spacing"
85
+ ],
86
+ "deprecation": "no-deprecated-imports"
87
+ }
88
+ },
89
+ "homepage": "https://atlassian.design/components/lozenge/"
90
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/lozenge"
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
@@ -21,35 +22,22 @@ import { ReactNode } from 'react';
21
22
 
22
23
  // @public
23
24
  const Lozenge: React_2.MemoExoticComponent<
24
- ({
25
- children,
26
- testId,
27
- isBold,
28
- appearance,
29
- maxWidth,
30
- style,
31
- }: LozengeProps) => JSX.Element
25
+ ({ children, testId, isBold, appearance, maxWidth, style }: LozengeProps) => JSX.Element
32
26
  >;
33
27
  export default Lozenge;
34
28
 
35
29
  // @public (undocumented)
36
30
  interface LozengeProps {
37
- appearance?: ThemeAppearance;
38
- children?: ReactNode;
39
- isBold?: boolean;
40
- maxWidth?: number | string;
41
- style?: Pick<CSSProperties, 'backgroundColor' | 'color'>;
42
- testId?: string;
31
+ appearance?: ThemeAppearance;
32
+ children?: ReactNode;
33
+ isBold?: boolean;
34
+ maxWidth?: number | string;
35
+ style?: Pick<CSSProperties, 'backgroundColor' | 'color'>;
36
+ testId?: string;
43
37
  }
44
38
 
45
39
  // @public (undocumented)
46
- export type ThemeAppearance =
47
- | 'default'
48
- | 'inprogress'
49
- | 'moved'
50
- | 'new'
51
- | 'removed'
52
- | 'success';
40
+ export type ThemeAppearance = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
53
41
 
54
42
  // (No @packageDocumentation comment for this package)
55
43
  ```
@@ -62,7 +50,7 @@ export type ThemeAppearance =
62
50
 
63
51
  ```json
64
52
  {
65
- "react": "^16.8.0"
53
+ "react": "^16.8.0"
66
54
  }
67
55
  ```
68
56