@atlaskit/forge-react-types 0.22.4 → 0.24.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.
Files changed (24) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/components/__generated__/DatePickerProps.codegen.js +5 -1
  3. package/dist/cjs/components/__generated__/InlineEditProps.codegen.js +5 -0
  4. package/dist/cjs/components/__generated__/TimePickerProps.codegen.js +5 -0
  5. package/dist/es2019/components/__generated__/DatePickerProps.codegen.js +1 -0
  6. package/dist/es2019/components/__generated__/InlineEditProps.codegen.js +1 -0
  7. package/dist/es2019/components/__generated__/TimePickerProps.codegen.js +1 -0
  8. package/dist/esm/components/__generated__/DatePickerProps.codegen.js +1 -0
  9. package/dist/esm/components/__generated__/InlineEditProps.codegen.js +1 -0
  10. package/dist/esm/components/__generated__/TimePickerProps.codegen.js +1 -0
  11. package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +4 -2
  12. package/dist/types/components/__generated__/InlineEditProps.codegen.d.ts +14 -0
  13. package/dist/types/components/__generated__/ListProps.codegen.d.ts +2 -2
  14. package/dist/types/components/__generated__/index.d.ts +1 -0
  15. package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +4 -2
  16. package/dist/types-ts4.5/components/__generated__/InlineEditProps.codegen.d.ts +14 -0
  17. package/dist/types-ts4.5/components/__generated__/ListProps.codegen.d.ts +2 -2
  18. package/dist/types-ts4.5/components/__generated__/index.d.ts +1 -0
  19. package/package.json +7 -6
  20. package/src/components/__generated__/DatePickerProps.codegen.tsx +5 -2
  21. package/src/components/__generated__/InlineEditProps.codegen.tsx +16 -0
  22. package/src/components/__generated__/ListProps.codegen.tsx +2 -2
  23. package/src/components/__generated__/TimePickerProps.codegen.tsx +49 -0
  24. package/src/components/__generated__/index.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.24.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#119932](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119932)
