@block-auth.io/angular 0.3.2 → 0.4.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/fesm2022/block-auth.io-angular.mjs +9828 -0
- package/fesm2022/block-auth.io-angular.mjs.map +1 -0
- package/index.d.ts +1144 -0
- package/package.json +16 -37
- package/.turbo/turbo-build.log +0 -37
- package/.turbo/turbo-lint.log +0 -4
- package/.turbo/turbo-test.log +0 -2001
- package/.turbo/turbo-typecheck.log +0 -19
- package/CHANGELOG.md +0 -245
- package/ng-package.json +0 -6
- package/scripts/css-to-ts.mjs +0 -14
- package/src/lib/__tests__/integration.test.ts +0 -45
- package/src/lib/block-auth.service.test.ts +0 -69
- package/src/lib/block-auth.service.ts +0 -81
- package/src/lib/components/btns/btn-base-provider.component.test.ts +0 -22
- package/src/lib/components/btns/btn-base-provider.component.ts +0 -55
- package/src/lib/components/btns/btn-block-auth.component.test.ts +0 -105
- package/src/lib/components/btns/btn-block-auth.component.ts +0 -117
- package/src/lib/components/btns/btn-gmail.component.test.ts +0 -16
- package/src/lib/components/btns/btn-gmail.component.ts +0 -41
- package/src/lib/components/btns/btn-google-base.component.test.ts +0 -16
- package/src/lib/components/btns/btn-google-base.component.ts +0 -73
- package/src/lib/components/btns/btn-metamask.component.test.ts +0 -20
- package/src/lib/components/btns/btn-metamask.component.ts +0 -98
- package/src/lib/components/btns/btn-microsoft.component.test.ts +0 -16
- package/src/lib/components/btns/btn-microsoft.component.ts +0 -77
- package/src/lib/components/btns/btn-phantom.component.test.ts +0 -20
- package/src/lib/components/btns/btn-phantom.component.ts +0 -93
- package/src/lib/components/btns/btn-signin.component.test.ts +0 -55
- package/src/lib/components/btns/btn-signin.component.ts +0 -108
- package/src/lib/components/btns/btn-wallet-connect.component.test.ts +0 -20
- package/src/lib/components/btns/btn-wallet-connect.component.ts +0 -109
- package/src/lib/components/btns/index.ts +0 -11
- package/src/lib/components/contents/content-signin.component.test.ts +0 -33
- package/src/lib/components/contents/content-signin.component.ts +0 -68
- package/src/lib/components/contents/content-signup.component.test.ts +0 -86
- package/src/lib/components/contents/content-signup.component.ts +0 -234
- package/src/lib/components/dds/change-account.component.test.ts +0 -66
- package/src/lib/components/dds/change-account.component.ts +0 -112
- package/src/lib/components/dds/dropdown-profile-btn.component.test.ts +0 -66
- package/src/lib/components/dds/dropdown-profile-btn.component.ts +0 -170
- package/src/lib/components/dds/dropdown-profile-item.component.test.ts +0 -75
- package/src/lib/components/dds/dropdown-profile-item.component.ts +0 -74
- package/src/lib/components/dds/dropdown-profile.component.test.ts +0 -110
- package/src/lib/components/dds/dropdown-profile.component.ts +0 -264
- package/src/lib/components/flow-block-auth.component.test.ts +0 -93
- package/src/lib/components/flow-block-auth.component.ts +0 -226
- package/src/lib/components/modals/modal-overlay.component.test.ts +0 -81
- package/src/lib/components/modals/modal-overlay.component.ts +0 -43
- package/src/lib/components/modals/modal-restoration-expired.component.test.ts +0 -71
- package/src/lib/components/modals/modal-restoration-expired.component.ts +0 -83
- package/src/lib/components/modals/modal-restore.component.test.ts +0 -74
- package/src/lib/components/modals/modal-restore.component.ts +0 -104
- package/src/lib/components/modals/modal-signin.component.test.ts +0 -66
- package/src/lib/components/modals/modal-signin.component.ts +0 -44
- package/src/lib/components/modals/modal-signup.component.test.ts +0 -56
- package/src/lib/components/modals/modal-signup.component.ts +0 -40
- package/src/lib/components/sections/footer-section.component.test.ts +0 -19
- package/src/lib/components/sections/footer-section.component.ts +0 -49
- package/src/lib/components/sections/internals/providers-buttons.component.test.ts +0 -27
- package/src/lib/components/sections/internals/providers-buttons.component.ts +0 -290
- package/src/lib/components/sections/internals/providers-filters.component.test.ts +0 -25
- package/src/lib/components/sections/internals/providers-filters.component.ts +0 -139
- package/src/lib/components/sections/internals/selected-button.component.test.ts +0 -36
- package/src/lib/components/sections/internals/selected-button.component.ts +0 -92
- package/src/lib/components/sections/login-section.component.test.ts +0 -49
- package/src/lib/components/sections/login-section.component.ts +0 -120
- package/src/lib/components/sections/providers-section.component.test.ts +0 -22
- package/src/lib/components/sections/providers-section.component.ts +0 -187
- package/src/lib/components/txns/internals/permissions-required-modal.component.test.ts +0 -36
- package/src/lib/components/txns/internals/permissions-required-modal.component.ts +0 -43
- package/src/lib/components/txns/internals/phone-input.component.test.ts +0 -119
- package/src/lib/components/txns/internals/phone-input.component.ts +0 -301
- package/src/lib/components/txns/internals/solicited-data-modal.component.test.ts +0 -661
- package/src/lib/components/txns/internals/solicited-data-modal.component.ts +0 -415
- package/src/lib/components/txns/internals/txn-error.component.test.ts +0 -127
- package/src/lib/components/txns/internals/txn-error.component.ts +0 -144
- package/src/lib/components/txns/internals/txn-type.component.test.ts +0 -52
- package/src/lib/components/txns/internals/txn-type.component.ts +0 -51
- package/src/lib/components/txns/internals/txn.component.test.ts +0 -580
- package/src/lib/components/txns/internals/txn.component.ts +0 -461
- package/src/lib/components/txns/txns-overview.component.test.ts +0 -421
- package/src/lib/components/txns/txns-overview.component.ts +0 -424
- package/src/lib/icons/ai-outline-disconnect.component.ts +0 -21
- package/src/lib/icons/bi-logo-gmail.component.ts +0 -21
- package/src/lib/icons/cg-profile.component.ts +0 -31
- package/src/lib/icons/check-icon.component.ts +0 -27
- package/src/lib/icons/ci-clock2.component.ts +0 -31
- package/src/lib/icons/fa-arrow-right.component.ts +0 -21
- package/src/lib/icons/fa-times.component.ts +0 -21
- package/src/lib/icons/fa-undo.component.ts +0 -21
- package/src/lib/icons/icons.test.ts +0 -25
- package/src/lib/icons/index.ts +0 -22
- package/src/lib/icons/io-ios-arrow-back.component.ts +0 -21
- package/src/lib/icons/io-ios-arrow-forward.component.ts +0 -21
- package/src/lib/icons/io-md-arrow-back.component.ts +0 -19
- package/src/lib/icons/io-md-arrow-forward.component.ts +0 -19
- package/src/lib/icons/pi-warning-fill.component.ts +0 -21
- package/src/lib/icons/tb-arrows-exchange2.component.ts +0 -30
- package/src/lib/icons/tb-copy-check-filled.component.ts +0 -21
- package/src/lib/icons/tb-copy.component.ts +0 -34
- package/src/lib/icons/ti-vendor-microsoft.component.ts +0 -21
- package/src/lib/inject-store.test.ts +0 -26
- package/src/lib/inject-store.ts +0 -16
- package/src/lib/primitives/arrow-icon.component.test.ts +0 -25
- package/src/lib/primitives/arrow-icon.component.ts +0 -45
- package/src/lib/primitives/btn-arrow-dir.component.test.ts +0 -22
- package/src/lib/primitives/btn-arrow-dir.component.ts +0 -65
- package/src/lib/primitives/btn-base.component.test.ts +0 -38
- package/src/lib/primitives/btn-base.component.ts +0 -140
- package/src/lib/primitives/divider-base.component.test.ts +0 -12
- package/src/lib/primitives/divider-base.component.ts +0 -74
- package/src/lib/primitives/dropdown-arrow.component.test.ts +0 -12
- package/src/lib/primitives/dropdown-arrow.component.ts +0 -46
- package/src/lib/primitives/dropdown-base.component.test.ts +0 -49
- package/src/lib/primitives/dropdown-base.component.ts +0 -329
- package/src/lib/primitives/helpers.ts +0 -151
- package/src/lib/primitives/horizontal-loader.component.test.ts +0 -19
- package/src/lib/primitives/horizontal-loader.component.ts +0 -70
- package/src/lib/primitives/icon-base.component.test.ts +0 -19
- package/src/lib/primitives/icon-base.component.ts +0 -58
- package/src/lib/primitives/img-loader.component.test.ts +0 -12
- package/src/lib/primitives/img-loader.component.ts +0 -118
- package/src/lib/primitives/index.ts +0 -29
- package/src/lib/primitives/input-base.component.test.ts +0 -20
- package/src/lib/primitives/input-base.component.ts +0 -210
- package/src/lib/primitives/lifetime-slider-base.component.test.ts +0 -88
- package/src/lib/primitives/lifetime-slider-base.component.ts +0 -75
- package/src/lib/primitives/oval-spinner.component.test.ts +0 -9
- package/src/lib/primitives/oval-spinner.component.ts +0 -158
- package/src/lib/primitives/pickers/dropdown-picker-animated-base.component.ts +0 -220
- package/src/lib/primitives/pickers/picker-button.component.ts +0 -74
- package/src/lib/primitives/pickers/time-picker-dropdown-selector.component.ts +0 -188
- package/src/lib/primitives/pickers/time-picker.component.ts +0 -124
- package/src/lib/primitives/pickers/time-unit-selector.component.ts +0 -82
- package/src/lib/primitives/progressbar.component.test.ts +0 -18
- package/src/lib/primitives/progressbar.component.ts +0 -93
- package/src/lib/primitives/providersStyles.ts +0 -268
- package/src/lib/primitives/slider-base.component.ts +0 -56
- package/src/lib/provide-block-auth.test.ts +0 -43
- package/src/lib/provide-block-auth.ts +0 -43
- package/src/lib/runtime/block-auth-runtime.directive.test.ts +0 -89
- package/src/lib/runtime/block-auth-runtime.directive.ts +0 -68
- package/src/lib/teleport-body.directive.test.ts +0 -29
- package/src/lib/teleport-body.directive.ts +0 -21
- package/src/lib/testing.ts +0 -15
- package/src/lib/transitions.css +0 -23
- package/src/public-api.ts +0 -86
- package/src/vitest.setup.ts +0 -8
- package/tailwind.config.cjs +0 -6
- package/tsconfig.json +0 -15
- package/tsconfig.lib.json +0 -9
- package/vite.config.mts +0 -44
package/src/public-api.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// API pública de @block-auth.io/angular. Espejo de packages/react/src/index.ts
|
|
2
|
-
// (los estilos se inyectan en runtime vía provideBlockAuth, no acá — ng-packagr
|
|
3
|
-
// no hace inline de CSS como tsup). testing.ts NO se exporta (helper de tests).
|
|
4
|
-
|
|
5
|
-
// Provider / DI
|
|
6
|
-
export { provideBlockAuth, injectBlockAuthClient } from './lib/provide-block-auth';
|
|
7
|
-
export { injectStore } from './lib/inject-store';
|
|
8
|
-
export { BlockAuthService, type Locale, type TextKey } from './lib/block-auth.service';
|
|
9
|
-
|
|
10
|
-
// Runtime / directivas
|
|
11
|
-
export { BlockAuthRuntimeDirective } from './lib/runtime/block-auth-runtime.directive';
|
|
12
|
-
export { TeleportBodyDirective } from './lib/teleport-body.directive';
|
|
13
|
-
|
|
14
|
-
// Orchestrator
|
|
15
|
-
export { FlowBlockAuthComponent } from './lib/components/flow-block-auth.component';
|
|
16
|
-
|
|
17
|
-
// User profile / role helpers (re-exportados del core, como el viejo `main.js`)
|
|
18
|
-
export {
|
|
19
|
-
loadUserProfile,
|
|
20
|
-
getUserRoles,
|
|
21
|
-
getUserRoleNames,
|
|
22
|
-
getUserRoleSlugs,
|
|
23
|
-
hasRole,
|
|
24
|
-
hasRoleBySlug,
|
|
25
|
-
hasAnyRole,
|
|
26
|
-
hasAnyRoleBySlug,
|
|
27
|
-
type BlockAuthUserProfile,
|
|
28
|
-
type BlockAuthUserRole,
|
|
29
|
-
} from '@block-auth.io/core';
|
|
30
|
-
|
|
31
|
-
// Buttons (barrel existente)
|
|
32
|
-
export {
|
|
33
|
-
BtnBaseProviderComponent,
|
|
34
|
-
BtnBlockAuthComponent,
|
|
35
|
-
BtnGmailComponent,
|
|
36
|
-
BtnGoogleBaseComponent,
|
|
37
|
-
BtnMetamaskComponent,
|
|
38
|
-
BtnMicrosoftComponent,
|
|
39
|
-
BtnPhantomComponent,
|
|
40
|
-
BtnSigninComponent,
|
|
41
|
-
BtnWalletConnectComponent,
|
|
42
|
-
} from './lib/components/btns';
|
|
43
|
-
|
|
44
|
-
// Contents
|
|
45
|
-
export { ContentSigninComponent } from './lib/components/contents/content-signin.component';
|
|
46
|
-
export { ContentSignupComponent } from './lib/components/contents/content-signup.component';
|
|
47
|
-
|
|
48
|
-
// Dropdown / profile
|
|
49
|
-
export {
|
|
50
|
-
DropdownProfileComponent,
|
|
51
|
-
type DropdownProfileAdditionalItem,
|
|
52
|
-
} from './lib/components/dds/dropdown-profile.component';
|
|
53
|
-
export { DropdownProfileBtnComponent } from './lib/components/dds/dropdown-profile-btn.component';
|
|
54
|
-
export { DropdownProfileItemComponent } from './lib/components/dds/dropdown-profile-item.component';
|
|
55
|
-
export { ChangeAccountComponent } from './lib/components/dds/change-account.component';
|
|
56
|
-
|
|
57
|
-
// Modals
|
|
58
|
-
export { ModalOverlayComponent } from './lib/components/modals/modal-overlay.component';
|
|
59
|
-
export { ModalSigninComponent } from './lib/components/modals/modal-signin.component';
|
|
60
|
-
export { ModalSignupComponent } from './lib/components/modals/modal-signup.component';
|
|
61
|
-
export { ModalRestoreComponent } from './lib/components/modals/modal-restore.component';
|
|
62
|
-
export { ModalRestorationExpiredComponent } from './lib/components/modals/modal-restoration-expired.component';
|
|
63
|
-
|
|
64
|
-
// Sections (+ internals)
|
|
65
|
-
export { LoginSectionComponent } from './lib/components/sections/login-section.component';
|
|
66
|
-
export { ProvidersSectionComponent } from './lib/components/sections/providers-section.component';
|
|
67
|
-
export { FooterSectionComponent } from './lib/components/sections/footer-section.component';
|
|
68
|
-
export { ProvidersButtonsComponent } from './lib/components/sections/internals/providers-buttons.component';
|
|
69
|
-
export { SelectedButtonComponent } from './lib/components/sections/internals/selected-button.component';
|
|
70
|
-
export {
|
|
71
|
-
ProvidersFiltersComponent,
|
|
72
|
-
makeWebTypeItems,
|
|
73
|
-
type WebTypeItem,
|
|
74
|
-
} from './lib/components/sections/internals/providers-filters.component';
|
|
75
|
-
|
|
76
|
-
// Transactions (+ internals)
|
|
77
|
-
export { TxnsOverviewComponent } from './lib/components/txns/txns-overview.component';
|
|
78
|
-
export { TxnComponent } from './lib/components/txns/internals/txn.component';
|
|
79
|
-
export { TxnTypeComponent } from './lib/components/txns/internals/txn-type.component';
|
|
80
|
-
export { TxnErrorComponent } from './lib/components/txns/internals/txn-error.component';
|
|
81
|
-
export { PermissionsRequiredModalComponent } from './lib/components/txns/internals/permissions-required-modal.component';
|
|
82
|
-
export {
|
|
83
|
-
SolicitedDataModalComponent,
|
|
84
|
-
type ParamChange,
|
|
85
|
-
type ShareChange,
|
|
86
|
-
} from './lib/components/txns/internals/solicited-data-modal.component';
|
package/src/vitest.setup.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@analogjs/vite-plugin-angular/setup-vitest';
|
|
2
|
-
import { getTestBed } from '@angular/core/testing';
|
|
3
|
-
import {
|
|
4
|
-
BrowserDynamicTestingModule,
|
|
5
|
-
platformBrowserDynamicTesting,
|
|
6
|
-
} from '@angular/platform-browser-dynamic/testing';
|
|
7
|
-
|
|
8
|
-
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
|
package/tailwind.config.cjs
DELETED
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ES2022",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"useDefineForClassFields": false,
|
|
8
|
-
"importHelpers": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"types": ["vitest/globals"]
|
|
11
|
-
},
|
|
12
|
-
"include": ["src/**/*.ts"],
|
|
13
|
-
"exclude": ["dist"],
|
|
14
|
-
"angularCompilerOptions": { "strictTemplates": true }
|
|
15
|
-
}
|
package/tsconfig.lib.json
DELETED
package/vite.config.mts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/// <reference types="vitest" />
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import angular from '@analogjs/vite-plugin-angular';
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
// Sin tsconfig.spec.json propio (el paquete solo tiene tsconfig.json +
|
|
7
|
-
// tsconfig.lib.json): apuntar el plugin al tsconfig base evita el warning
|
|
8
|
-
// "Unable to resolve tsconfig at .../tsconfig.spec.json".
|
|
9
|
-
//
|
|
10
|
-
// `experimental.useAngularCompilationAPI: true` es OBLIGATORIO: sin él el
|
|
11
|
-
// plugin preserva los decoradores para que TestBed compile en JIT, y el
|
|
12
|
-
// compilador JIT NO soporta signal inputs (`input()` no se registra como
|
|
13
|
-
// binding → NG0303 "Can't bind to ...") ni queries/decoradores de campo
|
|
14
|
-
// (`@ViewChild`/`@Input` → "Standard Angular field decorators are not
|
|
15
|
-
// supported in JIT mode"). Con esta opción el plugin usa la API de
|
|
16
|
-
// compilación real de Angular (calidad AOT), que emite los metadatos de
|
|
17
|
-
// signal input/output y hace que el binding entre componentes funcione.
|
|
18
|
-
plugins: [angular({ tsconfig: './tsconfig.json', experimental: { useAngularCompilationAPI: true } })],
|
|
19
|
-
// pnpm crea DOS variantes peer de `@wagmi/core@3.5.2` (una por typescript
|
|
20
|
-
// 5.8.3 y otra por 5.9.3): `@block-auth.io/core` importa una y el paquete
|
|
21
|
-
// angular la otra. Sin dedupe, `vi.mock('@wagmi/core')` de los tests solo
|
|
22
|
-
// parchea la copia resuelta desde el test → la copia que usa core queda real
|
|
23
|
-
// (ProviderNotFoundError). dedupe colapsa ambas en una sola copia para que el
|
|
24
|
-
// mock alcance también a core (idéntico efecto al del monorepo de react/vue).
|
|
25
|
-
resolve: { dedupe: ['@wagmi/core', '@wagmi/connectors'] },
|
|
26
|
-
test: {
|
|
27
|
-
// Requerido por el patch de zone.js que instala
|
|
28
|
-
// `@analogjs/vite-plugin-angular/setup-vitest` (envuelve describe/it/
|
|
29
|
-
// beforeEach en globalThis) y por `"types": ["vitest/globals"]` del
|
|
30
|
-
// tsconfig — mismo convenio que packages/vue.
|
|
31
|
-
globals: true,
|
|
32
|
-
environment: 'jsdom',
|
|
33
|
-
setupFiles: ['./src/vitest.setup.ts'],
|
|
34
|
-
include: ['src/**/*.test.ts'],
|
|
35
|
-
css: false,
|
|
36
|
-
passWithNoTests: true,
|
|
37
|
-
// `@block-auth.io/core` (dist ESM del workspace) debe pasar por el resolver
|
|
38
|
-
// de vite (inline) en vez de importarse nativamente, para que su
|
|
39
|
-
// `import '@wagmi/core'` respete el `resolve.dedupe` de arriba y quede
|
|
40
|
-
// interceptable por `vi.mock('@wagmi/core')` de los tests de integración
|
|
41
|
-
// (importado nativamente saltaría tanto el dedupe como el mock).
|
|
42
|
-
server: { deps: { inline: [/@block-auth\.io[/\\]core/, /packages[/\\]core[/\\]dist/] } },
|
|
43
|
-
},
|
|
44
|
-
});
|