@dxos/react-ui-markdown 0.8.4-main.d05539e30a → 0.8.4-main.d9fc60f731
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/browser/index.mjs +3 -4
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/MarkdownStream/stream.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -35
- package/src/MarkdownStream/MarkdownStream.tsx +1 -1
- package/src/MarkdownStream/stream.ts +1 -1
- package/src/MarkdownView/MarkdownView.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-markdown",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.d9fc60f731",
|
|
4
4
|
"description": "Markdown components.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"source": "./src/index.ts",
|
|
17
17
|
"types": "./dist/types/src/index.d.ts",
|
|
18
|
-
"
|
|
18
|
+
"default": "./dist/lib/browser/index.mjs"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -24,33 +24,33 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@codemirror/autocomplete": "^6.
|
|
28
|
-
"@codemirror/language": "^6.
|
|
29
|
-
"@codemirror/state": "^6.
|
|
30
|
-
"@codemirror/view": "^6.
|
|
31
|
-
"@lezer/common": "^1.
|
|
32
|
-
"@lezer/highlight": "^1.2.
|
|
33
|
-
"@lezer/markdown": "^1.3
|
|
27
|
+
"@codemirror/autocomplete": "^6.20.2",
|
|
28
|
+
"@codemirror/language": "^6.12.3",
|
|
29
|
+
"@codemirror/state": "^6.6.0",
|
|
30
|
+
"@codemirror/view": "^6.43.0",
|
|
31
|
+
"@lezer/common": "^1.5.2",
|
|
32
|
+
"@lezer/highlight": "^1.2.3",
|
|
33
|
+
"@lezer/markdown": "^1.6.3",
|
|
34
34
|
"@lezer/xml": "^1.0.6",
|
|
35
35
|
"@radix-ui/react-compose-refs": "1.1.1",
|
|
36
36
|
"@radix-ui/react-context": "1.1.1",
|
|
37
|
-
"effect": "3.
|
|
37
|
+
"effect": "3.21.2",
|
|
38
38
|
"json5": "^2.2.3",
|
|
39
39
|
"react-markdown": "^10.1.0",
|
|
40
40
|
"react-resize-detector": "^11.0.1",
|
|
41
41
|
"remark-gfm": "^4.0.1",
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/react-ui
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/ui": "0.8.4-main.
|
|
50
|
-
"@dxos/ui-
|
|
51
|
-
"@dxos/ui-
|
|
52
|
-
"@dxos/util": "0.8.4-main.
|
|
53
|
-
"@dxos/
|
|
42
|
+
"@dxos/effect": "0.8.4-main.d9fc60f731",
|
|
43
|
+
"@dxos/echo": "0.8.4-main.d9fc60f731",
|
|
44
|
+
"@dxos/async": "0.8.4-main.d9fc60f731",
|
|
45
|
+
"@dxos/invariant": "0.8.4-main.d9fc60f731",
|
|
46
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
47
|
+
"@dxos/ui": "0.8.4-main.d9fc60f731",
|
|
48
|
+
"@dxos/log": "0.8.4-main.d9fc60f731",
|
|
49
|
+
"@dxos/react-ui-editor": "0.8.4-main.d9fc60f731",
|
|
50
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.d9fc60f731",
|
|
51
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731",
|
|
52
|
+
"@dxos/util": "0.8.4-main.d9fc60f731",
|
|
53
|
+
"@dxos/ui-editor": "0.8.4-main.d9fc60f731"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@effect/vitest": "0.29.0",
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
"@types/react-dom": "~19.2.3",
|
|
59
59
|
"react": "~19.2.3",
|
|
60
60
|
"react-dom": "~19.2.3",
|
|
61
|
-
"vite": "^8.0.
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/react-client": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
61
|
+
"vite": "^8.0.14",
|
|
62
|
+
"@dxos/lit-ui": "0.8.4-main.d9fc60f731",
|
|
63
|
+
"@dxos/echo": "0.8.4-main.d9fc60f731",
|
|
64
|
+
"@dxos/keys": "0.8.4-main.d9fc60f731",
|
|
65
|
+
"@dxos/random": "0.8.4-main.d9fc60f731",
|
|
66
|
+
"@dxos/react-client": "0.8.4-main.d9fc60f731",
|
|
67
|
+
"@dxos/storybook-utils": "0.8.4-main.d9fc60f731",
|
|
68
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
69
|
+
"@dxos/schema": "0.8.4-main.d9fc60f731",
|
|
70
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"effect": "3.
|
|
73
|
+
"effect": "3.21.2",
|
|
74
74
|
"react": "~19.2.3",
|
|
75
75
|
"react-dom": "~19.2.3",
|
|
76
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
77
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
76
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
77
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
@@ -282,7 +282,7 @@ const useMarkdownStreamTextEditor = (
|
|
|
282
282
|
xmlBlockDecoration({
|
|
283
283
|
tag: 'prompt',
|
|
284
284
|
lineClass: 'cm-prompt-line my-8',
|
|
285
|
-
contentClass: 'cm-prompt-bubble dx-panel px-2 py-1.5 rounded-sm [&_*]:text-inherit!',
|
|
285
|
+
contentClass: 'cm-prompt-bubble dx-panel px-2 py-1.5 box-decoration-clone rounded-sm [&_*]:text-inherit!',
|
|
286
286
|
hideTags: true,
|
|
287
287
|
}),
|
|
288
288
|
xmlTags({ registry, setWidgets, bookmarks: ['prompt'] }),
|
|
@@ -8,7 +8,7 @@ import * as Stream from 'effect/Stream';
|
|
|
8
8
|
import { Obj } from '@dxos/echo';
|
|
9
9
|
|
|
10
10
|
export const renderObjectLink = (obj: Obj.Unknown, block?: boolean) =>
|
|
11
|
-
`${block ? '!' : ''}[${Obj.getLabel(obj)}](${Obj.
|
|
11
|
+
`${block ? '!' : ''}[${Obj.getLabel(obj)}](${Obj.getURI(obj)})`;
|
|
12
12
|
|
|
13
13
|
export type StreamerOptions = {
|
|
14
14
|
/**
|
|
@@ -77,7 +77,7 @@ const defaultComponents: ReactMarkdownOptions['components'] = {
|
|
|
77
77
|
if (!src) {
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
|
-
return <MediaPlayer src={src} alt={alt}
|
|
80
|
+
return <MediaPlayer src={src} alt={alt} classNames='w-full' />;
|
|
81
81
|
},
|
|
82
82
|
ol: ({ children, ...props }) => (
|
|
83
83
|
<ol className='pt-1 pb-1 ps-6 leading-tight list-decimal' {...props}>
|