@khanacademy/wonder-blocks-testing 7.1.12 → 8.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @khanacademy/wonder-blocks-testing
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1ca4d7e3]
12
+ - @khanacademy/wonder-blocks-data@11.0.0
13
+
14
+ ## 7.1.13
15
+
16
+ ### Patch Changes
17
+
18
+ - b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
19
+ - Updated dependencies [b5ba5568]
20
+ - @khanacademy/wonder-blocks-data@10.1.3
21
+
3
22
  ## 7.1.12
4
23
 
5
24
  ### Patch Changes
@@ -24,10 +24,7 @@ wrapper?: React.ComponentType<TProps>) => mixed} A function to create a CSF comp
24
24
  */
25
25
  declare export var fixtures: <
26
26
  TComponent: React.ComponentType<any>,
27
- TProps: JSX.LibraryManagedAttributes<
28
- TComponent,
29
- React.ComponentProps<TComponent>
30
- >
27
+ TProps: React.ElementConfig<TComponent>
31
28
  >(
32
29
  Component: TComponent
33
30
  ) => FixtureFn<TProps>;
@@ -9,10 +9,7 @@ import * as React from "react";
9
9
  import { InterceptRequests } from "@khanacademy/wonder-blocks-data";
10
10
  import type { TestHarnessAdapter } from "../types";
11
11
  declare type Interceptor = $PropertyType<
12
- JSX.LibraryManagedAttributes<
13
- typeof InterceptRequests,
14
- React.ComponentProps<typeof InterceptRequests>
15
- >,
12
+ React.ElementConfig<typeof InterceptRequests>,
16
13
  "interceptor"
17
14
  >;
18
15
  declare type Config = Interceptor | Array<Interceptor>;
@@ -9,10 +9,7 @@ import * as React from "react";
9
9
  import { MemoryRouter } from "react-router-dom";
10
10
  import type { LocationShape, Location } from "react-router-dom";
11
11
  import type { TestHarnessAdapter } from "../types";
12
- declare type MemoryRouterProps = JSX.LibraryManagedAttributes<
13
- typeof MemoryRouter,
14
- React.ComponentProps<typeof MemoryRouter>
15
- >;
12
+ declare type MemoryRouterProps = React.ElementConfig<typeof MemoryRouter>;
16
13
  /**
17
14
  * Configuration for the withLocation test harness adapter.
18
15
  */
@@ -21,4 +21,4 @@ declare export var renderAdapters: <TAdapters: TestHarnessAdapters>(
21
21
  ) => TConfig | null | void
22
22
  >,
23
23
  children: React.Node
24
- ) => React.Element<>;
24
+ ) => React.Element<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-testing",
3
- "version": "7.1.12",
3
+ "version": "8.0.0",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/runtime": "^7.18.6",
17
- "@khanacademy/wonder-blocks-data": "^10.1.2"
17
+ "@khanacademy/wonder-blocks-data": "^11.0.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@khanacademy/wonder-stuff-core": "^1.2.2",
@@ -26,7 +26,7 @@
26
26
  "react-router-dom": "5.3.0"
27
27
  },
28
28
  "devDependencies": {
29
- "wb-dev-build-settings": "^0.7.3"
29
+ "wb-dev-build-settings": "^0.8.0"
30
30
  },
31
31
  "author": "",
32
32
  "license": "MIT"