@block-auth.io/angular 0.3.0 → 0.3.1

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,40 +1,37 @@
1
-
2
- > @block-auth.io/angular@0.3.0 build /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
3
- > pnpm build:css && ng-packagr -p ng-package.json -c tsconfig.lib.json
4
-
5
-
6
- > @block-auth.io/angular@0.3.0 build:css /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
7
- > tailwindcss -i ../ui-styles/src/input.css -c ./tailwind.config.cjs -o ./src/styles.generated.css --minify && node scripts/css-to-ts.mjs
8
-
9
- Browserslist: caniuse-lite is outdated. Please run:
10
- npx update-browserslist-db@latest
11
- Why you should do it regularly: https://github.com/browserslist/update-db#readme
12
-
13
- Rebuilding...
14
-
15
- Done in 2518ms.
16
- Building Angular Package
17
-
18
- ------------------------------------------------------------------------------
19
- Building entry point '@block-auth.io/angular'
20
- ------------------------------------------------------------------------------
21
- - Compiling with Angular sources in partial compilation mode.
22
-
23
- ✔ Compiling with Angular sources in partial compilation mode.
24
- ✔ Generating FESM and DTS bundles
25
- - Copying assets
26
- ✔ Copying assets
27
- - Writing package manifest
28
- ℹ Removing scripts section in package.json as it's considered a potential security vulnerability.
29
- ℹ Removing devDependencies section in package.json.
30
- ✔ Writing package manifest
31
- ✔ Built @block-auth.io/angular
32
-
33
- ------------------------------------------------------------------------------
34
- Built Angular Package
35
- - from: /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
36
- - to: /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular/dist
37
- ------------------------------------------------------------------------------
38
-
39
- Build at: 2026-10-15T00:14:24.516Z - Time: 9555ms
40
-
1
+
2
+ > @block-auth.io/angular@0.3.1 build /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
3
+ > pnpm build:css && ng-packagr -p ng-package.json -c tsconfig.lib.json
4
+
5
+
6
+ > @block-auth.io/angular@0.3.1 build:css /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
7
+ > tailwindcss -i ../ui-styles/src/input.css -c ./tailwind.config.cjs -o ./src/styles.generated.css --minify && node scripts/css-to-ts.mjs
8
+
9
+ Browserslist: caniuse-lite is outdated. Please run:
10
+ npx update-browserslist-db@latest
11
+ Why you should do it regularly: https://github.com/browserslist/update-db#readme
12
+
13
+ Rebuilding...
14
+
15
+ Done in 2048ms.
16
+ Building Angular Package
17
+ 
18
+ ------------------------------------------------------------------------------
19
+ Building entry point '@block-auth.io/angular'
20
+ ------------------------------------------------------------------------------
21
+ ⠋ Compiling with Angular sources in partial compilation mode.⠙ Compiling with Angular sources in partial compilation mode.
22
+ ✔ Compiling with Angular sources in partial compilation mode.
23
+ ⠋ Writing FESM and DTS bundles✔ Writing FESM and DTS bundles
24
+ ⠋ Copying assets✔ Copying assets
25
+ ⠋ Writing package manifestℹ Removing scripts section in package.json as it's considered a potential security vulnerability.
26
+ ℹ Removing devDependencies section in package.json.
27
+ ✔ Writing package manifest
28
+ ✔ Built @block-auth.io/angular
29
+ 
30
+ ------------------------------------------------------------------------------
31
+ Built Angular Package
32
+ - from: /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
33
+ - to: /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular/dist
34
+ ------------------------------------------------------------------------------
35
+ 
36
+ Build at: 2026-10-15T11:33:05.464Z - Time: 7373ms
37
+ 
@@ -1,4 +1,4 @@
1
1
 
2
- > @block-auth.io/angular@0.3.0 lint /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
2
+ > @block-auth.io/angular@0.3.0 lint /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
3
3
  > eslint src
4
4
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @block-auth.io/angular@0.3.0 pretest /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
2
+ > @block-auth.io/angular@0.3.0 pretest /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
3
3
  > pnpm build:css
4
4
 
5
5
 
6
- > @block-auth.io/angular@0.3.0 build:css /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
6
+ > @block-auth.io/angular@0.3.0 build:css /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
7
7
  > tailwindcss -i ../ui-styles/src/input.css -c ./tailwind.config.cjs -o ./src/styles.generated.css --minify && node scripts/css-to-ts.mjs
