@atlaskit/color-picker 3.0.1 → 3.0.3

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/color-picker
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
14
+
3
15
  ## 3.0.1
4
16
 
5
17
  ### Patch Changes
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/components/ColorPaletteMenu.js",
4
4
  "module": "../dist/esm/components/ColorPaletteMenu.js",
5
5
  "module:es2019": "../dist/es2019/components/ColorPaletteMenu.js",
6
- "types": "../dist/types/components/ColorPaletteMenu.d.ts"
6
+ "types": "../dist/types/components/ColorPaletteMenu.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/components/ColorPaletteMenu.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
@@ -166,8 +166,7 @@ describe('Convert positionFixed:boolean to strategy:"fixed"|"absolute"', () => {
166
166
 
167
167
  describe('Warn use of the `modifiers` prop', () => {
168
168
  check({
169
- it:
170
- 'should add warning comment when using the modifier prop in `popperProps`',
169
+ it: 'should add warning comment when using the modifier prop in `popperProps`',
171
170
  original: `
172
171
  import ColorPicker from '@atlaskit/color-picker';
173
172
 
@@ -60,7 +60,7 @@ var defaultPopperProps = {
60
60
  placement: 'bottom-start'
61
61
  };
62
62
  var packageName = "@atlaskit/color-picker";
63
- var packageVersion = "3.0.1";
63
+ var packageVersion = "3.0.3";
64
64
 
65
65
  var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
66
66
  (0, _inherits2.default)(ColorPickerWithoutAnalytics, _React$Component);
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.1"
3
+ "version": "3.0.3"
4
4
  }
@@ -19,7 +19,7 @@ const defaultPopperProps = {
19
19
  placement: 'bottom-start'
20
20
  };
21
21
  const packageName = "@atlaskit/color-picker";
22
- const packageVersion = "3.0.1";
22
+ const packageVersion = "3.0.3";
23
23
  export class ColorPickerWithoutAnalytics extends React.Component {
24
24
  constructor(...args) {
25
25
  super(...args);
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.1"
3
+ "version": "3.0.3"
4
4
  }
@@ -30,7 +30,7 @@ var defaultPopperProps = {
30
30
  placement: 'bottom-start'
31
31
  };
32
32
  var packageName = "@atlaskit/color-picker";
33
- var packageVersion = "3.0.1";
33
+ var packageVersion = "3.0.3";
34
34
  export var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
35
35
  _inherits(ColorPickerWithoutAnalytics, _React$Component);
36
36
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.1"
3
+ "version": "3.0.3"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Jira Color Picker Component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@atlaskit/analytics-next": "^8.2.0",
25
- "@atlaskit/icon": "^21.10.0",
26
- "@atlaskit/select": "^15.6.0",
27
- "@atlaskit/theme": "^12.1.0",
28
- "@atlaskit/tokens": "^0.10.0",
25
+ "@atlaskit/icon": "^21.11.0",
26
+ "@atlaskit/select": "^15.7.0",
27
+ "@atlaskit/theme": "^12.2.0",
28
+ "@atlaskit/tokens": "^0.11.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "memoize-one": "^6.0.0",
31
31
  "styled-components": "^3.2.6"
@@ -42,7 +42,7 @@
42
42
  "enzyme-adapter-react-16": "^1.15.1",
43
43
  "jscodeshift": "^0.13.0",
44
44
  "react": "^16.8.0",
45
- "typescript": "4.3.5"
45
+ "typescript": "4.5.5"
46
46
  },
47
47
  "keywords": [
48
48
  "ui",
package/report.api.md CHANGED
@@ -1,8 +1,17 @@
1
- ## API Report File for "@atlaskit/color-picker".
1
+ <!-- API Report Version: 2.3 -->
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ ## API Report File for "@atlaskit/color-picker"
4
4
 
5
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
6
15
 
7
16
  ```ts
8
17
  import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
@@ -14,16 +23,20 @@ import { ValueType } from '@atlaskit/select';
14
23
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
15
24
  import { WithContextProps } from '@atlaskit/analytics-next';
16
25
 
17
- declare interface Color {
26
+ // @public (undocumented)
27
+ interface Color {
28
+ // (undocumented)
18
29
  label: string;
30
+ // (undocumented)
19
31
  value: string;
20
32
  }
21
33
 
22
- export declare const ColorPaletteMenu: React_2.ForwardRefExoticComponent<
34
+ // @public (undocumented)
35
+ export const ColorPaletteMenu: React_2.ForwardRefExoticComponent<
23
36
  Pick<
24
37
  Pick<
25
38
  Omit<ColorPaletteMenuProps, keyof WithAnalyticsEventsProps>,
26
- 'label' | 'onChange' | 'checkMarkColor' | 'palette' | 'selectedColor'
39
+ 'checkMarkColor' | 'label' | 'onChange' | 'palette' | 'selectedColor'
27
40
  > &
28
41
  Partial<
29
42
  Pick<
@@ -42,117 +55,122 @@ export declare const ColorPaletteMenu: React_2.ForwardRefExoticComponent<
42
55
  > &
43
56
  React_2.RefAttributes<any> &
44
57
  WithContextProps,
45
- | 'label'
46
- | 'key'
47
- | 'onChange'
58
+ | 'analyticsContext'
48
59
  | 'checkMarkColor'
49
60
  | 'cols'
61
+ | 'key'
62
+ | 'label'
50
63
  | 'mode'
64
+ | 'onChange'
51
65
  | 'palette'
52
66
  | 'selectedColor'
53
- | 'analyticsContext'
54
67
  > &
55
68
  React_2.RefAttributes<any>
56
69
  >;
57
70
 
58
- export declare interface ColorPaletteMenuProps {
59
- /** color picker button label */
60
- label?: string;
61
- /** list of available colors */
62
- palette: Palette;
63
- /** selected color */
64
- selectedColor?: string;
65
- /** maximum column length */
66
- cols: number;
67
- /** color of checkmark on selected color */
71
+ // @public (undocumented)
72
+ export interface ColorPaletteMenuProps {
68
73
  checkMarkColor?: string;
69
- /** onChange handler */
70
- onChange: (value: string, analyticsEvent?: object) => void;
71
- /** You should not be accessing this prop under any circumstances. It is provided by @atlaskit/analytics-next. */
74
+ cols: number;
72
75
  createAnalyticsEvent?: any;
73
- /** style of the color-picker, either 'Compact' or 'Standard', default value is 'Standard' */
76
+ label?: string;
74
77
  mode?: Mode;
78
+ onChange: (value: string, analyticsEvent?: object) => void;
79
+ palette: Palette;
80
+ selectedColor?: string;
75
81
  }
76
82
 
77
- export declare class ColorPaletteMenuWithoutAnalytics extends React_2.Component<
78
- ColorPaletteMenuProps
79
- > {
83
+ // @public (undocumented)
84
+ export class ColorPaletteMenuWithoutAnalytics extends React_2.Component<ColorPaletteMenuProps> {
85
+ // (undocumented)
86
+ changeAnalyticsCaller: () => UIAnalyticsEvent | undefined;
87
+ // (undocumented)
88
+ createAndFireEventOnAtlaskit: (
89
+ payload: AnalyticsEventPayload,
90
+ ) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
91
+ // (undocumented)
80
92
  static defaultProps: {
81
93
  cols: number;
82
94
  mode: Mode;
83
95
  };
84
- createAndFireEventOnAtlaskit: (
85
- payload: AnalyticsEventPayload,
86
- ) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
87
- changeAnalyticsCaller: () => UIAnalyticsEvent | undefined;
96
+ // (undocumented)
88
97
  onChange: (value: string) => void;
98
+ // (undocumented)
89
99
  render(): JSX.Element;
90
100
  }
91
101
 
92
- export declare interface ColorPickerProps {
93
- /** color picker button label */
102
+ // @public (undocumented)
103
+ export interface ColorPickerProps {
104
+ checkMarkColor?: string;
105
+ cols?: number;
106
+ createAnalyticsEvent?: any;
94
107
  label?: string;
95
- /** list of available colors */
108
+ onChange: (value: string, analyticsEvent?: object) => void;
96
109
  palette: Palette;
97
- /** selected color */
98
- selectedColor?: string;
99
- /** maximum column length */
100
- cols?: number;
101
- /** color of checkmark on selected color */
102
- checkMarkColor?: string;
103
- /** props for react-popper */
104
110
  popperProps?: PopupSelectProps['popperProps'];
105
- /** onChange handler */
106
- onChange: (value: string, analyticsEvent?: object) => void;
107
- /** You should not be accessing this prop under any circumstances. It is provided by @atlaskit/analytics-next. */
108
- createAnalyticsEvent?: any;
111
+ selectedColor?: string;
109
112
  }
110
113
 
111
- export declare class ColorPickerWithoutAnalytics extends React_2.Component<
112
- ColorPickerProps
113
- > {
114
+ // @public (undocumented)
115
+ export class ColorPickerWithoutAnalytics extends React_2.Component<ColorPickerProps> {
116
+ // (undocumented)
117
+ changeAnalyticsCaller: () => UIAnalyticsEvent | undefined;
118
+ // (undocumented)
114
119
  createAndFireEventOnAtlaskit: (
115
120
  payload: AnalyticsEventPayload,
116
121
  ) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
117
- state: {
118
- isTabbing: boolean;
119
- };
120
- changeAnalyticsCaller: () => UIAnalyticsEvent | undefined;
122
+ // (undocumented)
121
123
  onChangeSelect: (option: ValueType<Color>) => void;
122
- onOptionKeyDown: (value: string) => void;
124
+ // (undocumented)
123
125
  onKeyDown: (e: React_2.KeyboardEvent<HTMLElement>) => void;
126
+ // (undocumented)
127
+ onOptionKeyDown: (value: string) => void;
128
+ // (undocumented)
124
129
  render(): JSX.Element;
130
+ // (undocumented)
131
+ state: {
132
+ isTabbing: boolean;
133
+ };
125
134
  }
126
135
 
127
- export declare const Compact: Mode;
136
+ // @public (undocumented)
137
+ export const Compact: Mode;
128
138
 
129
- declare const _default: React_2.ForwardRefExoticComponent<
139
+ // @public (undocumented)
140
+ const _default: React_2.ForwardRefExoticComponent<
130
141
  Pick<
131
142
  Omit<ColorPickerProps, keyof WithAnalyticsEventsProps> &
132
143
  React_2.RefAttributes<any> &
133
144
  WithContextProps,
134
- | 'label'
135
- | 'key'
136
- | 'onChange'
145
+ | 'analyticsContext'
137
146
  | 'checkMarkColor'
138
147
  | 'cols'
139
- | 'popperProps'
148
+ | 'key'
149
+ | 'label'
150
+ | 'onChange'
140
151
  | 'palette'
152
+ | 'popperProps'
141
153
  | 'selectedColor'
142
- | 'analyticsContext'
143
154
  > &
144
155
  React_2.RefAttributes<any>
145
156
  >;
146
157
  export default _default;
147
158
 
148
- declare enum Mode {
159
+ // @public (undocumented)
160
+ enum Mode {
161
+ // (undocumented)
149
162
  Compact = 0,
163
+ // (undocumented)
150
164
  Standard = 1,
151
165
  }
152
166
 
153
- declare type Palette = Color[];
167
+ // @public (undocumented)
168
+ type Palette = Color[];
154
169
 
155
- export declare const Standard: Mode;
170
+ // @public (undocumented)
171
+ export const Standard: Mode;
156
172
 
157
- export {};
173
+ // (No @packageDocumentation comment for this package)
158
174
  ```
175
+
176
+ <!--SECTION END: Main Entry Types-->
@@ -0,0 +1,114 @@
1
+ ## API Report File for "@atlaskit/color-picker"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
8
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
9
+ import { PopupSelectProps } from '@atlaskit/select';
10
+ import { default as React_2 } from 'react';
11
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
12
+ import { ValueType } from '@atlaskit/select';
13
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
14
+ import { WithContextProps } from '@atlaskit/analytics-next';
15
+
16
+ // @public (undocumented)
17
+ interface Color {
18
+ // (undocumented)
19
+ label: string;
20
+ // (undocumented)
21
+ value: string;
22
+ }
23
+
24
+ // @public (undocumented)
25
+ export const ColorPaletteMenu: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<ColorPaletteMenuProps, keyof WithAnalyticsEventsProps>, "checkMarkColor" | "label" | "onChange" | "palette" | "selectedColor"> & Partial<Pick<Omit<ColorPaletteMenuProps, keyof WithAnalyticsEventsProps>, "cols" | "mode">> & Partial<Pick<{
26
+ cols: number;
27
+ mode: Mode;
28
+ }, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "checkMarkColor" | "cols" | "key" | "label" | "mode" | "onChange" | "palette" | "selectedColor"> & React_2.RefAttributes<any>>;
29
+
30
+ // @public (undocumented)
31
+ export interface ColorPaletteMenuProps {
32
+ checkMarkColor?: string;
33
+ cols: number;
34
+ createAnalyticsEvent?: any;
35
+ label?: string;
36
+ mode?: Mode;
37
+ onChange: (value: string, analyticsEvent?: object) => void;
38
+ palette: Palette;
39
+ selectedColor?: string;
40
+ }
41
+
42
+ // @public (undocumented)
43
+ export class ColorPaletteMenuWithoutAnalytics extends React_2.Component<ColorPaletteMenuProps> {
44
+ // (undocumented)
45
+ changeAnalyticsCaller: () => UIAnalyticsEvent | undefined;
46
+ // (undocumented)
47
+ createAndFireEventOnAtlaskit: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
48
+ // (undocumented)
49
+ static defaultProps: {
50
+ cols: number;
51
+ mode: Mode;
52
+ };
53
+ // (undocumented)
54
+ onChange: (value: string) => void;
55
+ // (undocumented)
56
+ render(): JSX.Element;
57
+ }
58
+
59
+ // @public (undocumented)
60
+ export interface ColorPickerProps {
61
+ checkMarkColor?: string;
62
+ cols?: number;
63
+ createAnalyticsEvent?: any;
64
+ label?: string;
65
+ onChange: (value: string, analyticsEvent?: object) => void;
66
+ palette: Palette;
67
+ popperProps?: PopupSelectProps['popperProps'];
68
+ selectedColor?: string;
69
+ }
70
+
71
+ // @public (undocumented)
72
+ export class ColorPickerWithoutAnalytics extends React_2.Component<ColorPickerProps> {
73
+ // (undocumented)
74
+ changeAnalyticsCaller: () => UIAnalyticsEvent | undefined;
75
+ // (undocumented)
76
+ createAndFireEventOnAtlaskit: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
77
+ // (undocumented)
78
+ onChangeSelect: (option: ValueType<Color>) => void;
79
+ // (undocumented)
80
+ onKeyDown: (e: React_2.KeyboardEvent<HTMLElement>) => void;
81
+ // (undocumented)
82
+ onOptionKeyDown: (value: string) => void;
83
+ // (undocumented)
84
+ render(): JSX.Element;
85
+ // (undocumented)
86
+ state: {
87
+ isTabbing: boolean;
88
+ };
89
+ }
90
+
91
+ // @public (undocumented)
92
+ export const Compact: Mode;
93
+
94
+ // @public (undocumented)
95
+ const _default: React_2.ForwardRefExoticComponent<Pick<Omit<ColorPickerProps, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "checkMarkColor" | "cols" | "key" | "label" | "onChange" | "palette" | "popperProps" | "selectedColor"> & React_2.RefAttributes<any>>;
96
+ export default _default;
97
+
98
+ // @public (undocumented)
99
+ enum Mode {
100
+ // (undocumented)
101
+ Compact = 0,
102
+ // (undocumented)
103
+ Standard = 1
104
+ }
105
+
106
+ // @public (undocumented)
107
+ type Palette = Color[];
108
+
109
+ // @public (undocumented)
110
+ export const Standard: Mode;
111
+
112
+ // (No @packageDocumentation comment for this package)
113
+
114
+ ```