@atlaskit/dynamic-table 14.11.1 → 14.11.2

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,11 @@
1
1
  # @atlaskit/dynamic-table
2
2
 
3
+ ## 14.11.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
8
+
3
9
  ## 14.11.1
4
10
 
5
11
  ### Patch Changes
@@ -29,7 +29,7 @@ var _tableHead = _interopRequireDefault(require("./table-head"));
29
29
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
30
30
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
31
  var packageName = "@atlaskit/dynamic-table";
32
- var packageVersion = "14.11.1";
32
+ var packageVersion = "14.11.2";
33
33
  function toggleSortOrder(currentSortOrder) {
34
34
  switch (currentSortOrder) {
35
35
  case _constants.DESC:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.11.1",
3
+ "version": "14.11.2",
4
4
  "sideEffects": false
5
5
  }
@@ -14,7 +14,7 @@ import ManagedPagination from './managed-pagination';
14
14
  import RankableTableBody from './rankable/body';
15
15
  import TableHead from './table-head';
16
16
  const packageName = "@atlaskit/dynamic-table";
17
- const packageVersion = "14.11.1";
17
+ const packageVersion = "14.11.2";
18
18
  function toggleSortOrder(currentSortOrder) {
19
19
  switch (currentSortOrder) {
20
20
  case DESC:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.11.1",
3
+ "version": "14.11.2",
4
4
  "sideEffects": false
5
5
  }
@@ -22,7 +22,7 @@ import ManagedPagination from './managed-pagination';
22
22
  import RankableTableBody from './rankable/body';
23
23
  import TableHead from './table-head';
24
24
  var packageName = "@atlaskit/dynamic-table";
25
- var packageVersion = "14.11.1";
25
+ var packageVersion = "14.11.2";
26
26
  function toggleSortOrder(currentSortOrder) {
27
27
  switch (currentSortOrder) {
28
28
  case DESC:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.11.1",
3
+ "version": "14.11.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "14.11.1",
3
+ "version": "14.11.2",
4
4
  "description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,19 +51,14 @@
51
51
  "react-dom": "^16.8.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@atlaskit/avatar": "^21.3.0",
55
- "@atlaskit/button": "^16.8.0",
56
- "@atlaskit/docs": "*",
57
- "@atlaskit/dropdown-menu": "^11.10.0",
54
+ "@af/accessibility-testing": "*",
58
55
  "@atlaskit/ssr": "*",
59
- "@atlaskit/toggle": "^12.6.0",
60
56
  "@atlaskit/visual-regression": "*",
61
57
  "@atlaskit/webdriver-runner": "*",
62
58
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
63
59
  "@emotion/styled": "^11.0.0",
64
60
  "@testing-library/react": "^12.1.5",
65
61
  "@testing-library/user-event": "^14.4.3",
66
- "jest-axe": "^4.0.0",
67
62
  "react-dom": "^16.8.0",
68
63
  "typescript": "~4.9.5"
69
64
  },
@@ -1,215 +0,0 @@
1
- ## API Report File for "@atlaskit/dynamic-table"
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 noop from '@atlaskit/ds-lib/noop';
8
- import { default as React_2 } from 'react';
9
- import { Ref } from 'react';
10
- import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
11
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
12
- import { WithContextProps } from '@atlaskit/analytics-next';
13
-
14
- // @public
15
- class DynamicTable extends React_2.Component<StatefulProps, State> {
16
- // (undocumented)
17
- static defaultProps: {
18
- defaultPage: number;
19
- isLoading: boolean;
20
- isFixedSize: boolean;
21
- isRankable: boolean;
22
- onSetPage: typeof noop;
23
- onSort: typeof noop;
24
- rowsPerPage: number;
25
- };
26
- // (undocumented)
27
- onRankEndHandler: (params: RankEnd) => void;
28
- // (undocumented)
29
- onRankEndIfExistsHandler: (params: RankEnd) => void;
30
- // (undocumented)
31
- onSetPageHandler: (page: number, analyticsEvent?: UIAnalyticsEvent) => void;
32
- // (undocumented)
33
- onSortHandler: ({ key, item, sortOrder }: any, analyticsEvent?: UIAnalyticsEvent) => void;
34
- // (undocumented)
35
- render(): JSX.Element;
36
- // (undocumented)
37
- state: {
38
- page: number | undefined;
39
- sortKey: string | undefined;
40
- sortOrder: SortOrderType | undefined;
41
- rows: RowType[] | undefined;
42
- };
43
- // (undocumented)
44
- UNSAFE_componentWillReceiveProps(newProps: StatefulProps): void;
45
- }
46
- export default DynamicTable;
47
-
48
- // @public (undocumented)
49
- export const DynamicTableStateless: React_2.ForwardRefExoticComponent<Pick<Pick<Omit<StatelessProps, keyof WithAnalyticsEventsProps>, "caption" | "emptyView" | "head" | "highlightedRowIndex" | "label" | "loadingSpinnerSize" | "onPageRowsUpdate" | "rows" | "sortKey" | "sortOrder" | "testId" | "totalRows"> & Partial<Pick<Omit<StatelessProps, keyof WithAnalyticsEventsProps>, "isFixedSize" | "isLoading" | "isRankable" | "isRankingDisabled" | "onRankEnd" | "onRankStart" | "onSetPage" | "onSort" | "page" | "paginationi18n" | "rowsPerPage">> & Partial<Pick<{
50
- isLoading: boolean;
51
- isFixedSize: boolean;
52
- rowsPerPage: number;
53
- onSetPage: typeof noop;
54
- onSort: typeof noop;
55
- page: number;
56
- isRankable: boolean;
57
- isRankingDisabled: boolean;
58
- onRankStart: typeof noop;
59
- onRankEnd: typeof noop;
60
- paginationi18n: {
61
- prev: string;
62
- next: string;
63
- label: string;
64
- pageLabel: string;
65
- };
66
- }, never>> & React_2.RefAttributes<any> & WithContextProps, "analyticsContext" | "caption" | "emptyView" | "head" | "highlightedRowIndex" | "isFixedSize" | "isLoading" | "isRankable" | "isRankingDisabled" | "key" | "label" | "loadingSpinnerSize" | "onPageRowsUpdate" | "onRankEnd" | "onRankStart" | "onSetPage" | "onSort" | "page" | "paginationi18n" | "rows" | "rowsPerPage" | "sortKey" | "sortOrder" | "testId" | "totalRows"> & React_2.RefAttributes<any>>;
67
-
68
- // @public (undocumented)
69
- interface HeadCellType extends RowCellType {
70
- isSortable?: boolean;
71
- shouldTruncate?: boolean;
72
- width?: number;
73
- }
74
-
75
- // @public (undocumented)
76
- interface HeadType {
77
- // (undocumented)
78
- cells: Array<HeadCellType>;
79
- }
80
-
81
- // @public (undocumented)
82
- interface I18nShape {
83
- label: string;
84
- next: string;
85
- pageLabel?: string;
86
- prev: string;
87
- }
88
-
89
- // @public (undocumented)
90
- type LoadingSpinnerSizeType = 'large' | 'small';
91
-
92
- // @public (undocumented)
93
- interface RankEnd {
94
- // (undocumented)
95
- destination?: RankEndLocation;
96
- // (undocumented)
97
- sourceIndex: number;
98
- // (undocumented)
99
- sourceKey: string;
100
- }
101
-
102
- // @public (undocumented)
103
- interface RankEndLocation {
104
- // (undocumented)
105
- afterKey?: string;
106
- // (undocumented)
107
- beforeKey?: string;
108
- // (undocumented)
109
- index: number;
110
- }
111
-
112
- // @public (undocumented)
113
- interface RankStart {
114
- // (undocumented)
115
- index: number;
116
- // (undocumented)
117
- key: string;
118
- }
119
-
120
- // @public (undocumented)
121
- interface RowCellType {
122
- colSpan?: number;
123
- content?: React_2.ReactNode | string;
124
- key?: number | string;
125
- testId?: string;
126
- }
127
-
128
- // @public (undocumented)
129
- interface RowType extends React_2.ComponentPropsWithoutRef<'tr'> {
130
- // (undocumented)
131
- cells: Array<RowCellType>;
132
- isHighlighted?: boolean;
133
- // (undocumented)
134
- key?: string;
135
- onClick?: React_2.MouseEventHandler;
136
- onKeyPress?: React_2.KeyboardEventHandler;
137
- // (undocumented)
138
- ref?: Ref<HTMLTableRowElement>;
139
- testId?: string;
140
- }
141
-
142
- // @public
143
- type SortOrderType = 'ASC' | 'DESC';
144
-
145
- // @public (undocumented)
146
- interface State {
147
- // (undocumented)
148
- page?: number;
149
- // (undocumented)
150
- rows?: RowType[];
151
- // (undocumented)
152
- sortKey?: string;
153
- // (undocumented)
154
- sortOrder?: SortOrderType;
155
- }
156
-
157
- // @public (undocumented)
158
- interface StatefulProps extends WithAnalyticsEventsProps {
159
- caption?: React_2.ReactNode;
160
- defaultPage?: number;
161
- defaultSortKey?: string;
162
- defaultSortOrder?: SortOrderType;
163
- emptyView?: React_2.ReactElement<any>;
164
- head?: HeadType;
165
- highlightedRowIndex?: number | number[];
166
- isFixedSize?: boolean;
167
- isLoading?: boolean;
168
- isRankable?: boolean;
169
- isRankingDisabled?: boolean;
170
- label?: string;
171
- loadingSpinnerSize?: LoadingSpinnerSizeType;
172
- onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
173
- onRankEnd?: (rankEnd: RankEnd) => void;
174
- onRankStart?: (rankStart: RankStart) => void;
175
- onSetPage?: (page: number, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
176
- onSort?: (data: any, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
177
- page?: number;
178
- paginationi18n?: I18nShape;
179
- rows?: Array<RowType>;
180
- rowsPerPage?: number;
181
- sortKey?: string;
182
- sortOrder?: SortOrderType;
183
- testId?: string;
184
- }
185
-
186
- // @public (undocumented)
187
- interface StatelessProps extends WithAnalyticsEventsProps {
188
- caption?: React_2.ReactNode;
189
- emptyView?: React_2.ReactElement<any>;
190
- head?: HeadType;
191
- highlightedRowIndex?: number | number[];
192
- isFixedSize?: boolean;
193
- isLoading?: boolean;
194
- isRankable?: boolean;
195
- isRankingDisabled?: boolean;
196
- label?: string;
197
- loadingSpinnerSize?: LoadingSpinnerSizeType;
198
- onPageRowsUpdate?: (pageRows: Array<RowType>) => void;
199
- onRankEnd?: (rankEnd: RankEnd, uiAnalyticsEvent?: UIAnalyticsEvent) => void;
200
- onRankStart?: (rankStart: RankStart) => void;
201
- onSetPage?: (page: number, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
202
- onSort?: (data: any, UIAnalyticsEvent?: UIAnalyticsEvent) => void;
203
- page?: number;
204
- paginationi18n?: I18nShape;
205
- rows?: Array<RowType>;
206
- rowsPerPage?: number;
207
- sortKey?: string;
208
- sortOrder?: SortOrderType;
209
- testId?: string;
210
- totalRows?: number;
211
- }
212
-
213
- // (No @packageDocumentation comment for this package)
214
-
215
- ```