8
8
 
9
9
  Browserslist: caniuse-lite is outdated. Please run:
@@ -12,91 +12,83 @@ Browserslist: caniuse-lite is outdated. Please run:
12
12
 
13
13
  Rebuilding...
14
14
 
15
- Done in 5726ms.
15
+ Done in 4372ms.
16
16
 
17
- > @block-auth.io/angular@0.3.0 test /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
17
+ > @block-auth.io/angular@0.3.0 test /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
18
18
  > vitest run
19
19
 
20
20
 
21
- RUN v3.2.7 /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
21
+ RUN v3.2.7 /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
22
22
 
23
- ✓ src/lib/components/dds/dropdown-profile-item.component.test.ts (5 tests) 184ms
24
- ✓ src/lib/components/modals/modal-overlay.component.test.ts (4 tests) 287ms
25
- ✓ src/lib/components/txns/internals/txn-error.component.test.ts (5 tests) 232ms
26
- ✓ src/lib/components/modals/modal-restoration-expired.component.test.ts (4 tests) 329ms
27
- ✓ src/lib/components/modals/modal-restore.component.test.ts (4 tests) 530ms
28
- ✓ src/lib/components/dds/dropdown-profile.component.test.ts (6 tests) 497ms
29
- ✓ src/lib/components/modals/modal-signin.component.test.ts (3 tests) 268ms
30
- ✓ src/lib/runtime/block-auth-runtime.directive.test.ts (4 tests) 222ms
31
- ✓ src/lib/components/btns/btn-block-auth.component.test.ts (4 tests) 556ms
32
- ✓ BtnBlockAuth > renderiza con el id de provider y es clickable 364ms
33
- ✓ src/lib/components/flow-block-auth.component.test.ts (3 tests) 688ms
34
- ✓ FlowBlockAuth > renderiza el contenedor del orquestador sin romperse 405ms
35
- ✓ src/lib/block-auth.service.test.ts (2 tests) 449ms
36
- ✓ BlockAuthService > expone signals reactivos del estado del core y las acciones 400ms
37
- ✓ src/lib/components/contents/content-signup.component.test.ts (3 tests) 752ms
38
- ✓ ContentSignup > renderiza el contenido de signup 503ms
39
- ✓ src/lib/components/dds/dropdown-profile-btn.component.test.ts (2 tests) 336ms
40
- ✓ src/lib/primitives/lifetime-slider-base.component.test.ts (5 tests) 1370ms
41
- ✓ LifetimeSliderBaseComponent > renderiza el slider (SliderBase) y el input del TimePicker con el valor HH:MM:SS 414ms
42
- ✓ LifetimeSliderBaseComponent > emite toggleTimerDropdown al pulsar el botón del picker 351ms
43
- ✓ src/lib/primitives/dropdown-base.component.test.ts (4 tests) 837ms
44
- ✓ DropdownBaseComponent > al pulsar el boton emite isOpenChange con el valor invertido 699ms
45
- ✓ src/lib/components/txns/txns-overview.component.test.ts (20 tests) 2756ms
46
- ✓ TxnsOverview > con datos solicitados > al guardar vacío un dato cedido deja de cederlo sin enviarlo 378ms
47
- ✓ src/lib/components/txns/internals/solicited-data-modal.component.test.ts (30 tests) 2736ms
48
- ✓ SolicitedDataModal > renderiza el modal de datos solicitados con campos requeridos y opcionales 436ms
49
- ✓ SolicitedDataModal > emite paramChange al escribir y validationChange según validez 306ms
50
- ✓ src/lib/components/dds/change-account.component.test.ts (8 tests) 607ms
51
- ✓ src/lib/components/txns/internals/txn-type.component.test.ts (3 tests) 229ms
52
- ✓ src/lib/components/txns/internals/txn.component.test.ts (29 tests) 3829ms
53
- ✓ Txn > el boton de configurar sesion revela el LifetimeSliderBase (slider + TimePicker) 328ms
54
- ✓ Txn > "Quiero configurar el tiempo de mi sesión" abre el selector en un popup 518ms
55
- ✓ Txn > Aceptar cierra el popup y conserva el tiempo elegido junto al enlace 623ms
56
- ✓ Txn > cerrar con la x o fuera del popup conserva el tiempo elegido 307ms
57
- ✓ src/lib/components/txns/internals/phone-input.component.test.ts (7 tests) 3141ms
58
- ✓ PhoneInputComponent > busca y selecciona un país con el teclado y cierra con Escape 1012ms
59
- ✓ PhoneInputComponent > mueve la opción activa con las flechas 1252ms
60
- ✓ PhoneInputComponent > avisa si no hay países y usa el idioma activo 361ms
61
- ✓ src/lib/primitives/btn-base.component.test.ts (3 tests) 277ms
62
- ✓ src/lib/components/sections/login-section.component.test.ts (2 tests) 303ms
63
- ✓ src/lib/provide-block-auth.test.ts (3 tests) 312ms
64
- ✓ src/lib/primitives/arrow-icon.component.test.ts (2 tests) 203ms
65
- ✓ src/lib/components/modals/modal-signup.component.test.ts (3 tests) 411ms
66
- ✓ src/lib/primitives/btn-arrow-dir.component.test.ts (2 tests) 247ms
67
- ✓ src/lib/__tests__/integration.test.ts (1 test) 853ms
68
- ✓ integración Angular + core > conectar wallet propaga la address al estado consumido por Angular 851ms
69
- ✓ src/lib/components/btns/btn-signin.component.test.ts (4 tests) 564ms
70
- ✓ BtnSignin > renderiza con el id correcto 375ms
71
- ✓ src/lib/teleport-body.directive.test.ts (2 tests) 96ms
72
- ✓ src/lib/components/contents/content-signin.component.test.ts (2 tests) 133ms
73
- ✓ src/lib/components/sections/internals/selected-button.component.test.ts (1 test) 140ms
74
- ✓ src/lib/primitives/horizontal-loader.component.test.ts (2 tests) 134ms
75
- ✓ src/lib/primitives/input-base.component.test.ts (2 tests) 152ms
76
- ✓ src/lib/icons/icons.test.ts (17 tests) 431ms
77
- ✓ src/lib/components/txns/internals/permissions-required-modal.component.test.ts (3 tests) 194ms
78
- ✓ src/lib/primitives/icon-base.component.test.ts (2 tests) 146ms
79
- ✓ src/lib/components/btns/btn-base-provider.component.test.ts (1 test) 161ms
80
- ✓ src/lib/components/sections/internals/providers-buttons.component.test.ts (1 test) 200ms
81
- ✓ src/lib/primitives/progressbar.component.test.ts (2 tests) 123ms
82
- ✓ src/lib/inject-store.test.ts (1 test) 124ms
83
- ✓ src/lib/components/sections/footer-section.component.test.ts (1 test) 183ms
84
- ✓ src/lib/components/sections/internals/providers-filters.component.test.ts (1 test) 122ms
85
- ✓ src/lib/primitives/img-loader.component.test.ts (1 test) 134ms
86
- ✓ src/lib/primitives/dropdown-arrow.component.test.ts (1 test) 88ms
87
- ✓ src/lib/primitives/divider-base.component.test.ts (1 test) 123ms
88
- ✓ src/lib/components/btns/btn-metamask.component.test.ts (1 test) 125ms
89
- ✓ src/lib/primitives/oval-spinner.component.test.ts (1 test) 71ms
90
- ✓ src/lib/components/btns/btn-phantom.component.test.ts (1 test) 151ms
91
- ✓ src/lib/components/btns/btn-wallet-connect.component.test.ts (1 test) 88ms
92
- ✓ src/lib/components/sections/providers-section.component.test.ts (1 test) 97ms
93
- ✓ src/lib/components/btns/btn-microsoft.component.test.ts (1 test) 93ms
94
- ✓ src/lib/components/btns/btn-gmail.component.test.ts (1 test) 82ms
95
- ✓ src/lib/components/btns/btn-google-base.component.test.ts (1 test) 75ms
23
+ ✓ src/lib/components/dds/dropdown-profile-item.component.test.ts (5 tests) 245ms
24
+ ✓ src/lib/components/modals/modal-overlay.component.test.ts (4 tests) 370ms
25
+ ✓ src/lib/primitives/dropdown-base.component.test.ts (4 tests) 683ms
26
+ ✓ DropdownBaseComponent > al pulsar el boton emite isOpenChange con el valor invertido 386ms
27
+ ✓ src/lib/components/txns/internals/txn-error.component.test.ts (5 tests) 423ms
28
+ ✓ src/lib/block-auth.service.test.ts (2 tests) 413ms
29
+ ✓ BlockAuthService > expone signals reactivos del estado del core y las acciones 373ms
30
+ ✓ src/lib/components/dds/dropdown-profile-btn.component.test.ts (2 tests) 284ms
31
+ ✓ src/lib/components/txns/internals/txn-type.component.test.ts (3 tests) 201ms
32
+ ✓ src/lib/components/modals/modal-signin.component.test.ts (3 tests) 324ms
33
+ ✓ src/lib/components/modals/modal-restore.component.test.ts (4 tests) 648ms
34
+ ✓ src/lib/components/dds/change-account.component.test.ts (8 tests) 636ms
35
+ ✓ src/lib/components/modals/modal-restoration-expired.component.test.ts (4 tests) 618ms
36
+ ✓ src/lib/components/dds/dropdown-profile.component.test.ts (6 tests) 915ms
37
+ ✓ DropdownProfile > "Disconnect" llama a client.logout() ANTES del prop onLogout (orden critico) 459ms
38
+ ✓ src/lib/components/contents/content-signup.component.test.ts (3 tests) 656ms
39
+ ✓ ContentSignup > renderiza el contenido de signup 429ms
40
+ ✓ src/lib/components/modals/modal-signup.component.test.ts (3 tests) 812ms
41
+ ✓ ModalSignup > no renderiza cuando el modal está cerrado 558ms
42
+ ✓ src/lib/components/flow-block-auth.component.test.ts (3 tests) 872ms
43
+ ✓ FlowBlockAuth > renderiza el contenedor del orquestador sin romperse 597ms
44
+ ✓ src/lib/components/btns/btn-signin.component.test.ts (4 tests) 309ms
45
+ ✓ src/lib/runtime/block-auth-runtime.directive.test.ts (4 tests) 204ms
46
+ ✓ src/lib/components/sections/login-section.component.test.ts (2 tests) 294ms
47
+ ✓ src/lib/primitives/btn-base.component.test.ts (3 tests) 464ms
48
+ ✓ src/lib/components/btns/btn-block-auth.component.test.ts (4 tests) 591ms
49
+ ✓ BtnBlockAuth > renderiza con el id de provider y es clickable 393ms
50
+ ✓ src/lib/primitives/arrow-icon.component.test.ts (2 tests) 112ms
51
+ ✓ src/lib/primitives/btn-arrow-dir.component.test.ts (2 tests) 203ms
52
+ ✓ src/lib/primitives/lifetime-slider-base.component.test.ts (5 tests) 1074ms
53
+ ✓ LifetimeSliderBaseComponent > renderiza el slider (SliderBase) y el input del TimePicker con el valor HH:MM:SS 576ms
54
+ ✓ src/lib/components/txns/txns-overview.component.test.ts (21 tests) 2211ms
55
+ ✓ src/lib/provide-block-auth.test.ts (3 tests) 337ms
56
+ ✓ src/lib/teleport-body.directive.test.ts (2 tests) 78ms
57
+ ✓ src/lib/primitives/input-base.component.test.ts (2 tests) 173ms
58
+ ✓ src/lib/components/contents/content-signin.component.test.ts (2 tests) 111ms
59
+ ✓ src/lib/components/sections/internals/selected-button.component.test.ts (1 test) 115ms
60
+ ✓ src/lib/primitives/horizontal-loader.component.test.ts (2 tests) 192ms
61
+ ✓ src/lib/icons/icons.test.ts (17 tests) 487ms
62
+ ✓ src/lib/components/txns/internals/solicited-data-modal.component.test.ts (30 tests) 2119ms
63
+ ✓ src/lib/components/txns/internals/txn.component.test.ts (29 tests) 3225ms
64
+ ✓ Txn > el boton de configurar sesion revela el LifetimeSliderBase (slider + TimePicker) 312ms
65
+ ✓ src/lib/primitives/progressbar.component.test.ts (2 tests) 107ms
66
+ ✓ src/lib/primitives/icon-base.component.test.ts (2 tests) 192ms
67
+ ✓ src/lib/__tests__/integration.test.ts (1 test) 1316ms
68
+ ✓ integración Angular + core > conectar wallet propaga la address al estado consumido por Angular 1313ms
69
+ ✓ src/lib/components/btns/btn-base-provider.component.test.ts (1 test) 210ms
70
+ ✓ src/lib/components/txns/internals/phone-input.component.test.ts (7 tests) 2262ms
71
+ ✓ PhoneInputComponent > busca y selecciona un país con el teclado y cierra con Escape 965ms
72
+ ✓ PhoneInputComponent > mueve la opción activa con las flechas 579ms
73
+ ✓ src/lib/inject-store.test.ts (1 test) 74ms
74
+ ✓ src/lib/components/sections/footer-section.component.test.ts (1 test) 82ms
75
+ ✓ src/lib/primitives/dropdown-arrow.component.test.ts (1 test) 65ms
76
+ ✓ src/lib/primitives/oval-spinner.component.test.ts (1 test) 65ms
77
+ ✓ src/lib/primitives/img-loader.component.test.ts (1 test) 71ms
78
+ ✓ src/lib/components/txns/internals/permissions-required-modal.component.test.ts (3 tests) 173ms
79
+ ✓ src/lib/primitives/divider-base.component.test.ts (1 test) 83ms
80
+ ✓ src/lib/components/sections/providers-section.component.test.ts (1 test) 155ms
81
+ ✓ src/lib/components/sections/internals/providers-filters.component.test.ts (1 test) 137ms
82
+ ✓ src/lib/components/sections/internals/providers-buttons.component.test.ts (1 test) 228ms
83
+ ✓ src/lib/components/btns/btn-metamask.component.test.ts (1 test) 188ms
84
+ ✓ src/lib/components/btns/btn-microsoft.component.test.ts (1 test) 163ms
85
+ ✓ src/lib/components/btns/btn-phantom.component.test.ts (1 test) 228ms
86
+ ✓ src/lib/components/btns/btn-google-base.component.test.ts (1 test) 127ms
87
+ ✓ src/lib/components/btns/btn-gmail.component.test.ts (1 test) 124ms
88
+ ✓ src/lib/components/btns/btn-wallet-connect.component.test.ts (1 test) 98ms
96
89
 
