@nocobase/client 1.5.19 → 1.5.20

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.
@@ -69,6 +69,7 @@ export declare class Application {
69
69
  schemaSettingsManager: SchemaSettingsManager;
70
70
  dataSourceManager: DataSourceManager;
71
71
  name: string;
72
+ favicon: string;
72
73
  loading: boolean;
73
74
  maintained: boolean;
74
75
  maintaining: boolean;
@@ -78,6 +79,7 @@ export declare class Application {
78
79
  get pm(): PluginManager;
79
80
  get disableAcl(): boolean;
80
81
  get isWsAuthorized(): boolean;
82
+ updateFavicon(favicon?: string): void;
81
83
  setWsAuthorized(authorized: boolean): void;
82
84
  constructor(options?: ApplicationOptions);
83
85
  private initListeners;
package/es/index.mjs CHANGED
@@ -18606,6 +18606,7 @@ class Application {
18606
18606
  I(this, "schemaSettingsManager");
18607
18607
  I(this, "dataSourceManager");
18608
18608
  I(this, "name");
18609
+ I(this, "favicon");
18609
18610
  I(this, "loading", !0);
18610
18611
  I(this, "maintained", !1);
18611
18612
  I(this, "maintaining", !1);
@@ -18630,6 +18631,10 @@ class Application {
18630
18631
  get isWsAuthorized() {
18631
18632
  return this.wsAuthorized;
18632
18633
  }
18634
+ updateFavicon(t) {
18635
+ let n = document.querySelector('link[rel="shortcut icon"]');
18636
+ t && (this.favicon = t), n ? n.href = this.favicon || "/favicon/favicon.ico" : (n = document.createElement("link"), n.rel = "shortcut icon", n.href = this.favicon || "/favicon/favicon.ico", document.head.appendChild(n));
18637
+ }
18633
18638
  setWsAuthorized(t) {
18634
18639
  this.wsAuthorized = t;
18635
18640
  }
@@ -18749,7 +18754,7 @@ class Application {
18749
18754
  code: "LOAD_ERROR"
18750
18755
  }, n(t)), console.error(t, this.error);
18751
18756
  }
18752
- this.loading = !1;
18757
+ this.loading = !1, this.updateFavicon();
18753
18758
  });
18754
18759
  }
18755
18760
  loadWebSocket() {
@@ -35206,7 +35211,7 @@ function addAppVersion(e, t) {
35206
35211
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
35207
35212
  }), e;
35208
35213
  }
35209
- const name = "@nocobase/client", version = "1.5.19", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35214
+ const name = "@nocobase/client", version = "1.5.20", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35210
35215
  "@ahooksjs/use-url-state": "3.5.1",
35211
35216
  "@ant-design/cssinjs": "^1.11.1",
35212
35217
  "@ant-design/icons": "^5.1.4",
@@ -35228,9 +35233,9 @@ const name = "@nocobase/client", version = "1.5.19", license = "AGPL-3.0", main
35228
35233
  "@formily/reactive-react": "^2.2.27",
35229
35234
  "@formily/shared": "^2.2.27",
35230
35235
  "@formily/validator": "^2.2.27",
35231
- "@nocobase/evaluators": "1.5.19",
35232
- "@nocobase/sdk": "1.5.19",
35233
- "@nocobase/utils": "1.5.19",
35236
+ "@nocobase/evaluators": "1.5.20",
35237
+ "@nocobase/sdk": "1.5.20",
35238
+ "@nocobase/utils": "1.5.20",
35234
35239
  ahooks: "^3.7.2",
35235
35240
  antd: "5.12.8",
35236
35241
  "antd-style": "3.7.1",