downshift 9.2.0 → 9.3.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.
@@ -9,7 +9,7 @@ export declare function renderTagGroup(props?: Partial<UseTagGroupProps<string>>
9
9
  user: import("@testing-library/user-event").UserEvent;
10
10
  container: HTMLElement;
11
11
  baseElement: HTMLElement;
12
- debug: (baseElement?: Document | import("react-dom/client").Container | (Document | import("react-dom/client").Container)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
12
+ debug: (baseElement?: any, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
13
13
  rerender: (ui: React.ReactNode) => void;
14
14
  unmount: () => void;
15
15
  asFragment: () => DocumentFragment;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "downshift",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
5
- "main": "dist/downshift.cjs.js",
6
- "react-native": "dist/downshift.native.cjs.js",
7
- "module": "dist/downshift.esm.js",
5
+ "main": "dist/downshift.cjs.cjs",
6
+ "react-native": "dist/downshift.native.cjs.cjs",
7
+ "module": "dist/downshift.esm.mjs",
8
8
  "typings": "typings/index.d.ts",
9
9
  "types": "typings/index.d.ts",
10
10
  "sideEffects": false,
@@ -50,13 +50,13 @@
50
50
  ],
51
51
  "exports": {
52
52
  ".": {
53
- "import": "./dist/downshift.esm.js",
54
- "require": "./dist/downshift.cjs.js",
53
+ "import": "./dist/downshift.esm.mjs",
54
+ "require": "./dist/downshift.cjs.cjs",
55
55
  "types": "./typings/index.d.ts",
56
- "default": "./dist/downshift.esm.js"
56
+ "default": "./dist/downshift.esm.mjs"
57
57
  },
58
58
  "./react-native": {
59
- "require": "./dist/downshift.native.cjs.js",
59
+ "require": "./dist/downshift.native.cjs.cjs",
60
60
  "types": "./typings/index.d.ts"
61
61
  }
62
62
  },
@@ -81,58 +81,60 @@
81
81
  "react": ">=16.12.0"
82
82
  },
83
83
  "dependencies": {
84
- "@babel/runtime": "^7.24.5",
85
- "compute-scroll-into-view": "^3.1.0",
84
+ "@babel/runtime": "^7.28.6",
85
+ "compute-scroll-into-view": "^3.1.1",
86
86
  "prop-types": "^15.8.1",
87
- "react-is": "18.2.0",
88
- "tslib": "^2.6.2"
87
+ "react-is": "^18.2.0",
88
+ "tslib": "^2.8.1"
89
89
  },
90
90
  "devDependencies": {
91
- "@babel/helpers": "^7.24.5",
91
+ "@babel/helpers": "^7.28.6",
92
92
  "@babel/plugin-proposal-private-methods": "^7.18.6",
93
93
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
94
- "@cypress/webpack-preprocessor": "^6.0.1",
94
+ "@cypress/webpack-preprocessor": "^7.0.2",
95
95
  "@docusaurus/core": "3.3.2",
96
96
  "@docusaurus/module-type-aliases": "3.3.2",
97
97
  "@docusaurus/preset-classic": "3.3.2",
98
98
  "@mdx-js/react": "^3.0.1",
99
- "@rollup/plugin-babel": "^6.0.4",
100
- "@rollup/plugin-commonjs": "^25.0.7",
101
- "@testing-library/cypress": "^10.0.1",
102
- "@testing-library/dom": "^10.1.0",
103
- "@testing-library/jest-dom": "^6.4.5",
104
- "@testing-library/preact": "^2.0.1",
105
- "@testing-library/react": "^15.0.7",
106
- "@testing-library/user-event": "^14.5.2",
107
- "@types/jest": "^29.5.12",
108
- "@types/react": "^18.3.2",
109
- "@typescript-eslint/eslint-plugin": "^7.9.0",
110
- "@typescript-eslint/parser": "^7.9.0",
99
+ "@rollup/plugin-babel": "^6.1.0",
100
+ "@rollup/plugin-commonjs": "^29.0.0",
101
+ "@testing-library/cypress": "^10.1.0",
102
+ "@testing-library/dom": "^10.4.1",
103
+ "@testing-library/jest-dom": "^6.9.1",
104
+ "@testing-library/preact": "^3.2.4",
105
+ "@testing-library/react": "^16.3.2",
106
+ "@testing-library/user-event": "^14.6.1",
107
+ "@types/jest": "^30.0.0",
108
+ "@types/prop-types": "^15.7.15",
109
+ "@types/react": "^18.2.0",
110
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
111
+ "@typescript-eslint/parser": "^8.54.0",
111
112
  "babel-plugin-macros": "^3.1.0",
112
113
  "babel-plugin-no-side-effect-class-properties": "0.0.7",
113
114
  "babel-preset-react-native": "^4.0.1",
114
115
  "buble": "^0.20.0",
115
- "cpy-cli": "^5.0.0",
116
- "cross-env": "^7.0.3",
117
- "cypress": "13.9.0",
118
- "eslint": "^8.56.0",
119
- "eslint-plugin-cypress": "^3.2.0",
120
- "eslint-plugin-react": "7.34.1",
121
- "flow-bin": "^0.236.0",
116
+ "cpy-cli": "^6.0.0",
117
+ "cross-env": "^10.1.0",
118
+ "cypress": "15.9.0",
119
+ "eslint": "^8.57.0",
120
+ "eslint-plugin-cypress": "^3.6.0",
121
+ "eslint-plugin-react": "7.37.5",
122
+ "flow-bin": "^0.299.0",
122
123
  "flow-coverage-report": "^0.8.0",
123
124
  "get-pkg-repo": "5.0.0",
124
- "kcd-scripts": "^15.0.1",
125
- "node-polyfill-webpack-plugin": "^3.0.0",
125
+ "kcd-scripts": "^17.0.0",
126
+ "node-polyfill-webpack-plugin": "^4.1.0",
126
127
  "npm-run-all": "^4.1.5",
127
- "preact": "^10.22.0",
128
- "prism-react-renderer": "^2.3.1",
129
- "react": "18.2.0",
130
- "react-dom": "18.2.0",
131
- "react-native": "^0.74.1",
132
- "react-test-renderer": "18.2.0",
133
- "serve": "^14.2.3",
134
- "start-server-and-test": "^2.0.3",
135
- "typescript": "^5.4.5"
128
+ "preact": "^10.28.2",
129
+ "prism-react-renderer": "^2.4.1",
130
+ "react": "^18.3.1",
131
+ "react-dom": "^18.3.1",
132
+ "react-is": "^18.3.1",
133
+ "react-native": "^0.76.0",
134
+ "react-test-renderer": "^18.3.1",
135
+ "serve": "^14.2.5",
136
+ "start-server-and-test": "^2.1.3",
137
+ "typescript": "^5.9.3"
136
138
  },
137
139
  "eslintConfig": {
138
140
  "parserOptions": {
@@ -284,11 +284,19 @@
284
284
  return reactIs_development;
285
285
  }
286
286
 
287
- {
288
- reactIs.exports = requireReactIs_development();
287
+ var hasRequiredReactIs;
288
+
289
+ function requireReactIs () {
290
+ if (hasRequiredReactIs) return reactIs.exports;
291
+ hasRequiredReactIs = 1;
292
+
293
+ {
294
+ reactIs.exports = requireReactIs_development();
295
+ }
296
+ return reactIs.exports;
289
297
  }
290
298
 
291
- var reactIsExports = reactIs.exports;
299
+ var reactIsExports = requireReactIs();
292
300
 
293
301
  var unknown = '__autocomplete_unknown__' ;
294
302
  var mouseUp = '__autocomplete_mouseup__' ;