97
90
  Test Files 54 passed (54)
98
- Tests 224 passed (224)
99
- Start at 02:15:05
100
- Duration 16.65s (transform 11.13s, setup 48.88s, collect 110.62s, tests 27.47s, environment 23.55s, prepare 32.88s)
91
+ Tests 225 passed (225)
92
+ Start at 11:09:26
93
+ Duration 17.43s (transform 19.00s, setup 64.17s, collect 142.13s, tests 26.55s, environment 42.75s, prepare 58.12s)
101
94
 
102
-  ELIFECYCLE  Test failed. See above for more details.
@@ -1,9 +1,9 @@
1
1
 
2
- > @block-auth.io/angular@0.3.0 pretypecheck /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
2
+ > @block-auth.io/angular@0.3.0 pretypecheck /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
3
3
  > pnpm build:css
4
4
 
5
5
 
6
- > @block-auth.io/angular@0.3.0 build:css /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
6
+ > @block-auth.io/angular@0.3.0 build:css /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
7
7
  > tailwindcss -i ../ui-styles/src/input.css -c ./tailwind.config.cjs -o ./src/styles.generated.css --minify && node scripts/css-to-ts.mjs
8
8
 
9
9
  Browserslist: caniuse-lite is outdated. Please run:
@@ -12,8 +12,8 @@ Browserslist: caniuse-lite is outdated. Please run:
12
12
 
13
13
  Rebuilding...
14
14
 
15
- Done in 2017ms.
15
+ Done in 3222ms.
16
16
 
17
- > @block-auth.io/angular@0.3.0 typecheck /home/vlad/Escritorio/blockauth-code/blockauth-sdk/packages/angular
17
+ > @block-auth.io/angular@0.3.0 typecheck /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular
18
18
  > tsc -p tsconfig.lib.json --noEmit
19
19
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @block-auth.io/angular
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1b962a8: Una sesión caducada ya no deja la web atascada. Cuando el servidor responde
8
+ a cualquier evento con `code: 'USER_SESSION_REQUIRED'`, el runtime primero
9
+ pide una sola vez un ticket nuevo (`refreshAuth()` devuelve ahora
10
+ `'renewed' | 'refused' | 'unavailable'`): si lo obtiene, deja la página como
11
+ está, sin reintentar nada automáticamente; si falla de forma pasajera, no
12
+ cambia nada; y solo si el API lo rechaza (401) reacciona según el proveedor:
13
+
14
+ - **Extensión, durante un login:** el modal de login muestra el aviso
15
+ "Verificación caducada" y abre la extensión.
16
+ Cuando llega la sesión renovada (`blockauth:session-bridged`), retoma el
17
+ login (`requestSignin`).
18
+ - **Extensión, fuera de un login:** quita solo el estado de firma y conserva
19
+ "conectado". La app lleva a su login, y desde ahí "Log In" lleva al aviso.
20
+ - **Otros proveedores:** `applyLocalLogout()`. Durante un login se abre
21
+ `signup` para volver a entrar con el mismo proveedor.
22
+
23
+ Una marca en sessionStorage evita que la página de login entre en bucle
24
+ comprobando la sesión. `TxnsOverview` (react, vue y angular) muestra el aviso
25
+ del OTP también cuando la transacción no llegó a crearse.
26
+
27
+ - Updated dependencies [1b962a8]
28
+ - @block-auth.io/core@0.11.0
29
+
3
30
  ## 0.3.0
