This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: updating to latest ARC standards
Signed-off-by: Pawel Psztyc <jarrodek@gmail.com>
- Loading branch information
Showing
21 changed files
with
2,393 additions
and
4,836 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"cSpell.words": [ | ||
"hasextension" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,126 +1,7 @@ | ||
/** | ||
* DO NOT EDIT | ||
* | ||
* This file was automatically generated by | ||
* https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations | ||
* | ||
* To modify these typings, edit the source file(s): | ||
* api-console-ext-comm.js | ||
*/ | ||
|
||
|
||
// tslint:disable:variable-name Describing an API that's defined elsewhere. | ||
// tslint:disable:no-any describes the API as best we are able today | ||
|
||
import {LitElement} from 'lit-element'; | ||
|
||
declare namespace ApiElements { | ||
|
||
/** | ||
* `<api-console-ext-comm>` is an element that support communication with | ||
* the api-console-extension. | ||
* | ||
* If the extension is installed then it will intercept the `api-request` | ||
* and cancel it. | ||
* | ||
* Data from the event are passed to the extension and the request is to | ||
* be executed from within the extension. | ||
*/ | ||
class ApiConsoleExtComm extends LitElement { | ||
|
||
/** | ||
* If true then the API console extension has been detected. | ||
*/ | ||
readonly hasExtension: boolean|null|undefined; | ||
_hasExtension: any; | ||
|
||
/** | ||
* An event handler for the API console events (request, abort, | ||
* token request etc). By default it uses body but it should be | ||
* the console if possible or the request panel. | ||
*/ | ||
eventTarget: object|null|undefined; | ||
|
||
/** | ||
* List of active requests sent to the extension. | ||
* The key is request ID (generated by the console) and the value | ||
* is the request data. | ||
*/ | ||
_activeRequests: object|null|undefined; | ||
constructor(); | ||
connectedCallback(): void; | ||
disconnectedCallback(): void; | ||
createRenderRoot(): any; | ||
|
||
/** | ||
* Posts message on a window object to request an event from the | ||
* extension if it is installed. | ||
*/ | ||
_notifyExtension(): void; | ||
|
||
/** | ||
* Handler for event target change. Removes listener from old | ||
* hasndelr and sets up API console event listeners on the node. | ||
* | ||
* @param et New event target | ||
*/ | ||
_eventTargetChanged(et: Node|null, old: Node|null): void; | ||
|
||
/** | ||
* Sets up API console event listeners on the target node. | ||
* | ||
* @param node Target for the events | ||
*/ | ||
_observerConsoleEvents(node: Node|null): void; | ||
|
||
/** | ||
* Removes API console event listeners from the target node. | ||
* | ||
* @param node Target for the events | ||
*/ | ||
_unobserverConsoleEvents(node: Node|null): void; | ||
|
||
/** | ||
* A handler for the message event dispatched on window object. | ||
* This is used in communication with an extension. | ||
*/ | ||
_messsageHandler(e: MessageEvent|null): void; | ||
|
||
/** | ||
* A handler for API console request event | ||
*/ | ||
_requestHandler(e: CustomEvent|null): void; | ||
|
||
/** | ||
* A handler for API console abort request handler. | ||
*/ | ||
_abortHandler(e: CustomEvent|null): void; | ||
|
||
/** | ||
* A handler for API console OAuth2 toekn request handler. | ||
*/ | ||
_oauthTokenHandler(e: CustomEvent|null): void; | ||
|
||
/** | ||
* Called when the api-console-extension is detected. | ||
*/ | ||
_extensionDetected(): void; | ||
|
||
/** | ||
* A handler for the response notified by the extension. | ||
*/ | ||
_responseReady(data: object|null): void; | ||
|
||
/** | ||
* Handler for OAuth token response. | ||
*/ | ||
_oauthTokenReady(data: object|null): void; | ||
} | ||
} | ||
import ApiConsoleExtComm from './src/ApiConsoleExtCommElement.js'; | ||
|
||
declare global { | ||
|
||
interface HTMLElementTagNameMap { | ||
"api-console-ext-comm": ApiElements.ApiConsoleExtComm; | ||
"api-console-ext-comm": ApiConsoleExtComm; | ||
} | ||
} |
Oops, something went wrong.