@asymmetric-effort/specifyjs 0.2.171 → 0.2.172

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.
@@ -20701,11 +20701,10 @@ function UnityDesktopInner(props) {
20701
20701
  },
20702
20702
  // Gallery demo only — real apps pass their own content as UnityApp children.
20703
20703
  // See docs/components/page/unity-desktop.md for integration patterns.
20704
- getMockContent(
20705
- apps.find((a) => a.id === w.appId)?.label || w.title,
20706
- w.id,
20707
- titleChangeCallbacks.current[w.id]
20708
- )
20704
+ (() => {
20705
+ const app = apps.find((a) => a.id === w.appId);
20706
+ return app?.render ? app.render(w.id) : getMockContent(app?.label || w.title, w.id, titleChangeCallbacks.current[w.id]);
20707
+ })()
20709
20708
  ));
20710
20709
  const desktopContentChildren = [];
20711
20710
  if (children) {
@@ -2,6 +2,7 @@ export interface UnityDesktopApp {
2
2
  id: string;
3
3
  icon: string;
4
4
  label: string;
5
+ render?: (windowId: string) => unknown;
5
6
  }
6
7
  export interface UnityDesktopUser {
7
8
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asymmetric-effort/specifyjs",
3
- "version": "0.2.171",
3
+ "version": "0.2.172",
4
4
  "description": "A declarative TypeScript UI framework built for performance and simplicity",
5
5
  "publishConfig": {
6
6
  "access": "public"