@edsis/angular 21.0.1 → 21.1.2

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/README.md CHANGED
@@ -78,6 +78,32 @@ The version script only updates the source package manifest. The built package i
78
78
 
79
79
  ## Pack and publish locally
80
80
 
81
+ Run the interactive local publish workflow with:
82
+
83
+ ```bash
84
+ bun run publish
85
+ ```
86
+
87
+ The script will:
88
+
89
+ - verify the active npm login against the public npm registry
90
+ - ask for a version bump using `X`, `Y`, or `Z`
91
+ - update `projects/library/package.json`
92
+ - run `bun run build:library`
93
+ - publish `dist/library` to npm public with `--access public`
94
+
95
+ For a non-interactive publish, provide the bump and confirmation flags explicitly:
96
+
97
+ ```bash
98
+ bun run publish --bump Z --yes
99
+ ```
100
+
101
+ Preview the publish plan without changing files:
102
+
103
+ ```bash
104
+ bun run publish --dry-run --bump Y --yes
105
+ ```
106
+
81
107
  Preview the npm tarball:
82
108
 
83
109
  ```bash
@@ -97,6 +123,18 @@ Run a local publish dry-run:
97
123
  bun run publish:library:dry-run
98
124
  ```
99
125
 
126
+ When updating `@ojiepermana/angular`, use the helper below instead of a plain `bun update` so the version pin, patch mapping, install step, and SDK build verification stay in sync:
127
+
128
+ ```bash
129
+ bun run update:ojiepermana
130
+ ```
131
+
132
+ If a specific version needs to be tested:
133
+
134
+ ```bash
135
+ bun run update:ojiepermana 21.1.11
136
+ ```
137
+
100
138
  `publish:library` publishes from `dist/library` and forces `--access public`.
101
139
 
102
140
  For local publishes, the script does not add `--provenance` by default because npm provenance generation is not supported outside compatible CI providers. If you need provenance in a supported CI environment, pass it explicitly:
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, inject, makeEnvironmentProviders, ChangeDetectionStrategy, Component, DestroyRef, signal } from '@angular/core';
3
- import { HttpContextToken, HttpErrorResponse, provideHttpClient, withInterceptors } from '@angular/common/http';
3
+ import { HttpContextToken, HttpErrorResponse, provideHttpClient, withFetch, withInterceptors } from '@angular/common/http';
4
4
  import { ApiConfiguration, provideApiConfiguration } from '@edsis/angular/sdk/shared';
5
5
  import { DOCUMENT, Location } from '@angular/common';
6
6
  import { AuthService } from '@edsis/angular/sdk/auth';
@@ -259,9 +259,7 @@ function isHandledRequest(apiPath) {
259
259
  return isProtectedApiRequest(apiPath) || isAuthRequest(apiPath) || isHealthRequest(apiPath);
260
260
  }
261
261
  function applyCookieCredentials(request, apiPath) {
262
- return isAuthRequest(apiPath) && !request.withCredentials
263
- ? request.clone({ withCredentials: true })
264
- : request;
262
+ return isAuthRequest(apiPath) && !request.withCredentials ? request.clone({ withCredentials: true }) : request;
265
263
  }
