chrome-types 0.1.168 → 0.1.169

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 (3) hide show
  1. package/_all.d.ts +50 -2
  2. package/index.d.ts +50 -2
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Jan 28 2023 22:27:15 GMT+0000 (Coordinated Universal Time)
18
- // Built at 374ef949c7c9daec9b0e690e857bdfa2a967bbfe
17
+ // Generated on Tue Jan 31 2023 22:29:23 GMT+0000 (Coordinated Universal Time)
18
+ // Built at a01858c831476b07462012ed27d057afcf0678f0
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -11307,6 +11307,40 @@ declare namespace chrome {
11307
11307
 
11308
11308
  step: {},
11309
11309
  ): void;
11310
+
11311
+ /**
11312
+ * Allows the extension to implement custom replay functionality.
11313
+ *
11314
+ * @param recording A recording of the user interaction with the page. This should match [Puppeteer's recording schema](https://github.com/puppeteer/replay/blob/main/docs/api/interfaces/Schema.UserFlow.md).
11315
+ * @since Pending
11316
+ */
11317
+ replay(
11318
+
11319
+ recording: {},
11320
+ ): void;
11321
+ }
11322
+
11323
+ /**
11324
+ * Represents a view created by extension to be embedded inside the Recorder panel.
11325
+ *
11326
+ * @since Pending
11327
+ */
11328
+ export interface RecorderView {
11329
+
11330
+ /**
11331
+ * Fired when the view is shown.
11332
+ */
11333
+ onShown: events.Event<() => void>;
11334
+
11335
+ /**
11336
+ * Fired when the view is hidden.
11337
+ */
11338
+ onHidden: events.Event<() => void>;
11339
+
11340
+ /**
11341
+ * Indicates that the extension wants to show this view in the Recorder panel.
11342
+ */
11343
+ show(): void;
11310
11344
  }
11311
11345
 
11312
11346
  /**
@@ -11324,6 +11358,20 @@ declare namespace chrome {
11324
11358
 
11325
11359
  mediaType: string,
11326
11360
  ): void;
11361
+
11362
+ /**
11363
+ * Creates a view that can handle the replay. This view will be embedded inside the Recorder panel.
11364
+ *
11365
+ * @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
11366
+ * @param pagePath Path of the panel's HTML page relative to the extension directory.
11367
+ * @since Pending
11368
+ */
11369
+ export function createView(
11370
+
11371
+ title: string,
11372
+
11373
+ pagePath: string,
11374
+ ): RecorderView;
11327
11375
  }
11328
11376
 
11329
11377
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Jan 28 2023 22:27:10 GMT+0000 (Coordinated Universal Time)
18
- // Built at 374ef949c7c9daec9b0e690e857bdfa2a967bbfe
17
+ // Generated on Tue Jan 31 2023 22:29:18 GMT+0000 (Coordinated Universal Time)
18
+ // Built at a01858c831476b07462012ed27d057afcf0678f0
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -7560,6 +7560,40 @@ declare namespace chrome {
7560
7560
 
7561
7561
  step: {},
7562
7562
  ): void;
7563
+
7564
+ /**
7565
+ * Allows the extension to implement custom replay functionality.
7566
+ *
7567
+ * @param recording A recording of the user interaction with the page. This should match [Puppeteer's recording schema](https://github.com/puppeteer/replay/blob/main/docs/api/interfaces/Schema.UserFlow.md).
7568
+ * @since Pending
7569
+ */
7570
+ replay(
7571
+
7572
+ recording: {},
7573
+ ): void;
7574
+ }
7575
+
7576
+ /**
7577
+ * Represents a view created by extension to be embedded inside the Recorder panel.
7578
+ *
7579
+ * @since Pending
7580
+ */
7581
+ export interface RecorderView {
7582
+
7583
+ /**
7584
+ * Fired when the view is shown.
7585
+ */
7586
+ onShown: events.Event<() => void>;
7587
+
7588
+ /**
7589
+ * Fired when the view is hidden.
7590
+ */
7591
+ onHidden: events.Event<() => void>;
7592
+
7593
+ /**
7594
+ * Indicates that the extension wants to show this view in the Recorder panel.
7595
+ */
7596
+ show(): void;
7563
7597
  }
7564
7598
 
7565
7599
  /**
@@ -7577,6 +7611,20 @@ declare namespace chrome {
7577
7611
 
7578
7612
  mediaType: string,
7579
7613
  ): void;
7614
+
7615
+ /**
7616
+ * Creates a view that can handle the replay. This view will be embedded inside the Recorder panel.
7617
+ *
7618
+ * @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
7619
+ * @param pagePath Path of the panel's HTML page relative to the extension directory.
7620
+ * @since Pending
7621
+ */
7622
+ export function createView(
7623
+
7624
+ title: string,
7625
+
7626
+ pagePath: string,
7627
+ ): RecorderView;
7580
7628
  }
7581
7629
 
7582
7630
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "4a6af176010648cf"
8
+ "build-hash": "711ae5f1f44c9046"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.168"
19
+ "version": "0.1.169"
20
20
  }