@praxisui/settings-panel 9.0.4-rc.35 → 9.0.4-rc.37

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-08-05T17:32:01.038Z",
3
+ "generatedAt": "2026-08-09T11:18:35.694Z",
4
4
  "packageName": "@praxisui/settings-panel",
5
- "packageVersion": "9.0.4-rc.35",
5
+ "packageVersion": "9.0.4-rc.37",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -1891,7 +1891,7 @@ class SurfaceDrawerComponent {
1891
1891
  return frame.componentRef;
1892
1892
  }
1893
1893
  pushFrame(definition, injector, inputs) {
1894
- this.captureActiveFrameState();
1894
+ this.captureActiveFrameState(definition.returnFocusTo);
1895
1895
  this.detachActiveView();
1896
1896
  const frame = this.createFrame(definition, injector, inputs);
1897
1897
  this.frames.push(frame);
@@ -1964,11 +1964,15 @@ class SurfaceDrawerComponent {
1964
1964
  canLeave: definition.canLeave ?? null,
1965
1965
  };
1966
1966
  }
1967
- captureActiveFrameState() {
1967
+ captureActiveFrameState(returnFocusTo) {
1968
1968
  const active = this.frames[this.frames.length - 1];
1969
1969
  if (!active)
1970
1970
  return;
1971
1971
  active.scrollTop = this.body?.nativeElement.scrollTop ?? 0;
1972
+ if (returnFocusTo?.isConnected) {
1973
+ active.restoreFocusTo = returnFocusTo;
1974
+ return;
1975
+ }
1972
1976
  const focused = typeof document !== 'undefined'
1973
1977
  ? document.activeElement
1974
1978
  : null;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@praxisui/settings-panel",
3
- "version": "9.0.4-rc.35",
3
+ "version": "9.0.4-rc.37",
4
4
  "description": "Settings panel for Praxis UI libraries: open editors for configuration at runtime and persist settings.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
8
  "@angular/cdk": "^21.0.0",
9
9
  "@angular/material": "^21.0.0",
10
- "@praxisui/ai": "^9.0.4-rc.35",
11
- "@praxisui/core": "^9.0.4-rc.35",
12
- "@praxisui/dynamic-fields": "^9.0.4-rc.35",
10
+ "@praxisui/ai": "^9.0.4-rc.37",
11
+ "@praxisui/core": "^9.0.4-rc.37",
12
+ "@praxisui/dynamic-fields": "^9.0.4-rc.37",
13
13
  "rxjs": "~7.8.0"
14
14
  },
15
15
  "dependencies": {