@atlaskit/forge-react-types 0.39.1 → 0.40.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,13 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.40.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128054](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128054)
8
+ [`2bac28d495a29`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2bac28d495a29) -
9
+ Added Comment component from Atlaskit into Forge UI Kit 2
10
+
3
11
  ## 0.39.1
4
12
 
5
13
  ### Patch Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Extract component prop types from UIKit 2 components - CommentProps
5
+ *
6
+ * @codegen <<SignedSource::168060fac6a0765d20191280e916c97d>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/__generated__/index.partial.tsx <<SignedSource::9088f4c0a4e9e1ec151ec5ccba0cdfd6>>
9
+ */
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
+ */
17
+ export type TComment<T> = (props: CommentProps) => T;
18
+ export {};
@@ -8,6 +8,7 @@ export type { CalendarProps, TCalendar } from './CalendarProps.codegen';
8
8
  export type { CheckboxGroupProps, TCheckboxGroup } from './CheckboxGroupProps.codegen';
9
9
  export type { CodeBlockProps, TCodeBlock } from './CodeBlockProps.codegen';
10
10
  export type { CodeProps, TCode } from './CodeProps.codegen';
11
+ export type { CommentProps, TComment } from './CommentProps.codegen';
11
12
  export type { DatePickerProps, TDatePicker } from './DatePickerProps.codegen';
12
13
  export type { DynamicTableProps, TDynamicTable } from './DynamicTableProps.codegen';
13
14
  export type { EmptyStateProps, TEmptyState } from './EmptyStateProps.codegen';
@@ -40,7 +41,7 @@ export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerPr
40
41
  export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
41
42
  export type { RadioProps, TRadio } from './RadioProps.codegen';
42
43
  export type { RangeProps, TRange } from './RangeProps.codegen';
43
- export type { SectionMessageActionProps, TSectionMessageAction } from './SectionMessageActionProps.codegen';
44
+ export type { SectionMessageActionProps, TSectionMessageAction, } from './SectionMessageActionProps.codegen';
44
45
  export type { SectionMessageProps, TSectionMessage } from './SectionMessageProps.codegen';
45
46
  export type { SelectProps, TSelect } from './SelectProps.codegen';
46
47
  export type { SpinnerProps, TSpinner } from './SpinnerProps.codegen';
@@ -1,3 +1,3 @@
1
- export type { AdfRendererProps, BadgeProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, TBadge, TBleed, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, } from './components/__generated__';
1
+ export type { AdfRendererProps, BadgeProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, TBadge, TBleed, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, } from './components/__generated__';
2
2
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, TLineChart, TDonutChart, TPieChart, } from './components/charts';
3
3
  export type { ChartColorTokens } from './types';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Extract component prop types from UIKit 2 components - CommentProps
5
+ *
6
+ * @codegen <<SignedSource::168060fac6a0765d20191280e916c97d>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/__generated__/index.partial.tsx <<SignedSource::9088f4c0a4e9e1ec151ec5ccba0cdfd6>>
9
+ */
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
+ */
17
+ export type TComment<T> = (props: CommentProps) => T;
18
+ export {};
@@ -8,6 +8,7 @@ export type { CalendarProps, TCalendar } from './CalendarProps.codegen';
8
8
  export type { CheckboxGroupProps, TCheckboxGroup } from './CheckboxGroupProps.codegen';
9
9
  export type { CodeBlockProps, TCodeBlock } from './CodeBlockProps.codegen';
10
10
  export type { CodeProps, TCode } from './CodeProps.codegen';
11
+ export type { CommentProps, TComment } from './CommentProps.codegen';
11
12
  export type { DatePickerProps, TDatePicker } from './DatePickerProps.codegen';
12
13
  export type { DynamicTableProps, TDynamicTable } from './DynamicTableProps.codegen';
13
14
  export type { EmptyStateProps, TEmptyState } from './EmptyStateProps.codegen';
@@ -40,7 +41,7 @@ export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerPr
40
41
  export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
41
42
  export type { RadioProps, TRadio } from './RadioProps.codegen';
42
43
  export type { RangeProps, TRange } from './RangeProps.codegen';
43
- export type { SectionMessageActionProps, TSectionMessageAction } from './SectionMessageActionProps.codegen';
44
+ export type { SectionMessageActionProps, TSectionMessageAction, } from './SectionMessageActionProps.codegen';
44
45
  export type { SectionMessageProps, TSectionMessage } from './SectionMessageProps.codegen';
