@atlaskit/forge-react-types 0.37.10 → 0.37.12

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,19 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.37.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#124902](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124902)
8
+ [`c4efc9298dbec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4efc9298dbec) -
9
+ Remove (most) workarounds on Text component
10
+
11
+ ## 0.37.11
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 0.37.10
4
18
 
5
19
  ### Patch Changes
@@ -1,18 +1,16 @@
1
+ import type { TextProps as PlatformTextProps } from '@atlaskit/primitives/compiled';
1
2
  /**
2
3
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
4
  *
4
5
  * Extract component prop types from UIKit 2 components - TextProps
5
6
  *
6
- * @codegen <<SignedSource::31d160b53a47008ce61df934652b99c0>>
7
+ * @codegen <<SignedSource::3f7781db8852b0cd5c500d260310f09f>>
7
8
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::813a1a6f22d33e27a5651da301ca7ab1>>
9
- */
10
- import React from 'react';
11
- import { Text as PlatformText } from '@atlaskit/primitives';
12
- type PlatformTextProps = React.ComponentProps<typeof PlatformText>;
13
- export type TextProps = Pick<PlatformTextProps, 'align' | 'as' | 'color' | 'maxLines' | 'size' | 'weight' | 'children' | 'testId'>;
14
- /**
15
- * Primitives are token-backed low-level building blocks.
9
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::0cf707b56e3bfd72ceec543d90b2f840>>
16
10
  */
11
+ type OriginalPlatformProps = Pick<PlatformTextProps, 'align' | 'as' | 'color' | 'maxLines' | 'size' | 'weight' | 'children' | 'testId'>;
12
+ export type TextProps = Omit<OriginalPlatformProps, 'as'> & {
13
+ as?: OriginalPlatformProps['as'] | 'strike';
14
+ };
17
15
  export type TText<T> = (props: TextProps) => T;
18
16
  export {};
@@ -1,18 +1,16 @@
1
+ import type { TextProps as PlatformTextProps } from '@atlaskit/primitives/compiled';
1
2
  /**
2
3
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
4
  *
4
5
  * Extract component prop types from UIKit 2 components - TextProps
5
6
  *
6
- * @codegen <<SignedSource::31d160b53a47008ce61df934652b99c0>>
7
+ * @codegen <<SignedSource::3f7781db8852b0cd5c500d260310f09f>>
7
8
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::813a1a6f22d33e27a5651da301ca7ab1>>
9
- */
10
- import React from 'react';
11
- import { Text as PlatformText } from '@atlaskit/primitives';
12
- type PlatformTextProps = React.ComponentProps<typeof PlatformText>;
13
- export type TextProps = Pick<PlatformTextProps, 'align' | 'as' | 'color' | 'maxLines' | 'size' | 'weight' | 'children' | 'testId'>;
14
- /**
15
- * Primitives are token-backed low-level building blocks.
9
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::0cf707b56e3bfd72ceec543d90b2f840>>
16
10
  */
11
+ type OriginalPlatformProps = Pick<PlatformTextProps, 'align' | 'as' | 'color' | 'maxLines' | 'size' | 'weight' | 'children' | 'testId'>;
12
+ export type TextProps = Omit<OriginalPlatformProps, 'as'> & {
13
+ as?: OriginalPlatformProps['as'] | 'strike';
14
+ };
17
15
  export type TText<T> = (props: TextProps) => T;
18
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.37.10",
3
+ "version": "0.37.12",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,14 +36,14 @@
36
36
  "@atlaskit/heading": "^5.1.0",
37
37
  "@atlaskit/inline-edit": "^15.1.0",
38
38
  "@atlaskit/lozenge": "^12.2.0",
39
- "@atlaskit/modal-dialog": "^13.0.0",
39
+ "@atlaskit/modal-dialog": "^13.1.0",
40
40
  "@atlaskit/popup": "^2.0.0",
41
41
  "@atlaskit/primitives": "^14.1.0",
42
42
  "@atlaskit/progress-bar": "^4.0.0",
43
43
  "@atlaskit/progress-tracker": "^10.0.0",
44
44
  "@atlaskit/radio": "^8.0.0",
45
45
  "@atlaskit/range": "^9.0.0",
46
- "@atlaskit/renderer": "^113.2.0",
46
+ "@atlaskit/renderer": "^114.3.0",
47
47
  "@atlaskit/section-message": "^8.1.0",
48
48
  "@atlaskit/select": "^20.0.0",
49
49
  "@atlaskit/spinner": "^18.0.0",
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/textarea": "^8.0.0",
54
54
  "@atlaskit/textfield": "^8.0.0",
55
55
  "@atlaskit/toggle": "^15.0.0",
56
- "@atlaskit/tokens": "^4.3.0",
56
+ "@atlaskit/tokens": "^4.5.0",
57
57
  "@atlaskit/tooltip": "^20.0.0",
58
58
  "@babel/runtime": "^7.0.0"
59
59
  },
@@ -1,25 +1,21 @@
1
+ import type { TextProps as PlatformTextProps } from '@atlaskit/primitives/compiled';
2
+
1
3
  /**
2
4
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
5
  *
4
6
  * Extract component prop types from UIKit 2 components - TextProps
5
7
  *
6
- * @codegen <<SignedSource::31d160b53a47008ce61df934652b99c0>>
8
+ * @codegen <<SignedSource::3f7781db8852b0cd5c500d260310f09f>>
7
9
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::813a1a6f22d33e27a5651da301ca7ab1>>
10
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/text/__generated__/index.partial.tsx <<SignedSource::0cf707b56e3bfd72ceec543d90b2f840>>
9
11
  */
10
12
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
13
 
12
- import React from 'react';
13
- import { Text as PlatformText } from '@atlaskit/primitives';
14
-
15
- type PlatformTextProps = React.ComponentProps<typeof PlatformText>;
16
-
17
- export type TextProps = Pick<
18
- PlatformTextProps,
19
- 'align' | 'as' | 'color' | 'maxLines' | 'size' | 'weight' | 'children' | 'testId'
14
+ type OriginalPlatformProps = Pick<
15
+ PlatformTextProps,
16
+ 'align' | 'as' | 'color' | 'maxLines' | 'size' | 'weight' | 'children' | 'testId'
20
17
  >;
21
18
 
22
- /**
23
- * Primitives are token-backed low-level building blocks.
24
- */
25
- export type TText<T> = (props: TextProps) => T;
19
+ export type TextProps = Omit<OriginalPlatformProps, 'as'> & { as?: OriginalPlatformProps['as'] | 'strike' };
20
+
21
+ export type TText<T> = (props: TextProps) => T;