chromium-bidi 2.1.2 → 3.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.
Files changed (44) hide show
  1. package/.browser +1 -1
  2. package/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js +1 -0
  3. package/lib/cjs/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map +1 -1
  4. package/lib/cjs/bidiMapper/modules/cdp/CdpTarget.d.ts +1 -1
  5. package/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js +18 -1
  6. package/lib/cjs/bidiMapper/modules/cdp/CdpTarget.js.map +1 -1
  7. package/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js +24 -0
  8. package/lib/cjs/bidiMapper/modules/context/BrowsingContextImpl.js.map +1 -1
  9. package/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js +9 -0
  10. package/lib/cjs/bidiMapper/modules/context/BrowsingContextProcessor.js.map +1 -1
  11. package/lib/cjs/bidiMapper/modules/input/InputSource.d.ts +5 -5
  12. package/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js +3 -0
  13. package/lib/cjs/bidiMapper/modules/session/SubscriptionManager.js.map +1 -1
  14. package/lib/cjs/protocol/chromium-bidi.d.ts +7 -2
  15. package/lib/cjs/protocol/chromium-bidi.js +11 -1
  16. package/lib/cjs/protocol/chromium-bidi.js.map +1 -1
  17. package/lib/cjs/protocol/generated/webdriver-bidi.d.ts +18 -2
  18. package/lib/cjs/protocol-parser/generated/webdriver-bidi.d.ts +497 -23
  19. package/lib/cjs/protocol-parser/generated/webdriver-bidi.js +19 -2
  20. package/lib/cjs/protocol-parser/generated/webdriver-bidi.js.map +1 -1
  21. package/lib/cjs/protocol-parser/protocol-parser.js.map +1 -1
  22. package/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js +1 -0
  23. package/lib/esm/bidiMapper/modules/bluetooth/BluetoothProcessor.js.map +1 -1
  24. package/lib/esm/bidiMapper/modules/cdp/CdpTarget.d.ts +1 -1
  25. package/lib/esm/bidiMapper/modules/cdp/CdpTarget.js +18 -1
  26. package/lib/esm/bidiMapper/modules/cdp/CdpTarget.js.map +1 -1
  27. package/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js +24 -0
  28. package/lib/esm/bidiMapper/modules/context/BrowsingContextImpl.js.map +1 -1
  29. package/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js +10 -1
  30. package/lib/esm/bidiMapper/modules/context/BrowsingContextProcessor.js.map +1 -1
  31. package/lib/esm/bidiMapper/modules/input/InputSource.d.ts +5 -5
  32. package/lib/esm/bidiMapper/modules/session/SubscriptionManager.js +3 -0
  33. package/lib/esm/bidiMapper/modules/session/SubscriptionManager.js.map +1 -1
  34. package/lib/esm/protocol/chromium-bidi.d.ts +7 -2
  35. package/lib/esm/protocol/chromium-bidi.js +10 -0
  36. package/lib/esm/protocol/chromium-bidi.js.map +1 -1
  37. package/lib/esm/protocol/generated/webdriver-bidi.d.ts +18 -2
  38. package/lib/esm/protocol-parser/generated/webdriver-bidi.d.ts +497 -23
  39. package/lib/esm/protocol-parser/generated/webdriver-bidi.js +18 -1
  40. package/lib/esm/protocol-parser/generated/webdriver-bidi.js.map +1 -1
  41. package/lib/esm/protocol-parser/protocol-parser.js.map +1 -1
  42. package/lib/iife/mapperTab.js +145 -69
  43. package/lib/iife/mapperTab.js.map +1 -1
  44. package/package.json +14 -14
@@ -30,7 +30,7 @@ export type CommandResponse = {
30
30
  id: JsUint;
31
31
  result: ResultData;
32
32
  } & Extensible;
33
- export type EventData = BrowsingContextEvent | LogEvent | NetworkEvent | ScriptEvent;
33
+ export type EventData = BrowsingContextEvent | InputEvent | LogEvent | NetworkEvent | ScriptEvent;
34
34
  export type CommandData = BrowserCommand | BrowsingContextCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand | WebExtensionCommand;
35
35
  export type ResultData = BrowsingContextResult | EmptyResult | NetworkResult | ScriptResult | SessionResult | StorageResult | WebExtensionResult;
36
36
  export type EmptyParams = Extensible;
@@ -149,6 +149,7 @@ export declare namespace Session {
149
149
  beforeUnload?: Session.UserPromptHandlerType;
150
150
  confirm?: Session.UserPromptHandlerType;
151
151
  default?: Session.UserPromptHandlerType;
152
+ file?: Session.UserPromptHandlerType;
152
153
  prompt?: Session.UserPromptHandlerType;
153
154
  };
154
155
  }
@@ -712,12 +713,13 @@ export declare namespace BrowsingContext {
712
713
  }
713
714
  export declare namespace BrowsingContext {
714
715
  type SetViewportParameters = {
715
- context: BrowsingContext.BrowsingContext;
716
+ context?: BrowsingContext.BrowsingContext;
716
717
  viewport?: BrowsingContext.Viewport | null;
717
718
  /**
718
719
  * Must be greater than `0`.
719
720
  */
720
721
  devicePixelRatio?: number | null;
722
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
721
723
  };
722
724
  }
723
725
  export declare namespace BrowsingContext {
@@ -1940,6 +1942,7 @@ export declare namespace Log {
1940
1942
  };
1941
1943
  }
1942
1944
  export type InputCommand = Input.PerformActions | Input.ReleaseActions | Input.SetFiles;
1945
+ export type InputEvent = Input.FileDialogOpened;
1943
1946
  export declare namespace Input {
1944
1947
  type ElementOrigin = {
1945
1948
  type: 'element';
@@ -2135,6 +2138,19 @@ export declare namespace Input {
2135
2138
  files: [...string[]];
2136
2139
  };
2137
2140
  }
2141
+ export declare namespace Input {
2142
+ type FileDialogOpened = {
2143
+ method: 'input.fileDialogOpened';
2144
+ params: Input.FileDialogInfo;
2145
+ };
2146
+ }
2147
+ export declare namespace Input {
2148
+ type FileDialogInfo = {
2149
+ context: BrowsingContext.BrowsingContext;
2150
+ element?: Script.SharedReference;
2151
+ multiple: boolean;
2152
+ };
2153
+ }
2138
2154
  export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2139
2155
  export type WebExtensionResult = WebExtension.InstallResult;
2140
2156
  export declare namespace WebExtension {