@eric-emg/symphiq-components 1.2.109 → 1.2.110

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.
@@ -24147,28 +24147,76 @@ class FloatingTocComponent {
24147
24147
  return this.expandedSections().has(sectionId);
24148
24148
  }
24149
24149
  scrollToSection(sectionId) {
24150
+ console.log('[FloatingTOC] scrollToSection called', {
24151
+ sectionId,
24152
+ embedded: this.embedded,
24153
+ hasScrollElement: !!this.scrollElement,
24154
+ scrollElementTag: this.scrollElement?.tagName,
24155
+ hasContainerElement: !!this.containerElement,
24156
+ containerElementTag: this.containerElement?.tagName,
24157
+ parentHeaderOffset: this.parentHeaderOffset
24158
+ });
24150
24159
  const element = document.getElementById(`section-${sectionId}`);
24160
+ console.log('[FloatingTOC] Target element', {
24161
+ elementId: `section-${sectionId}`,
24162
+ found: !!element,
24163
+ elementRect: element?.getBoundingClientRect(),
24164
+ elementOffsetTop: element?.offsetTop,
24165
+ elementOffsetParent: element?.offsetParent?.tagName
24166
+ });
24151
24167
  if (element) {
24168
+ console.log('[FloatingTOC] Calling scrollIntoView on element');
24152
24169
  element.scrollIntoView({ behavior: 'smooth', block: 'start' });
24153
24170
  }
24171
+ else {
24172
+ console.warn('[FloatingTOC] Element not found for section:', sectionId);
24173
+ }
24154
24174
  if (!this.isPinned()) {
24155
24175
  this.isHovered.set(false);
24156
24176
  }
24157
24177
  }
24158
24178
  scrollToSubsection(subsectionId) {
24179
+ console.log('[FloatingTOC] scrollToSubsection called', {
24180
+ subsectionId,
24181
+ embedded: this.embedded,
24182
+ hasScrollElement: !!this.scrollElement,
24183
+ scrollElementTag: this.scrollElement?.tagName,
24184
+ hasContainerElement: !!this.containerElement,
24185
+ containerElementTag: this.containerElement?.tagName,
24186
+ parentHeaderOffset: this.parentHeaderOffset
24187
+ });
24159
24188
  const element = document.getElementById(`subsection-${subsectionId}`);
24189
+ console.log('[FloatingTOC] Target element', {
24190
+ elementId: `subsection-${subsectionId}`,
24191
+ found: !!element,
24192
+ elementRect: element?.getBoundingClientRect(),
24193
+ elementOffsetTop: element?.offsetTop,
24194
+ elementOffsetParent: element?.offsetParent?.tagName
24195
+ });
24160
24196
  if (element) {
24197
+ console.log('[FloatingTOC] Calling scrollIntoView on element');
24161
24198
  element.scrollIntoView({ behavior: 'smooth', block: 'start' });
24162
24199
  }
24200
+ else {
24201
+ console.warn('[FloatingTOC] Element not found for subsection:', subsectionId);
24202
+ }
24163
24203
  if (!this.isPinned()) {
24164
24204
  this.isHovered.set(false);
24165
24205
  }
24166
24206
  }
24167
24207
  scrollToTop() {
24208
+ console.log('[FloatingTOC] scrollToTop called', {
24209
+ embedded: this.embedded,
24210
+ hasScrollElement: !!this.scrollElement,
24211
+ scrollElementTag: this.scrollElement?.tagName,
24212
+ scrollElementScrollTop: this.scrollElement?.scrollTop
24213
+ });
24168
24214
  if (this.embedded && this.scrollElement) {
24215
+ console.log('[FloatingTOC] Scrolling scrollElement to top');
24169
24216
  this.scrollElement.scrollTo({ top: 0, behavior: 'smooth' });
24170
24217
  }
24171
24218
  else {
24219
+ console.log('[FloatingTOC] Scrolling window to top');
24172
24220
  window.scrollTo({ top: 0, behavior: 'smooth' });
24173
24221
  }
24174
24222
  if (!this.isPinned()) {