aq-fe-framework 0.1.96 → 0.1.97

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.
@@ -6810,6 +6810,29 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
6810
6810
 
6811
6811
  // src/components/FaviconSetter/FaviconSetter.tsx
6812
6812
  import { useEffect as useEffect6 } from "react";
6813
+ function FaviconSetter() {
6814
+ var _a;
6815
+ const store = useS_BasicAppShell();
6816
+ useEffect6(() => {
6817
+ var _a2, _b, _c;
6818
+ if (!((_a2 = store.state.faviconFileDetail) == null ? void 0 : _a2.fileBase64String)) return;
6819
+ try {
6820
+ const base64Icon = `data:image/${(_b = store.state.faviconFileDetail.fileExtension) == null ? void 0 : _b.replaceAll(".", "")};base64,${(_c = store.state.faviconFileDetail) == null ? void 0 : _c.fileBase64String}`;
6821
+ if (base64Icon) {
6822
+ let link = document.querySelector("link[rel~='icon']");
6823
+ if (!link) {
6824
+ link = document.createElement("link");
6825
+ link.rel = "icon";
6826
+ document.head.appendChild(link);
6827
+ }
6828
+ link.href = base64Icon;
6829
+ }
6830
+ } catch (error) {
6831
+ console.error("Error setting favicon from localStorage:", error);
6832
+ }
6833
+ }, [(_a = store.state.faviconFileDetail) == null ? void 0 : _a.fileBase64String]);
6834
+ return null;
6835
+ }
6813
6836
 
6814
6837
  // src/components/Inputs/Fieldset/MyFieldset.tsx
6815
6838
  import { Box as Box3, Fieldset as Fieldset4, Text as Text10 } from "@mantine/core";
@@ -11408,6 +11431,7 @@ export {
11408
11431
  MyKeyLabel,
11409
11432
  MyNumberFormatter,
11410
11433
  AQStatCard1,
11434
+ FaviconSetter,
11411
11435
  MyDateInput,
11412
11436
  MyFieldset,
11413
11437
  MyFileInput,
@@ -7,6 +7,7 @@ import {
7
7
  BasicAppShell,
8
8
  BasicAppShell_transformMenuToEnum,
9
9
  Boxes,
10
+ FaviconSetter,
10
11
  HeaderMegaMenu,
11
12
  MyActionIcon,
12
13
  MyActionIconCheck,
@@ -63,7 +64,7 @@ import {
63
64
  useS_BasicAppShell,
64
65
  useS_ButtonImport,
65
66
  utils_layout_getItemsWithoutLinks
66
- } from "../chunk-TPYIOT65.mjs";
67
+ } from "../chunk-ZO35CUIW.mjs";
67
68
  import "../chunk-Y3YGC5IH.mjs";
68
69
  import "../chunk-EEQENBXZ.mjs";
69
70
  import "../chunk-FWCSY2DS.mjs";
@@ -76,6 +77,7 @@ export {
76
77
  BasicAppShell,
77
78
  BasicAppShell_transformMenuToEnum,
78
79
  Boxes,
80
+ FaviconSetter,
79
81
  HeaderMegaMenu,
80
82
  MyActionIcon,
81
83
  MyActionIconCheck,
@@ -65,7 +65,7 @@ import {
65
65
  useS_core60524,
66
66
  useS_core83092,
67
67
  utils_core83092_mergePage
68
- } from "../chunk-TPYIOT65.mjs";
68
+ } from "../chunk-ZO35CUIW.mjs";
69
69
  import "../chunk-Y3YGC5IH.mjs";
70
70
  import "../chunk-EEQENBXZ.mjs";
71
71
  import "../chunk-FWCSY2DS.mjs";
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "types": "./dist/modules-features/index.d.mts"
19
19
  }
20
20
  },
21
- "version": "0.1.96",
21
+ "version": "0.1.97",
22
22
  "private": false,
23
23
  "files": [
24
24
  "dist"