@coasys/ad4m-connect 0.12.0-rc1-dev.5 → 0.12.0-rc2

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.
Files changed (52) hide show
  1. package/dist/components/icons/CreditIcon.d.ts +1 -0
  2. package/dist/components/icons/GlobeIcon.d.ts +1 -0
  3. package/dist/components/icons/WalletIcon.d.ts +1 -0
  4. package/dist/components/shared/avatar.d.ts +8 -0
  5. package/dist/components/views/HostBrowser.d.ts +29 -0
  6. package/dist/components/views/HostDetail.d.ts +17 -0
  7. package/dist/components/views/LoggedInDashboard.d.ts +26 -0
  8. package/dist/core.js +350 -324
  9. package/dist/index.js +392 -366
  10. package/dist/services/hostIndex.d.ts +11 -0
  11. package/dist/utils.js +1 -1
  12. package/dist/web.js +354 -328
  13. package/package.json +15 -15
  14. package/dist/components/icons/CheckCircleIcon.d.ts +0 -1
  15. package/dist/components/icons/TickIcon.d.ts +0 -1
  16. package/dist/components/shared/Ad4mLogo.d.ts +0 -1
  17. package/dist/components/shared/AppLogo.d.ts +0 -1
  18. package/dist/components/shared/Header.d.ts +0 -1
  19. package/dist/components/shared/Logo.d.ts +0 -1
  20. package/dist/components/states/ErrorState.d.ts +0 -6
  21. package/dist/components/views/ConnectionOverview.d.ts +0 -22
  22. package/dist/components/views/Hosting.d.ts +0 -22
  23. package/dist/components/views/MultiUserAuth.d.ts +0 -26
  24. package/dist/components/views/RemoteConnection.d.ts +0 -19
  25. package/dist/components/views/RequestCapability.d.ts +0 -16
  26. package/dist/components/views/ScanQRCode.d.ts +0 -14
  27. package/dist/components/views/Settings.d.ts +0 -19
  28. package/dist/components/views/Start.d.ts +0 -19
  29. package/dist/components/views/old/Hosting.d.ts +0 -22
  30. package/dist/components/views/old/MultiUserAuth.d.ts +0 -26
  31. package/dist/components/views/old/RemoteConnection.d.ts +0 -19
  32. package/dist/components/views/old/RequestCapability.d.ts +0 -16
  33. package/dist/components/views/old/ScanQRCode.d.ts +0 -14
  34. package/dist/components/views/old/Settings.d.ts +0 -19
  35. package/dist/components/views/old/Start.d.ts +0 -19
  36. package/dist/old/components/InvalidToken.d.ts +0 -0
  37. package/dist/old/components/VerifyCode.d.ts +0 -0
  38. package/dist/old/core.d.ts +0 -0
  39. package/dist/old/electron.d.ts +0 -0
  40. package/dist/old/state/ConnectState.d.ts +0 -0
  41. package/dist/old/state/index.d.ts +0 -0
  42. package/dist/old/utils.d.ts +0 -0
  43. package/dist/old/views/Hosting.d.ts +0 -0
  44. package/dist/old/views/MultiUserAuth.d.ts +0 -0
  45. package/dist/old/views/RemoteConnection.d.ts +0 -0
  46. package/dist/old/views/RequestCapability.d.ts +0 -0
  47. package/dist/old/views/ScanQRCode.d.ts +0 -0
  48. package/dist/old/views/Settings.d.ts +0 -0
  49. package/dist/old/views/Start.d.ts +0 -0
  50. package/dist/old/web.d.ts +0 -0
  51. package/dist/state/ConnectState.d.ts +0 -101
  52. package/dist/state/index.d.ts +0 -2
@@ -0,0 +1 @@
1
+ export default function CreditIcon(): import("lit").TemplateResult<1>;
@@ -0,0 +1 @@
1
+ export default function GlobeIcon(): import("lit").TemplateResult<1>;
@@ -0,0 +1 @@
1
+ export default function WalletIcon(): import("lit").TemplateResult<1>;
@@ -0,0 +1,8 @@
1
+ import { TemplateResult } from "lit";
2
+ import type { RemoteHost } from "../../types";
3
+ /**
4
+ * Render a host avatar with image-error fallback to coloured initials.
5
+ * @param host The remote host to render
6
+ * @param cls CSS class for the element (e.g. "host-avatar" or "profile-pic")
7
+ */
8
+ export declare function renderHostAvatar(host: RemoteHost, cls: string): TemplateResult;
@@ -0,0 +1,29 @@
1
+ import { LitElement } from "lit";
2
+ import type { RemoteHost } from "../../types";
3
+ export declare class HostBrowser extends LitElement {
4
+ hosts: RemoteHost[];
5
+ loading: boolean;
6
+ error: string | null;
7
+ lastHostId: string | null;
8
+ defaultUrl: string;
9
+ private manualUrl;
10
+ private manualUrlError;
11
+ private defaultApplied;
12
+ static styles: import("lit").CSSResult[];
13
+ willUpdate(changedProps: import("lit").PropertyValues): void;
14
+ private back;
15
+ private selectHost;
16
+ private connectManualUrl;
17
+ private renderAvatar;
18
+ private retry;
19
+ private formatPrice;
20
+ private getLinkPrice;
21
+ private getAvgTokenPrice;
22
+ private getSortedHosts;
23
+ render(): import("lit").TemplateResult<1>;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ "host-browser": HostBrowser;
28
+ }
29
+ }
@@ -0,0 +1,17 @@
1
+ import { LitElement, TemplateResult } from "lit";
2
+ import type { RemoteHost } from "../../types";
3
+ export declare class HostDetail extends LitElement {
4
+ host: RemoteHost;
5
+ static styles: import("lit").CSSResult[];
6
+ private back;
7
+ private proceedToAuth;
8
+ private renderAvatar;
9
+ private rateLabel;
10
+ private formatPrice;
11
+ render(): TemplateResult<1>;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ "host-detail": HostDetail;
16
+ }
17
+ }
@@ -0,0 +1,26 @@
1
+ import { LitElement } from "lit";
2
+ import type { RemoteHost, UserInfo } from "../../types";
3
+ export declare class LoggedInDashboard extends LitElement {
4
+ connectedHost: RemoteHost | null;
5
+ userInfo: UserInfo | null;
6
+ requestingPayment: boolean;
7
+ paymentError: string | null;
8
+ private walletInput;
9
+ private editingWallet;
10
+ private paymentSuccess;
11
+ static styles: import("lit").CSSResult[];
12
+ private close;
13
+ private disconnect;
14
+ private setWalletAddress;
15
+ private requestTopUp;
16
+ private get hasWallet();
17
+ private get isFreeAccess();
18
+ private get isDepleted();
19
+ updated(changed: Map<string, unknown>): void;
20
+ render(): import("lit").TemplateResult<1>;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ "logged-in-dashboard": LoggedInDashboard;
25
+ }
26
+ }