cloud-ide-layout 1.0.19 → 1.0.21

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.
@@ -288,6 +288,12 @@ class AppStateService {
288
288
  constructor() {
289
289
  // Initialize file manager base URL on app startup
290
290
  this.fileManagerService.setBaseUrl(cidePath.join([hostManagerRoutesUrl.cideSuiteHost, coreRoutesUrl?.module, coreRoutesUrl?.fileManager]));
291
+ // Initialize file manager user ID from current user
292
+ const currentUser = this.currentUserSignal();
293
+ console.log('🔍 [AppStateService] Current user:', currentUser);
294
+ if (currentUser?._id) {
295
+ this.fileManagerService.setUserId(currentUser._id);
296
+ }
291
297
  // Load initial state from localStorage
292
298
  this.loadFromLocalStorage();
293
299
  // Save to localStorage whenever state changes
@@ -309,6 +315,13 @@ class AppStateService {
309
315
  */
310
316
  setUser(user) {
311
317
  this.currentUserSignal.set(user);
318
+ // Update file manager service with new user ID
319
+ if (user?._id) {
320
+ this.fileManagerService.setUserId(user._id);
321
+ }
322
+ else {
323
+ this.fileManagerService.setUserId('');
324
+ }
312
325
  }
313
326
  /**
314
327
  * Update user data (partial update)
@@ -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-ByksUixd.mjs').then(m => m.CideLytSidedrawerNotesComponent);
2548
+ this.componentMap['drawer_theme'] = () => import('./cloud-ide-layout-drawer-theme.component-C1e4aZ_H.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-CDys7gDk.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-B7xm0FcW.mjs.map