cloud-ide-layout 1.0.21 → 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.
@@ -288,12 +288,6 @@ 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
- }
297
291
  // Load initial state from localStorage
298
292
  this.loadFromLocalStorage();
299
293
  // Save to localStorage whenever state changes
@@ -307,6 +301,17 @@ class AppStateService {
307
301
  activeEntity: activeEntity
308
302
  });
309
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
+ });
310
315
  // Listen for localStorage changes from other tabs/windows
311
316
  this.setupStorageListener();
312
317
  }
@@ -315,13 +320,7 @@ class AppStateService {
315
320
  */
316
321
  setUser(user) {
317
322
  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
- }
323
+ // Note: File manager user ID is automatically updated via effect() in constructor
325
324
  }
326
325
  /**
327
326
  * Update user data (partial update)
@@ -374,6 +373,7 @@ class AppStateService {
374
373
  */
375
374
  refreshFromLocalStorage() {
376
375
  this.loadFromLocalStorage();
376
+ // Note: File manager user ID is automatically updated via effect() when user signal changes
377
377
  }
378
378
  /**
379
379
  * Check if localStorage is available (browser environment)
@@ -2544,8 +2544,8 @@ class CideLytSidedrawerWrapperComponent {
2544
2544
  }
2545
2545
  ngOnInit() {
2546
2546
  // Initialize the component map (You'd likely populate this from a config or service)
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);
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);
2549
2549
  }
2550
2550
  async loadComponent(configFor) {
2551
2551
  console.log('🔍 SIDEDRAWER - Loading component:', configFor, 'Current tab:', this.currentTabId);
@@ -2917,7 +2917,7 @@ const layoutControlPannelChildRoutes = [{
2917
2917
  },
2918
2918
  {
2919
2919
  path: "home",
2920
- loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-CDys7gDk.mjs').then(c => c.CideLytHomeWrapperComponent),
2920
+ loadComponent: () => import('./cloud-ide-layout-home-wrapper.component-CRqB9B-k.mjs').then(c => c.CideLytHomeWrapperComponent),
2921
2921
  canActivate: [authGuard],
2922
2922
  data: {
2923
2923
  reuseTab: true, // For CustomRouteReuseStrategy
@@ -3183,4 +3183,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
3183
3183
  */
3184
3184
 
3185
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 };
3186
- //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-B7xm0FcW.mjs.map
3186
+ //# sourceMappingURL=cloud-ide-layout-cloud-ide-layout-G4z9orRq.mjs.map