@ledgerhq/ledger-wallet-provider 1.2.0 → 1.3.0
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.
- package/dist/components/atom/button/ledger-button.d.ts.map +1 -1
- package/dist/components/atom/drawer/ledger-drawer.d.ts +1 -1
- package/dist/components/atom/drawer/ledger-drawer.d.ts.map +1 -1
- package/dist/components/atom/fiat-total/ledger-fiat-total.d.ts +2 -0
- package/dist/components/atom/fiat-total/ledger-fiat-total.d.ts.map +1 -1
- package/dist/components/atom/floating-button/floating-button-badge-animation-controller.d.ts +36 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation-controller.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation.d.ts +7 -0
- package/dist/components/atom/floating-button/floating-button-badge-animation.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-rect.d.ts +24 -0
- package/dist/components/atom/floating-button/floating-button-rect.d.ts.map +1 -0
- package/dist/components/atom/floating-button/floating-button-tooltip-utils.d.ts +19 -0
- package/dist/components/atom/floating-button/floating-button-tooltip-utils.d.ts.map +1 -0
- package/dist/components/atom/floating-button/ledger-floating-button-badge.d.ts +14 -0
- package/dist/components/atom/floating-button/ledger-floating-button-badge.d.ts.map +1 -0
- package/dist/components/atom/floating-button/ledger-floating-button-controller.d.ts +21 -3
- package/dist/components/atom/floating-button/ledger-floating-button-controller.d.ts.map +1 -1
- package/dist/components/atom/floating-button/ledger-floating-button.d.ts +20 -3
- package/dist/components/atom/floating-button/ledger-floating-button.d.ts.map +1 -1
- package/dist/components/atom/icon/checkIcon.d.ts.map +1 -1
- package/dist/components/atom/icon/checkMarkCircleFillIcon.d.ts +3 -0
- package/dist/components/atom/icon/checkMarkCircleFillIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/checkmarkCircleIcon.d.ts +3 -0
- package/dist/components/atom/icon/checkmarkCircleIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/clockIcon.d.ts +3 -0
- package/dist/components/atom/icon/clockIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/coinsIcon.d.ts +3 -0
- package/dist/components/atom/icon/coinsIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/deleteCircleFillIcon.d.ts +3 -0
- package/dist/components/atom/icon/deleteCircleFillIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/dollarIcon.d.ts +3 -0
- package/dist/components/atom/icon/dollarIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/index.d.ts +10 -0
- package/dist/components/atom/icon/index.d.ts.map +1 -1
- package/dist/components/atom/icon/languageIcon.d.ts +3 -0
- package/dist/components/atom/icon/languageIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/ledger-icon.d.ts +4 -3
- package/dist/components/atom/icon/ledger-icon.d.ts.map +1 -1
- package/dist/components/atom/icon/plusIcon.d.ts +3 -0
- package/dist/components/atom/icon/plusIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/refreshIcon.d.ts +3 -0
- package/dist/components/atom/icon/refreshIcon.d.ts.map +1 -0
- package/dist/components/atom/icon/settingsAlt2Icon.d.ts +3 -0
- package/dist/components/atom/icon/settingsAlt2Icon.d.ts.map +1 -0
- package/dist/components/atom/modal/bottom-animation.d.ts +8 -0
- package/dist/components/atom/modal/bottom-animation.d.ts.map +1 -0
- package/dist/components/atom/modal/ledger-modal-story-wrapper.d.ts +7 -0
- package/dist/components/atom/modal/ledger-modal-story-wrapper.d.ts.map +1 -1
- package/dist/components/atom/modal/ledger-modal.d.ts +28 -1
- package/dist/components/atom/modal/ledger-modal.d.ts.map +1 -1
- package/dist/components/atom/modal/modal-animation-controller.d.ts +10 -2
- package/dist/components/atom/modal/modal-animation-controller.d.ts.map +1 -1
- package/dist/components/atom/modal/morph-animation.d.ts +33 -0
- package/dist/components/atom/modal/morph-animation.d.ts.map +1 -0
- package/dist/components/atom/modal/morph-path.d.ts +39 -0
- package/dist/components/atom/modal/morph-path.d.ts.map +1 -0
- package/dist/components/atom/modal/slide-up-animation.d.ts +8 -0
- package/dist/components/atom/modal/slide-up-animation.d.ts.map +1 -0
- package/dist/components/atom/toast/ledger-toast.d.ts +81 -0
- package/dist/components/atom/toast/ledger-toast.d.ts.map +1 -0
- package/dist/components/atom/tooltip/ledger-tooltip.d.ts +3 -3
- package/dist/components/atom/tooltip/ledger-tooltip.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/molecule/account-switch/ledger-account-switch.d.ts.map +1 -1
- package/dist/components/molecule/status-card/ledger-status-card.d.ts +21 -0
- package/dist/components/molecule/status-card/ledger-status-card.d.ts.map +1 -0
- package/dist/components/molecule/toolbar/ledger-toolbar.d.ts +3 -0
- package/dist/components/molecule/toolbar/ledger-toolbar.d.ts.map +1 -1
- package/dist/components/molecule/transaction-item/ledger-transaction-item.d.ts +31 -1
- package/dist/components/molecule/transaction-item/ledger-transaction-item.d.ts.map +1 -1
- package/dist/components/molecule/transaction-notifications/ledger-transaction-confirmation-host.d.ts +23 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-confirmation-host.d.ts.map +1 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-notifications.d.ts +32 -0
- package/dist/components/molecule/transaction-notifications/ledger-transaction-notifications.d.ts.map +1 -0
- package/dist/components/molecule/transaction-notifications/transaction-confirmation-notifier.d.ts +34 -0
- package/dist/components/molecule/transaction-notifications/transaction-confirmation-notifier.d.ts.map +1 -0
- package/dist/components/molecule/wallet-redirect-drawer/ledger-wallet-redirect-drawer.d.ts.map +1 -1
- package/dist/components/organism/status/ledger-status.d.ts +3 -2
- package/dist/components/organism/status/ledger-status.d.ts.map +1 -1
- package/dist/context/constants/languages.d.ts +4009 -0
- package/dist/context/constants/languages.d.ts.map +1 -0
- package/dist/context/language-context.d.ts +14 -315
- package/dist/context/language-context.d.ts.map +1 -1
- package/dist/context/utils/language-utils.d.ts +4 -0
- package/dist/context/utils/language-utils.d.ts.map +1 -0
- package/dist/domain/account-tokens/account-token-controller.d.ts +2 -9
- package/dist/domain/account-tokens/account-token-controller.d.ts.map +1 -1
- package/dist/domain/account-tokens/account-tokens.d.ts +2 -4
- package/dist/domain/account-tokens/account-tokens.d.ts.map +1 -1
- package/dist/domain/available-networks/available-networks-controller.d.ts.map +1 -1
- package/dist/domain/available-networks/available-networks.d.ts.map +1 -1
- package/dist/domain/home/ledger-home-controller.d.ts +7 -2
- package/dist/domain/home/ledger-home-controller.d.ts.map +1 -1
- package/dist/domain/home/ledger-home.d.ts +1 -2
- package/dist/domain/home/ledger-home.d.ts.map +1 -1
- package/dist/domain/onboarding/connection-success/connection-success-overlay.d.ts +39 -0
- package/dist/domain/onboarding/connection-success/connection-success-overlay.d.ts.map +1 -0
- package/dist/domain/onboarding/connection-success/connection-success-screen.d.ts +21 -0
- package/dist/domain/onboarding/connection-success/connection-success-screen.d.ts.map +1 -0
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-controller.d.ts +3 -1
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-controller.d.ts.map +1 -1
- package/dist/domain/onboarding/mobile-onboarding/mobile-onboarding-screen.d.ts.map +1 -1
- package/dist/domain/onboarding/select-account/select-account-controller.d.ts +27 -11
- package/dist/domain/onboarding/select-account/select-account-controller.d.ts.map +1 -1
- package/dist/domain/onboarding/select-account/select-account.d.ts +6 -1
- package/dist/domain/onboarding/select-account/select-account.d.ts.map +1 -1
- package/dist/domain/onboarding/select-device/select-device-controller.d.ts.map +1 -1
- package/dist/domain/settings/preferences/preference-currency-controller.d.ts +15 -0
- package/dist/domain/settings/preferences/preference-currency-controller.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-currency-screen.d.ts +18 -0
- package/dist/domain/settings/preferences/preference-currency-screen.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-language-controller.d.ts +20 -0
- package/dist/domain/settings/preferences/preference-language-controller.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preference-language-screen.d.ts +18 -0
- package/dist/domain/settings/preferences/preference-language-screen.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preferences-controller.d.ts +9 -0
- package/dist/domain/settings/preferences/preferences-controller.d.ts.map +1 -0
- package/dist/domain/settings/preferences/preferences-screen.d.ts +23 -0
- package/dist/domain/settings/preferences/preferences-screen.d.ts.map +1 -0
- package/dist/domain/settings/{security-screen.d.ts → security/security-screen.d.ts} +2 -2
- package/dist/domain/settings/security/security-screen.d.ts.map +1 -0
- package/dist/domain/settings/settings-screen.d.ts +1 -0
- package/dist/domain/settings/settings-screen.d.ts.map +1 -1
- package/dist/domain/{support → settings/support}/support-screen.d.ts +4 -4
- package/dist/domain/settings/support/support-screen.d.ts.map +1 -0
- package/dist/domain/sign-transaction/sign-transaction-controller.d.ts +13 -2
- package/dist/domain/sign-transaction/sign-transaction-controller.d.ts.map +1 -1
- package/dist/domain/sign-transaction/sign-transaction.d.ts +6 -1
- package/dist/domain/sign-transaction/sign-transaction.d.ts.map +1 -1
- package/dist/domain/token-list/token-list.d.ts +1 -0
- package/dist/domain/token-list/token-list.d.ts.map +1 -1
- package/dist/domain/transaction-list/transaction-list.d.ts +6 -1
- package/dist/domain/transaction-list/transaction-list.d.ts.map +1 -1
- package/dist/i18n/de.json.d.ts +362 -0
- package/dist/i18n/en.json.d.ts +64 -10
- package/dist/i18n/es.json.d.ts +362 -0
- package/dist/i18n/fr.json.d.ts +362 -0
- package/dist/i18n/ja.json.d.ts +362 -0
- package/dist/i18n/ko.json.d.ts +362 -0
- package/dist/i18n/pt.json.d.ts +362 -0
- package/dist/i18n/ru.json.d.ts +362 -0
- package/dist/i18n/th.json.d.ts +362 -0
- package/dist/i18n/tr.json.d.ts +362 -0
- package/dist/i18n/zh.json.d.ts +362 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35620 -32462
- package/dist/ledger-button-app-controller.d.ts +0 -2
- package/dist/ledger-button-app-controller.d.ts.map +1 -1
- package/dist/ledger-button-app.d.ts +4 -2
- package/dist/ledger-button-app.d.ts.map +1 -1
- package/dist/shared/constants/deeplinks.d.ts +0 -4
- package/dist/shared/constants/deeplinks.d.ts.map +1 -1
- package/dist/shared/constants/shop-urls.d.ts +15 -0
- package/dist/shared/constants/shop-urls.d.ts.map +1 -0
- package/dist/shared/navigation.d.ts +22 -3
- package/dist/shared/navigation.d.ts.map +1 -1
- package/dist/shared/root-navigation-controller.d.ts +8 -4
- package/dist/shared/root-navigation-controller.d.ts.map +1 -1
- package/dist/shared/root-navigation.d.ts +26 -2
- package/dist/shared/root-navigation.d.ts.map +1 -1
- package/dist/shared/routes.d.ts +4 -204
- package/dist/shared/routes.d.ts.map +1 -1
- package/dist/styles.css +155 -28
- package/dist/types/transaction-confirmation-notification.d.ts +2 -0
- package/dist/types/transaction-confirmation-notification.d.ts.map +1 -0
- package/dist/utils/account-display-tokens.d.ts +11 -0
- package/dist/utils/account-display-tokens.d.ts.map +1 -0
- package/dist/utils/format-fiat.d.ts +14 -2
- package/dist/utils/format-fiat.d.ts.map +1 -1
- package/dist/utils/setup-floating-button.d.ts +2 -1
- package/dist/utils/setup-floating-button.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/components/molecule/account-item/ledger-account-item.d.ts +0 -57
- package/dist/components/molecule/account-item/ledger-account-item.d.ts.map +0 -1
- package/dist/domain/settings/security-screen.d.ts.map +0 -1
- package/dist/domain/support/support-screen.d.ts.map +0 -1
- package/dist/web3-provider/LedgerEIP1193Provider.d.ts +0 -64
- package/dist/web3-provider/LedgerEIP1193Provider.d.ts.map +0 -1
- package/dist/web3-provider/supportedChains.d.ts +0 -15
- package/dist/web3-provider/supportedChains.d.ts.map +0 -1
- package/dist/web3-provider/supportedRpcMethods.d.ts +0 -18
- package/dist/web3-provider/supportedRpcMethods.d.ts.map +0 -1
|
@@ -1,34 +1,50 @@
|
|
|
1
1
|
import { Account, AccountWithFiat } from '@ledgerhq/ledger-wallet-provider-core';
|
|
2
2
|
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
3
|
-
import { AccountItemClickEventDetail } from '../../../components/molecule/account-item/ledger-account-item.js';
|
|
4
3
|
import { CoreContext } from '../../../context/core-context.js';
|
|
4
|
+
import { LanguageContext } from '../../../context/language-context.js';
|
|
5
5
|
import { Navigation } from '../../../shared/navigation.js';
|
|
6
|
+
export type AccountGroup = {
|
|
7
|
+
freshAddress: string;
|
|
8
|
+
accounts: AccountWithFiat[];
|
|
9
|
+
};
|
|
6
10
|
export declare class SelectAccountController implements ReactiveController {
|
|
7
11
|
private readonly host;
|
|
8
12
|
private readonly core;
|
|
9
13
|
private readonly navigation;
|
|
14
|
+
private readonly lang;
|
|
10
15
|
accounts: AccountWithFiat[];
|
|
11
|
-
isAccountsLoading: boolean;
|
|
12
16
|
searchQuery: string;
|
|
13
17
|
private accountsSubscription?;
|
|
18
|
+
getDisplayTokens(account: AccountWithFiat): import('@ledgerhq/ledger-wallet-provider-core').Token[];
|
|
19
|
+
truncateAddress(address: string): string;
|
|
20
|
+
formatGroupCount(count: number): string;
|
|
21
|
+
formatTokenCount(count: number): string;
|
|
22
|
+
get groupedAccounts(): AccountGroup[];
|
|
14
23
|
get filteredAccounts(): AccountWithFiat[];
|
|
15
24
|
get isBalanceLoading(): boolean;
|
|
16
|
-
constructor(host: ReactiveControllerHost, core: CoreContext, navigation: Navigation);
|
|
25
|
+
constructor(host: ReactiveControllerHost, core: CoreContext, navigation: Navigation, lang: LanguageContext);
|
|
17
26
|
hostConnected(): void;
|
|
18
27
|
hostDisconnected(): void;
|
|
19
|
-
getAccounts(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
getAccounts(options?: {
|
|
29
|
+
forceRefresh?: boolean;
|
|
30
|
+
}): void;
|
|
31
|
+
isAccountBalanceLoading(account: AccountWithFiat): boolean;
|
|
32
|
+
hasAccountBalanceError(account: AccountWithFiat): boolean;
|
|
33
|
+
isAccountFiatLoading(account: AccountWithFiat): boolean;
|
|
34
|
+
hasAccountFiatError(account: AccountWithFiat): boolean;
|
|
35
|
+
getAccountFiatValue(account: AccountWithFiat): {
|
|
36
|
+
value: string;
|
|
37
|
+
currency: string;
|
|
38
|
+
} | undefined;
|
|
25
39
|
selectAccount(account: Account): void;
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
handleAccountCardClick(account: AccountWithFiat): void;
|
|
41
|
+
handleShowTokensClick(account: AccountWithFiat): void;
|
|
28
42
|
handleSearchInput(event: CustomEvent<{
|
|
29
43
|
value: string;
|
|
30
44
|
}>): void;
|
|
31
45
|
handleSearchClear(): void;
|
|
46
|
+
handleRefreshAccountsClick(): void;
|
|
47
|
+
handleAddAccountClick(): void;
|
|
32
48
|
close(): void;
|
|
33
49
|
}
|
|
34
50
|
//# sourceMappingURL=select-account-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-account-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/onboarding/select-account/select-account-controller.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EAChB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"select-account-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/onboarding/select-account/select-account-controller.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EAChB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAKtE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,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AO,EAAE,eAAe;IAiB/C,qBAAqB,CAAC,OAAO,EAAE,eAAe;IAc9C,iBAAiB,CAAC,KAAK,EAAE,WAAW,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAKvD,iBAAiB;IAKjB,0BAA0B;IAI1B,qBAAqB;IAIrB,KAAK;CAUN"}
|
|
@@ -10,9 +10,14 @@ export declare class SelectAccountScreen extends LitElement {
|
|
|
10
10
|
languages: LanguageContext;
|
|
11
11
|
controller: SelectAccountController;
|
|
12
12
|
connectedCallback(): void;
|
|
13
|
-
|
|
13
|
+
private renderAccountCard;
|
|
14
|
+
private renderAccountCardTokenInfo;
|
|
15
|
+
private renderAccountCardBalance;
|
|
14
16
|
private renderBalanceLoadingFooter;
|
|
17
|
+
private renderGroup;
|
|
15
18
|
private renderNoResults;
|
|
19
|
+
private renderActionIconButton;
|
|
20
|
+
private renderSearchHeader;
|
|
16
21
|
render(): import('lit').TemplateResult<1>;
|
|
17
22
|
}
|
|
18
23
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-account.d.ts","sourceRoot":"","sources":["../../../../src/domain/onboarding/select-account/select-account.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAEtC,OAAO,
|
|
1
|
+
{"version":3,"file":"select-account.d.ts","sourceRoot":"","sources":["../../../../src/domain/onboarding/select-account/select-account.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EACL,OAAO,EAER,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAQ,UAAU,EAAW,MAAM,KAAK,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAEL,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG3D,OAAO,EAEL,uBAAuB,EACxB,MAAM,gCAAgC,CAAC;AAExC,qBAEa,mBAAoB,SAAQ,UAAU;IAEjD,UAAU,EAAG,UAAU,CAAC;IAIjB,WAAW,EAAG,WAAW,CAAC;IAI1B,SAAS,EAAG,eAAe,CAAC;IAEnC,UAAU,EAAG,uBAAuB,CAAC;IAE5B,iBAAiB;IAU1B,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,0BAA0B;IAgClC,OAAO,CAAC,wBAAwB;IA6BhC,OAAO,CAAC,0BAA0B;IAkBlC,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,sBAAsB;IAwB9B,OAAO,CAAC,kBAAkB;IA+BjB,MAAM;CAYhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,mBAAmB,CAAC;KAC9C;IAED,UAAU,cAAc;QACtB,kCAAkC,EAAE,WAAW,CAC3C;YACE,OAAO,EAAE,OAAO,CAAC;YACjB,MAAM,EAAE,SAAS,CAAC;SACnB,GACD;YACE,MAAM,EAAE,OAAO,CAAC;YAChB,KAAK,EAAE,OAAO,CAAC;SAChB,CACJ,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-device-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/onboarding/select-device/select-device-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAE3E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"select-device-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/onboarding/select-device/select-device-controller.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAE3E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAM5E,qBAAa,sBAAuB,YAAW,kBAAkB;IAS7D,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAVvB,SAAS,CAAC,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;SAAE,CAAC;QAC7D,IAAI,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;SAAE,CAAC;KAC9D,CAAa;gBAGK,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,eAAe;IAKxC,aAAa;IAIP,WAAW;IAejB,OAAO,CAAC,SAAS;IA6EX,eAAe,CAAC,MAAM,EAAE;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,WAAW,GAAG,KAAK,GAAG,EAAE,CAAC;QACzC,SAAS,EAAE,MAAM,CAAC;KACnB;CAaF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FiatCurrency } from '@ledgerhq/ledger-wallet-provider-core';
|
|
2
|
+
import { ReactiveControllerHost } from 'lit';
|
|
3
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
4
|
+
import { Navigation } from '../../../shared/navigation.js';
|
|
5
|
+
export declare class PreferenceCurrencyController {
|
|
6
|
+
private readonly host;
|
|
7
|
+
private readonly core;
|
|
8
|
+
private readonly navigation;
|
|
9
|
+
constructor(host: ReactiveControllerHost, core: CoreContext, navigation: Navigation);
|
|
10
|
+
private trackCurrencyChanged;
|
|
11
|
+
selectCurrency(currencyCode: FiatCurrency["code"]): Promise<void>;
|
|
12
|
+
get currentCurrency(): string;
|
|
13
|
+
get currencies(): FiatCurrency[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=preference-currency-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference-currency-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/preferences/preference-currency-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAsB,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,qBAAa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAFV,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU;IAKzC,OAAO,CAAC,oBAAoB;IAItB,cAAc,CAAC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IASvE,IAAI,eAAe,WAElB;IAED,IAAI,UAAU,IAAI,YAAY,EAAE,CAE/B;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
import { LanguageContext } from '../../../context/language-context.js';
|
|
4
|
+
import { Navigation } from '../../../shared/navigation.js';
|
|
5
|
+
export declare class PreferenceCurrencyScreen extends LitElement {
|
|
6
|
+
languages: LanguageContext;
|
|
7
|
+
core: CoreContext;
|
|
8
|
+
navigation: Navigation;
|
|
9
|
+
private currencyController?;
|
|
10
|
+
willUpdate(changedProps: PropertyValues): void;
|
|
11
|
+
render(): import('lit').TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"preference-currency-screen": PreferenceCurrencyScreen;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=preference-currency-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference-currency-screen.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/preferences/preference-currency-screen.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,qBAEa,wBAAyB,SAAQ,UAAU;IAG/C,SAAS,EAAG,eAAe,CAAC;IAI5B,IAAI,EAAG,WAAW,CAAC;IAG1B,UAAU,EAAG,UAAU,CAAC;IAExB,OAAO,CAAC,kBAAkB,CAAC,CAA+B;IAEjD,UAAU,CAAC,YAAY,EAAE,cAAc;IAUvC,MAAM;CAoChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,4BAA4B,EAAE,wBAAwB,CAAC;KACxD;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
import { LangKey, LanguageContext } from '../../../context/language-context.js';
|
|
4
|
+
import { Navigation } from '../../../shared/navigation.js';
|
|
5
|
+
export type LanguageOption = {
|
|
6
|
+
key: LangKey;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class PreferenceLanguageController {
|
|
10
|
+
private readonly host;
|
|
11
|
+
private readonly languageContext;
|
|
12
|
+
private readonly core;
|
|
13
|
+
private readonly navigation;
|
|
14
|
+
constructor(host: ReactiveControllerHost, languageContext: LanguageContext, core: CoreContext, navigation: Navigation);
|
|
15
|
+
private trackLanguageChanged;
|
|
16
|
+
selectLanguage(languageKey: LangKey): void;
|
|
17
|
+
get currentLanguage(): LangKey;
|
|
18
|
+
get languageOptions(): LanguageOption[];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=preference-language-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference-language-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/preferences/preference-language-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EACL,KAAK,OAAO,EACZ,eAAe,EAEhB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,OAAO,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAHV,IAAI,EAAE,sBAAsB,EAC5B,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU;IAKzC,OAAO,CAAC,oBAAoB;IAI5B,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI;IAS1C,IAAI,eAAe,IAAI,OAAO,CAE7B;IAED,IAAI,eAAe,IAAI,cAAc,EAAE,CAKtC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
import { LanguageContext } from '../../../context/language-context.js';
|
|
4
|
+
import { Navigation } from '../../../shared/navigation.js';
|
|
5
|
+
export declare class PreferenceLanguageScreen extends LitElement {
|
|
6
|
+
languageContext: LanguageContext;
|
|
7
|
+
core: CoreContext;
|
|
8
|
+
navigation: Navigation;
|
|
9
|
+
private languageController?;
|
|
10
|
+
willUpdate(): void;
|
|
11
|
+
render(): import('lit').TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
"preference-language-screen": PreferenceLanguageScreen;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=preference-language-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preference-language-screen.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/preferences/preference-language-screen.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,EACL,KAAK,WAAW,EAEjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,qBAEa,wBAAyB,SAAQ,UAAU;IAG/C,eAAe,EAAG,eAAe,CAAC;IAIlC,IAAI,EAAG,WAAW,CAAC;IAG1B,UAAU,EAAG,UAAU,CAAC;IAExB,OAAO,CAAC,kBAAkB,CAAC,CAA+B;IAEjD,UAAU;IAWV,MAAM;CAoChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,4BAA4B,EAAE,wBAAwB,CAAC;KACxD;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
export declare class PreferencesController {
|
|
4
|
+
private readonly host;
|
|
5
|
+
private readonly core;
|
|
6
|
+
constructor(host: ReactiveControllerHost, core: CoreContext);
|
|
7
|
+
get currency(): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=preferences-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferences-controller.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/preferences/preferences-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,IAAI,EAAE,sBAAsB,EAC5B,IAAI,EAAE,WAAW;IAKpC,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
import { LanguageContext } from '../../../context/language-context.js';
|
|
4
|
+
import { Navigation } from '../../../shared/navigation.js';
|
|
5
|
+
import { Destinations } from '../../../shared/routes.js';
|
|
6
|
+
export declare class PreferencesScreen extends LitElement {
|
|
7
|
+
navigation: Navigation;
|
|
8
|
+
destinations: Destinations;
|
|
9
|
+
core: CoreContext;
|
|
10
|
+
languages: LanguageContext;
|
|
11
|
+
private preferencesController;
|
|
12
|
+
willUpdate(changedProps: PropertyValues): void;
|
|
13
|
+
private handleLanguageClick;
|
|
14
|
+
private handleCurrencyClick;
|
|
15
|
+
private renderMenuItem;
|
|
16
|
+
render(): import('lit').TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
"preferences-screen": PreferencesScreen;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=preferences-screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferences-screen.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/preferences/preferences-screen.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,EAAE,WAAW,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAEL,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIzD,qBAEa,iBAAkB,SAAQ,UAAU;IAE/C,UAAU,EAAG,UAAU,CAAC;IAGxB,YAAY,EAAG,YAAY,CAAC;IAIrB,IAAI,EAAG,WAAW,CAAC;IAInB,SAAS,EAAG,eAAe,CAAC;IAEnC,OAAO,CAAC,qBAAqB,CAAyB;IAE7C,UAAU,CAAC,YAAY,EAAE,cAAc;IAMhD,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAmCb,MAAM;CAoChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,iBAAiB,CAAC;KACzC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { CoreContext } from '
|
|
3
|
-
import { LanguageContext } from '
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
import { LanguageContext } from '../../../context/language-context.js';
|
|
4
4
|
export declare class SecurityScreen extends LitElement {
|
|
5
5
|
coreContext: CoreContext;
|
|
6
6
|
languages: LanguageContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-screen.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/security/security-screen.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AACtC,OAAO,kDAAkD,CAAC;AAG1D,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAEL,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAG9C,qBAEa,cAAe,SAAQ,UAAU;IAGrC,WAAW,EAAG,WAAW,CAAC;IAI1B,SAAS,EAAG,eAAe,CAAC;IAGnC,OAAO,CAAC,gBAAgB,CAAS;IAElB,iBAAiB;YAKlB,kBAAkB;IAYvB,MAAM;CA4BhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,cAAc,CAAC;KACnC;CACF"}
|
|
@@ -8,6 +8,7 @@ export declare class SettingsScreen extends LitElement {
|
|
|
8
8
|
destinations: Destinations;
|
|
9
9
|
coreContext: CoreContext;
|
|
10
10
|
languages: LanguageContext;
|
|
11
|
+
private handlePreferencesClick;
|
|
11
12
|
private handleSecurityClick;
|
|
12
13
|
private handleHelpSupportClick;
|
|
13
14
|
private renderMenuItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-screen.d.ts","sourceRoot":"","sources":["../../../src/domain/settings/settings-screen.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAe,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAEL,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,qBAEa,cAAe,SAAQ,UAAU;IAE5C,UAAU,EAAG,UAAU,CAAC;IAGxB,YAAY,EAAG,YAAY,CAAC;IAIrB,WAAW,EAAG,WAAW,CAAC;IAI1B,SAAS,EAAG,eAAe,CAAC;IAEnC,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,cAAc;IA2Cb,MAAM;
|
|
1
|
+
{"version":3,"file":"settings-screen.d.ts","sourceRoot":"","sources":["../../../src/domain/settings/settings-screen.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAe,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAEL,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,qBAEa,cAAe,SAAQ,UAAU;IAE5C,UAAU,EAAG,UAAU,CAAC;IAGxB,YAAY,EAAG,YAAY,CAAC;IAIrB,WAAW,EAAG,WAAW,CAAC;IAI1B,SAAS,EAAG,eAAe,CAAC;IAEnC,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,cAAc;IA2Cb,MAAM;CA6BhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,cAAc,CAAC;KACnC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { CoreContext } from '
|
|
3
|
-
import { LanguageContext } from '
|
|
4
|
-
import { Navigation } from '
|
|
5
|
-
import { Destinations } from '
|
|
2
|
+
import { CoreContext } from '../../../context/core-context.js';
|
|
3
|
+
import { LanguageContext } from '../../../context/language-context.js';
|
|
4
|
+
import { Navigation } from '../../../shared/navigation.js';
|
|
5
|
+
import { Destinations } from '../../../shared/routes.js';
|
|
6
6
|
export declare class SupportScreen extends LitElement {
|
|
7
7
|
navigation: Navigation;
|
|
8
8
|
destinations: Destinations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-screen.d.ts","sourceRoot":"","sources":["../../../../src/domain/settings/support/support-screen.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAe,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAEL,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAK9C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGzD,qBAEa,aAAc,SAAQ,UAAU;IAE3C,UAAU,EAAG,UAAU,CAAC;IAGxB,YAAY,EAAG,YAAY,CAAC;IAIrB,WAAW,EAAG,WAAW,CAAC;IAI1B,SAAS,EAAG,eAAe,CAAC;IAEnC,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,iBAAiB;IA6BhB,MAAM;CAsBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAC;KACjC;CACF"}
|
|
@@ -4,12 +4,18 @@ import { AnimationKey } from '../../components/index.js';
|
|
|
4
4
|
import { CoreContext } from '../../context/core-context.js';
|
|
5
5
|
import { LanguageContext } from '../../context/language-context.js';
|
|
6
6
|
import { Navigation } from '../../shared/navigation.js';
|
|
7
|
+
export type BroadcastState = "processing" | "validated";
|
|
8
|
+
export type BroadcastInfo = {
|
|
9
|
+
state: BroadcastState;
|
|
10
|
+
hash: string;
|
|
11
|
+
};
|
|
7
12
|
export type ScreenState = {
|
|
8
13
|
screen: "signing";
|
|
9
14
|
deviceAnimation: Omit<AnimationKey, "pairing" | "pairingSuccess" | "frontView">;
|
|
10
15
|
} | {
|
|
11
16
|
screen: "success";
|
|
12
17
|
status: StatusState;
|
|
18
|
+
broadcast?: BroadcastInfo;
|
|
13
19
|
} | {
|
|
14
20
|
screen: "error";
|
|
15
21
|
status: StatusState;
|
|
@@ -32,20 +38,25 @@ export declare class SignTransactionController implements ReactiveController {
|
|
|
32
38
|
private readonly lang;
|
|
33
39
|
host: ReactiveControllerHost;
|
|
34
40
|
private transactionSubscription?;
|
|
41
|
+
private pendingTxSubscription?;
|
|
35
42
|
private currentTransaction?;
|
|
43
|
+
private explorerTemplatePrefetch?;
|
|
36
44
|
result?: SignedResults;
|
|
37
45
|
state: ScreenState;
|
|
38
46
|
constructor(host: ReactiveControllerHost, core: CoreContext, navigation: Navigation, lang: LanguageContext);
|
|
39
47
|
hostConnected(): void;
|
|
40
48
|
hostDisconnected(): void;
|
|
49
|
+
private clearPendingTxSubscription;
|
|
41
50
|
private mapUserInteractionToDeviceAnimation;
|
|
42
51
|
startSigning(transactionParams: SignTransactionParams | SignRawTransactionParams | SignTypedMessageParams | SignPersonalMessageParams): void;
|
|
43
52
|
private getDeviceName;
|
|
44
53
|
private isTransactionParameter;
|
|
45
54
|
private mapSuccessToState;
|
|
55
|
+
private subscribeToBroadcastLifecycle;
|
|
46
56
|
private mapErrors;
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
private prefetchTransactionExplorerUrlTemplate;
|
|
58
|
+
private handleSignSuccess;
|
|
59
|
+
viewTransactionDetails(url: string, transactionHash: string): void;
|
|
49
60
|
close: () => void;
|
|
50
61
|
}
|
|
51
62
|
//# sourceMappingURL=sign-transaction-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-transaction-controller.d.ts","sourceRoot":"","sources":["../../../src/domain/sign-transaction/sign-transaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"sign-transaction-controller.d.ts","sourceRoot":"","sources":["../../../src/domain/sign-transaction/sign-transaction-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,aAAa,EAElB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAG5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,WAAW,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,WAAW,GACnB;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,EAAE,IAAI,CACnB,YAAY,EACZ,SAAS,GAAG,gBAAgB,GAAG,WAAW,CAC3C,CAAC;CACH,GACD;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,CAAA;CAAE,GACrE;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;Q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
|
import { SignedResults, SignPersonalMessageParams, SignRawTransactionParams, SignTransactionParams, SignTypedMessageParams } from '@ledgerhq/ledger-wallet-provider-core';
|
|
2
|
-
import { LitElement } from 'lit';
|
|
2
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
3
3
|
import { CoreContext } from '../../context/core-context.js';
|
|
4
4
|
import { LanguageContext } from '../../context/language-context.js';
|
|
5
5
|
import { Navigation } from '../../shared/navigation.js';
|
|
@@ -14,7 +14,12 @@ export declare class SignTransactionScreen extends LitElement {
|
|
|
14
14
|
params?: unknown;
|
|
15
15
|
broadcast: boolean;
|
|
16
16
|
controller: SignTransactionController;
|
|
17
|
+
private dispatchedGradient;
|
|
17
18
|
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
updated(_changedProperties: PropertyValues<this>): void;
|
|
21
|
+
private syncModalGradient;
|
|
22
|
+
private clearModalGradient;
|
|
18
23
|
private isParams;
|
|
19
24
|
private renderSigningState;
|
|
20
25
|
private renderStatusState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-transaction.d.ts","sourceRoot":"","sources":["../../../src/domain/sign-transaction/sign-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,uCAAuC,CAAC;AAE/C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC5B,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sign-transaction.d.ts","sourceRoot":"","sources":["../../../src/domain/sign-transaction/sign-transaction.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,uCAAuC,CAAC;AAE/C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,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A;SAAE,GAC1C;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAE,CACtC,CAAC;KACH;CACF"}
|
|
@@ -2,6 +2,7 @@ import { DetailedAccount } from '@ledgerhq/ledger-wallet-provider-core';
|
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
export declare class TokenListScreen extends LitElement {
|
|
4
4
|
account?: DetailedAccount;
|
|
5
|
+
locale: string;
|
|
5
6
|
private renderNativeCoin;
|
|
6
7
|
private renderDivider;
|
|
7
8
|
private renderTokenItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-list.d.ts","sourceRoot":"","sources":["../../../src/domain/token-list/token-list.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"token-list.d.ts","sourceRoot":"","sources":["../../../src/domain/token-list/token-list.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AASvC,qBAEa,eAAgB,SAAQ,UAAU;IAE7C,OAAO,CAAC,EAAE,eAAe,CAAC;IAG1B,MAAM,EAAG,MAAM,CAAC;IAEhB,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,eAAe,CAcrB;IAEF,OAAO,CAAC,eAAe;IAYd,MAAM;CAgBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
-
import { TransactionType } from '../../components/molecule/transaction-item/ledger-transaction-item.js';
|
|
2
|
+
import { TransactionKind, TransactionStatus, TransactionType } from '../../components/molecule/transaction-item/ledger-transaction-item.js';
|
|
3
3
|
import { LanguageContext } from '../../context/language-context.js';
|
|
4
4
|
export type TransactionListItem = {
|
|
5
5
|
hash: string;
|
|
6
6
|
type: TransactionType;
|
|
7
|
+
status: TransactionStatus;
|
|
8
|
+
kind: TransactionKind;
|
|
7
9
|
date: string;
|
|
8
10
|
time: string;
|
|
9
11
|
amount: string;
|
|
@@ -11,6 +13,9 @@ export type TransactionListItem = {
|
|
|
11
13
|
title: string;
|
|
12
14
|
fiatAmount: string;
|
|
13
15
|
fiatCurrency: string;
|
|
16
|
+
explorerUrl?: string;
|
|
17
|
+
formattedFee?: string;
|
|
18
|
+
feeTicker?: string;
|
|
14
19
|
};
|
|
15
20
|
export declare class TransactionListScreen extends LitElement {
|
|
16
21
|
languages: LanguageContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-list.d.ts","sourceRoot":"","sources":["../../../src/domain/transaction-list/transaction-list.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"transaction-list.d.ts","sourceRoot":"","sources":["../../../src/domain/transaction-list/transaction-list.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAGnC,OAAO,EAAQ,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,eAAe,EAChB,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAEL,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAG3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,iBAAiB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