imagine-curator-sdk 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imagine-curator-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Imagine Curator SDK - React components for 3D visualization and rendering",
5
5
  "type": "module",
6
6
  "main": "src/lib.js",
@@ -659,8 +659,12 @@ export const clearAllUploadedFilesIDB = async () => {
659
659
  }
660
660
  // endregion
661
661
 
662
- window.LFApp.idb = {
663
- getAsset,
664
- STORE,
665
- getAllFiles,
666
- };
662
+ // Ensure window.LFApp exists before setting idb
663
+ if (typeof window !== 'undefined') {
664
+ window.LFApp = window.LFApp || {};
665
+ window.LFApp.idb = {
666
+ getAsset,
667
+ STORE,
668
+ getAllFiles,
669
+ };
670
+ }