@atlaskit/forge-react-types 0.32.3 → 0.33.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,17 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.33.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#172352](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/172352)
8
+ [`b4e5a04b0a7b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b4e5a04b0a7b1) -
9
+ Removes deprecated props from UI Kit components
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.32.3
4
16
 
5
17
  ### Patch Changes
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::1da6b38ff77e9ba90fed8f7e3fdcab6b>>
6
+ * @codegen <<SignedSource::7d5ca188bceddb8dc1bab0cc6c12b7eb>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::d7ce045cdb974347d07688b1b6a7faac>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::e7893d718c9c99386f3ffafcffbbfbf7>>
9
9
  */
10
10
  import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
11
  export interface FieldProps {
@@ -21,12 +21,9 @@ export interface FieldProps {
21
21
  'aria-labelledby': string;
22
22
  name: string;
23
23
  }
24
- type Appearance = 'default' | 'subtle' | 'none';
25
24
  type Spacing = 'compact' | 'default';
26
25
  export type DatePickerProps = {
27
- appearance?: Appearance;
28
26
  autoFocus?: boolean;
29
- defaultIsOpen?: boolean;
30
27
  defaultValue?: string;
31
28
  disabled?: string[];
32
29
  maxDate?: string;
@@ -45,5 +42,6 @@ export type DatePickerProps = {
45
42
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
46
43
  onChange?: (value: string) => void;
47
44
  selectProps?: DateTimePickerSelectProps;
45
+ shouldShowCalendarButton?: boolean;
48
46
  } & Partial<Omit<FieldProps, 'onChange'>>;
49
47
  export {};
@@ -3,11 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - SelectProps
5
5
  *
6
- * @codegen <<SignedSource::fabe92555f9719783df92aea020d8f40>>
6
+ * @codegen <<SignedSource::2bc7fe8cfb0042989648b8ea50915b1c>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::fc28a764d3f41f08f055dafdd7317278>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::1401c8d11b6573ebf4985ff32ed39da9>>
9
9
  */
10
10
  import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
11
- export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'appearance' | 'aria-invalid' | 'aria-labelledby' | 'autoFocus' | 'closeMenuOnScroll' | 'closeMenuOnSelect' | 'defaultInputValue' | 'defaultMenuIsOpen' | 'defaultValue' | 'id' | 'inputId' | 'inputValue' | 'isClearable' | 'isDisabled' | 'isInvalid' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInputChange' | 'openMenuOnFocus' | 'options' | 'placeholder' | 'spacing' | 'testId' | 'value'> & {
12
- isRequired?: boolean;
13
- };
11
+ export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'appearance' | 'autoFocus' | 'closeMenuOnScroll' | 'closeMenuOnSelect' | 'defaultInputValue' | 'defaultMenuIsOpen' | 'defaultValue' | 'id' | 'inputId' | 'inputValue' | 'isClearable' | 'isDisabled' | 'isInvalid' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInputChange' | 'options' | 'placeholder' | 'spacing' | 'testId' | 'value' | 'isRequired'>;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TimePickerProps
5
5
  *
6
- * @codegen <<SignedSource::db62df2c8928eb77a589694a6741e9ae>>
6
+ * @codegen <<SignedSource::900a8ca4989787ed581746e8c8ee267a>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::45eaafdd9a1bbc8b356cc8a9b5365bc1>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::5c2d81f7609af38cf6593bb1d4e06fe1>>
9
9
  */
10
10
  import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
11
  export interface FieldProps {
@@ -21,12 +21,9 @@ export interface FieldProps {
21
21
  'aria-labelledby': string;
22
22
  name: string;
23
23
  }
24
- type Appearance = 'default' | 'subtle' | 'none';
25
24
  type Spacing = 'compact' | 'default';
26
25
  export type TimePickerProps = {
27
- appearance?: Appearance;
28
26
  autoFocus?: boolean;
29
- defaultIsOpen?: boolean;
30
27
  defaultValue?: string;
31
28
  isOpen?: boolean;
32
29
  label?: string;
@@ -42,5 +39,5 @@ export type TimePickerProps = {
42
39
  locale?: string;
43
40
  testId?: string;
44
41
  selectProps?: DateTimePickerSelectProps;
45
- } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
42
+ } & Partial<Omit<FieldProps, 'onChange'>>;
46
43
  export {};
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::1da6b38ff77e9ba90fed8f7e3fdcab6b>>
6
+ * @codegen <<SignedSource::7d5ca188bceddb8dc1bab0cc6c12b7eb>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::d7ce045cdb974347d07688b1b6a7faac>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::e7893d718c9c99386f3ffafcffbbfbf7>>
9
9
  */
10
10
  import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
11
  export interface FieldProps {
@@ -21,12 +21,9 @@ export interface FieldProps {
21
21
  'aria-labelledby': string;
22
22
  name: string;
23
23
  }
24
- type Appearance = 'default' | 'subtle' | 'none';
25
24
  type Spacing = 'compact' | 'default';
26
25
  export type DatePickerProps = {
27
- appearance?: Appearance;
28
26
  autoFocus?: boolean;
29
- defaultIsOpen?: boolean;
30
27
  defaultValue?: string;
31
28
  disabled?: string[];
32
29
  maxDate?: string;
@@ -45,5 +42,6 @@ export type DatePickerProps = {
45
42
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
46
43
  onChange?: (value: string) => void;
47
44
  selectProps?: DateTimePickerSelectProps;
45
+ shouldShowCalendarButton?: boolean;
48
46
  } & Partial<Omit<FieldProps, 'onChange'>>;
49
47
  export {};
@@ -3,11 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - SelectProps
5
5
  *
6
- * @codegen <<SignedSource::fabe92555f9719783df92aea020d8f40>>
6
+ * @codegen <<SignedSource::2bc7fe8cfb0042989648b8ea50915b1c>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::fc28a764d3f41f08f055dafdd7317278>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::1401c8d11b6573ebf4985ff32ed39da9>>
9
9
  */
10
10
  import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
11
- export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'appearance' | 'aria-invalid' | 'aria-labelledby' | 'autoFocus' | 'closeMenuOnScroll' | 'closeMenuOnSelect' | 'defaultInputValue' | 'defaultMenuIsOpen' | 'defaultValue' | 'id' | 'inputId' | 'inputValue' | 'isClearable' | 'isDisabled' | 'isInvalid' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInputChange' | 'openMenuOnFocus' | 'options' | 'placeholder' | 'spacing' | 'testId' | 'value'> & {
12
- isRequired?: boolean;
13
- };
11
+ export type SelectProps = Pick<PlatformSelectProps<any, true | false>, 'appearance' | 'autoFocus' | 'closeMenuOnScroll' | 'closeMenuOnSelect' | 'defaultInputValue' | 'defaultMenuIsOpen' | 'defaultValue' | 'id' | 'inputId' | 'inputValue' | 'isClearable' | 'isDisabled' | 'isInvalid' | 'isLoading' | 'isMulti' | 'isSearchable' | 'menuIsOpen' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInputChange' | 'options' | 'placeholder' | 'spacing' | 'testId' | 'value' | 'isRequired'>;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TimePickerProps
5
5
  *
6
- * @codegen <<SignedSource::db62df2c8928eb77a589694a6741e9ae>>
6
+ * @codegen <<SignedSource::900a8ca4989787ed581746e8c8ee267a>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::45eaafdd9a1bbc8b356cc8a9b5365bc1>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::5c2d81f7609af38cf6593bb1d4e06fe1>>
9
9
  */
10
10
  import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
11
  export interface FieldProps {
@@ -21,12 +21,9 @@ export interface FieldProps {
21
21
  'aria-labelledby': string;
22
22
  name: string;
23
23
  }
24
- type Appearance = 'default' | 'subtle' | 'none';
25
24
  type Spacing = 'compact' | 'default';
26
25
  export type TimePickerProps = {
27
- appearance?: Appearance;
28
26
  autoFocus?: boolean;
29
- defaultIsOpen?: boolean;
30
27
  defaultValue?: string;
31
28
  isOpen?: boolean;
32
29
  label?: string;
@@ -42,5 +39,5 @@ export type TimePickerProps = {
42
39
  locale?: string;
43
40
  testId?: string;
44
41
  selectProps?: DateTimePickerSelectProps;
45
- } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
42
+ } & Partial<Omit<FieldProps, 'onChange'>>;
46
43
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.32.3",
3
+ "version": "0.33.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,15 +37,15 @@
37
37
  "@atlaskit/inline-edit": "^13.7.0",
38
38
  "@atlaskit/lozenge": "^11.12.0",
39
39
  "@atlaskit/modal-dialog": "^12.18.0",
40
- "@atlaskit/popup": "^1.29.0",
40
+ "@atlaskit/popup": "^1.30.0",
41
41
  "@atlaskit/primitives": "^13.3.0",
42
42
  "@atlaskit/progress-bar": "3.0.1",
43
- "@atlaskit/progress-tracker": "8.11.1",
43
+ "@atlaskit/progress-tracker": "9.0.0",
44
44
  "@atlaskit/radio": "^6.6.0",
45
45
  "@atlaskit/range": "^7.4.0",
46
46
  "@atlaskit/renderer": "^112.6.0",
47
47
  "@atlaskit/section-message": "^6.8.0",
48
- "@atlaskit/select": "^18.6.0",
48
+ "@atlaskit/select": "^18.7.0",
49
49
  "@atlaskit/spinner": "^16.3.0",
50
50
  "@atlaskit/tabs": "^16.5.0",
51
51
  "@atlaskit/tag": "^12.6.0",
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::1da6b38ff77e9ba90fed8f7e3fdcab6b>>
6
+ * @codegen <<SignedSource::7d5ca188bceddb8dc1bab0cc6c12b7eb>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::d7ce045cdb974347d07688b1b6a7faac>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::e7893d718c9c99386f3ffafcffbbfbf7>>
9
9
  */
10
10
  import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
11
 
@@ -23,13 +23,10 @@ export interface FieldProps {
23
23
  name: string;
24
24
  }
25
25
 
26
- type Appearance = 'default' | 'subtle' | 'none';
27
26
  type Spacing = 'compact' | 'default';
28
27
 
29
28
  export type DatePickerProps = {
30
- appearance?: Appearance;
31
29
  autoFocus?: boolean;
32
- defaultIsOpen?: boolean;
33
30
  defaultValue?: string;
34
31
  disabled?: string[];
35
32
  maxDate?: string;
@@ -48,4 +45,5 @@ export type DatePickerProps = {
48
45
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
49
46
  onChange?: (value: string) => void;
50
47
  selectProps?: DateTimePickerSelectProps;
48
+ shouldShowCalendarButton?: boolean;
51
49
  } & Partial<Omit<FieldProps, 'onChange'>>;
@@ -3,17 +3,15 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - SelectProps
5
5
  *
6
- * @codegen <<SignedSource::fabe92555f9719783df92aea020d8f40>>
6
+ * @codegen <<SignedSource::2bc7fe8cfb0042989648b8ea50915b1c>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::fc28a764d3f41f08f055dafdd7317278>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/select/index.tsx <<SignedSource::1401c8d11b6573ebf4985ff32ed39da9>>
9
9
  */
10
10
  import type { SelectProps as PlatformSelectProps } from '@atlaskit/select';
11
11
 
12
12
  export type SelectProps = Pick<
13
13
  PlatformSelectProps<any, true | false>,
14
14
  | 'appearance'
15
- | 'aria-invalid'
16
- | 'aria-labelledby'
17
15
  | 'autoFocus'
18
16
  | 'closeMenuOnScroll'
19
17
  | 'closeMenuOnSelect'
@@ -21,6 +19,7 @@ export type SelectProps = Pick<
21
19
  | 'defaultMenuIsOpen'
22
20
  | 'defaultValue'
23
21
  | 'id'
22
+ // `id` should be used instead of inputId. `inputId` is retained for now for backwards compatibility
24
23
  | 'inputId'
25
24
  | 'inputValue'
26
25
  | 'isClearable'
@@ -35,10 +34,10 @@ export type SelectProps = Pick<
35
34
  | 'onChange'
36
35
  | 'onFocus'
37
36
  | 'onInputChange'
38
- | 'openMenuOnFocus'
39
37
  | 'options'
40
38
  | 'placeholder'
41
39
  | 'spacing'
42
40
  | 'testId'
43
41
  | 'value'
44
- > & { isRequired?: boolean };
42
+ | 'isRequired'
43
+ >;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - TimePickerProps
5
5
  *
6
- * @codegen <<SignedSource::db62df2c8928eb77a589694a6741e9ae>>
6
+ * @codegen <<SignedSource::900a8ca4989787ed581746e8c8ee267a>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::45eaafdd9a1bbc8b356cc8a9b5365bc1>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::5c2d81f7609af38cf6593bb1d4e06fe1>>
9
9
  */
10
10
  import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
11
 
@@ -23,13 +23,10 @@ export interface FieldProps {
23
23
  name: string;
24
24
  }
25
25
 
26
- type Appearance = 'default' | 'subtle' | 'none';
27
26
  type Spacing = 'compact' | 'default';
28
27
 
29
28
  export type TimePickerProps = {
30
- appearance?: Appearance;
31
29
  autoFocus?: boolean;
32
- defaultIsOpen?: boolean;
33
30
  defaultValue?: string;
34
31
  isOpen?: boolean;
35
32
  label?: string;
@@ -44,5 +41,5 @@ export type TimePickerProps = {
44
41
  placeholder?: string;
45
42
  locale?: string;
46
43
  testId?: string;
47
- selectProps?: DateTimePickerSelectProps;
48
- } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
44
+ selectProps?: DateTimePickerSelectProps;
45
+ } & Partial<Omit<FieldProps, 'onChange'>>;