@ecopages/radiant-ui 0.1.0-beta.6 → 0.1.0-beta.7

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.
@@ -115,13 +115,20 @@ export declare class RuiSidebar extends RadiantElement<RuiSidebarBindings> {
115
115
  private dragStartCoord;
116
116
  private dragStartSize;
117
117
  private navigationCleanups;
118
+ /** @remarks Remains `false` until a projected active link has been scrolled. */
119
+ private didScrollActiveOnMount;
120
+ connectedCallback(): void;
118
121
  /**
119
- * @remarks Uncontrolled open state is initialized after JSX flushes deferred
120
- * property bindings, so `defaultOpen` is sampled once rather than becoming
121
- * live state.
122
+ * @remarks Light-DOM hydrate/update can recreate projected menu links after the
123
+ * connect microtask sync. Re-apply active classes once the render commits so
124
+ * imperative highlights survive slot projection. `requestUpdate()` commits through
125
+ * the scheduler (not `update()`), so that path must re-sync too.
122
126
  */
123
- connectedCallback(): void;
127
+ hydrate(): void;
128
+ update(): void;
129
+ requestUpdate(): void;
124
130
  disconnectedCallback(): void;
131
+ private syncActiveLinksAfterRender;
125
132
  /**
126
133
  * Keep host `data-*` in sync for `:has(> rui-sidebar[...])` and public API.
127
134
  * Visual styles target the inner `.rui-sidebar` root (host is `display: contents`).
@@ -137,7 +144,7 @@ export declare class RuiSidebar extends RadiantElement<RuiSidebarBindings> {
137
144
  onMobileBreakpointUpdated(): void;
138
145
  onMatchSettingsUpdated(): void;
139
146
  /** Re-applies active classes on descendant menu links from the current URL. */
140
- syncActiveLinks(scrollActiveIntoView?: boolean): void;
147
+ syncActiveLinks(scrollActiveIntoView?: boolean): boolean;
141
148
  private isLinkActive;
142
149
  private attachNavigationListeners;
143
150
  private detachNavigationListeners;