@dxos/plugin-preview 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/dist/lib/chunk-react-surface.mjs +12 -8
- package/dist/lib/chunk-react-surface.mjs.map +1 -1
- package/dist/types/src/components/UnsupportedType/UnsupportedType.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -23
- package/src/components/UnsupportedType/UnsupportedType.tsx +10 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-preview",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Preview plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -93,24 +93,24 @@
|
|
|
93
93
|
"src"
|
|
94
94
|
],
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@dxos/app-framework": "0.
|
|
97
|
-
"@dxos/app-toolkit": "0.
|
|
98
|
-
"@dxos/async": "0.
|
|
99
|
-
"@dxos/echo": "0.
|
|
100
|
-
"@dxos/echo-react": "0.
|
|
101
|
-
"@dxos/effect": "0.
|
|
102
|
-
"@dxos/keys": "0.
|
|
103
|
-
"@dxos/log": "0.
|
|
104
|
-
"@dxos/plugin-client": "0.
|
|
105
|
-
"@dxos/react-ui": "0.
|
|
106
|
-
"@dxos/react-ui-attention": "0.
|
|
107
|
-
"@dxos/react-ui-card": "0.
|
|
108
|
-
"@dxos/react-ui-form": "0.
|
|
109
|
-
"@dxos/react-ui-syntax-highlighter": "0.
|
|
110
|
-
"@dxos/schema": "0.
|
|
111
|
-
"@dxos/types": "0.
|
|
112
|
-
"@dxos/ui-types": "0.
|
|
113
|
-
"@dxos/util": "0.
|
|
96
|
+
"@dxos/app-framework": "0.14.0",
|
|
97
|
+
"@dxos/app-toolkit": "0.14.0",
|
|
98
|
+
"@dxos/async": "0.14.0",
|
|
99
|
+
"@dxos/echo": "0.14.0",
|
|
100
|
+
"@dxos/echo-react": "0.14.0",
|
|
101
|
+
"@dxos/effect": "0.14.0",
|
|
102
|
+
"@dxos/keys": "0.14.0",
|
|
103
|
+
"@dxos/log": "0.14.0",
|
|
104
|
+
"@dxos/plugin-client": "0.14.0",
|
|
105
|
+
"@dxos/react-ui": "0.14.0",
|
|
106
|
+
"@dxos/react-ui-attention": "0.14.0",
|
|
107
|
+
"@dxos/react-ui-card": "0.14.0",
|
|
108
|
+
"@dxos/react-ui-form": "0.14.0",
|
|
109
|
+
"@dxos/react-ui-syntax-highlighter": "0.14.0",
|
|
110
|
+
"@dxos/schema": "0.14.0",
|
|
111
|
+
"@dxos/types": "0.14.0",
|
|
112
|
+
"@dxos/ui-types": "0.14.0",
|
|
113
|
+
"@dxos/util": "0.14.0"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@storybook/react-vite": "^10.6.0",
|
|
@@ -118,10 +118,10 @@
|
|
|
118
118
|
"react": "~19.2.7",
|
|
119
119
|
"react-dom": "~19.2.7",
|
|
120
120
|
"vite": "^8.2.2",
|
|
121
|
-
"@dxos/echo-react": "0.
|
|
122
|
-
"@dxos/plugin-testing": "0.
|
|
123
|
-
"@dxos/random": "0.
|
|
124
|
-
"@dxos/react-ui-mosaic": "0.
|
|
121
|
+
"@dxos/echo-react": "0.14.0",
|
|
122
|
+
"@dxos/plugin-testing": "0.14.0",
|
|
123
|
+
"@dxos/random": "0.14.0",
|
|
124
|
+
"@dxos/react-ui-mosaic": "0.14.0"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
127
|
"effect": "4.0.0",
|
|
@@ -6,6 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
import * as Banner from '@dxos/react-ui/Banner';
|
|
8
8
|
import * as Hooks from '@dxos/react-ui/Hooks';
|
|
9
|
+
import * as Layout from '@dxos/react-ui/Layout';
|
|
9
10
|
import * as Panel from '@dxos/react-ui/Panel';
|
|
10
11
|
|
|
11
12
|
import { meta } from '#meta';
|
|
@@ -26,13 +27,15 @@ export const UnsupportedType = ({ role, typename }: UnsupportedTypeProps) => {
|
|
|
26
27
|
|
|
27
28
|
return (
|
|
28
29
|
<Panel.Root role={role}>
|
|
29
|
-
<Panel.Body
|
|
30
|
-
<
|
|
31
|
-
<Banner.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
<Panel.Body asChild>
|
|
31
|
+
<Layout.Grid center classNames='p-8'>
|
|
32
|
+
<Banner.Root valence='info' icon='ph--puzzle-piece--regular'>
|
|
33
|
+
<Banner.Title>{t('unsupported-type.title')}</Banner.Title>
|
|
34
|
+
<Banner.Body data-testid='previewPlugin.unsupportedType'>
|
|
35
|
+
{t('unsupported-type.message', { typename })}
|
|
36
|
+
</Banner.Body>
|
|
37
|
+
</Banner.Root>
|
|
38
|
+
</Layout.Grid>
|
|
36
39
|
</Panel.Body>
|
|
37
40
|
</Panel.Root>
|
|
38
41
|
);
|