@dxos/plugin-file 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-file",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Inline file (image / PDF) storage plugin for DXOS",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -159,27 +159,27 @@
159
159
  "effect": "4.0.0",
160
160
  "pdfjs-dist": "^6.2.108",
161
161
  "react-dropzone": "^14.2.3",
162
- "@dxos/app-framework": "0.13.0",
163
- "@dxos/app-toolkit": "0.13.0",
164
- "@dxos/blob": "0.13.0",
165
- "@dxos/compute": "0.13.0",
166
- "@dxos/echo": "0.13.0",
167
- "@dxos/echo-react": "0.13.0",
168
- "@dxos/effect": "0.13.0",
169
- "@dxos/errors": "0.13.0",
170
- "@dxos/keys": "0.13.0",
171
- "@dxos/log": "0.13.0",
172
- "@dxos/plugin-client": "0.13.0",
173
- "@dxos/plugin-markdown": "0.13.0",
174
- "@dxos/plugin-space": "0.13.0",
175
- "@dxos/react-client": "0.13.0",
176
- "@dxos/react-focus": "0.13.0",
177
- "@dxos/react-ui": "0.13.0",
178
- "@dxos/react-ui-attention": "0.13.0",
179
- "@dxos/react-ui-form": "0.13.0",
180
- "@dxos/types": "0.13.0",
181
- "@dxos/ui-editor": "0.13.0",
182
- "@dxos/util": "0.13.0"
162
+ "@dxos/app-framework": "0.14.0",
163
+ "@dxos/app-toolkit": "0.14.0",
164
+ "@dxos/blob": "0.14.0",
165
+ "@dxos/compute": "0.14.0",
166
+ "@dxos/echo": "0.14.0",
167
+ "@dxos/echo-react": "0.14.0",
168
+ "@dxos/effect": "0.14.0",
169
+ "@dxos/errors": "0.14.0",
170
+ "@dxos/keys": "0.14.0",
171
+ "@dxos/log": "0.14.0",
172
+ "@dxos/plugin-client": "0.14.0",
173
+ "@dxos/plugin-markdown": "0.14.0",
174
+ "@dxos/plugin-space": "0.14.0",
175
+ "@dxos/react-client": "0.14.0",
176
+ "@dxos/react-focus": "0.14.0",
177
+ "@dxos/react-ui": "0.14.0",
178
+ "@dxos/react-ui-attention": "0.14.0",
179
+ "@dxos/react-ui-form": "0.14.0",
180
+ "@dxos/types": "0.14.0",
181
+ "@dxos/ui-editor": "0.14.0",
182
+ "@dxos/util": "0.14.0"
183
183
  },
184
184
  "devDependencies": {
185
185
  "@storybook/react-vite": "^10.6.0",
@@ -189,15 +189,15 @@
189
189
  "react": "~19.2.7",
190
190
  "react-dom": "~19.2.7",
191
191
  "vite": "^8.2.2",
192
- "@dxos/plugin-testing": "0.13.0",
193
- "@dxos/ui-theme": "0.13.0"
192
+ "@dxos/plugin-testing": "0.14.0",
193
+ "@dxos/ui-theme": "0.14.0"
194
194
  },
195
195
  "peerDependencies": {
196
196
  "effect": "4.0.0",
197
197
  "react": "~19.2.7",
198
198
  "react-dom": "~19.2.7",
199
- "@dxos/react-ui": "^0.13.0",
200
- "@dxos/ui-theme": "^0.13.0"
199
+ "@dxos/react-ui": "^0.14.0",
200
+ "@dxos/ui-theme": "^0.14.0"
201
201
  },
202
202
  "publishConfig": {
203
203
  "access": "public"
@@ -11,6 +11,7 @@ import * as Field from '@dxos/react-ui/Field';
11
11
  import * as Hooks from '@dxos/react-ui/Hooks';
12
12
  import * as Icon from '@dxos/react-ui/Icon';
13
13
  import * as Input from '@dxos/react-ui/Input';
14
+ import * as Layout from '@dxos/react-ui/Layout';
14
15
  import * as Media from '@dxos/react-ui/Media';
15
16
  import * as Toolbar from '@dxos/react-ui/Toolbar';
16
17
  import * as Util from '@dxos/react-ui/Util';
@@ -280,14 +281,14 @@ const PreviewContent = Util.composable<HTMLDivElement>((props, forwardedRef) =>
280
281
 
281
282
  return (
282
283
  <div {...Util.composableProps(props, { classNames: 'grid place-items-center dx-fill p-8' })} ref={forwardedRef}>
283
- <div className='flex flex-col items-center gap-2 text-center'>
284
+ <Layout.Flex column align='center' gap='sm' classNames='text-center'>
284
285
  <Icon.Icon icon='ph--file--regular' size='xl' tone='subtle' />
285
286
  {name && <span className='text-sm'>{name}</span>}
286
287
  <span className='text-xs text-fg-subtle'>
287
288
  {size === undefined ? type : t('file-details.label', { type, size: formatBytes(size) })}
288
289
  </span>
289
290
  <span className='text-xs text-fg-subtle'>{t('no-preview.message')}</span>
290
- </div>
291
+ </Layout.Flex>
291
292
  </div>
292
293
  );
293
294
  });
@@ -14,6 +14,7 @@ import * as Button from '@dxos/react-ui/Button';
14
14
  import * as Field from '@dxos/react-ui/Field';
15
15
  import * as Hooks from '@dxos/react-ui/Hooks';
16
16
  import * as Input from '@dxos/react-ui/Input';
17
+ import * as Layout from '@dxos/react-ui/Layout';
17
18
  import * as SystemButton from '@dxos/react-ui/SystemButton';
18
19
  import { File } from '@dxos/types';
19
20
 
@@ -77,16 +78,16 @@ export const FileProperties = ({ subject: file }: FilePropertiesProps) => {
77
78
  {reference && (
78
79
  <Field.Root>
79
80
  <Field.Label>{t('properties.reference.label')}</Field.Label>
80
- <div className='flex w-full gap-1'>
81
+ <Layout.Flex gap='xs' classNames='w-full'>
81
82
  <Input.Root readOnly value={reference} classNames='grow' />
82
83
  <SystemButton.Clipboard iconOnly value={reference} label={t('properties.reference.copy.label')} />
83
- </div>
84
+ </Layout.Flex>
84
85
  </Field.Root>
85
86
  )}
86
87
  {url && (
87
88
  <Field.Root>
88
89
  <Field.Label>{t('properties.url.label')}</Field.Label>
89
- <div className='flex w-full gap-1'>
90
+ <Layout.Flex gap='xs' classNames='w-full'>
90
91
  <Input.Root readOnly value={url} classNames='grow' />
91
92
  <SystemButton.Clipboard iconOnly value={url} label={t('properties.url.copy.label')} />
92
93
  <Button.Root
@@ -96,7 +97,7 @@ export const FileProperties = ({ subject: file }: FilePropertiesProps) => {
96
97
  disabled={pending}
97
98
  onClick={() => void resolve()}
98
99
  />
99
- </div>
100
+ </Layout.Flex>
100
101
  <Field.HelperText>{t('properties.url.description')}</Field.HelperText>
101
102
  </Field.Root>
102
103
  )}