@playwright/experimental-ct-core 1.35.0-alpha-jun-2-2023 → 1.35.0-alpha-jun-4-2023

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/lib/vitePlugin.js CHANGED
@@ -41,7 +41,6 @@ function createPlugin(registerSourceFile, frameworkPluginFactory) {
41
41
  config = configObject;
42
42
  configDir = configDirectory;
43
43
  },
44
- babelPlugins: async () => [[require.resolve('./tsxTransform')]],
45
44
  begin: async suite => {
46
45
  var _viteConfig$build, _viteConfig$plugins;
47
46
  const use = config.projects[0].use;
package/package.json CHANGED
@@ -1,24 +1,28 @@
1
1
  {
2
2
  "name": "@playwright/experimental-ct-core",
3
- "version": "1.35.0-alpha-jun-2-2023",
3
+ "version": "1.35.0-alpha-jun-4-2023",
4
4
  "description": "Playwright Component Testing Helpers",
5
5
  "repository": "github:Microsoft/playwright",
6
6
  "homepage": "https://playwright.dev",
7
7
  "engines": {
8
- "node": ">=14"
8
+ "node": ">=16"
9
9
  },
10
10
  "author": {
11
11
  "name": "Microsoft Corporation"
12
12
  },
13
13
  "license": "Apache-2.0",
14
14
  "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "default": "./index.js"
18
+ },
15
19
  "./cli": "./cli.js",
16
20
  "./lib/mount": "./lib/mount.js",
17
21
  "./lib/vitePlugin": "./lib/vitePlugin.js"
18
22
  },
19
23
  "dependencies": {
20
24
  "vite": "^4.3.3",
21
- "@playwright/test": "1.35.0-alpha-jun-2-2023"
25
+ "@playwright/test": "1.35.0-alpha-jun-4-2023"
22
26
  },
23
27
  "bin": {
24
28
  "playwright": "./cli.js"
@@ -46,7 +46,11 @@ declare global {
46
46
  playwrightMount(component: Component, rootElement: Element, hooksConfig?: any): Promise<void>;
47
47
  playwrightUnmount(rootElement: Element): Promise<void>;
48
48
  playwrightUpdate(rootElement: Element, component: Component): Promise<void>;
49
- __pw_hooks_before_mount?: (<HooksConfig>(params: { hooksConfig?: HooksConfig; } & any) => Promise<any>)[];
50
- __pw_hooks_after_mount?: (<HooksConfig>(params: { hooksConfig?: HooksConfig; } & any) => Promise<void>)[];
49
+ __pw_hooks_before_mount?: (<HooksConfig extends JsonObject = JsonObject>(
50
+ params: { hooksConfig?: HooksConfig; [key: string]: any }
51
+ ) => Promise<any>)[];
52
+ __pw_hooks_after_mount?: (<HooksConfig extends JsonObject = JsonObject>(
53
+ params: { hooksConfig?: HooksConfig; [key: string]: any }
54
+ ) => Promise<void>)[];
51
55
  }
52
56
  }