@coasys/ad4m-connect 0.9.1-prerelease.8 → 0.10.0-prerelease

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.
@@ -1,4 +0,0 @@
1
- export default function AgentLocked({ unlockAgent, connectToPort }: {
2
- unlockAgent: any;
3
- connectToPort: any;
4
- }): import("lit-html").TemplateResult<1>;
@@ -1 +0,0 @@
1
- export default function CapNotMatched(): import("lit-html").TemplateResult<1>;
@@ -1 +0,0 @@
1
- export default function CouldNotMakeRequest(): import("lit-html").TemplateResult<1>;
@@ -1,3 +0,0 @@
1
- export default function Disconnected({ reconnect }: {
2
- reconnect: any;
3
- }): import("lit-html").TemplateResult<1>;
@@ -1 +0,0 @@
1
- export default function Header(): import("lit-html").TemplateResult<1>;
@@ -1,3 +0,0 @@
1
- export default function InvalidToken({ requestCapability }: {
2
- requestCapability: any;
3
- }): import("lit-html").TemplateResult<1>;
@@ -1 +0,0 @@
1
- export default function Loading(): import("lit-html").TemplateResult<1>;
@@ -1 +0,0 @@
1
- export default function Logo(): import("lit-html").TemplateResult<1>;
@@ -1,6 +0,0 @@
1
- export default function RemoveUrl({ url, connectRemote, changeState, changeUrl, }: {
2
- url: any;
3
- connectRemote: any;
4
- changeState: any;
5
- changeUrl: any;
6
- }): import("lit-html").TemplateResult<1>;
@@ -1,7 +0,0 @@
1
- export default function CapNotMatchedFirst({ capabilities, appname, appiconpath, changeState, requestCapability, }: {
2
- capabilities: any;
3
- appname: any;
4
- appiconpath: any;
5
- changeState: any;
6
- requestCapability: any;
7
- }): import("lit-html").TemplateResult<1>;
@@ -1,8 +0,0 @@
1
- export default function Start({ connectToPort, isMobile, hasClickedDownload, onDownloaded, changeState, scanQrcode, }: {
2
- connectToPort: any;
3
- isMobile: any;
4
- hasClickedDownload: any;
5
- onDownloaded: any;
6
- changeState: any;
7
- scanQrcode: any;
8
- }): import("lit-html").TemplateResult<1>;
@@ -1,6 +0,0 @@
1
- export default function Request({ code, changeState, verifyCode, changeCode }: {
2
- code: any;
3
- changeState: any;
4
- verifyCode: any;
5
- changeCode: any;
6
- }): import("lit-html").TemplateResult<1>;
@@ -1,57 +0,0 @@
1
- import { ApolloClient, NormalizedCacheObject } from "@apollo/client/core";
2
- import { Ad4mClient } from "@perspect3vism/ad4m";
3
- export type Ad4mConnectOptions = {
4
- appName: string;
5
- appDesc: string;
6
- appDomain: string;
7
- appIconPath?: string;
8
- capabilities: {
9
- [x: string]: any;
10
- }[];
11
- dataPath?: string;
12
- port?: number;
13
- token?: string;
14
- url?: string;
15
- onStateChange?: any;
16
- };
17
- type PortSearchStateType = "na" | "searching" | "found" | "not_found";
18
- export type ClientStates = "connected_with_capabilities" | "agent_locked" | "invalid_token" | "capabilities_not_matched" | "verify_code" | "not_connected" | "loading" | "disconnected" | "connection-error" | "remote_url";
19
- export type ConfigStates = "port" | "url" | "token";
20
- declare class Client {
21
- apolloClient?: ApolloClient<NormalizedCacheObject>;
22
- ad4mClient?: Ad4mClient;
23
- requestId?: string;
24
- url: string;
25
- token: string;
26
- isFullyInitialized: boolean;
27
- port: number;
28
- portSearchState: PortSearchStateType;
29
- appName: string;
30
- appDesc: string;
31
- appDomain: string;
32
- capabilities: {
33
- [x: string]: any;
34
- }[];
35
- stateListeners: Function[];
36
- configListeners: Function[];
37
- constructor({ appName, appDesc, appDomain, capabilities, port, token, url, }: Ad4mConnectOptions);
38
- onStateChange(listener: (...args: any[]) => void): void;
39
- notifyStateChange(val: ClientStates): void;
40
- onConfigChange(listener: (...args: any[]) => void): void;
41
- notifyConfigChange(val: ConfigStates, data: any): void;
42
- setPort(port: number): void;
43
- setUrl(url: string): void;
44
- setToken(token: string): void;
45
- connect(url?: string): Promise<void>;
46
- reconnect(): Promise<void>;
47
- connectToPort(): Promise<void>;
48
- private handleErrorMessage;
49
- findPort(): Promise<number>;
50
- setPortSearchState(state: PortSearchStateType): void;
51
- buildClient(): void;
52
- checkConnection(): Promise<void>;
53
- requestCapability(invalidateToken?: boolean): Promise<void>;
54
- verifyCode(code: string): Promise<void>;
55
- }
56
- export declare function ad4mConnect(args: Ad4mConnectOptions): Client;
57
- export {};
@@ -1,2 +0,0 @@
1
- import { Ad4mConnectOptions } from "./core";
2
- export declare function ad4mConnect(args: Ad4mConnectOptions): Promise<unknown>;
@@ -1,6 +0,0 @@
1
- import { Ad4mClient } from "@perspect3vism/ad4m";
2
- export declare function checkPort(port: number): Promise<number>;
3
- export declare function getAd4mClient(): Promise<Ad4mClient>;
4
- export declare function onAuthStateChanged(callback: any): void;
5
- export declare function isConnected(): any;
6
- export declare function detectOS(): string;
package/dist/src/web.d.ts DELETED
@@ -1,40 +0,0 @@
1
- import { Ad4mClient } from "@perspect3vism/ad4m";
2
- import { LitElement } from "lit";
3
- export default class Ad4mConnect extends LitElement {
4
- static styles: import("lit").CSSResult[];
5
- private _client;
6
- private _state;
7
- private _code;
8
- private _isMobile;
9
- private _hasClickedDownload;
10
- appname: any;
11
- appdesc: any;
12
- appdomain: any;
13
- capabilities: any;
14
- token: any;
15
- url: any;
16
- port: any;
17
- appiconpath: any;
18
- openonshortcut: any;
19
- theme: string;
20
- connectedCallback(): void;
21
- connect(): void;
22
- reconnect(): void;
23
- connected(): Promise<boolean>;
24
- getAd4mClient(): Ad4mClient;
25
- loadFont(): void;
26
- addShortCut(): void;
27
- constructQR(): void;
28
- scanQrcode(): void;
29
- changeUrl(url: any): void;
30
- connectRemote(url: any): void;
31
- requestCapability(bool: any): void;
32
- connectToPort(): void;
33
- unlockAgent(passcode: any): Promise<void>;
34
- changeState(state: any): void;
35
- changeCode(code: any): void;
36
- onDownloaded(): void;
37
- verifyCode(code: any): void;
38
- renderViews(): import("lit-html").TemplateResult<1>;
39
- render(): import("lit-html").TemplateResult<1>;
40
- }