@atlaskit/forge-react-types 0.41.10 → 0.41.11
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,13 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.41.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136342](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/136342)
|
|
8
|
+
[`6d88cf7078624`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d88cf7078624) -
|
|
9
|
+
Update Comment props
|
|
10
|
+
|
|
3
11
|
## 0.41.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -3,16 +3,29 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CommentProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ecbd850be9d8821ca6e5e96434b10f79>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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::
|
|
6
|
+
* @codegen <<SignedSource::ecbd850be9d8821ca6e5e96434b10f79>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
@@ -3,23 +3,36 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CommentProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ecbd850be9d8821ca6e5e96434b10f79>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/
|
|
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
|
|
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;
|