adminforth 1.1.90 → 1.1.92

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/dist/index.js CHANGED
@@ -147,7 +147,7 @@ class AdminForth {
147
147
  else {
148
148
  this.baseUrlSlashed = this.config.baseUrl;
149
149
  }
150
- if (!((_b = this.config) === null || _b === void 0 ? void 0 : _b.customization.brandName)) {
150
+ if (((_b = this.config) === null || _b === void 0 ? void 0 : _b.customization.brandName) === undefined) {
151
151
  this.config.customization.brandName = 'AdminForth';
152
152
  }
153
153
  if (this.config.customization.brandLogo) {
package/index.ts CHANGED
@@ -187,7 +187,7 @@ class AdminForth implements AdminForthClass {
187
187
  } else {
188
188
  this.baseUrlSlashed = this.config.baseUrl;
189
189
  }
190
- if (!this.config?.customization.brandName) {
190
+ if (this.config?.customization.brandName === undefined) {
191
191
  this.config.customization.brandName = 'AdminForth';
192
192
  }
193
193
  if (this.config.customization.brandLogo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.1.90",
3
+ "version": "1.1.92",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -87,13 +87,14 @@ export type AlertParams = {
87
87
  * The message to display in the alert
88
88
  */
89
89
  message?: string;
90
+
90
91
  /**
91
92
  * The variant of the alert
92
93
  */
93
94
  variant?: AlertVariant | keyof typeof AlertVariant;
94
95
 
95
96
  /**
96
- * The timeout of the alert
97
+ * The timeout of the alert in seconds or 'unlimited' to keep the alert open until the user closes it
97
98
  */
98
99
  timeout?: number | 'unlimited';
99
100