webextension-polyfill-ts
Advanced tools
Comparing version 0.17.0 to 0.18.0
@@ -8,2 +8,4 @@ /** | ||
*/ | ||
import { Types } from "./types"; | ||
export declare namespace Pkcs11 { | ||
@@ -90,3 +92,8 @@ interface Token { | ||
getModuleSlots(name: string): Promise<undefined>; | ||
/** | ||
* Controls whether or not the built-in PKCS#11 module (osclientcerts) is loaded. | ||
*/ | ||
autoload: Types.Setting; | ||
} | ||
} |
@@ -225,2 +225,8 @@ /** | ||
successorTabId?: number; | ||
/** | ||
* Whether the tab can be discarded automatically by the browser when resources are low. | ||
* Optional. | ||
*/ | ||
autoDiscardable?: boolean; | ||
} | ||
@@ -685,2 +691,8 @@ | ||
microphone?: boolean; | ||
/** | ||
* Whether the tabs can be discarded automatically by the browser when resources are low. | ||
* Optional. | ||
*/ | ||
autoDiscardable?: boolean; | ||
} | ||
@@ -757,2 +769,8 @@ | ||
successorTabId?: number; | ||
/** | ||
* Whether the tab should be discarded automatically by the browser when resources are low. | ||
* Optional. | ||
*/ | ||
autoDiscardable?: boolean; | ||
} | ||
@@ -759,0 +777,0 @@ |
@@ -77,5 +77,5 @@ /** | ||
/** | ||
* Possible types of results. <code>remote_tab</code>: A synced tab from another device. <code>search</code>: A search suggestion from a search engine. <code>tab</code>: An open tab in the browser. <code>tip</code>: An actionable message to help the user with their query. <code>url</code>: A URL that's not one of the other types. | ||
* Possible types of results. <code>dynamic</code>: A result whose view and payload are specified by the extension. <code>remote_tab</code>: A synced tab from another device. <code>search</code>: A search suggestion from a search engine. <code>tab</code>: An open tab in the browser. <code>tip</code>: An actionable message to help the user with their query. <code>url</code>: A URL that's not one of the other types. | ||
*/ | ||
type ResultType = "remote_tab" | "search" | "tab" | "tip" | "url"; | ||
type ResultType = "dynamic" | "remote_tab" | "search" | "tab" | "tip" | "url"; | ||
@@ -173,5 +173,5 @@ /** | ||
/** | ||
* Typically, a provider includes a <code>url</code> property in its results' payloads. When the user picks a result with a URL, Firefox automatically loads the URL. URLs don't make sense for every result type, however. When the user picks a result without a URL, this event is fired. The provider should take an appropriate action in response. Currently the only applicable <code>ResultType</code> is <code>tip</code>. | ||
* Typically, a provider includes a <code>url</code> property in its results' payloads. When the user picks a result with a URL, Firefox automatically loads the URL. URLs don't make sense for every result type, however. When the user picks a result without a URL, this event is fired. The provider should take an appropriate action in response. Currently the only applicable <code>ResultTypes</code> are <code>dynamic</code> and <code>tip</code>. | ||
*/ | ||
interface onResultPickedEvent extends Events.Event<(payload: OnResultPickedPayloadType) => void> { | ||
interface onResultPickedEvent extends Events.Event<(payload: OnResultPickedPayloadType, elementName: string) => void> { | ||
@@ -184,3 +184,3 @@ /** | ||
*/ | ||
addListener(callback: (payload: OnResultPickedPayloadType) => void, providerName: string): void; | ||
addListener(callback: (payload: OnResultPickedPayloadType, elementName: string) => void, providerName: string): void; | ||
} | ||
@@ -231,3 +231,3 @@ | ||
/** | ||
* Typically, a provider includes a <code>url</code> property in its results' payloads. When the user picks a result with a URL, Firefox automatically loads the URL. URLs don't make sense for every result type, however. When the user picks a result without a URL, this event is fired. The provider should take an appropriate action in response. Currently the only applicable <code>ResultType</code> is <code>tip</code>. | ||
* Typically, a provider includes a <code>url</code> property in its results' payloads. When the user picks a result with a URL, Firefox automatically loads the URL. URLs don't make sense for every result type, however. When the user picks a result without a URL, this event is fired. The provider should take an appropriate action in response. Currently the only applicable <code>ResultTypes</code> are <code>dynamic</code> and <code>tip</code>. | ||
*/ | ||
@@ -234,0 +234,0 @@ onResultPicked: onResultPickedEvent; |
{ | ||
"name": "webextension-polyfill-ts", | ||
"version": "0.17.0", | ||
"version": "0.18.0", | ||
"description": "webextension-polyfill for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
428698
10913