@dskripchenko/laravel-admin 1.49.0 → 1.50.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 +1 @@
1
- ec64f191db8b7d906296cdc67e59cc4f38f3a54e3f34257766127d092dc68f86
1
+ baf3db5770d65a53e651d694d55a148796b1c4d728acfd4a961476c8a02b5f90
@@ -12,7 +12,7 @@
12
12
  * 2. The UI shows the 2FA form. twoFactorChallenge(code) or
13
13
  * twoFactorRecovery(recovery_code) completes the login.
14
14
  */
15
- import type { AdminUser, AdminBootstrap, AdminDemo, AdminExternalLogin } from '../types/bootstrap';
15
+ import type { AdminUser, AdminBootstrap, AdminDemo, AdminExternalLogin, AdminLoginNotice } from '../types/bootstrap';
16
16
  export interface PendingChallenge {
17
17
  challengeToken: string;
18
18
  remember: boolean;
@@ -78,6 +78,13 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"admin-auth",
78
78
  icon?: string | null | undefined;
79
79
  description?: string | null | undefined;
80
80
  }[]>;
81
+ loginNotice: import("vue").Ref<{
82
+ message: string;
83
+ tone: "danger" | "warning" | "info" | "success";
84
+ } | null, AdminLoginNotice | {
85
+ message: string;
86
+ tone: "danger" | "warning" | "info" | "success";
87
+ } | null>;
81
88
  twoFactorAvailable: import("vue").Ref<boolean, boolean>;
82
89
  isAuthenticated: import("vue").ComputedRef<boolean>;
83
90
  isChallengePending: import("vue").ComputedRef<boolean>;
@@ -93,7 +100,7 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"admin-auth",
93
100
  }>;
94
101
  cancelChallenge: () => void;
95
102
  logout: () => Promise<void>;
96
- }, "user" | "permissions" | "pendingChallenge" | "demo" | "externalLogins" | "twoFactorAvailable">, Pick<{
103
+ }, "user" | "permissions" | "pendingChallenge" | "demo" | "externalLogins" | "loginNotice" | "twoFactorAvailable">, Pick<{
97
104
  user: import("vue").Ref<{
98
105
  id: number | string;
99
106
  name: string;
@@ -149,6 +156,13 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"admin-auth",
149
156
  icon?: string | null | undefined;
150
157
  description?: string | null | undefined;
151
158
  }[]>;
159
+ loginNotice: import("vue").Ref<{
160
+ message: string;
161
+ tone: "danger" | "warning" | "info" | "success";
162
+ } | null, AdminLoginNotice | {
163
+ message: string;
164
+ tone: "danger" | "warning" | "info" | "success";
165
+ } | null>;
152
166
  twoFactorAvailable: import("vue").Ref<boolean, boolean>;
153
167
  isAuthenticated: import("vue").ComputedRef<boolean>;
154
168
  isChallengePending: import("vue").ComputedRef<boolean>;
@@ -220,6 +234,13 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"admin-auth",
220
234
  icon?: string | null | undefined;
221
235
  description?: string | null | undefined;
222
236
  }[]>;
237
+ loginNotice: import("vue").Ref<{
238
+ message: string;
239
+ tone: "danger" | "warning" | "info" | "success";
240
+ } | null, AdminLoginNotice | {
241
+ message: string;
242
+ tone: "danger" | "warning" | "info" | "success";
243
+ } | null>;
223
244
  twoFactorAvailable: import("vue").Ref<boolean, boolean>;
224
245
  isAuthenticated: import("vue").ComputedRef<boolean>;
225
246
  isChallengePending: import("vue").ComputedRef<boolean>;
@@ -43,6 +43,11 @@ export interface AdminExternalLogin {
43
43
  icon?: string | null;
44
44
  description?: string | null;
45
45
  }
46
+ /** A message above the login form — Auth\LoginNotice on the server. */
47
+ export interface AdminLoginNotice {
48
+ message: string;
49
+ tone: 'danger' | 'warning' | 'info' | 'success';
50
+ }
46
51
  export interface AdminBrand {
47
52
  name?: string;
48
53
  /** The logo image's URL, for the sidebar and the auth pages. */
@@ -88,6 +93,8 @@ export interface AdminBootstrap {
88
93
  demo?: AdminDemo | null;
89
94
  /** The login page's external ways in; absent on older backends. */
90
95
  externalLogins?: AdminExternalLogin[];
96
+ /** A message for the login page (why an external sign-in failed), shown once. */
97
+ loginNotice?: AdminLoginNotice | null;
91
98
  }
92
99
  declare global {
93
100
  interface Window {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dskripchenko/laravel-admin",
3
- "version": "1.49.0",
3
+ "version": "1.50.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },