@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.
- package/.turbo/turbo-build.log +37 -40
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +74 -82
- package/.turbo/turbo-typecheck.log +4 -4
- package/CHANGELOG.md +27 -0
- package/package.json +3 -3
- package/src/lib/components/txns/txns-overview.component.test.ts +16 -0
- package/src/lib/components/txns/txns-overview.component.ts +25 -11
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,40 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
> @block-auth.io/angular@0.3.
|
|
3
|
-
> pnpm build:css && ng-packagr -p ng-package.json -c tsconfig.lib.json
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @block-auth.io/angular@0.3.
|
|
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
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
[34mBuilding Angular Package[39m
|
|
17
|
+
[37m[39m
|
|
18
|
+
[37m------------------------------------------------------------------------------[39m
|
|
19
|
+
[37mBuilding entry point '@block-auth.io/angular'[39m
|
|
20
|
+
[37m------------------------------------------------------------------------------[39m
|
|
21
|
+
[1G[1G[36m⠋[39m Compiling with Angular sources in partial compilation mode.[1G[0K[36m⠙[39m Compiling with Angular sources in partial compilation mode.
|
|
22
|
+
[1G[0K[32m✔[39m Compiling with Angular sources in partial compilation mode.
|
|
23
|
+
[1G[1G[36m⠋[39m Writing FESM and DTS bundles[1G[0K[32m✔[39m Writing FESM and DTS bundles
|
|
24
|
+
[1G[1G[36m⠋[39m Copying assets[1G[0K[32m✔[39m Copying assets
|
|
25
|
+
[1G[36m⠋[39m Writing package manifest[1G[0K[34mℹ[39m Removing scripts section in package.json as it's considered a potential security vulnerability.
|
|
26
|
+
[1G[34mℹ[39m Removing devDependencies section in package.json.
|
|
27
|
+
[1G[32m✔[39m Writing package manifest
|
|
28
|
+
[1G[32m✔[39m Built @block-auth.io/angular
|
|
29
|
+
[32m[39m
|
|
30
|
+
[32m------------------------------------------------------------------------------[39m
|
|
31
|
+
[32mBuilt Angular Package[39m
|
|
32
|
+
[32m- from: /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular[39m
|
|
33
|
+
[32m- to: /home/wenqi/Documents/blockauthio/blockauth-sdk/packages/angular/dist[39m
|
|
34
|
+
[32m------------------------------------------------------------------------------[39m
|
|
35
|
+
[37m[37m[39m[37m[39m
|
|
36
|
+
[37m[37mBuild at: [1m2026-10-15T11:33:05.464Z[22m - Time: [1m7373[22mms[39m[37m[39m
|
|
37
|
+
[37m[37m[39m[37m[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @block-auth.io/angular@0.3.0 pretest /home/
|
|
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/
|
|
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
|
|
15
|
+
Done in 4372ms.
|
|
16
16
|
|
|
17
|
-
> @block-auth.io/angular@0.3.0 test /home/
|
|
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/
|
|
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)
|
|
24
|
-
✓ src/lib/components/modals/modal-overlay.component.test.ts (4 tests)
|
|
25
|
-
✓ src/lib/
|
|
26
|
-
|
|
27
|
-
✓ src/lib/components/
|
|
28
|
-
✓ src/lib/
|
|
29
|
-
|
|
30
|
-
✓ src/lib/
|
|
31
|
-
✓ src/lib/components/
|
|
32
|
-
|
|
33
|
-
✓ src/lib/components/
|
|
34
|
-
|
|
35
|
-
✓ src/lib/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
✓ src/lib/
|
|
41
|
-
✓
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
✓ src/lib/
|
|
46
|
-
|
|
47
|
-
✓ src/lib/
|
|
48
|
-
|
|
49
|
-
✓
|
|
50
|
-
✓ src/lib/
|
|
51
|
-
✓ src/lib/
|
|
52
|
-
✓ src/lib/
|
|
53
|
-
✓
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
✓ src/lib/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
✓ src/lib/
|
|
62
|
-
✓ src/lib/components/
|
|
63
|
-
✓ src/lib/
|
|
64
|
-
|
|
65
|
-
✓ src/lib/
|
|
66
|
-
✓ src/lib/primitives/
|
|
67
|
-
✓ src/lib/__tests__/integration.test.ts (1 test)
|
|
68
|
-
✓ integración Angular + core > conectar wallet propaga la address al estado consumido por Angular
|
|
69
|
-
✓ src/lib/components/btns/btn-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
✓ src/lib/
|
|
74
|
-
✓ src/lib/
|
|
75
|
-
✓ src/lib/primitives/
|
|
76
|
-
✓ src/lib/
|
|
77
|
-
✓ src/lib/
|
|
78
|
-
✓ src/lib/
|
|
79
|
-
✓ src/lib/
|
|
80
|
-
✓ src/lib/components/sections/
|
|
81
|
-
✓ src/lib/
|
|
82
|
-
✓ src/lib/
|
|
83
|
-
✓ src/lib/components/
|
|
84
|
-
✓ src/lib/components/
|
|
85
|
-
✓ src/lib/
|
|
86
|
-
✓ src/lib/
|
|
87
|
-
✓ src/lib/
|
|
88
|
-
✓ src/lib/components/btns/btn-
|
|
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
|
|
99
|
-
Start at
|
|
100
|
-
Duration
|
|
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/
|
|
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/
|
|
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
|
|
15
|
+
Done in 3222ms.
|
|
16
16
|
|
|
17
|
-
> @block-auth.io/angular@0.3.0 typecheck /home/
|
|
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.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"nanostores": "^0.10.0",
|
|
6
6
|
"tslib": "^2.6.0",
|
|
7
|
-
"@block-auth.io/
|
|
8
|
-
"@block-auth.io/
|
|
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-[
|
|
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
|
-
<
|
|
138
|
-
|
|
139
|
-
|
|
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="
|
|
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
|
-
|
|
148
|
-
|
|
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>
|