4
31
 
5
32
  ### Minor Changes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@block-auth.io/angular",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "dependencies": {
5
5
  "nanostores": "^0.10.0",
6
6
  "tslib": "^2.6.0",
7
- "@block-auth.io/ui-styles": "0.5.0",
8
- "@block-auth.io/core": "0.10.0"
7
+ "@block-auth.io/core": "0.11.0",
8
+ "@block-auth.io/ui-styles": "0.5.0"
9
9
  },
10
10
  "peerDependencies": {
11
11
  "@angular/core": ">=20.0.0",
@@ -401,5 +401,21 @@ describe('TxnsOverview', () => {
401
401
  expect(screen.getByText(/Enter your code in the Block-Auth app/)).toBeDefined();
402
402
  expect(screen.queryByText('Open extension')).toBeNull();
403
403
  });
404
+
405
+ // A login whose session expired never gets its txn created: the same
406
+ // notice must show on its own, not "No transactions found".
407
+ it('sin transacción muestra el mismo aviso en lugar de "No transactions found"', async () => {
408
+ setExtensionInstalled(true);
409
+ await render(TxnsOverviewComponent, {
410
+ providers: [
411
+ provideBlockAuthClientForTest(
412
+ makeClient({ requests: [] }, { isOtpRequired: true, isSigning: true }),
413
+ ),
414
+ ],
415
+ });
416
+
417
+ expect(screen.getByText(/Enter your code in the Block-Auth extension/)).toBeDefined();
418
+ expect(screen.queryByText('No transactions found')).toBeNull();
419
+ });
404
420
  });
