@hsuite/native-connect-ui 2.1.2 → 2.1.6

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/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { OnInit, OnDestroy, EventEmitter, InjectionToken, Signal, AfterViewInit,
3
3
  import { ModalController, IonPopover } from '@ionic/angular/standalone';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
  import * as _hsuite_native_connect_types from '@hsuite/native-connect-types';
6
- import { MarbleAvatar, BatchNetImpact, ScheduleProgress, ScheduleCreateEnvelope, ParsedTransactionField, FeeItem, AddressBookContact, HederaTransactionData, XrplTransactionData, LedgerAccount, TransactionApprovalContext, SignMessageApprovalPayload, TransactionData, MemberIdentity, ContactAddress } from '@hsuite/native-connect-types';
6
+ import { MarbleAvatar, BatchNetImpact, ScheduleProgress, ScheduleCreateEnvelope, ParsedTransactionField, FeeItem, AddressBookContact, HederaTransactionData, XrplTransactionData, LedgerAccount, TransactionApprovalContext, TransactionData, MemberIdentity, ContactAddress } from '@hsuite/native-connect-types';
7
7
 
8
8
  /**
9
9
  * HSuite Native Connect
@@ -1555,7 +1555,7 @@ declare class HsTransferItemComponent {
1555
1555
  /**
1556
1556
  * Computed arrow color based on transfer direction
1557
1557
  */
1558
- arrowColor: _angular_core.Signal<"danger" | "success">;
1558
+ arrowColor: _angular_core.Signal<"success" | "danger">;
1559
1559
  /**
1560
1560
  * Computed display label for the transfer type
1561
1561
  */
@@ -3252,7 +3252,7 @@ declare class HsRiskCardComponent {
3252
3252
  /** Empty-state label when level === 'high'. */
3253
3253
  highLabel: string;
3254
3254
  /** Ionic color string for the active tier (success / warning / danger). */
3255
- protected readonly color: _angular_core.Signal<"danger" | "warning" | "success" | "medium">;
3255
+ protected readonly color: _angular_core.Signal<"success" | "danger" | "medium" | "warning">;
3256
3256
  /** Icon name for the title row. Picks the same icon family as the inline factors. */
3257
3257
  protected readonly iconName: _angular_core.Signal<string>;
3258
3258
  /** Uppercase tier label for the badge (e.g., "HIGH"). */
@@ -3510,7 +3510,11 @@ interface HeroTokenLine {
3510
3510
  interface HeroTransfer {
3511
3511
  /** Headline display amount (e.g., "1.5 ℏ", "1.0 USDC", "Bored Ape #4521"). */
3512
3512
  amount: string;
3513
- /** Source account ID (the signer). */
3513
+ /**
3514
+ * Transaction source account. Usually the signer, but on sign-only
3515
+ * requests the payload's own source (tx.Account / debit entry) can
3516
+ * differ from the wallet's signing account — this carries the truth.
3517
+ */
3514
3518
  from: string;
3515
3519
  /** Resolved primary recipient account ID. */
3516
3520
  to: string;
@@ -3564,7 +3568,11 @@ declare class HsTransferHeroCardComponent {
3564
3568
  * derive a primary amount).
3565
3569
  */
3566
3570
  transfer: HeroTransfer | null;
3567
- /** Signer / source account ID for the "From" row. */
3571
+ /**
3572
+ * Address rendered in the "From" row — the transaction's resolved
3573
+ * source account (host falls back to the signer when the parser
3574
+ * emitted no source).
3575
+ */
3568
3576
  signerAddress: string;
3569
3577
  /**
3570
3578
  * Resolved primary recipient. When null / empty the To row + the
@@ -5070,7 +5078,7 @@ declare class HederaTransactionDetailsComponent {
5070
5078
  /**
5071
5079
  * Transaction type
5072
5080
  */
5073
- txType: _angular_core.Signal<"CryptoTransfer" | "TokenAssociate" | "TokenDissociate" | "TokenMint" | "TokenBurn" | "ScheduleCreate" | "AccountCreate" | "ContractCall" | "AccountUpdate" | "TokenCreate" | "TokenUpdate" | "TokenFreeze" | "TokenUnfreeze" | "TokenWipe" | "TokenGrantKyc" | "TokenRevokeKyc" | "FileCreate" | "FileAppend" | "FileUpdate" | "SignMessage" | "BatchTransaction">;
5081
+ txType: _angular_core.Signal<"TokenBurn" | "TokenDissociate" | "AccountUpdate" | "SignMessage" | "BatchTransaction" | "ScheduleCreate" | "CryptoTransfer" | "TokenAssociate" | "TokenMint" | "AccountCreate" | "ContractCall" | "TokenCreate" | "TokenUpdate" | "TokenFreeze" | "TokenUnfreeze" | "TokenWipe" | "TokenGrantKyc" | "TokenRevokeKyc" | "FileCreate" | "FileAppend" | "FileUpdate">;
5074
5082
  /**
5075
5083
  * Is CryptoTransfer
5076
5084
  */
@@ -8704,7 +8712,7 @@ declare class HsTransactionApprovalContentComponent implements AfterViewInit, On
8704
8712
  * + txShape). Returns `null` when the request isn't a SignMessage or
8705
8713
  * the caller didn't populate the payload.
8706
8714
  */
8707
- protected readonly signMessagePayload: _angular_core.Signal<SignMessageApprovalPayload>;
8715
+ protected readonly signMessagePayload: _angular_core.Signal<_hsuite_native_connect_types.SignMessageApprovalPayload>;
8708
8716
  /** Raw bytes for the SignMessage variant of {@link HsMessageContentComponent}. */
8709
8717
  protected readonly signMessageBytes: _angular_core.Signal<Uint8Array<ArrayBufferLike>>;
8710
8718
  /** Byte length surfaced in the message-content card chip. */
@@ -8922,6 +8930,12 @@ declare class HsTransactionApprovalContentComponent implements AfterViewInit, On
8922
8930
  * transfers (caller swaps in a count-based summary).
8923
8931
  */
8924
8932
  protected readonly heroTransfer: _angular_core.Signal<HeroTransfer>;
8933
+ /**
8934
+ * Address for the hero card's FROM row — the transaction's resolved
8935
+ * source account, falling back to the wallet's signing account when
8936
+ * the parser emitted no source (or no hero renders at all).
8937
+ */
8938
+ protected heroFromAddress(): string;
8925
8939
  /**
8926
8940
  * Read the dApp name from the current context. Implemented as a
8927
8941
  * method (not a computed signal) because `this.context` is a plain
@@ -8972,6 +8986,18 @@ declare class HsTransactionApprovalContentComponent implements AfterViewInit, On
8972
8986
  * "Additional Details" section at all — no duplication.
8973
8987
  */
8974
8988
  protected secondaryFields(): ParsedTransactionField[];
8989
+ /**
8990
+ * Field labels the TRANSFER hero card already surfaces (from → to
8991
+ * flow + headline amount, plus per-asset token lines), so
8992
+ * {@link secondaryFields} can drop them from Additional Details —
8993
+ * they were exact duplicates of the hero, not additional info.
8994
+ *
8995
+ * Empty when no simple transfer hero renders (non-transfer kinds,
8996
+ * atomic / multi-party transfers, batches) — every field then stays
8997
+ * in the details list, which remains the only accurate rendering
8998
+ * for those shapes.
8999
+ */
9000
+ private transferHeroCoveredLabels;
8975
9001
  /**
8976
9002
  * Check if this is a transfer/payment type transaction (always shows hero).
8977
9003
  */
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@hsuite/native-connect-ui",
3
- "version": "2.1.2",
3
+ "version": "2.1.6",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "type": "module",
6
6
  "main": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
7
+ "module": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
8
+ "fesm2022": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
7
9
  "types": "./dist/index.d.ts",
10
+ "typings": "./dist/index.d.ts",
8
11
  "exports": {
9
12
  "./package.json": {
10
13
  "default": "./package.json"
@@ -19,13 +22,32 @@
19
22
  }
20
23
  },
21
24
  "sideEffects": false,
25
+ "scripts": {
26
+ "build": "./../angular-sdk/node_modules/.bin/ng-packagr -p ng-package.json",
27
+ "test": "vitest run",
28
+ "test:watch": "vitest --watch",
29
+ "test:coverage": "vitest run --no-coverage",
30
+ "test:coverage:full": "vitest run --coverage",
31
+ "docs": "compodoc -p tsconfig.json -c ../../compodoc.tier3.json -d dist/docs --name 'HSuite UI'",
32
+ "storybook": "ng run ui:storybook",
33
+ "build-storybook": "ng run ui:build-storybook"
34
+ },
22
35
  "dependencies": {
36
+ "@hsuite/native-connect-types": "^2.1.6",
23
37
  "@ngneat/transloco": "^6.0.0",
24
38
  "animejs": "^3.2.2",
25
39
  "qr-scanner": "^1.4.2",
26
40
  "qrcode": "^1.5.4",
27
- "tslib": "^2.6.2",
28
- "@hsuite/native-connect-types": "2.1.2"
41
+ "tslib": "^2.6.2"
42
+ },
43
+ "peerDependencies": {
44
+ "@angular/common": "^20.3.16",
45
+ "@angular/core": "^20.3.16",
46
+ "@angular/forms": "^20.3.16",
47
+ "@angular/router": "^20.3.16",
48
+ "@ionic/angular": "^8.0.0",
49
+ "ionicons": "^7.0.0",
50
+ "rxjs": "~7.8.0"
29
51
  },
30
52
  "devDependencies": {
31
53
  "@analogjs/vite-plugin-angular": "^1.22.0",
@@ -66,29 +88,7 @@
66
88
  "directory": "packages/ui"
67
89
  },
68
90
  "homepage": "https://github.com/HSuiteNetwork/hsuite-native-connect/tree/master/packages/ui",
69
- "peerDependencies": {
70
- "@angular/common": "^20.3.16",
71
- "@angular/core": "^20.3.16",
72
- "@angular/forms": "^20.3.16",
73
- "@angular/router": "^20.3.16",
74
- "@ionic/angular": "^8.0.0",
75
- "ionicons": "^7.0.0",
76
- "rxjs": "~7.8.0"
77
- },
78
- "module": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
79
- "fesm2022": "./dist/fesm2022/hsuite-native-connect-ui.mjs",
80
- "typings": "./dist/index.d.ts",
81
91
  "files": [
82
92
  "dist"
83
- ],
84
- "scripts": {
85
- "build": "./../angular-sdk/node_modules/.bin/ng-packagr -p ng-package.json",
86
- "test": "vitest run",
87
- "test:watch": "vitest --watch",
88
- "test:coverage": "vitest run --no-coverage",
89
- "test:coverage:full": "vitest run --coverage",
90
- "docs": "compodoc -p tsconfig.json -c ../../compodoc.tier3.json -d dist/docs --name 'HSuite UI'",
91
- "storybook": "ng run ui:storybook",
92
- "build-storybook": "ng run ui:build-storybook"
93
- }
94
- }
93
+ ]
94
+ }