8
+ [`798a9f4b8913d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/798a9f4b8913d) -
9
+ Add TimePicker component and types. Update DatePicker type
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 0.23.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#117808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117808)
20
+ [`bf24f053d5b93`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bf24f053d5b93) -
21
+ Add InlineEdit Component
22
+
3
23
  ## 0.22.4
4
24
 
5
25
  ### Patch Changes
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -3,10 +3,11 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4e6b9ae946e8fe8074d89a3ff2ac52e>>
6
+ * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::c81073870b6e0df94ccfaf046550c325>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
10
+ import type { SelectProps } from '@atlaskit/select';
10
11
  export interface FieldProps {
11
12
  id: string;
12
13
  isRequired: boolean;
@@ -43,5 +44,6 @@ export type DatePickerProps = {
43
44
  testId?: string;
44
45
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
45
46
  onChange?: (value: string) => void;
47
+ selectProps?: SelectProps<any | false>;
46
48
  } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
47
49
  export {};
@@ -0,0 +1,14 @@
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 - InlineEditProps
5
+ *
6
+ * @codegen <<SignedSource::df616049f34e7fd6ab871781645bdb6a>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::86ac72f92909d48a88b33710464753bb>>
9
+ */
10
+ import React from 'react';
11
+ import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
12
+ export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit>, 'validate' | 'analyticsContext' | 'readView' | 'editView'> & {
13
+ children: React.ReactNode;
14
+ };
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
6
+ * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListProps {
@@ -23,6 +23,7 @@ export type { HeadingProps } from './HeadingProps.codegen';
23
23
  export type { HelperMessageProps } from './HelperMessageProps.codegen';
24
24
  export type { IconProps } from './IconProps.codegen';
25
25
  export type { InlineProps } from './InlineProps.codegen';
26
+ export type { InlineEditProps } from './InlineEditProps.codegen';
26
27
  export type { LabelProps } from './LabelProps.codegen';
27
28
  export type { LinkButtonProps } from './LinkButtonProps.codegen';
28
29
  export type { ListProps } from './ListProps.codegen';
@@ -3,10 +3,11 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4e6b9ae946e8fe8074d89a3ff2ac52e>>
6
+ * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::c81073870b6e0df94ccfaf046550c325>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
10
+ import type { SelectProps } from '@atlaskit/select';
10
11
  export interface FieldProps {
11
12
  id: string;
12
13
  isRequired: boolean;
@@ -43,5 +44,6 @@ export type DatePickerProps = {
43
44
  testId?: string;
44
45
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
45
46
  onChange?: (value: string) => void;
47
+ selectProps?: SelectProps<any | false>;
46
48
  } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
47
49
  export {};
@@ -0,0 +1,14 @@
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 - InlineEditProps
5
+ *
6
+ * @codegen <<SignedSource::df616049f34e7fd6ab871781645bdb6a>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::86ac72f92909d48a88b33710464753bb>>
9
+ */
10
+ import React from 'react';
11
+ import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
12
+ export type InlineEditProps = Omit<React.ComponentProps<typeof PlatformInlineEdit>, 'validate' | 'analyticsContext' | 'readView' | 'editView'> & {
13
+ children: React.ReactNode;
14
+ };
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
6
+ * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListProps {
@@ -23,6 +23,7 @@ export type { HeadingProps } from './HeadingProps.codegen';
23
23
  export type { HelperMessageProps } from './HelperMessageProps.codegen';
24
24
  export type { IconProps } from './IconProps.codegen';
25
25
  export type { InlineProps } from './InlineProps.codegen';
26
+ export type { InlineEditProps } from './InlineEditProps.codegen';
26
27
  export type { LabelProps } from './LabelProps.codegen';
27
28
  export type { LinkButtonProps } from './LinkButtonProps.codegen';
28
29
  export type { ListProps } from './ListProps.codegen';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.22.4",
3
+ "version": "0.24.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/badge": "^16.3.0",
29
29
  "@atlaskit/banner": "^12.4.0",
30
- "@atlaskit/button": "^18.3.0",
30
+ "@atlaskit/button": "^18.4.0",
31
31
  "@atlaskit/calendar": "^14.3.0",
32
32
  "@atlaskit/checkbox": "^13.5.0",
33
33
  "@atlaskit/code": "^15.4.0",
@@ -35,23 +35,24 @@
35
35
  "@atlaskit/empty-state": "^7.9.0",
36
36
  "@atlaskit/form": "^10.4.0",
37
37
  "@atlaskit/heading": "^2.4.0",
38
- "@atlaskit/lozenge": "^11.8.0",
38
+ "@atlaskit/inline-edit": "^13.4.1",
39
+ "@atlaskit/lozenge": "^11.9.0",
39
40
  "@atlaskit/modal-dialog": "^12.14.0",
40
41
  "@atlaskit/primitives": "^11.0.0",
41
42
  "@atlaskit/progress-bar": "2.2.0",
42
- "@atlaskit/progress-tracker": "8.7.4",
43
+ "@atlaskit/progress-tracker": "8.7.5",
43
44
  "@atlaskit/radio": "^6.4.0",
44
45
  "@atlaskit/range": "^7.3.0",
45
46
  "@atlaskit/section-message": "^6.5.0",
46
47
  "@atlaskit/select": "^17.11.0",
47
48
  "@atlaskit/spinner": "^16.2.0",
48
- "@atlaskit/tabs": "^16.2.0",
49
+ "@atlaskit/tabs": "^16.3.0",
49
50
  "@atlaskit/tag": "^12.4.0",
50
51
  "@atlaskit/tag-group": "^10.4.0",
51
52
  "@atlaskit/textarea": "^5.5.0",
52
53
  "@atlaskit/textfield": "^6.4.0",
53
54
  "@atlaskit/toggle": "^13.2.0",
54
- "@atlaskit/tokens": "^1.53.0",
55
+ "@atlaskit/tokens": "^1.54.0",
55
56
  "@atlaskit/tooltip": "^18.5.0",
56
57
  "@babel/runtime": "^7.0.0"
57
58
  },
@@ -3,10 +3,12 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4e6b9ae946e8fe8074d89a3ff2ac52e>>
6
+ * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::c81073870b6e0df94ccfaf046550c325>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
10
+ import type { SelectProps } from '@atlaskit/select';
11
+
10
12
  export interface FieldProps {
11
13
  id: string;
12
14
  isRequired: boolean;
@@ -45,4 +47,5 @@ export type DatePickerProps = {
45
47
  testId?: string;
46
48
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
47
49
  onChange?:(value: string) => void;
50
+ selectProps?: SelectProps<any | false>;
48
51
  } & Partial<Omit<FieldProps, 'onChange' | 'isRequired' >>;
@@ -0,0 +1,16 @@
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 - InlineEditProps
5
+ *
6
+ * @codegen <<SignedSource::df616049f34e7fd6ab871781645bdb6a>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/inline-edit/index.tsx <<SignedSource::86ac72f92909d48a88b33710464753bb>>
9
+ */
10
+ import React from 'react';
11
+ import { default as PlatformInlineEdit } from '@atlaskit/inline-edit';
12
+
13
+ export type InlineEditProps = Omit<
14
+ React.ComponentProps<typeof PlatformInlineEdit>,
15
+ 'validate' | 'analyticsContext' | 'readView' | 'editView'
16
+ > & { children: React.ReactNode };
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
6
+ * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
9
9
  */
10
10
  import React from 'react';
11
11
 
@@ -0,0 +1,49 @@
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 - TimePickerProps
5
+ *
6
+ * @codegen <<SignedSource::a11aa419ac642ea0ddca74ef6b84f350>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/timepicker/__generated__/index.partial.tsx <<SignedSource::2e6a672ddad4f76e568e3236e7bd4e8e>>
9
+ */
10
+ import type { SelectProps } from '@atlaskit/select';
11
+
12
+ export interface FieldProps {
13
+ id: string;
14
+ isRequired: boolean;
15
+ isDisabled: boolean;
16
+ isInvalid: boolean;
17
+ onChange: (event: any) => any;
18
+ onBlur: () => any;
19
+ onFocus: () => any;
20
+ value: any;
21
+ 'aria-invalid': 'true' | 'false';
22
+ 'aria-labelledby': string;
23
+ name: string;
24
+ }
25
+
26
+ type Appearance = 'default' | 'subtle' | 'none';
27
+ type Spacing = 'compact' | 'default';
28
+
29
+ export type TimePickerProps = {
30
+ appearance?: Appearance;
31
+ autoFocus?: boolean;
32
+ defaultIsOpen?: boolean;
33
+ defaultValue?: string;
34
+ formatDisplayLabel?: (time: string, timeFormat: string) => string;
35
+ isOpen?: boolean;
36
+ label?: string;
37
+ onChange?: (value: string) => void;
38
+ spacing?: Spacing;
39
+ times?: string[];
40
+ timeIsEditable?: boolean;
41
+ value?: string;
42
+ isInvalid?: boolean;
43
+ hideIcon?: boolean;
44
+ timeFormat?: string;
45
+ placeholder?: string;
46
+ locale?: string;
47
+ testId?: string;
48
+ selectProps?: SelectProps<any | false>;
49
+ } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
@@ -23,6 +23,7 @@ export type { HeadingProps } from './HeadingProps.codegen';
23
23
  export type { HelperMessageProps } from './HelperMessageProps.codegen';
24
24
  export type { IconProps } from './IconProps.codegen';
25
25
  export type { InlineProps } from './InlineProps.codegen';
26
+ export type { InlineEditProps } from './InlineEditProps.codegen';
26
27
  export type { LabelProps } from './LabelProps.codegen';
27
28
  export type { LinkButtonProps } from './LinkButtonProps.codegen';
28
29
  export type { ListProps } from './ListProps.codegen';