@stll/workspace-ui 0.8.3 → 0.9.1

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.
@@ -77,7 +77,14 @@ type WorkspaceFrameProps = {
77
77
  composition: "described";
78
78
  navigation: WorkspaceFrameNavigation;
79
79
  topBar: WorkspaceFrameTopBar;
80
- endRail: WorkspaceFrameEndRail;
80
+ /**
81
+ * The permanent inline-end rail. Omitting it alongside `inspector`
82
+ * mounts no end dock at all: no rail, none of its 48px inline-end
83
+ * reservation, and the content area extends to the frame's edge. With
84
+ * an `inspector` but no rail, the dock keeps the full pane width and
85
+ * has no rail to collapse to.
86
+ */
87
+ endRail?: WorkspaceFrameEndRail;
81
88
  inspector?: WorkspaceFrameInspector;
82
89
  } | {
83
90
  composition: "host-responsive";
@@ -93,7 +100,9 @@ type WorkspaceFrameTopBar = {
93
100
  /**
94
101
  * Stella's complete workspace frame. Hosts provide route descriptors and
95
102
  * actions; this component owns the shell, application rail, end rail, and
96
- * desktop inspector footprint.
103
+ * desktop inspector footprint. A `described` host with nothing for the
104
+ * inline-end edge omits both `endRail` and `inspector`, and the frame mounts
105
+ * no end dock at all.
97
106
  *
98
107
  * The two compositions mount different navigation primitives. `described`
99
108
  * renders `navigation.items` through the narrower `ApplicationRail` from
@@ -16,7 +16,9 @@ import { WorkspaceEndRail, WorkspaceShell } from "@stll/ui/workspace-shell";
16
16
  /**
17
17
  * Stella's complete workspace frame. Hosts provide route descriptors and
18
18
  * actions; this component owns the shell, application rail, end rail, and
19
- * desktop inspector footprint.
19
+ * desktop inspector footprint. A `described` host with nothing for the
20
+ * inline-end edge omits both `endRail` and `inspector`, and the frame mounts
21
+ * no end dock at all.
20
22
  *
21
23
  * The two compositions mount different navigation primitives. `described`
22
24
  * renders `navigation.items` through the narrower `ApplicationRail` from
@@ -47,15 +49,16 @@ const DescribedWorkspaceFrame = ({ children, endRail, inspector, navigation, top
47
49
  navigation,
48
50
  sidebar: navigation.sidebar
49
51
  });
52
+ const rail = endRail === void 0 ? void 0 : /* @__PURE__ */ jsx(WorkspaceEndRail, { ...endRail });
50
53
  const endDock = inspector && inspectorPresentation === "desktop" ? /* @__PURE__ */ jsx(InspectorDock, {
51
- rail: /* @__PURE__ */ jsx(WorkspaceEndRail, { ...endRail }),
54
+ rail,
52
55
  resizeHandleLabel: inspector.resizeHandleLabel,
53
56
  resizeHandleProps: inspector.resizeHandleProps,
54
57
  showPaneContent: inspector.showPaneContent,
55
58
  width: inspector.width,
56
59
  onResetWidth: inspector.onResetWidth,
57
60
  children: inspector.pane
58
- }) : /* @__PURE__ */ jsx(WorkspaceEndRail, { ...endRail });
61
+ }) : rail;
59
62
  const shell = /* @__PURE__ */ jsx(WorkspaceShell, {
60
63
  endDock,
61
64
  navigation: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/workspace-ui",
3
- "version": "0.8.3",
3
+ "version": "0.9.1",
4
4
  "description": "Reusable workspace presentation components and view helpers for Stella.",
5
5
  "keywords": [
6
6
  "calculations",
@@ -111,7 +111,7 @@
111
111
  "typecheck": "bun ../../packages/scripts/src/tsc-native.ts --noEmit",
112
112
  "lint": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --report-unused-disable-directives-severity=error --deny-warnings --type-aware packages/workspace-ui",
113
113
  "lint:fix": "cd ../.. && bun --bun oxlint -c oxlint.config.ts --type-aware --fix packages/workspace-ui",
114
- "format": "oxfmt .",
114
+ "format": "bun ../../scripts/run-oxfmt.ts .",
115
115
  "prepack": "bun run build",
116
116
  "test:property": "bun test --preload @stll/property-testing/preload $(grep -rlF 'fc.assert' src --include='*.test.ts')"
117
117
  },
@@ -119,21 +119,21 @@
119
119
  "@stll/calculations": "^0.1.0",
120
120
  "@stll/conditions": "^0.3.0",
121
121
  "@stll/money": "^0.1.0",
122
- "@stll/ui": "^0.23.0",
122
+ "@stll/ui": "^0.25.0",
123
123
  "better-result": "3.0.0",
124
124
  "lucide-react": "1.30.0",
125
125
  "use-intl": "4.13.5"
126
126
  },
127
127
  "devDependencies": {
128
- "@atlaskit/pragmatic-drag-and-drop": "^3.0.0",
129
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.1.0",
128
+ "@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
129
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.2.0",
130
130
  "@base-ui/react": "1.7.0",
131
131
  "@stll/property-testing": "0.0.0",
132
132
  "@stll/typescript-config": "0.0.0",
133
133
  "@tanstack/react-table": "9.2.4",
134
134
  "@types/react": "^19.2.17",
135
135
  "@types/react-dom": "^19.2.3",
136
- "bun-types": "1.4.0",
136
+ "bun-types": "1.4.1",
137
137
  "fast-check": "^4.9.0",
138
138
  "react": "^19.2.8",
139
139
  "react-dom": "^19.2.8",
@@ -141,8 +141,8 @@
141
141
  "tsdown": "0.22.14"
142
142
  },
143
143
  "peerDependencies": {
144
- "@atlaskit/pragmatic-drag-and-drop": "^3.0.0",
145
- "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.1.0",
144
+ "@atlaskit/pragmatic-drag-and-drop": "^3.1.0",
145
+ "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.2.0",
146
146
  "@base-ui/react": "^1.7.0",
147
147
  "@tanstack/react-table": "^9.1.2",
148
148
  "react": ">=19",