266
264
  function applyBearerToken(request, accessToken, isRetry = false) {
267
265
  return request.clone({
@@ -276,9 +274,7 @@ async function resolveAccessToken(documentRef, authService, options) {
276
274
  return isSessionValid ? readStoredAccessToken(documentRef) : '';
277
275
  }
278
276
  function handleUnauthorizedError(error, request, next, documentRef, authService) {
279
- if (!(error instanceof HttpErrorResponse) ||
280
- error.status !== 401 ||
281
- request.context.get(EDSIS_AUTH_RETRY)) {
277
+ if (!(error instanceof HttpErrorResponse) || error.status !== 401 || request.context.get(EDSIS_AUTH_RETRY)) {
282
278
  return throwError(() => error);
283
279
  }
284
280
  return from(resolveAccessToken(documentRef, authService, { forceRefresh: true })).pipe(switchMap((refreshedAccessToken) => {
@@ -308,9 +304,7 @@ const edsisAuthInterceptor = (request, next) => {
308
304
  return next(preparedRequest);
309
305
  }
310
306
  return from(resolveAccessToken(documentRef, authService)).pipe(switchMap((accessToken) => {
311
- const authorizedRequest = accessToken
312
- ? applyBearerToken(preparedRequest, accessToken)
313
- : preparedRequest;
307
+ const authorizedRequest = accessToken ? applyBearerToken(preparedRequest, accessToken) : preparedRequest;
314
308
  return next(authorizedRequest).pipe(catchError((error) => handleUnauthorizedError(error, preparedRequest, next, documentRef, authService)));
315
309
  }));
316
310
  };
@@ -319,7 +313,7 @@ function provideEdsisAuth(config) {
319
313
  const resolvedConfig = resolveEdsisAuthConfig(config);
320
314
  return makeEnvironmentProviders([
321
315
  provideApiConfiguration(resolvedConfig.apiUrl),
322
- provideHttpClient(withInterceptors([edsisAuthInterceptor])),
316
+ provideHttpClient(withFetch(), withInterceptors([edsisAuthInterceptor])),
323
317
  {
324
318
  provide: EDSIS_AUTH_CONFIG,
325
319
  useValue: resolvedConfig,
@@ -350,69 +344,59 @@ const guestOnlyGuard = async () => {
350
344
  };
351
345
 
352
346
  class AuthShellPage {
353
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthShellPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
354
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: AuthShellPage, isStandalone: true, selector: "edsis-auth-shell-page", host: { classAttribute: "block min-h-screen bg-background text-foreground" }, ngImport: i0, template: `
355
- <section class="relative flex min-h-screen items-center justify-center overflow-hidden px-4 py-10 sm:px-6 lg:px-8">
347
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthShellPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
348
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.10", type: AuthShellPage, isStandalone: true, selector: "edsis-auth-shell-page", host: { classAttribute: "block min-h-screen bg-background text-foreground" }, ngImport: i0, template: `
349
+ <section
350
+ class="relative isolate flex min-h-screen items-center justify-center overflow-hidden px-4 py-10 sm:px-6 lg:px-8">
356
351
  <div
357
352
  aria-hidden="true"
358
- class="absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(14,165,233,0.16),transparent_38%),radial-gradient(circle_at_bottom_right,rgba(34,197,94,0.14),transparent_34%)]"></div>
353
+ class="absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(14,165,233,0.14),transparent_34%),radial-gradient(circle_at_bottom_right,rgba(34,197,94,0.12),transparent_32%)]"></div>
359
354
 
360
- <div class="relative grid w-full max-w-5xl gap-8 lg:grid-cols-[1.05fr_0.95fr]">
361
- <div
362
- class="hidden rounded-4xl border border-border/70 bg-card/85 p-8 shadow-xl backdrop-blur lg:flex lg:flex-col lg:justify-between">
363
- <div class="space-y-6">
355
+ <div
356
+ aria-hidden="true"
357
+ class="absolute inset-0 bg-[linear-gradient(rgba(148,163,184,0.08)_1px,transparent_1px),linear-gradient(90deg,rgba(148,163,184,0.08)_1px,transparent_1px)] bg-[size:4.5rem_4.5rem] [mask-image:radial-gradient(circle_at_center,black,transparent_82%)]"></div>
358
+
359
+ <div class="relative flex w-full max-w-xl justify-center">
360
+ <div aria-hidden="true" class="pointer-events-none absolute inset-0 z-20">
361
+ <div class="absolute left-1/2 top-0 w-screen -translate-x-1/2 border-t border-border/70"></div>
362
+ <div class="absolute left-1/2 bottom-0 w-screen -translate-x-1/2 border-t border-border/70"></div>
363
+ <div class="absolute left-0 top-1/2 h-screen -translate-y-1/2 border-l border-border/70"></div>
364
+ <div class="absolute right-0 top-1/2 h-screen -translate-y-1/2 border-l border-border/70"></div>
365
+
366
+ <div class="absolute left-0 top-0 h-8 w-8 -translate-x-1/2 -translate-y-1/2">
364
367
  <div
365
- class="inline-flex items-center gap-3 rounded-full border border-border/70 bg-background/70 px-4 py-2 text-sm font-medium text-muted-foreground">
366
- <span
367
- class="flex h-9 w-9 items-center justify-center rounded-full bg-primary text-sm font-semibold tracking-[0.2em] text-background">
368
- ED
369
- </span>
370
- Edsis Access Flow
371
- </div>
372
-
373
- <div class="space-y-3">
374
- <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Magic Link Access</p>
375
- <h1 class="max-w-md text-4xl font-semibold tracking-tight text-balance">
376
- Masuk ke workspace Edsis tanpa password statis.
377
- </h1>
378
- <p class="max-w-xl text-base leading-7 text-muted-foreground">
379
- Entry point auth ini memusatkan flow login, verify, logout, guard, interceptor, dan session handling di
380
- satu library yang bisa dipakai ulang.
381
- </p>
382
- </div>
368
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
369
+ <div
370
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
383
371
  </div>
384
-
385
- <div class="grid gap-4 sm:grid-cols-3">
386
- <article class="rounded-2xl border border-border/70 bg-background/70 p-4">
387
- <p class="text-sm font-semibold">Login</p>
388
- <p class="mt-2 text-sm leading-6 text-muted-foreground">
389
- Mengirim ulang magic link melalui SDK auth dan memakai URL verify yang berasal dari konfigurasi
390
- aplikasi.
391
- </p>
392
- </article>
393
- <article class="rounded-2xl border border-border/70 bg-background/70 p-4">
394
- <p class="text-sm font-semibold">Verify</p>
395
- <p class="mt-2 text-sm leading-6 text-muted-foreground">
396
- Memverifikasi token satu kali pakai, menyimpan access token, dan menyiapkan sesi refresh cookie.
397
- </p>
398
- </article>
399
- <article class="rounded-2xl border border-border/70 bg-background/70 p-4">
400
- <p class="text-sm font-semibold">Logout</p>
401
- <p class="mt-2 text-sm leading-6 text-muted-foreground">
402
- Menghapus sesi tersimpan dan merevoke refresh token pada backend.
403
- </p>
404
- </article>
372
+ <div class="absolute right-0 top-0 h-8 w-8 translate-x-1/2 -translate-y-1/2">
373
+ <div
374
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
375
+ <div
376
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
377
+ </div>
378
+ <div class="absolute left-0 bottom-0 h-8 w-8 -translate-x-1/2 translate-y-1/2">
379
+ <div
380
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
381
+ <div
382
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
383
+ </div>
384
+ <div class="absolute right-0 bottom-0 h-8 w-8 translate-x-1/2 translate-y-1/2">
385
+ <div
386
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
387
+ <div
388
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
405
389
  </div>
406
390
  </div>
407
391
 
408
- <div class="rounded-4xl border border-border/80 bg-card/95 p-6 shadow-2xl backdrop-blur sm:p-8">
392
+ <div class="relative z-10 w-full border border-border/80 bg-card/95 p-6 shadow-2xl backdrop-blur sm:p-8">
409
393
  <router-outlet />
410
394
  </div>
411
395
  </div>
412
396
  </section>
413
397
  `, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
414
398
  }
415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthShellPage, decorators: [{
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthShellPage, decorators: [{
416
400
  type: Component,
417
401
  args: [{
418
402
  selector: 'edsis-auth-shell-page',
@@ -421,60 +405,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
421
405
  class: 'block min-h-screen bg-background text-foreground',
422
406
  },
423
407
  template: `
424
- <section class="relative flex min-h-screen items-center justify-center overflow-hidden px-4 py-10 sm:px-6 lg:px-8">
408
+ <section
409
+ class="relative isolate flex min-h-screen items-center justify-center overflow-hidden px-4 py-10 sm:px-6 lg:px-8">
425
410
  <div
426
411
  aria-hidden="true"
427
- class="absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(14,165,233,0.16),transparent_38%),radial-gradient(circle_at_bottom_right,rgba(34,197,94,0.14),transparent_34%)]"></div>
412
+ class="absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(14,165,233,0.14),transparent_34%),radial-gradient(circle_at_bottom_right,rgba(34,197,94,0.12),transparent_32%)]"></div>
428
413
 
429
- <div class="relative grid w-full max-w-5xl gap-8 lg:grid-cols-[1.05fr_0.95fr]">
430
- <div
431
- class="hidden rounded-4xl border border-border/70 bg-card/85 p-8 shadow-xl backdrop-blur lg:flex lg:flex-col lg:justify-between">
432
- <div class="space-y-6">
414
+ <div
415
+ aria-hidden="true"
416
+ class="absolute inset-0 bg-[linear-gradient(rgba(148,163,184,0.08)_1px,transparent_1px),linear-gradient(90deg,rgba(148,163,184,0.08)_1px,transparent_1px)] bg-[size:4.5rem_4.5rem] [mask-image:radial-gradient(circle_at_center,black,transparent_82%)]"></div>
417
+
418
+ <div class="relative flex w-full max-w-xl justify-center">
419
+ <div aria-hidden="true" class="pointer-events-none absolute inset-0 z-20">
420
+ <div class="absolute left-1/2 top-0 w-screen -translate-x-1/2 border-t border-border/70"></div>
421
+ <div class="absolute left-1/2 bottom-0 w-screen -translate-x-1/2 border-t border-border/70"></div>
422
+ <div class="absolute left-0 top-1/2 h-screen -translate-y-1/2 border-l border-border/70"></div>
423
+ <div class="absolute right-0 top-1/2 h-screen -translate-y-1/2 border-l border-border/70"></div>
424
+
425
+ <div class="absolute left-0 top-0 h-8 w-8 -translate-x-1/2 -translate-y-1/2">
426
+ <div
427
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
433
428
  <div
434
- class="inline-flex items-center gap-3 rounded-full border border-border/70 bg-background/70 px-4 py-2 text-sm font-medium text-muted-foreground">
435
- <span
436
- class="flex h-9 w-9 items-center justify-center rounded-full bg-primary text-sm font-semibold tracking-[0.2em] text-background">
437
- ED
438
- </span>
439
- Edsis Access Flow
440
- </div>
441
-
442
- <div class="space-y-3">
443
- <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Magic Link Access</p>
444
- <h1 class="max-w-md text-4xl font-semibold tracking-tight text-balance">
445
- Masuk ke workspace Edsis tanpa password statis.
446
- </h1>
447
- <p class="max-w-xl text-base leading-7 text-muted-foreground">
448
- Entry point auth ini memusatkan flow login, verify, logout, guard, interceptor, dan session handling di
449
- satu library yang bisa dipakai ulang.
450
- </p>
451
- </div>
429
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
452
430
  </div>
453
-
454
- <div class="grid gap-4 sm:grid-cols-3">
455
- <article class="rounded-2xl border border-border/70 bg-background/70 p-4">
456
- <p class="text-sm font-semibold">Login</p>
457
- <p class="mt-2 text-sm leading-6 text-muted-foreground">
458
- Mengirim ulang magic link melalui SDK auth dan memakai URL verify yang berasal dari konfigurasi
459
- aplikasi.
460
- </p>
461
- </article>
462
- <article class="rounded-2xl border border-border/70 bg-background/70 p-4">
463
- <p class="text-sm font-semibold">Verify</p>
464
- <p class="mt-2 text-sm leading-6 text-muted-foreground">
465
- Memverifikasi token satu kali pakai, menyimpan access token, dan menyiapkan sesi refresh cookie.
466
- </p>
467
- </article>
468
- <article class="rounded-2xl border border-border/70 bg-background/70 p-4">
469
- <p class="text-sm font-semibold">Logout</p>
470
- <p class="mt-2 text-sm leading-6 text-muted-foreground">
471
- Menghapus sesi tersimpan dan merevoke refresh token pada backend.
472
- </p>
473
- </article>
431
+ <div class="absolute right-0 top-0 h-8 w-8 translate-x-1/2 -translate-y-1/2">
432
+ <div
433
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
434
+ <div
435
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
436
+ </div>
437
+ <div class="absolute left-0 bottom-0 h-8 w-8 -translate-x-1/2 translate-y-1/2">
438
+ <div
439
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
440
+ <div
441
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
442
+ </div>
443
+ <div class="absolute right-0 bottom-0 h-8 w-8 translate-x-1/2 translate-y-1/2">
444
+ <div
445
+ class="absolute left-1/2 top-1/2 h-5 -translate-x-1/2 -translate-y-1/2 border-l-2 border-primary"></div>
446
+ <div
447
+ class="absolute left-1/2 top-1/2 w-5 -translate-x-1/2 -translate-y-1/2 border-t-2 border-primary"></div>
474
448
  </div>
475
449
  </div>
476
450
 
477
- <div class="rounded-4xl border border-border/80 bg-card/95 p-6 shadow-2xl backdrop-blur sm:p-8">
451
+ <div class="relative z-10 w-full border border-border/80 bg-card/95 p-6 shadow-2xl backdrop-blur sm:p-8">
478
452
  <router-outlet />
479
453
  </div>
480
454
  </div>
@@ -579,15 +553,16 @@ class AuthLoginPage {
579
553
  },
580
554
  });
581
555
  }
582
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthLoginPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
583
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AuthLoginPage, isStandalone: true, selector: "edsis-auth-login-page", host: { classAttribute: "block" }, ngImport: i0, template: `
556
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthLoginPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
557
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: AuthLoginPage, isStandalone: true, selector: "edsis-auth-login-page", host: { classAttribute: "block" }, ngImport: i0, template: `
584
558
  <div class="space-y-8">
585
559
  <header class="space-y-3">
586
560
  <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Login</p>
587
561
  <div class="space-y-2">
588
562
  <h2 class="text-3xl font-semibold tracking-tight">Kirim ulang magic link untuk masuk.</h2>
589
563
  <p class="max-w-xl text-sm leading-6 text-muted-foreground">
590
- Masukkan email yang terdaftar. Modul auth akan memanggil endpoint resend dari SDK dan mengarahkan magic link ke halaman verify.
564
+ Masukkan email yang terdaftar. Modul auth akan memanggil endpoint resend dari SDK dan mengarahkan magic link
565
+ ke halaman verify.
591
566
  </p>
592
567
  </div>
593
568
  </header>
@@ -639,7 +614,7 @@ class AuthLoginPage {
639
614
  </div>
640
615
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
641
616
  }
642
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthLoginPage, decorators: [{
617
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthLoginPage, decorators: [{
643
618
  type: Component,
644
619
  args: [{
645
620
  selector: 'edsis-auth-login-page',
@@ -654,7 +629,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
654
629
  <div class="space-y-2">
655
630
  <h2 class="text-3xl font-semibold tracking-tight">Kirim ulang magic link untuk masuk.</h2>
656
631
  <p class="max-w-xl text-sm leading-6 text-muted-foreground">
657
- Masukkan email yang terdaftar. Modul auth akan memanggil endpoint resend dari SDK dan mengarahkan magic link ke halaman verify.
632
+ Masukkan email yang terdaftar. Modul auth akan memanggil endpoint resend dari SDK dan mengarahkan magic link
633
+ ke halaman verify.
658
634
  </p>
659
635
  </div>
660
636
  </header>
@@ -712,6 +688,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
712
688
  class AuthLogoutPage {
713
689
  destroyRef = inject(DestroyRef);
714
690
  documentRef = inject(DOCUMENT);
691
+ router = inject(Router);
715
692
  authService = inject(AuthService);
716
693
  authConfig = inject(EDSIS_AUTH_CONFIG);
717
694
  guestHomePath = this.authConfig.guestHomePath;
@@ -731,6 +708,7 @@ class AuthLogoutPage {
731
708
  next: (response) => {
732
709
  this.state.set('success');
733
710
  this.message.set(getResponseMessage(response, 'Sesi berhasil diakhiri.'));
711
+ void this.router.navigateByUrl(this.guestHomePath, { replaceUrl: true });
734
712
  },
735
713
  error: (error) => {
736
714
  this.state.set('error');
@@ -738,14 +716,15 @@ class AuthLogoutPage {
738
716
  },
739
717
  });
740
718
  }
741
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthLogoutPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
742
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AuthLogoutPage, isStandalone: true, selector: "edsis-auth-logout-page", host: { classAttribute: "block" }, ngImport: i0, template: `
719
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthLogoutPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
720
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: AuthLogoutPage, isStandalone: true, selector: "edsis-auth-logout-page", host: { classAttribute: "block" }, ngImport: i0, template: `
743
721
  <div class="space-y-6">
744
722
  <header class="space-y-3">
745
723
  <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Logout</p>
746
724
  <h2 class="text-3xl font-semibold tracking-tight">Mengakhiri sesi Edsis.</h2>
747
725
  <p class="max-w-xl text-sm leading-6 text-muted-foreground">
748
- Halaman ini membersihkan sesi lokal lalu memanggil endpoint logout untuk merevoke refresh-token cookie pada backend.
726
+ Halaman ini membersihkan sesi lokal lalu memanggil endpoint logout untuk merevoke refresh-token cookie pada
727
+ backend.
749
728
  </p>
750
729
  </header>
751
730
 
@@ -774,7 +753,7 @@ class AuthLogoutPage {
774
753
  </div>
775
754
  `, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
776
755
  }
777
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthLogoutPage, decorators: [{
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthLogoutPage, decorators: [{
778
757
  type: Component,
779
758
  args: [{
780
759
  selector: 'edsis-auth-logout-page',
@@ -788,7 +767,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
788
767
  <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Logout</p>
789
768
  <h2 class="text-3xl font-semibold tracking-tight">Mengakhiri sesi Edsis.</h2>
790
769
  <p class="max-w-xl text-sm leading-6 text-muted-foreground">
791
- Halaman ini membersihkan sesi lokal lalu memanggil endpoint logout untuk merevoke refresh-token cookie pada backend.
770
+ Halaman ini membersihkan sesi lokal lalu memanggil endpoint logout untuk merevoke refresh-token cookie pada
771
+ backend.
792
772
  </p>
793
773
  </header>
794
774
 
@@ -876,14 +856,15 @@ class AuthVerifyPage {
876
856
  },
877
857
  });
878
858
  }
879
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthVerifyPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
880
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AuthVerifyPage, isStandalone: true, selector: "edsis-auth-verify-page", host: { classAttribute: "block" }, ngImport: i0, template: `
859
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthVerifyPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
860
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: AuthVerifyPage, isStandalone: true, selector: "edsis-auth-verify-page", host: { classAttribute: "block" }, ngImport: i0, template: `
881
861
  <div class="space-y-6">
882
862
  <header class="space-y-3">
883
863
  <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Verify</p>
884
864
  <h2 class="text-3xl font-semibold tracking-tight">Memverifikasi magic link.</h2>
885
865
  <p class="max-w-xl text-sm leading-6 text-muted-foreground">
886
- Token akan dikonsumsi satu kali, sesi refresh cookie dibentuk di backend, lalu access token disimpan secara lokal untuk aplikasi.
866
+ Token akan dikonsumsi satu kali, sesi refresh cookie dibentuk di backend, lalu access token disimpan secara
867
+ lokal untuk aplikasi.
887
868
  </p>
888
869
  </header>
889
870
 
@@ -912,7 +893,7 @@ class AuthVerifyPage {
912
893
  </div>
913
894
  `, isInline: true, dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
914
895
  }
915
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AuthVerifyPage, decorators: [{
896
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: AuthVerifyPage, decorators: [{
916
897
  type: Component,
917
898
  args: [{
918
899
  selector: 'edsis-auth-verify-page',
@@ -926,7 +907,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
926
907
  <p class="text-sm font-medium uppercase tracking-[0.24em] text-muted-foreground">Verify</p>
927
908
  <h2 class="text-3xl font-semibold tracking-tight">Memverifikasi magic link.</h2>
928
909
  <p class="max-w-xl text-sm leading-6 text-muted-foreground">
929
- Token akan dikonsumsi satu kali, sesi refresh cookie dibentuk di backend, lalu access token disimpan secara lokal untuk aplikasi.
910
+ Token akan dikonsumsi satu kali, sesi refresh cookie dibentuk di backend, lalu access token disimpan secara
911
+ lokal untuk aplikasi.
930
912
  </p>
931
913
  </header>
932
914