@types/chrome 0.0.312 → 0.0.314
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.
- chrome/README.md +2 -2
- chrome/index.d.ts +65 -0
- chrome/package.json +3 -3
chrome/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
> `npm install --save @types/chrome`
|
3
3
|
|
4
4
|
# Summary
|
5
|
-
This package contains type definitions for chrome (
|
5
|
+
This package contains type definitions for chrome (https://developer.chrome.com/docs/extensions).
|
6
6
|
|
7
7
|
# Details
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 11 Apr 2025 21:33:04 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
@@ -3071,6 +3071,71 @@ declare namespace chrome {
|
|
3071
3071
|
export var themeName: "default" | "dark";
|
3072
3072
|
}
|
3073
3073
|
|
3074
|
+
////////////////////
|
3075
|
+
// Dev Tools - Recorder
|
3076
|
+
////////////////////
|
3077
|
+
/**
|
3078
|
+
* Use the `chrome.devtools.recorder` API to customize the Recorder panel in DevTools.
|
3079
|
+
* @since Chrome 105
|
3080
|
+
*/
|
3081
|
+
export namespace devtools.recorder {
|
3082
|
+
/** A plugin interface that the Recorder panel invokes to customize the Recorder panel. */
|
3083
|
+
export interface RecorderExtensionPlugin {
|
3084
|
+
/**
|
3085
|
+
* Allows the extension to implement custom replay functionality.
|
3086
|
+
*
|
3087
|
+
* @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).
|
3088
|
+
* @since Chrome 112
|
3089
|
+
*/
|
3090
|
+
replay?(recording: object): void;
|
3091
|
+
|
3092
|
+
/**
|
3093
|
+
* Converts a recording from the Recorder panel format into a string.
|
3094
|
+
* @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).
|
3095
|
+
*/
|
3096
|
+
stringify?(recording: object): void;
|
3097
|
+
|
3098
|
+
/**
|
3099
|
+
* Converts a step of the recording from the Recorder panel format into a string.
|
3100
|
+
* @param step A step of the recording of a user interaction with the page. This should match [Puppeteer's step schema](https://github.com/puppeteer/replay/blob/main/docs/api/modules/Schema.md#step).
|
3101
|
+
*/
|
3102
|
+
stringifyStep?(step: object): void;
|
3103
|
+
}
|
3104
|
+
|
3105
|
+
/**
|
3106
|
+
* Represents a view created by extension to be embedded inside the Recorder panel.
|
3107
|
+
* @since Chrome 112
|
3108
|
+
*/
|
3109
|
+
export interface RecorderView {
|
3110
|
+
/** Fired when the view is hidden. */
|
3111
|
+
onHidden: events.Event<() => void>;
|
3112
|
+
/** Fired when the view is shown. */
|
3113
|
+
onShown: events.Event<() => void>;
|
3114
|
+
/** Indicates that the extension wants to show this view in the Recorder panel. */
|
3115
|
+
show(): void;
|
3116
|
+
}
|
3117
|
+
|
3118
|
+
/**
|
3119
|
+
* Creates a view that can handle the replay. This view will be embedded inside the Recorder panel.
|
3120
|
+
* @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
|
3121
|
+
* @param pagePath Path of the panel's HTML page relative to the extension directory.
|
3122
|
+
* @since Chrome 112
|
3123
|
+
*/
|
3124
|
+
export function createView(title: string, pagePath: string): RecorderView;
|
3125
|
+
|
3126
|
+
/**
|
3127
|
+
* Registers a Recorder extension plugin.
|
3128
|
+
* @param plugin An instance implementing the RecorderExtensionPlugin interface.
|
3129
|
+
* @param name The name of the plugin.
|
3130
|
+
* @param mediaType The media type of the string content that the plugin produces.
|
3131
|
+
*/
|
3132
|
+
export function registerRecorderExtensionPlugin(
|
3133
|
+
plugin: RecorderExtensionPlugin,
|
3134
|
+
name: string,
|
3135
|
+
mediaType: string,
|
3136
|
+
): void;
|
3137
|
+
}
|
3138
|
+
|
3074
3139
|
////////////////////
|
3075
3140
|
// Document Scan
|
3076
3141
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.314",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -94,6 +94,6 @@
|
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
96
|
"peerDependencies": {},
|
97
|
-
"typesPublisherContentHash": "
|
98
|
-
"typeScriptVersion": "5.
|
97
|
+
"typesPublisherContentHash": "cd87ff79ab6fb076b0b2e8839b31df316142c4aaca471d2ed0e66244ec612054",
|
98
|
+
"typeScriptVersion": "5.1"
|
99
99
|
}
|