@oliasoft-open-source/react-ui-library 3.1.18 → 3.1.19

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26167,6 +26167,8 @@ const useFontsReady = () => {
26167
26167
  const [isFontLoaded, setFontLoaded] = useState(false);
26168
26168
  useEffect(() => {
26169
26169
  const fontIsReady = async () => {
26170
+ if (!document.fonts)
26171
+ return;
26170
26172
  await document.fonts.ready.then(() => setFontLoaded(true));
26171
26173
  };
26172
26174
  fontIsReady();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.1.18",
3
+ "version": "3.1.19",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",