405
421
  });
@@ -26,6 +26,7 @@ import {
26
26
  type ParamChange,
27
27
  type ShareChange,
28
28
  } from './internals/solicited-data-modal.component';
29
+ import { CiClock2Component, FaArrowRightComponent } from '../../icons';
29
30
  import {
30
31
  EMPTY_SOLICITED_DATA_FORM,
31
32
  getSolicitedAcceptParams,
@@ -79,13 +80,15 @@ const TXN_ERROR_TEXT_KEYS: Record<string, TextKey> = {
79
80
  TxnErrorComponent,
80
81
  PermissionsRequiredModalComponent,
81
82
  SolicitedDataModalComponent,
83
+ CiClock2Component,
84
+ FaArrowRightComponent,
82
85
  ],
83
86
  template: `
84
87
  <div
85
88
  data-testid="txns-overview"
86
89
  class="bas-flex bas-box-border bas-relative bas-h-full bas-w-full bas-gap-6 bas-flex-col bas-items-center bas-p-6 bas-font-medium bas-justify-center"
87
90
  >
88
- @if (isEmpty() && isSigning()) {
91
+ @if (isEmpty() && isSigning() && !isOtpRequired()) {
89
92
  <ba-txn-error
90
93
  [errorMessageTxt]="t('noTransactionsFound')"
91
94
  errorMessageSlug="no_transactions_found"
@@ -99,7 +102,9 @@ const TXN_ERROR_TEXT_KEYS: Record<string, TextKey> = {
99
102
  [closeTxns]="closeTxns()"
100
103
  [isCountdown]="false"
101
104
  />
102
- } @else if (!isEmpty()) {
105
+ } @else if (!isEmpty() || isOtpRequired()) {
106
+ <!-- No txn yet when the session expired before it was created. -->
107
+ @if (!isEmpty()) {
103
108
  <div
104
109
  class="bal-ba-glass-rise bas-flex bas-flex-col bas-items-center bas-gap-3"
105
110
  >
@@ -128,26 +133,35 @@ const TXN_ERROR_TEXT_KEYS: Record<string, TextKey> = {
128
133
  (prevTxnClicked)="onPrevTxnClicked()"
129
134
  (nextTxnClicked)="onNextTxnClicked()"
130
135
  />
136
+ }
131
137
  <!-- The server refuses this page's accept while the OTP window is
132
138
  over: the code is entered in the extension, which approves. -->
133
139
  @if (isOtpRequired()) {
134
140
  <div
135
- class="bas-flex bas-w-full bas-max-w-[330px] bas-flex-col bas-items-center bas-gap-6 bas-text-center"
141
+ class="bas-flex bas-w-full bas-max-w-[300px] bas-flex-col bas-items-center bas-gap-6 bas-text-center"
136
142
  >
137
- <p class="bas-m-0 bas-text-base bas-text-[var(--bal-primary-800)]">
138
- {{ t(ext().installed ? 'otpExpiredExtension' : 'otpExpiredApp') }}
139
- </p>
143
+ <span
144
+ class="bas-flex bas-h-16 bas-w-16 bas-items-center bas-justify-center bas-rounded-full bas-border bas-border-solid bas-border-[var(--bal-primary-50)] bas-bg-[var(--bal-primary-10)]"
145
+ >
146
+ <ba-ci-clock2 class="bas-h-8 bas-w-8 bas-text-[var(--bal-primary-600)]" />
147
+ </span>
148
+ <div class="bas-flex bas-flex-col bas-gap-2">
149
+ <h3 class="bas-m-0 bas-text-lg bas-font-semibold bas-text-[var(--bal-primary-900)]">
150
+ {{ t('otpExpiredTitle') }}
151
+ </h3>
152
+ <p class="bas-m-0 bas-text-sm bas-leading-relaxed bas-text-[#475569]">
153
+ {{ t(ext().installed ? 'otpExpiredExtension' : 'otpExpiredApp') }}
154
+ </p>
155
+ </div>
140
156
  @if (ext().installed) {
141
157
  <button
142
158
  type="button"
143
159
  id="btn-txn-open-extension"
144
160
  (click)="openExtensionOnTxn()"
145
- class="bal-ba-ring-base bal-ba-ring bal-ba-transition-2 bas-group bas-relative bas-box-border bas-flex bas-flex-row bas-gap-2 bas-items-center bas-overflow-hidden bas-bg-[#38b000] hover:bas-bg-[#329e00] bal-ba-hover-ring-green-500 bal-ba-focus-ring-green-500 bas-h-[42px] bas-px-2.5 bas-py-0 bal-ba-hover-ring-2 bas-cursor-pointer bal-ba-focus-ring-2 focus:bas-opacity-90 bal-ba-focus-ring-offset-2 bal-ba-hover-ring-offset-2 bas-w-full bas-justify-center bas-border-none bas-rounded-md"
161
+ class="bas-flex bas-h-11 bas-w-full bas-cursor-pointer bas-items-center bas-justify-center bas-gap-2 bas-rounded-xl bas-border-none bas-bg-[var(--bal-primary-600)] bas-px-4 bas-text-base bas-font-semibold bas-text-white bas-transition-colors bas-duration-200 hover:bas-bg-[var(--bal-primary-800)] focus-visible:bas-outline focus-visible:bas-outline-2 focus-visible:bas-outline-offset-2 focus-visible:bas-outline-[var(--bal-primary-500)]"
146
162
  >
147
- <span
148
- class="bal-ba-transition-2 bas-text-white bas-text-center bas-text-base bas-font-medium bas-flex bas-h-full bas-items-center"
149
- >{{ t('openExtension') }}</span
150
- >
163
+ {{ t('openExtension') }}
164
+ <ba-fa-arrow-right class="bas-h-4 bas-w-4" />
151
165
  </button>
152
166
  }
153
167
  </div>