@atlaskit/forge-react-types 0.49.1 → 0.49.2
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 +7 -0
- package/dist/cjs/components/__generated__/BoxProps.codegen.js +2 -1
- package/dist/es2019/components/__generated__/BoxProps.codegen.js +2 -1
- package/dist/esm/components/__generated__/BoxProps.codegen.js +2 -1
- package/dist/types/components/__generated__/BoxProps.codegen.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +1 -1
- package/package.json +1 -1
- package/scripts/codegen/codeGenerator.ts +11 -11
- package/scripts/typechecker.ts +1 -1
- package/src/components/__generated__/BoxProps.codegen.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.49.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`891214b90e1f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/891214b90e1f9) -
|
|
8
|
+
Add eslint-warn rule to codegen components with XCSS
|
|
9
|
+
|
|
3
10
|
## 0.49.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -8,10 +8,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
*
|
|
9
9
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
10
10
|
*
|
|
11
|
-
* @codegen <<SignedSource::
|
|
11
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
12
12
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
13
13
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
14
14
|
*/
|
|
15
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
15
16
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
10
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
10
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
package/package.json
CHANGED
|
@@ -958,17 +958,17 @@ const handleXCSSProp: CodeConsolidator = ({
|
|
|
958
958
|
.filter((code) => !!code)
|
|
959
959
|
.join('\n');
|
|
960
960
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
961
|
+
return [
|
|
962
|
+
'/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */\n/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */',
|
|
963
|
+
importCode,
|
|
964
|
+
xcssValidatorVariableDeclarationCode,
|
|
965
|
+
externalTypesCode,
|
|
966
|
+
dependentTypeCode,
|
|
967
|
+
componentPropCode,
|
|
968
|
+
componentTypeCode,
|
|
969
|
+
]
|
|
970
|
+
.filter((code) => !!code)
|
|
971
|
+
.join('\n\n');
|
|
972
972
|
} finally {
|
|
973
973
|
sourceFile.getProject().removeSourceFile(utilsFile);
|
|
974
974
|
}
|
package/scripts/typechecker.ts
CHANGED
|
@@ -24,7 +24,7 @@ import { type LozengeProps as GeneratedLozengeProps } from '../src/components/__
|
|
|
24
24
|
import { type RangeProps as GeneratedRangeProps } from '../src/components/__generated__/RangeProps.codegen';
|
|
25
25
|
import { type IconProps as GeneratedIconProps } from '../src/components/__generated__/IconProps.codegen';
|
|
26
26
|
|
|
27
|
-
const assertAssignable = <A, B extends A>() => {
|
|
27
|
+
const assertAssignable = <A, B extends A>() => {};
|
|
28
28
|
|
|
29
29
|
assertAssignable<GeneratedBadgeProps, BadgeProps>();
|
|
30
30
|
assertAssignable<BadgeProps, GeneratedBadgeProps>();
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5713a45f955f5850078204892e910b64>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/index.tsx <<SignedSource::6b375bb57ecf19919f9e1b65e899fd96>>
|
|
9
9
|
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
10
11
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
12
|
|
|
12
13
|
import React from 'react';
|