@dxos/plugin-stack 0.13.0 → 0.14.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-stack",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "DXOS Surface plugin for Stack entities",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -106,16 +106,16 @@
106
106
  "dependencies": {
107
107
  "@effect/atom-react": "4.0.0",
108
108
  "effect": "4.0.0",
109
- "@dxos/app-framework": "0.13.0",
110
- "@dxos/app-toolkit": "0.13.0",
111
- "@dxos/plugin-space": "0.13.0",
112
- "@dxos/react-ui-attention": "0.13.0",
113
- "@dxos/keys": "0.13.0",
114
- "@dxos/react-ui-dnd": "0.13.0",
115
- "@dxos/react-ui-menu": "0.13.0",
116
- "@dxos/react-ui-mosaic": "0.13.0",
117
- "@dxos/util": "0.13.0",
118
- "@dxos/echo": "0.13.0"
109
+ "@dxos/app-framework": "0.14.0",
110
+ "@dxos/app-toolkit": "0.14.0",
111
+ "@dxos/keys": "0.14.0",
112
+ "@dxos/echo": "0.14.0",
113
+ "@dxos/plugin-space": "0.14.0",
114
+ "@dxos/react-ui-attention": "0.14.0",
115
+ "@dxos/react-ui-dnd": "0.14.0",
116
+ "@dxos/react-ui-menu": "0.14.0",
117
+ "@dxos/react-ui-mosaic": "0.14.0",
118
+ "@dxos/util": "0.14.0"
119
119
  },
120
120
  "devDependencies": {
121
121
  "@storybook/react-vite": "^10.6.0",
@@ -124,24 +124,24 @@
124
124
  "react": "~19.2.7",
125
125
  "react-dom": "~19.2.7",
126
126
  "vite": "^8.2.2",
127
- "@dxos/echo-react": "0.13.0",
128
- "@dxos/plugin-illustrator": "0.13.0",
129
- "@dxos/plugin-markdown": "0.13.0",
130
- "@dxos/plugin-testing": "0.13.0",
131
- "@dxos/plugin-tldraw": "0.13.0",
132
- "@dxos/react-client": "0.13.0",
133
- "@dxos/random": "0.13.0",
134
- "@dxos/plugin-client": "0.13.0",
135
- "@dxos/react-ui": "0.13.0",
136
- "@dxos/ui-theme": "0.13.0"
127
+ "@dxos/echo-react": "0.14.0",
128
+ "@dxos/plugin-client": "0.14.0",
129
+ "@dxos/plugin-markdown": "0.14.0",
130
+ "@dxos/plugin-testing": "0.14.0",
131
+ "@dxos/plugin-tldraw": "0.14.0",
132
+ "@dxos/react-client": "0.14.0",
133
+ "@dxos/react-ui": "0.14.0",
134
+ "@dxos/ui-theme": "0.14.0",
135
+ "@dxos/random": "0.14.0",
136
+ "@dxos/plugin-illustrator": "0.14.0"
137
137
  },
138
138
  "peerDependencies": {
139
139
  "@effect/atom-react": "4.0.0",
140
140
  "effect": "4.0.0",
141
141
  "react": "~19.2.7",
142
142
  "react-dom": "~19.2.7",
143
- "@dxos/react-ui": "^0.13.0",
144
- "@dxos/ui-theme": "^0.13.0"
143
+ "@dxos/react-ui": "^0.14.0",
144
+ "@dxos/ui-theme": "^0.14.0"
145
145
  },
146
146
  "publishConfig": {
147
147
  "access": "public"
@@ -22,6 +22,7 @@ import { type DndContainerHandler } from '@dxos/react-ui-dnd';
22
22
  import { Mosaic, type MosaicTileProps } from '@dxos/react-ui-mosaic';
23
23
  import * as Hooks from '@dxos/react-ui/Hooks';
24
24
  import * as Icon from '@dxos/react-ui/Icon';
25
+ import * as Layout from '@dxos/react-ui/Layout';
25
26
  import * as Menu from '@dxos/react-ui/Menu';
26
27
  import * as ScrollArea from '@dxos/react-ui/ScrollArea';
27
28
  import type * as Util from '@dxos/react-ui/Util';
@@ -201,7 +202,7 @@ const StackSection = ({ data, ...tileProps }: StackSectionProps) => {
201
202
  const title = Obj.getLabel(object, { fallback: 'typename' }) ?? t('untitled-section.title');
202
203
 
203
204
  const rail = (
204
- <div className='grid grid-rows-[min-content_1fr]'>
205
+ <Layout.Grid rows={['min', 'fill']}>
205
206
  <div className='p-1 dx-toolbar-surface'>
206
207
  <Menu.Root open={optionsMenuOpen} onOpenChange={({ open }) => setOptionsMenuOpen(open)}>
207
208
  <Menu.Trigger asChild>
@@ -266,7 +267,7 @@ const StackSection = ({ data, ...tileProps }: StackSectionProps) => {
266
267
  <DragHandleGlyph />
267
268
  </Mosaic.DragHandle>
268
269
  </div>
269
- </div>
270
+ </Layout.Grid>
270
271
  );
271
272
 
272
273
  return (
@@ -276,14 +277,16 @@ const StackSection = ({ data, ...tileProps }: StackSectionProps) => {
276
277
  classNames='grid grid-cols-[var(--dx-rail-action)_1fr] dx-attention-surface border border-separator-subtle'
277
278
  >
278
279
  <div className='border-e border-separator-subtle'>
279
- <div className='sticky top-0 flex flex-col items-center'>{rail}</div>
280
+ <Layout.Flex column align='center' classNames='sticky top-0'>
281
+ {rail}
282
+ </Layout.Flex>
280
283
  </div>
281
284
  <div {...attentionAttrs} className='min-w-0'>
282
285
  <span className='sr-only'>{title}</span>
283
286
  {isCollapsed ? (
284
- <div className='h-(--dx-toolbar-size) flex p-1'>
287
+ <Layout.Flex classNames='h-(--dx-toolbar-size) p-1'>
285
288
  <h2 className='flex items-center font-medium'>{title}</h2>
286
- </div>
289
+ </Layout.Flex>
287
290
  ) : (
288
291
  <Surface.Surface type={AppSurface.Section} data={surfaceData} limit={1} />
289
292
  )}