@atlaskit/forge-react-types 0.44.1 → 0.45.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 +17 -0
- package/dist/cjs/components/__generated__/FilePickerProps.codegen.js +1 -0
- package/dist/es2019/components/__generated__/FilePickerProps.codegen.js +0 -0
- package/dist/esm/components/__generated__/FilePickerProps.codegen.js +0 -0
- package/dist/types/components/__generated__/FilePickerProps.codegen.d.ts +22 -0
- package/dist/types/components/__generated__/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/FilePickerProps.codegen.d.ts +22 -0
- package/dist/types-ts4.5/components/__generated__/index.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/components/__generated__/FilePickerProps.codegen.tsx +25 -0
- package/src/components/__generated__/index.ts +1 -0
- package/src/index.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`084bdadef716f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/084bdadef716f) -
|
|
8
|
+
Adds new FilePicker UI Kit component
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 0.44.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 0.44.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
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 - FilePickerProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::4556b999271f56b8aa2f4d0f9e1375d9>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::1bda27cea60042eb7c1c6e68507f7435>>
|
|
9
|
+
*/
|
|
10
|
+
type SerializedFile = {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
size: number;
|
|
14
|
+
data: string;
|
|
15
|
+
};
|
|
16
|
+
export type FilePickerProps = {
|
|
17
|
+
description?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
onChange?: (files: SerializedFile[]) => void | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
|
22
|
+
export {};
|
|
@@ -59,6 +59,7 @@ export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
|
59
59
|
export type { ValidMessageProps, TValidMessage } from './ValidMessageProps.codegen';
|
|
60
60
|
export type { PopupProps, TPopup } from './PopupProps.codegen';
|
|
61
61
|
export type { AdfRendererProps, TAdfRenderer } from './AdfRendererProps.codegen';
|
|
62
|
+
export type { FilePickerProps, TFilePicker } from './FilePickerProps.codegen';
|
|
62
63
|
import type { TextProps as OriginalTextProps } from './TextProps.codegen';
|
|
63
64
|
export type TextProps = Omit<OriginalTextProps, 'as'> & {
|
|
64
65
|
as?: OriginalTextProps['as'] | 'strike';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AdfRendererProps, BadgeProps, 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, PressableProps, TBadge, 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, TPressable, } from './components/__generated__';
|
|
1
|
+
export type { AdfRendererProps, BadgeProps, 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, PressableProps, TBadge, 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, TPressable, TFilePicker, } 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 { ChromelessEditorProps, CommentEditorProps, TChromelessEditor, TCommentEditor, } from './components/editor';
|
|
4
4
|
export type { ChartColorTokens } from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
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 - FilePickerProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::4556b999271f56b8aa2f4d0f9e1375d9>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::1bda27cea60042eb7c1c6e68507f7435>>
|
|
9
|
+
*/
|
|
10
|
+
type SerializedFile = {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
size: number;
|
|
14
|
+
data: string;
|
|
15
|
+
};
|
|
16
|
+
export type FilePickerProps = {
|
|
17
|
+
description?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
onChange?: (files: SerializedFile[]) => void | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
|
22
|
+
export {};
|
|
@@ -59,6 +59,7 @@ export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
|
59
59
|
export type { ValidMessageProps, TValidMessage } from './ValidMessageProps.codegen';
|
|
60
60
|
export type { PopupProps, TPopup } from './PopupProps.codegen';
|
|
61
61
|
export type { AdfRendererProps, TAdfRenderer } from './AdfRendererProps.codegen';
|
|
62
|
+
export type { FilePickerProps, TFilePicker } from './FilePickerProps.codegen';
|
|
62
63
|
import type { TextProps as OriginalTextProps } from './TextProps.codegen';
|
|
63
64
|
export type TextProps = Omit<OriginalTextProps, 'as'> & {
|
|
64
65
|
as?: OriginalTextProps['as'] | 'strike';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AdfRendererProps, BadgeProps, 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, PressableProps, TBadge, 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, TPressable, } from './components/__generated__';
|
|
1
|
+
export type { AdfRendererProps, BadgeProps, 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, PressableProps, TBadge, 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, TPressable, TFilePicker, } 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 { ChromelessEditorProps, CommentEditorProps, TChromelessEditor, TCommentEditor, } from './components/editor';
|
|
4
4
|
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.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/button": "^23.5.0",
|
|
25
|
-
"@atlaskit/comment": "^13.
|
|
25
|
+
"@atlaskit/comment": "^13.1.0",
|
|
26
26
|
"@atlaskit/datetime-picker": "^17.1.0",
|
|
27
27
|
"@atlaskit/dynamic-table": "^18.3.0",
|
|
28
28
|
"@atlaskit/form": "^14.2.0",
|
|
29
29
|
"@atlaskit/inline-edit": "^15.3.0",
|
|
30
30
|
"@atlaskit/modal-dialog": "^14.5.0",
|
|
31
|
-
"@atlaskit/navigation-system": "^
|
|
31
|
+
"@atlaskit/navigation-system": "^4.4.0",
|
|
32
32
|
"@atlaskit/popup": "^4.4.0",
|
|
33
33
|
"@atlaskit/primitives": "^16.0.0",
|
|
34
34
|
"@atlaskit/progress-bar": "^4.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/textfield": "^8.0.0",
|
|
45
45
|
"@atlaskit/toggle": "^15.1.0",
|
|
46
46
|
"@atlaskit/tokens": "^7.0.0",
|
|
47
|
-
"@atlaskit/tooltip": "^20.
|
|
47
|
+
"@atlaskit/tooltip": "^20.6.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@atlassian/codegen": "^0.1.0",
|
|
55
|
-
"@atlassian/forge-ui": "^32.
|
|
55
|
+
"@atlassian/forge-ui": "^32.42.0",
|
|
56
56
|
"@types/node": "~22.17.1",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"react": "^18.2.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 - FilePickerProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::4556b999271f56b8aa2f4d0f9e1375d9>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/filepicker/index.tsx <<SignedSource::1bda27cea60042eb7c1c6e68507f7435>>
|
|
9
|
+
*/
|
|
10
|
+
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
|
+
|
|
12
|
+
type SerializedFile = {
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
size: number;
|
|
16
|
+
data: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type FilePickerProps = {
|
|
20
|
+
description?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
onChange?: (files: SerializedFile[]) => void | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type TFilePicker<T> = (props: FilePickerProps) => T;
|
|
@@ -62,6 +62,7 @@ export type { TooltipProps, TTooltip } from './TooltipProps.codegen';
|
|
|
62
62
|
export type { ValidMessageProps, TValidMessage } from './ValidMessageProps.codegen';
|
|
63
63
|
export type { PopupProps, TPopup } from './PopupProps.codegen';
|
|
64
64
|
export type { AdfRendererProps, TAdfRenderer } from './AdfRendererProps.codegen';
|
|
65
|
+
export type { FilePickerProps, TFilePicker } from './FilePickerProps.codegen';
|
|
65
66
|
|
|
66
67
|
// Forge UI supports the value "strike" for the "as" prop of the Text component, to have a migration path
|
|
67
68
|
// off using <Strike>. The native ADS Text component does not support it, so we patched it to support it.
|
package/src/index.ts
CHANGED
|
@@ -125,6 +125,7 @@ export type {
|
|
|
125
125
|
TAdfRenderer,
|
|
126
126
|
TText,
|
|
127
127
|
TPressable,
|
|
128
|
+
TFilePicker,
|
|
128
129
|
} from './components/__generated__';
|
|
129
130
|
|
|
130
131
|
export type {
|
|
@@ -142,7 +143,7 @@ export type {
|
|
|
142
143
|
TLineChart,
|
|
143
144
|
TDonutChart,
|
|
144
145
|
TPieChart,
|
|
145
|
-
} from './components/charts'
|
|
146
|
+
} from './components/charts'
|
|
146
147
|
|
|
147
148
|
export type {
|
|
148
149
|
ChromelessEditorProps,
|