cloud-ide-layout 1.0.20 → 1.0.22

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.
@@ -301,6 +301,17 @@ class AppStateService {
301
301
  activeEntity: activeEntity
302
302
  });
303
303
  });
304
+ // Automatically update file manager user ID whenever user changes
305
+ effect(() => {
306
+ const currentUser = this.currentUserSignal();
307
+ console.log('🔍 [AppStateService] User changed, updating file manager user ID:', currentUser);
308
+ if (currentUser?._id) {
309
+ this.fileManagerService.setUserId(currentUser._id);
310
+ }
311
+ else {
312
+ this.fileManagerService.setUserId('');
313
+ }
314
+ });
304
315
  // Listen for localStorage changes from other tabs/windows
305
316
  this.setupStorageListener();
306
317
  }
@@ -309,6 +320,7 @@ class AppStateService {
309
320
  */
310
321
  setUser(user) {
311
322
  this.currentUserSignal.set(user);
323
+ // Note: File manager user ID is automatically updated via effect() in constructor
312
324
  }
313
325
  /**
314
326
  * Update user data (partial update)
@@ -361,6 +373,7 @@ class AppStateService {
361
373
  */
362
374
  refreshFromLocalStorage() {
363
375
  this.loadFromLocalStorage();
376
+ // Note: File manager user ID is automatically updated via effect() when user signal changes
364
377
  }
365
378
  /**
366
379
  * Check if localStorage is available (browser environment)
@@ -2531,8 +2544,8 @@ class CideLytSidedrawerWrapperComponent {
2531
2544
  }
2532
2545
  ngOnInit() {
2533
2546
  // Initialize the component map (You'd likely populate this from a config or service)
2534
- this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-Ct_ZSmhz.mjs').then(m => m.CideLytSidedrawerNotesComponent);
2535
- this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-B7pkg0Hs.mjs').then(m => m.CideLytDrawerThemeComponent);
2547
+ this.componentMap['drowar_notes'] = () => import('./cloud-ide-layout-sidedrawer-notes.component-C5cJd6Nf.mjs').then(m => m.CideLytSidedrawerNotesComponent);
2548
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-B-7FQRAk.mjs').then(m => m.CideLytDrawerThemeComponent);
2536
2549
  }
2537
2550
  async loadComponent(configFor) {
2538
2551
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -2904,7 +2917,7 @@ const layoutControlPannelChildRoutes = [{
2904
2917
  },
2905
2918
  {
2906
2919
  path: "home",
2907
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-C4VnGDsV.mjs').then(c => c.CideLytHomeWrapperComponent),
2920
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-CRqB9B-k.mjs').then(c => c.CideLytHomeWrapperComponent),
2908
2921
  canActivate: [authGuard],
2909
2922
  data: {
2910
2923
  reuseTab: true, // For CustomRouteReuseStrategy
@@ -3170,4 +3183,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
3170
3183
  */
3171
3184
 
3172
3185
  export { AppStateHelperService as A, CideLytSharedWrapperComponent as C, ENVIRONMENT_CONFIG as E, CideLytSidebarService as a, CideLytRequestService as b, CideLytSidedrawerService as c, CideLytThemeService as d, CloudIdeLayoutService as e, CloudIdeLayoutComponent as f, CideLytSharedService as g, layoutControlPannelChildRoutes as h, CustomRouteReuseStrategy as i, AppStateService as j, CideLytUserStatusService as k, layoutRoutes as l, CacheManagerService as m, CideLytFileManagerService as n, processThemeVariable as p, setCSSVariable as s, themeFactory as t };
3173
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-DwtmZlra.mjs.map
3186
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-G4z9orRq.mjs.map