cloud-ide-element 1.0.72 → 1.0.73

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.
@@ -2626,6 +2626,7 @@ class CideEleFileManagerService {
2626
2626
  destroyRef = inject(DestroyRef);
2627
2627
  // Angular 20: Signal-based state management
2628
2628
  _baseUrl = signal('/api', ...(ngDevMode ? [{ debugName: "_baseUrl" }] : []));
2629
+ _objectIdEndpoint = signal('/utility/generateObjectId', ...(ngDevMode ? [{ debugName: "_objectIdEndpoint" }] : []));
2629
2630
  _userId = signal('', ...(ngDevMode ? [{ debugName: "_userId" }] : []));
2630
2631
  _isUploading = signal(false, ...(ngDevMode ? [{ debugName: "_isUploading" }] : []));
2631
2632
  _uploadQueue = signal([], ...(ngDevMode ? [{ debugName: "_uploadQueue" }] : []));
@@ -2633,6 +2634,7 @@ class CideEleFileManagerService {
2633
2634
  _error = signal(null, ...(ngDevMode ? [{ debugName: "_error" }] : []));
2634
2635
  // Angular 20: Computed values
2635
2636
  baseUrl = this._baseUrl.asReadonly();
2637
+ objectIdEndpoint = this._objectIdEndpoint.asReadonly();
2636
2638
  userId = this._userId.asReadonly();
2637
2639
  isUploading = this._isUploading.asReadonly();
2638
2640
  uploadQueue = this._uploadQueue.asReadonly();
@@ -2809,14 +2811,25 @@ class CideEleFileManagerService {
2809
2811
  console.log('🔍 [FileManagerService] Setting user ID:', userId);
2810
2812
  this._userId.set(userId);
2811
2813
  }
2814
+ /**
2815
+ * Set the object ID generation endpoint
2816
+ * Angular 20: Using signal-based state management
2817
+ * @param endpoint The endpoint for generating object IDs (e.g., '/utility/generateObjectId')
2818
+ */
2819
+ setObjectIdEndpoint(endpoint) {
2820
+ console.log('🔍 [FileManagerService] Setting object ID endpoint:', endpoint);
2821
+ this._objectIdEndpoint.set(endpoint);
2822
+ }
2812
2823
  /**
2813
2824
  * Generate Object ID for group uploads
2814
2825
  * Calls the backend API to generate a unique ObjectId for grouping multiple files
2826
+ * Uses the configurable object ID endpoint instead of hardcoded path
2815
2827
  * @returns Observable with the generated ObjectId
2816
2828
  */
2817
2829
  generateObjectId() {
2818
- const url = `${this._baseUrl()}/utility/generateObjectId`;
2830
+ const url = `${this._baseUrl()}${this._objectIdEndpoint()}`;
2819
2831
  console.log('🆔 [FileManagerService] Generating ObjectId from:', url);
2832
+ console.log('🔧 [FileManagerService] Using object ID endpoint:', this._objectIdEndpoint());
2820
2833
  return this.http.get(url).pipe(catchError((error) => {
2821
2834
  console.error('❌ [FileManagerService] Error generating ObjectId:', error);
2822
2835
  this._error.set(`Failed to generate ObjectId: ${error.message}`);