diff --git a/packages/browser/package.json b/packages/browser/package.json index 01f6d48c..69326643 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -1,7 +1,7 @@ { "name": "@wxt-dev/browser", "description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome", - "version": "0.0.318", + "version": "0.0.319", "type": "module", "main": "src/index.mjs", "types": "src/index.d.ts", @@ -23,7 +23,7 @@ "src" ], "devDependencies": { - "@types/chrome": "0.0.318", + "@types/chrome": "0.0.319", "fs-extra": "^11.3.0", "nano-spawn": "^0.2.0", "tsx": "4.19.4", diff --git a/packages/browser/src/gen/index.d.ts b/packages/browser/src/gen/index.d.ts index 1ee4ec50..e34fadad 100644 --- a/packages/browser/src/gen/index.d.ts +++ b/packages/browser/src/gen/index.d.ts @@ -7883,6 +7883,13 @@ export namespace Browser { export function cancelJob(jobId: string): Promise; export function cancelJob(jobId: string, callback: () => void): void; + /** + * Returns the status of the print job. This call will fail with a runtime error if the print job with the given `jobId` doesn't exist. `jobId`: The id of the print job to return the status of. This should be the same id received in a {@link SubmitJobResponse}. + * @since Chrome 135 + */ + export function getJobStatus(jobId: string): Promise<`${JobStatus}`>; + export function getJobStatus(jobId: string, callback: (status: `${JobStatus}`) => void): void; + /** * Returns the status and capabilities of the printer in CDD format. This call will fail with a runtime error if no printers with given id are installed. * Can return its result via Promise in Manifest V3 or later since Chrome 100. @@ -7907,7 +7914,7 @@ export namespace Browser { /** * Event fired when the status of the job is changed. This is only fired for the jobs created by this extension. */ - export const onJobStatusChanged: Browser.events.Event<(jobId: string, status: JobStatus) => void>; + export const onJobStatusChanged: Browser.events.Event<(jobId: string, status: `${JobStatus}`) => void>; } //////////////////// diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7124103..157ea3cf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -167,8 +167,8 @@ importers: version: 1.2.15 devDependencies: '@types/chrome': - specifier: 0.0.318 - version: 0.0.318 + specifier: 0.0.319 + version: 0.0.319 fs-extra: specifier: ^11.3.0 version: 11.3.0 @@ -1929,8 +1929,8 @@ packages: '@types/babel__traverse@7.20.6': resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} - '@types/chrome@0.0.318': - resolution: {integrity: sha512-rrtyYQ1t+g7EyG0FejE+UXQBjSGUHGh0RIdXwUT/laPo9T724NOIgXA94ns6ewmNauwijYa5ck3+dBxWnHcynQ==} + '@types/chrome@0.0.319': + resolution: {integrity: sha512-k+E1b3VrWEj7OqQ22cPxHs3o/jrYWEEDGaocwjlIGtul+WrAn1vaBANc0iurgm0aXkyIVs7aH3ce0lpr96XYhw==} '@types/conventional-commits-parser@5.0.1': resolution: {integrity: sha512-7uz5EHdzz2TqoMfV7ee61Egf5y6NkcO4FB/1iCCQnbeiI1F3xzv3vK5dBCXUCLQgGYS+mUeigK1iKQzvED+QnQ==} @@ -6082,7 +6082,7 @@ snapshots: dependencies: '@babel/types': 7.27.0 - '@types/chrome@0.0.318': + '@types/chrome@0.0.319': dependencies: '@types/filesystem': 0.0.36 '@types/har-format': 1.2.15