@praxisui/settings-panel 9.0.0-beta.22 → 9.0.0-beta.26

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-06-26T01:13:35.730Z",
3
+ "generatedAt": "2026-07-01T18:24:10.710Z",
4
4
  "packageName": "@praxisui/settings-panel",
5
- "packageVersion": "9.0.0-beta.22",
5
+ "packageVersion": "9.0.0-beta.26",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -1851,6 +1851,29 @@ function enrichSurfaceContentInputs(inputs, ref) {
1851
1851
  },
1852
1852
  };
1853
1853
  }
1854
+ function bindSurfaceContentSelectionResults(instance, ref) {
1855
+ const host = instance;
1856
+ const subscriptions = [
1857
+ subscribeToOutput(host?.rowClick, (payload) => ref.emitResult?.(toSurfaceSelectionResult('rowClick', payload))),
1858
+ subscribeToOutput(host?.selectionChange, (payload) => ref.emitResult?.(toSurfaceSelectionResult('selectionChange', payload))),
1859
+ ].filter((unsubscribe) => !!unsubscribe);
1860
+ return () => subscriptions.forEach((unsubscribe) => unsubscribe());
1861
+ }
1862
+ function subscribeToOutput(output, handler) {
1863
+ if (!output || typeof output.subscribe !== 'function') {
1864
+ return null;
1865
+ }
1866
+ const subscription = output.subscribe(handler);
1867
+ return () => subscription.unsubscribe();
1868
+ }
1869
+ function toSurfaceSelectionResult(output, payload) {
1870
+ return {
1871
+ type: output,
1872
+ data: payload,
1873
+ output,
1874
+ payload,
1875
+ };
1876
+ }
1854
1877
  function providePraxisSurfaceDrawerBridge() {
1855
1878
  return [
1856
1879
  providePraxisSettingsPanelI18n(),
@@ -1906,7 +1929,13 @@ function providePraxisSurfaceDrawerBridge() {
1906
1929
  ],
1907
1930
  parent: injector,
1908
1931
  });
1909
- panelRef.instance.attachContent(opts.content.component, contentInjector, contentInputs);
1932
+ const contentRef = panelRef.instance.attachContent(opts.content.component, contentInjector, contentInputs);
1933
+ const unbindSelectionResults = contentRef?.instance
1934
+ ? bindSurfaceContentSelectionResults(contentRef.instance, ref)
1935
+ : null;
1936
+ if (unbindSelectionResults) {
1937
+ ref.closed$.subscribe(() => unbindSelectionResults());
1938
+ }
1910
1939
  panelRef.changeDetectorRef.detectChanges();
1911
1940
  },
1912
1941
  createCloser: (ref) => (reason = 'close') => ref.close({ type: reason }),
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@praxisui/settings-panel",
3
- "version": "9.0.0-beta.22",
3
+ "version": "9.0.0-beta.26",
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.0-beta.22",
11
- "@praxisui/core": "^9.0.0-beta.22",
12
- "@praxisui/dynamic-fields": "^9.0.0-beta.22",
10
+ "@praxisui/ai": "^9.0.0-beta.26",
11
+ "@praxisui/core": "^9.0.0-beta.26",
12
+ "@praxisui/dynamic-fields": "^9.0.0-beta.26",
13
13
  "rxjs": "~7.8.0"
14
14
  },
15
15
  "dependencies": {