45
46
  export type { SelectProps, TSelect } from './SelectProps.codegen';
46
47
  export type { SpinnerProps, TSpinner } from './SpinnerProps.codegen';
@@ -1,3 +1,3 @@
1
- export type { AdfRendererProps, BadgeProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, TBadge, TBleed, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, } from './components/__generated__';
1
+ export type { AdfRendererProps, BadgeProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, TBadge, TBleed, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, } from './components/__generated__';
2
2
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, TLineChart, TDonutChart, TPieChart, } from './components/charts';
3
3
  export type { ChartColorTokens } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.39.1",
3
+ "version": "0.40.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,6 +29,7 @@
29
29
  "@atlaskit/calendar": "^17.1.0",
30
30
  "@atlaskit/checkbox": "^17.0.0",
31
31
  "@atlaskit/code": "^16.1.0",
32
+ "@atlaskit/comment": "^13.0.0",
32
33
  "@atlaskit/datetime-picker": "^16.2.0",
33
34
  "@atlaskit/dynamic-table": "^18.0.0",
34
35
  "@atlaskit/empty-state": "^9.0.0",
@@ -43,7 +44,7 @@
43
44
  "@atlaskit/progress-tracker": "^10.0.0",
44
45
  "@atlaskit/radio": "^8.0.0",
45
46
  "@atlaskit/range": "^9.0.0",
46
- "@atlaskit/renderer": "^114.5.0",
47
+ "@atlaskit/renderer": "^114.6.0",
47
48
  "@atlaskit/section-message": "^8.2.0",
48
49
  "@atlaskit/select": "^20.0.0",
49
50
  "@atlaskit/spinner": "^18.0.0",
@@ -0,0 +1,25 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Extract component prop types from UIKit 2 components - CommentProps
5
+ *
6
+ * @codegen <<SignedSource::168060fac6a0765d20191280e916c97d>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/comment/__generated__/index.partial.tsx <<SignedSource::9088f4c0a4e9e1ec151ec5ccba0cdfd6>>
9
+ */
10
+ /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
+
12
+ import React from 'react';
13
+ import PlatformComment from '@atlaskit/comment';
14
+
15
+ type PlatformCommentProps = React.ComponentProps<typeof PlatformComment>;
16
+
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
+ export type TComment<T> = (props: CommentProps) => T;
@@ -8,6 +8,7 @@ export type { CalendarProps, TCalendar } from './CalendarProps.codegen';
8
8
  export type { CheckboxGroupProps, TCheckboxGroup } from './CheckboxGroupProps.codegen';
9
9
  export type { CodeBlockProps, TCodeBlock } from './CodeBlockProps.codegen';
10
10
  export type { CodeProps, TCode } from './CodeProps.codegen';
11
+ export type { CommentProps, TComment } from './CommentProps.codegen';
11
12
  export type { DatePickerProps, TDatePicker } from './DatePickerProps.codegen';
12
13
  export type { DynamicTableProps, TDynamicTable } from './DynamicTableProps.codegen';
13
14
  export type { EmptyStateProps, TEmptyState } from './EmptyStateProps.codegen';
@@ -40,7 +41,10 @@ export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerPr
40
41
  export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
41
42
  export type { RadioProps, TRadio } from './RadioProps.codegen';
42
43
  export type { RangeProps, TRange } from './RangeProps.codegen';
43
- export type { SectionMessageActionProps, TSectionMessageAction } from './SectionMessageActionProps.codegen';
44
+ export type {
45
+ SectionMessageActionProps,
46
+ TSectionMessageAction,
47
+ } from './SectionMessageActionProps.codegen';
44
48
  export type { SectionMessageProps, TSectionMessage } from './SectionMessageProps.codegen';
45
49
  export type { SelectProps, TSelect } from './SelectProps.codegen';
46
50
  export type { SpinnerProps, TSpinner } from './SpinnerProps.codegen';
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export type {
10
10
  CheckboxGroupProps,
11
11
  CodeBlockProps,
12
12
  CodeProps,
13
+ CommentProps,
13
14
  DatePickerProps,
14
15
  DynamicTableProps,
15
16
  EmptyStateProps,
@@ -71,6 +72,7 @@ export type {
71
72
  TCheckboxGroup,
72
73
  TCodeBlock,
73
74
  TCode,
75
+ TComment,
74
76
  TDatePicker,
75
77
  TDynamicTable,
76
78
  TEmptyState,