@atlaskit/forge-react-types 0.41.10 → 0.41.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.41.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.41.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [#136342](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/136342)
14
+ [`6d88cf7078624`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d88cf7078624) -
15
+ Update Comment props
16
+
3
17
  ## 0.41.10
4
18
 
5
19
  ### Patch Changes
@@ -3,16 +3,29 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CommentProps
5
5
  *
6
- * @codegen <<SignedSource::168060fac6a0765d20191280e916c97d>>
6
+ * @codegen <<SignedSource::ecbd850be9d8821ca6e5e96434b10f79>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/__generated__/index.partial.tsx <<SignedSource::9088f4c0a4e9e1ec151ec5ccba0cdfd6>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/index.tsx <<SignedSource::a42a431bd3b71fdfd0fe249d0fccee24>>
9
9
  */
10
10
  import React from 'react';
11
- import PlatformComment from '@atlaskit/comment';
12
- type PlatformCommentProps = React.ComponentProps<typeof PlatformComment>;
13
- export type CommentProps = Pick<PlatformCommentProps, 'actions' | 'afterContent' | 'avatar' | 'children' | 'content' | 'errorIconLabel' | 'headingLevel' | 'highlighted' | 'id' | 'isError' | 'isSaving' | 'restrictedTo' | 'savingText' | 'shouldRenderNestedCommentsInline' | 'testId' | 'type'>;
14
- /**
15
- * A comment displays discussions and user feedback.
16
- */
11
+ import { default as PlatformComment, CommentAuthor, CommentTime, CommentAction } from '@atlaskit/comment';
12
+ export type CommentProps = Omit<React.ComponentProps<typeof PlatformComment>, 'time' | 'author' | 'edited' | 'actions' | 'errorActions'> & {
13
+ time?: {
14
+ onClick?: React.ComponentProps<typeof CommentTime>['onClick'];
15
+ text: string;
16
+ };
17
+ author?: {
18
+ onClick?: React.ComponentProps<typeof CommentAuthor>['onClick'];
19
+ text: string;
20
+ };
21
+ edited?: string;
22
+ actions?: Array<{
23
+ onClick?: React.ComponentProps<typeof CommentAction>['onClick'];
24
+ text: string;
25
+ }>;
26
+ errorActions?: Array<{
27
+ onClick?: React.ComponentProps<typeof CommentAction>['onClick'];
28
+ text: string;
29
+ }>;
30
+ };
17
31
  export type TComment<T> = (props: CommentProps) => T;
18
- export {};
@@ -3,16 +3,29 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CommentProps
5
5
  *
6
- * @codegen <<SignedSource::168060fac6a0765d20191280e916c97d>>
6
+ * @codegen <<SignedSource::ecbd850be9d8821ca6e5e96434b10f79>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/__generated__/index.partial.tsx <<SignedSource::9088f4c0a4e9e1ec151ec5ccba0cdfd6>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/index.tsx <<SignedSource::a42a431bd3b71fdfd0fe249d0fccee24>>
9
9
  */
10
10
  import React from 'react';
11
- import PlatformComment from '@atlaskit/comment';
12
- type PlatformCommentProps = React.ComponentProps<typeof PlatformComment>;
13
- export type CommentProps = Pick<PlatformCommentProps, 'actions' | 'afterContent' | 'avatar' | 'children' | 'content' | 'errorIconLabel' | 'headingLevel' | 'highlighted' | 'id' | 'isError' | 'isSaving' | 'restrictedTo' | 'savingText' | 'shouldRenderNestedCommentsInline' | 'testId' | 'type'>;
14
- /**
15
- * A comment displays discussions and user feedback.
16
- */
11
+ import { default as PlatformComment, CommentAuthor, CommentTime, CommentAction } from '@atlaskit/comment';
12
+ export type CommentProps = Omit<React.ComponentProps<typeof PlatformComment>, 'time' | 'author' | 'edited' | 'actions' | 'errorActions'> & {
13
+ time?: {
14
+ onClick?: React.ComponentProps<typeof CommentTime>['onClick'];
15
+ text: string;
16
+ };
17
+ author?: {
18
+ onClick?: React.ComponentProps<typeof CommentAuthor>['onClick'];
19
+ text: string;
20
+ };
21
+ edited?: string;
22
+ actions?: Array<{
23
+ onClick?: React.ComponentProps<typeof CommentAction>['onClick'];
24
+ text: string;
25
+ }>;
26
+ errorActions?: Array<{
27
+ onClick?: React.ComponentProps<typeof CommentAction>['onClick'];
28
+ text: string;
29
+ }>;
30
+ };
17
31
  export type TComment<T> = (props: CommentProps) => T;
18
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.41.10",
3
+ "version": "0.41.12",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/progress-tracker": "10.0.3",
46
46
  "@atlaskit/radio": "8.0.3",
47
47
  "@atlaskit/range": "9.0.3",
48
- "@atlaskit/renderer": "114.7.3",
48
+ "@atlaskit/renderer": "114.7.4",
49
49
  "@atlaskit/section-message": "8.2.2",
50
50
  "@atlaskit/select": "20.1.0",
51
51
  "@atlaskit/spinner": "18.0.3",
@@ -3,23 +3,36 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - CommentProps
5
5
  *
6
- * @codegen <<SignedSource::168060fac6a0765d20191280e916c97d>>
6
+ * @codegen <<SignedSource::ecbd850be9d8821ca6e5e96434b10f79>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/__generated__/index.partial.tsx <<SignedSource::9088f4c0a4e9e1ec151ec5ccba0cdfd6>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/index.tsx <<SignedSource::a42a431bd3b71fdfd0fe249d0fccee24>>
9
9
  */
10
10
  /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
11
 
12
12
  import React from 'react';
13
- import PlatformComment from '@atlaskit/comment';
13
+ import { default as PlatformComment, CommentAuthor, CommentTime, CommentAction } from '@atlaskit/comment';
14
14
 
15
- type PlatformCommentProps = React.ComponentProps<typeof PlatformComment>;
15
+ export type CommentProps = Omit<
16
+ React.ComponentProps<typeof PlatformComment>,
17
+ 'time' | 'author' | 'edited' | 'actions' | 'errorActions'
18
+ > & {
19
+ time?: {
20
+ onClick?: React.ComponentProps<typeof CommentTime>['onClick'],
21
+ text: string
22
+ }
23
+ author?: {
24
+ onClick?: React.ComponentProps<typeof CommentAuthor>['onClick'],
25
+ text: string
26
+ }
27
+ edited?: string
28
+ actions?: Array<{
29
+ onClick?: React.ComponentProps<typeof CommentAction>['onClick'],
30
+ text: string
31
+ }>
32
+ errorActions?: Array<{
33
+ onClick?: React.ComponentProps<typeof CommentAction>['onClick'],
34
+ text: string
35
+ }>
36
+ }
16
37
 
17
- export type CommentProps = Pick<
18
- PlatformCommentProps,
19
- 'actions' | 'afterContent' | 'avatar' | 'children' | 'content' | 'errorIconLabel' | 'headingLevel' | 'highlighted' | 'id' | 'isError' | 'isSaving' | 'restrictedTo' | 'savingText' | 'shouldRenderNestedCommentsInline' | 'testId' | 'type'
20
- >;
21
-
22
- /**
23
- * A comment displays discussions and user feedback.
24
- */
25
38
  export type TComment<T> = (props: CommentProps) => T;