downshift 6.1.7 → 7.0.0-alpha.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/README.md +15 -9
- package/dist/downshift.cjs.js +1745 -1740
- package/dist/downshift.esm.js +1620 -1611
- package/dist/downshift.native.cjs.js +1730 -1723
- package/dist/downshift.umd.js +1657 -1678
- package/dist/downshift.umd.js.map +1 -1
- package/dist/downshift.umd.min.js +1 -21
- package/dist/downshift.umd.min.js.map +1 -1
- package/dist/src/hooks/useSelect/stateChangeTypes.d.ts +11 -12
- package/dist/src/hooks/useSelect/utils.d.ts +0 -1
- package/dist/src/hooks/utils.d.ts +1 -2
- package/package.json +24 -11
- package/preact/dist/downshift.cjs.js +1709 -1704
- package/preact/dist/downshift.esm.js +1620 -1611
- package/preact/dist/downshift.umd.js +1709 -1752
- package/preact/dist/downshift.umd.js.map +1 -1
- package/preact/dist/downshift.umd.min.js +1 -23
- package/preact/dist/downshift.umd.min.js.map +1 -1
- package/typings/index.d.ts +16 -19
- package/CHANGELOG.md +0 -5
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
export const MenuKeyDownArrowDown: any;
|
|
2
|
-
export const MenuKeyDownArrowUp: any;
|
|
3
|
-
export const MenuKeyDownEscape: any;
|
|
4
|
-
export const MenuKeyDownHome: any;
|
|
5
|
-
export const MenuKeyDownEnd: any;
|
|
6
|
-
export const MenuKeyDownEnter: any;
|
|
7
|
-
export const MenuKeyDownSpaceButton: any;
|
|
8
|
-
export const MenuKeyDownCharacter: any;
|
|
9
|
-
export const MenuBlur: any;
|
|
10
|
-
export const MenuMouseLeave: any;
|
|
11
|
-
export const ItemMouseMove: any;
|
|
12
|
-
export const ItemClick: any;
|
|
13
1
|
export const ToggleButtonClick: any;
|
|
14
2
|
export const ToggleButtonKeyDownArrowDown: any;
|
|
15
3
|
export const ToggleButtonKeyDownArrowUp: any;
|
|
16
4
|
export const ToggleButtonKeyDownCharacter: any;
|
|
5
|
+
export const ToggleButtonKeyDownEscape: any;
|
|
6
|
+
export const ToggleButtonKeyDownHome: any;
|
|
7
|
+
export const ToggleButtonKeyDownEnd: any;
|
|
8
|
+
export const ToggleButtonKeyDownEnter: any;
|
|
9
|
+
export const ToggleButtonKeyDownSpaceButton: any;
|
|
10
|
+
export const ToggleButtonKeyDownPageUp: any;
|
|
11
|
+
export const ToggleButtonKeyDownPageDown: any;
|
|
12
|
+
export const ToggleButtonBlur: any;
|
|
13
|
+
export const MenuMouseLeave: any;
|
|
14
|
+
export const ItemMouseMove: any;
|
|
15
|
+
export const ItemClick: any;
|
|
17
16
|
export const FunctionToggleMenu: any;
|
|
18
17
|
export const FunctionOpenMenu: any;
|
|
19
18
|
export const FunctionCloseMenu: any;
|
|
@@ -16,7 +16,6 @@ export declare const defaultProps: {
|
|
|
16
16
|
stateReducer: (s: Object, a: Object) => Object;
|
|
17
17
|
getA11ySelectionMessage: (selectionParameters: Object) => string;
|
|
18
18
|
scrollIntoView: typeof import("../../utils").scrollIntoView;
|
|
19
|
-
circularNavigation: boolean;
|
|
20
19
|
environment: {};
|
|
21
20
|
};
|
|
22
21
|
export declare let validatePropTypes: (options: unknown, caller: Function) => void;
|
|
@@ -25,7 +25,7 @@ export function useGetterPropsCalledChecker(): typeof noop;
|
|
|
25
25
|
* @returns {Object} Ref containing whether mouseDown or touchMove event is happening
|
|
26
26
|
*/
|
|
27
27
|
export function useMouseAndTouchTracker(isOpen: boolean, downshiftElementRefs: Array<Object>, environment: Object, handleBlur: Function): Object;
|
|
28
|
-
export function getHighlightedIndexOnOpen(props: any, state: any, offset: any
|
|
28
|
+
export function getHighlightedIndexOnOpen(props: any, state: any, offset: any): any;
|
|
29
29
|
export function getInitialState(props: any): {
|
|
30
30
|
highlightedIndex: any;
|
|
31
31
|
isOpen: any;
|
|
@@ -49,7 +49,6 @@ export namespace defaultProps {
|
|
|
49
49
|
export { stateReducer };
|
|
50
50
|
export { getA11ySelectionMessage };
|
|
51
51
|
export { scrollIntoView };
|
|
52
|
-
export const circularNavigation: boolean;
|
|
53
52
|
export const environment: {};
|
|
54
53
|
}
|
|
55
54
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "downshift",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.0",
|
|
4
4
|
"description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
|
|
5
5
|
"main": "dist/downshift.cjs.js",
|
|
6
6
|
"react-native": "dist/downshift.native.cjs.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"cy:run": "cypress run",
|
|
28
28
|
"cy:open": "cypress open",
|
|
29
29
|
"build-and-test": "npm run build -s && npm run test:build -s",
|
|
30
|
-
"docs:build": "
|
|
31
|
-
"
|
|
32
|
-
"docs:
|
|
33
|
-
"docs:
|
|
30
|
+
"docs:build": "docusaurus build",
|
|
31
|
+
"docs:dev": "docusaurus start",
|
|
32
|
+
"docs:serve": "docusaurus serve --port 6006",
|
|
33
|
+
"docs:clear": "docusaurus clear",
|
|
34
34
|
"setup": "npm install && npm run validate",
|
|
35
35
|
"validate": "kcd-scripts validate lint,build-and-test,test:cover,test:ts,test:flow:coverage,test:ssr,test:cypress"
|
|
36
36
|
},
|
|
@@ -74,6 +74,10 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@babel/helpers": "^7.14.8",
|
|
77
|
+
"@docusaurus/core": "^2.0.1",
|
|
78
|
+
"@docusaurus/module-type-aliases": "^2.0.1",
|
|
79
|
+
"@docusaurus/preset-classic": "^2.0.1",
|
|
80
|
+
"@mdx-js/react": "^1.6.22",
|
|
77
81
|
"@rollup/plugin-babel": "^5.3.0",
|
|
78
82
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
79
83
|
"@rollup/plugin-typescript": "^8.2.5",
|
|
@@ -83,7 +87,7 @@
|
|
|
83
87
|
"@testing-library/preact": "^2.0.1",
|
|
84
88
|
"@testing-library/react": "^12.0.0",
|
|
85
89
|
"@testing-library/react-hooks": "^7.0.1",
|
|
86
|
-
"@testing-library/user-event": "^
|
|
90
|
+
"@testing-library/user-event": "^14.4.3",
|
|
87
91
|
"@types/jest": "^26.0.24",
|
|
88
92
|
"@types/react": "^17.0.15",
|
|
89
93
|
"@typescript-eslint/eslint-plugin": "^4.28.5",
|
|
@@ -94,9 +98,7 @@
|
|
|
94
98
|
"buble": "^0.20.0",
|
|
95
99
|
"cpy-cli": "^3.1.1",
|
|
96
100
|
"cross-env": "^7.0.3",
|
|
97
|
-
"cypress": "^
|
|
98
|
-
"docz": "^2.3.1",
|
|
99
|
-
"docz-theme-default": "^1.2.0",
|
|
101
|
+
"cypress": "^10.3.1",
|
|
100
102
|
"eslint": "^7.32.0",
|
|
101
103
|
"eslint-plugin-cypress": "^2.11.3",
|
|
102
104
|
"eslint-plugin-react": "7.24.0",
|
|
@@ -104,11 +106,13 @@
|
|
|
104
106
|
"flow-coverage-report": "^0.8.0",
|
|
105
107
|
"get-pkg-repo": "4.1.1",
|
|
106
108
|
"kcd-scripts": "^11.2.0",
|
|
109
|
+
"node-polyfill-webpack-plugin": "^2.0.0",
|
|
107
110
|
"npm-run-all": "^4.1.5",
|
|
108
111
|
"preact": "^10.5.14",
|
|
112
|
+
"prism-react-renderer": "^1.3.3",
|
|
109
113
|
"react": "^17.0.2",
|
|
110
114
|
"react-dom": "^17.0.2",
|
|
111
|
-
"react-native": "^0.
|
|
115
|
+
"react-native": "^0.68.0",
|
|
112
116
|
"react-test-renderer": "^17.0.2",
|
|
113
117
|
"serve": "^12.0.0",
|
|
114
118
|
"start-server-and-test": "^1.13.1",
|
|
@@ -116,6 +120,14 @@
|
|
|
116
120
|
},
|
|
117
121
|
"eslintConfig": {
|
|
118
122
|
"settings": {
|
|
123
|
+
"import/no-unresolved": [
|
|
124
|
+
2,
|
|
125
|
+
{
|
|
126
|
+
"ignore": [
|
|
127
|
+
"^@theme"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
],
|
|
119
131
|
"import/resolver": {
|
|
120
132
|
"node": {
|
|
121
133
|
"extensions": [
|
|
@@ -156,7 +168,8 @@
|
|
|
156
168
|
"node_modules",
|
|
157
169
|
"coverage",
|
|
158
170
|
"dist",
|
|
159
|
-
".
|
|
171
|
+
".docusaurus",
|
|
172
|
+
"build",
|
|
160
173
|
"typings",
|
|
161
174
|
"test"
|
|
162
175
|
],
|