@atlaskit/dynamic-table 14.10.0 → 14.11.1
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 +12 -0
- package/dist/cjs/components/body.js +10 -3
- package/dist/cjs/components/loading-container-advanced.js +14 -39
- package/dist/cjs/components/rankable/body.js +15 -3
- package/dist/cjs/components/stateless.js +4 -5
- package/dist/cjs/hoc/with-sorted-page-rows.js +11 -3
- package/dist/cjs/styled/constants.js +0 -2
- package/dist/cjs/styled/dynamic-table.js +1 -1
- package/dist/cjs/styled/empty-body.js +2 -2
- package/dist/cjs/styled/loading-container-advanced.js +5 -4
- package/dist/cjs/styled/rankable/table-row.js +2 -2
- package/dist/cjs/styled/table-head.js +3 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/body.js +10 -3
- package/dist/es2019/components/loading-container-advanced.js +14 -32
- package/dist/es2019/components/rankable/body.js +15 -3
- package/dist/es2019/components/stateless.js +4 -5
- package/dist/es2019/hoc/with-sorted-page-rows.js +11 -4
- package/dist/es2019/styled/constants.js +0 -2
- package/dist/es2019/styled/dynamic-table.js +1 -1
- package/dist/es2019/styled/empty-body.js +2 -2
- package/dist/es2019/styled/loading-container-advanced.js +5 -4
- package/dist/es2019/styled/rankable/table-row.js +2 -2
- package/dist/es2019/styled/table-head.js +3 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/body.js +10 -3
- package/dist/esm/components/loading-container-advanced.js +14 -39
- package/dist/esm/components/rankable/body.js +15 -3
- package/dist/esm/components/stateless.js +4 -5
- package/dist/esm/hoc/with-sorted-page-rows.js +11 -3
- package/dist/esm/styled/constants.js +0 -2
- package/dist/esm/styled/dynamic-table.js +1 -1
- package/dist/esm/styled/empty-body.js +2 -2
- package/dist/esm/styled/loading-container-advanced.js +5 -4
- package/dist/esm/styled/rankable/table-row.js +2 -2
- package/dist/esm/styled/table-head.js +3 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/components/body.d.ts +4 -102
- package/dist/types/components/loading-container-advanced.d.ts +4 -7
- package/dist/types/components/rankable/body.d.ts +5 -103
- package/dist/types/components/stateless.d.ts +1 -1
- package/dist/types/hoc/with-sorted-page-rows.d.ts +3 -102
- package/dist/types/styled/loading-container-advanced.d.ts +1 -2
- package/dist/types-ts4.5/components/body.d.ts +4 -102
- package/dist/types-ts4.5/components/loading-container-advanced.d.ts +4 -7
- package/dist/types-ts4.5/components/rankable/body.d.ts +5 -103
- package/dist/types-ts4.5/components/stateless.d.ts +1 -1
- package/dist/types-ts4.5/hoc/with-sorted-page-rows.d.ts +3 -102
- package/dist/types-ts4.5/styled/loading-container-advanced.d.ts +1 -2
- package/package.json +5 -4
|
@@ -13,105 +13,6 @@ export interface WithSortedPageRowsProps {
|
|
|
13
13
|
pageRows: Array<RowType>;
|
|
14
14
|
isTotalPagesControlledExternally?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
pageRows: never[];
|
|
20
|
-
};
|
|
21
|
-
componentDidMount(): void;
|
|
22
|
-
componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
|
|
23
|
-
pageRows: Array<RowType>;
|
|
24
|
-
}): void;
|
|
25
|
-
render(): JSX.Element;
|
|
26
|
-
context: any;
|
|
27
|
-
setState<K extends "pageRows">(state: {
|
|
28
|
-
pageRows: Array<RowType>;
|
|
29
|
-
} | ((prevState: Readonly<{
|
|
30
|
-
pageRows: Array<RowType>;
|
|
31
|
-
}>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
|
|
32
|
-
pageRows: Array<RowType>;
|
|
33
|
-
} | Pick<{
|
|
34
|
-
pageRows: Array<RowType>;
|
|
35
|
-
}, K> | null) | Pick<{
|
|
36
|
-
pageRows: Array<RowType>;
|
|
37
|
-
}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}>;
|
|
42
|
-
refs: {
|
|
43
|
-
[key: string]: React.ReactInstance;
|
|
44
|
-
};
|
|
45
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
46
|
-
pageRows: Array<RowType>;
|
|
47
|
-
}>, nextContext: any): boolean;
|
|
48
|
-
componentWillUnmount?(): void;
|
|
49
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
|
|
51
|
-
pageRows: Array<RowType>;
|
|
52
|
-
}>): any;
|
|
53
|
-
componentWillMount?(): void;
|
|
54
|
-
UNSAFE_componentWillMount?(): void;
|
|
55
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
56
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
57
|
-
componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
58
|
-
pageRows: Array<RowType>;
|
|
59
|
-
}>, nextContext: any): void;
|
|
60
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
61
|
-
pageRows: Array<RowType>;
|
|
62
|
-
}>, nextContext: any): void;
|
|
63
|
-
};
|
|
64
|
-
new (props: Omit<WrappedComponentProps & TableProps, "pageRows">, context?: any): {
|
|
65
|
-
state: {
|
|
66
|
-
pageRows: never[];
|
|
67
|
-
};
|
|
68
|
-
componentDidMount(): void;
|
|
69
|
-
componentDidUpdate(_prevProps: Omit<WrappedComponentProps & TableProps, "pageRows">, prevState: {
|
|
70
|
-
pageRows: Array<RowType>;
|
|
71
|
-
}): void;
|
|
72
|
-
render(): JSX.Element;
|
|
73
|
-
context: any;
|
|
74
|
-
setState<K extends "pageRows">(state: {
|
|
75
|
-
pageRows: Array<RowType>;
|
|
76
|
-
} | ((prevState: Readonly<{
|
|
77
|
-
pageRows: Array<RowType>;
|
|
78
|
-
}>, props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>) => {
|
|
79
|
-
pageRows: Array<RowType>;
|
|
80
|
-
} | Pick<{
|
|
81
|
-
pageRows: Array<RowType>;
|
|
82
|
-
}, K> | null) | Pick<{
|
|
83
|
-
pageRows: Array<RowType>;
|
|
84
|
-
}, K> | null, callback?: (() => void) | undefined): void;
|
|
85
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
86
|
-
readonly props: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">> & Readonly<{
|
|
87
|
-
children?: React.ReactNode;
|
|
88
|
-
}>;
|
|
89
|
-
refs: {
|
|
90
|
-
[key: string]: React.ReactInstance;
|
|
91
|
-
};
|
|
92
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
93
|
-
pageRows: Array<RowType>;
|
|
94
|
-
}>, nextContext: any): boolean;
|
|
95
|
-
componentWillUnmount?(): void;
|
|
96
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
97
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, prevState: Readonly<{
|
|
98
|
-
pageRows: Array<RowType>;
|
|
99
|
-
}>): any;
|
|
100
|
-
componentWillMount?(): void;
|
|
101
|
-
UNSAFE_componentWillMount?(): void;
|
|
102
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
103
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextContext: any): void;
|
|
104
|
-
componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
105
|
-
pageRows: Array<RowType>;
|
|
106
|
-
}>, nextContext: any): void;
|
|
107
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<WrappedComponentProps & TableProps, "pageRows">>, nextState: Readonly<{
|
|
108
|
-
pageRows: Array<RowType>;
|
|
109
|
-
}>, nextContext: any): void;
|
|
110
|
-
};
|
|
111
|
-
getDerivedStateFromProps(props: Omit<WrappedComponentProps & TableProps, 'pageRows'>, state: {
|
|
112
|
-
pageRows: Array<RowType>;
|
|
113
|
-
}): {
|
|
114
|
-
pageRows: RowType[];
|
|
115
|
-
};
|
|
116
|
-
contextType?: React.Context<any> | undefined;
|
|
117
|
-
};
|
|
16
|
+
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & TableProps, RefType = HTMLTableSectionElement>(WrappedComponent: React.ComponentType<WrappedComponentProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<WrappedComponentProps & TableProps, "pageRows"> & {
|
|
17
|
+
forwardedRef?: React.RefObject<RefType> | undefined;
|
|
18
|
+
}> & React.RefAttributes<RefType>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { FC, HTMLProps, ReactNode } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
3
|
type ContainerProps = HTMLProps<HTMLDivElement> & {
|
|
5
4
|
testId?: string;
|
|
6
5
|
};
|
|
7
|
-
export declare const Container: (
|
|
6
|
+
export declare const Container: import("react").ForwardRefExoticComponent<Pick<ContainerProps, "headers" | "method" | "rows" | "testId" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "height" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
7
|
type SpinnerBackdropProps = {
|
|
9
8
|
testId?: string;
|
|
10
9
|
children: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dynamic-table",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.11.1",
|
|
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/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/pagination": "^14.4.0",
|
|
42
42
|
"@atlaskit/spinner": "^15.5.0",
|
|
43
43
|
"@atlaskit/theme": "^12.5.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.11.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"react-beautiful-dnd": "^12.1.1"
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@atlaskit/avatar": "^21.3.0",
|
|
55
|
-
"@atlaskit/button": "^16.
|
|
55
|
+
"@atlaskit/button": "^16.8.0",
|
|
56
56
|
"@atlaskit/docs": "*",
|
|
57
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
57
|
+
"@atlaskit/dropdown-menu": "^11.10.0",
|
|
58
58
|
"@atlaskit/ssr": "*",
|
|
59
59
|
"@atlaskit/toggle": "^12.6.0",
|
|
60
60
|
"@atlaskit/visual-regression": "*",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@emotion/styled": "^11.0.0",
|
|
64
64
|
"@testing-library/react": "^12.1.5",
|
|
65
65
|
"@testing-library/user-event": "^14.4.3",
|
|
66
|
+
"jest-axe": "^4.0.0",
|
|
66
67
|
"react-dom": "^16.8.0",
|
|
67
68
|
"typescript": "~4.9.5"
|
|
68
69
|
},
|