@eric-emg/symphiq-components 1.2.309 → 1.2.310

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.
@@ -54308,12 +54308,18 @@ class SymphiqConnectGaDashboardComponent {
54308
54308
  }
54309
54309
  }
54310
54310
  }, ...(ngDevMode ? [{ debugName: "embeddedScrollEffect" }] : []));
54311
+ this.previousPropertiesLength = 0;
54311
54312
  this.propertiesReceivedEffect = effect(() => {
54312
54313
  const properties = this.gaProperties();
54313
- if (properties && properties.length > 0) {
54314
+ const currentLength = properties?.length ?? 0;
54315
+ console.log('[ConnectGA] propertiesReceivedEffect - currentLength:', currentLength, 'previousLength:', this.previousPropertiesLength, 'internalConnecting:', this.internalConnecting());
54316
+ if (this.internalConnecting() && currentLength > 0 && currentLength !== this.previousPropertiesLength) {
54317
+ console.log('[ConnectGA] resetting internalConnecting and isReconnecting to false');
54314
54318
  this.internalConnecting.set(false);
54319
+ this.isReconnecting.set(false);
54315
54320
  }
54316
- }, ...(ngDevMode ? [{ debugName: "propertiesReceivedEffect" }] : []));
54321
+ this.previousPropertiesLength = currentLength;
54322
+ }, ...(ngDevMode ? [{ debugName: "propertiesReceivedEffect", allowSignalWrites: true }] : [{ allowSignalWrites: true }]));
54317
54323
  this.scrollProgress = computed(() => this.headerScrollService.scrollProgress(), ...(ngDevMode ? [{ debugName: "scrollProgress" }] : []));
54318
54324
  this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
54319
54325
  }
@@ -54377,23 +54383,43 @@ class SymphiqConnectGaDashboardComponent {
54377
54383
  }
54378
54384
  }
54379
54385
  reconnectWithDifferentAccount() {
54386
+ console.log('[ConnectGA] reconnectWithDifferentAccount called');
54380
54387
  this.isReconnecting.set(true);
54388
+ const element = this.scrollElement();
54389
+ console.log('[ConnectGA] scrollElement:', element);
54390
+ if (element) {
54391
+ element.scrollTo({ top: 0, behavior: 'smooth' });
54392
+ console.log('[ConnectGA] scrolled via scrollElement');
54393
+ }
54394
+ else {
54395
+ window.scrollTo({ top: 0, behavior: 'smooth' });
54396
+ console.log('[ConnectGA] scrolled via window');
54397
+ }
54381
54398
  }
54382
54399
  cancelReconnectMode() {
54400
+ console.log('[ConnectGA] cancelReconnectMode called');
54383
54401
  this.isReconnecting.set(false);
54384
54402
  }
54385
54403
  onGoogleButtonClick() {
54404
+ console.log('[ConnectGA] onGoogleButtonClick called');
54405
+ console.log('[ConnectGA] setting internalConnecting to true');
54386
54406
  this.internalConnecting.set(true);
54407
+ console.log('[ConnectGA] internalConnecting value:', this.internalConnecting());
54408
+ console.log('[ConnectGA] isConnecting value:', this.isConnecting());
54387
54409
  this.googleButtonClick.emit();
54388
54410
  }
54389
54411
  useDifferentGoogleAccount() {
54412
+ console.log('[ConnectGA] useDifferentGoogleAccount called');
54390
54413
  this.isReconnecting.set(true);
54391
54414
  const element = this.scrollElement();
54415
+ console.log('[ConnectGA] scrollElement:', element);
54392
54416
  if (element) {
54393
54417
  element.scrollTo({ top: 0, behavior: 'smooth' });
54418
+ console.log('[ConnectGA] scrolled via scrollElement');
54394
54419
  }
54395
54420
  else {
54396
54421
  window.scrollTo({ top: 0, behavior: 'smooth' });
54422
+ console.log('[ConnectGA] scrolled via window');
54397
54423
  }
54398
54424
  }
54399
54425
  getContainerClasses() {