@dxos/plugin-presenter 0.8.4-main.dedc0f3 → 0.8.4-main.dfabb4ec29
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/neutral/CollectionPresenterContainer-JMX6INMS.mjs +46 -0
- package/dist/lib/neutral/CollectionPresenterContainer-JMX6INMS.mjs.map +7 -0
- package/dist/lib/neutral/DocumentPresenterContainer-KCDZ2O2C.mjs +24 -0
- package/dist/lib/neutral/DocumentPresenterContainer-KCDZ2O2C.mjs.map +7 -0
- package/dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs +18 -0
- package/dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs.map +7 -0
- package/dist/lib/neutral/PresenterPlugin.mjs +23 -0
- package/dist/lib/neutral/PresenterPlugin.mjs.map +7 -0
- package/dist/lib/neutral/PresenterPlugin.node.mjs +16 -0
- package/dist/lib/neutral/PresenterPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/PresenterSettings-2G4XD4QY.mjs +25 -0
- package/dist/lib/neutral/PresenterSettings-2G4XD4QY.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-LOVUQ6U5.mjs +98 -0
- package/dist/lib/neutral/app-graph-builder-LOVUQ6U5.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +13 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-4XSSDLGN.mjs +18 -0
- package/dist/lib/neutral/chunk-4XSSDLGN.mjs.map +7 -0
- package/dist/lib/neutral/chunk-DCPA267T.mjs +68 -0
- package/dist/lib/neutral/chunk-DCPA267T.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-V323QBC3.mjs +41 -0
- package/dist/lib/neutral/chunk-V323QBC3.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +502 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +13 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +18 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +12 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-ATYTHPAA.mjs +55 -0
- package/dist/lib/neutral/react-surface-ATYTHPAA.mjs.map +7 -0
- package/dist/lib/neutral/settings-R6LRDAAK.mjs +28 -0
- package/dist/lib/neutral/settings-R6LRDAAK.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +19 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/PresenterPlugin.d.ts +3 -1
- package/dist/types/src/PresenterPlugin.d.ts.map +1 -1
- package/dist/types/src/PresenterPlugin.node.d.ts +4 -0
- package/dist/types/src/PresenterPlugin.node.d.ts.map +1 -0
- package/dist/types/src/PresenterPlugin.test.d.ts +2 -0
- package/dist/types/src/PresenterPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +4 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +5 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Panel.d.ts +8 -0
- package/dist/types/src/components/Markdown/Panel.d.ts.map +1 -0
- package/dist/types/src/components/Markdown/{Container.stories.d.ts → Panel.stories.d.ts} +1 -2
- package/dist/types/src/components/Markdown/Panel.stories.d.ts.map +1 -0
- package/dist/types/src/components/Markdown/Slide.d.ts +1 -1
- package/dist/types/src/components/Markdown/Slide.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Slide.stories.d.ts +1 -1
- package/dist/types/src/components/Markdown/Slide.stories.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/index.d.ts +1 -1
- package/dist/types/src/components/Markdown/index.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/theme.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/Layout.d.ts +5 -5
- package/dist/types/src/components/Presenter/Layout.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/Pager.d.ts +1 -1
- package/dist/types/src/components/Presenter/Pager.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/Pager.stories.d.ts +0 -1
- package/dist/types/src/components/Presenter/Pager.stories.d.ts.map +1 -1
- package/dist/types/src/components/PresenterSettings/PresenterSettings.d.ts +6 -0
- package/dist/types/src/components/PresenterSettings/PresenterSettings.d.ts.map +1 -0
- package/dist/types/src/components/PresenterSettings/PresenterSettings.stories.d.ts +23 -0
- package/dist/types/src/components/PresenterSettings/PresenterSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/PresenterSettings/index.d.ts +2 -0
- package/dist/types/src/components/PresenterSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts +5 -4
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts.map +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts +8 -7
- package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +5 -25
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/CollectionPresenterContainer/CollectionPresenterContainer.d.ts +6 -0
- package/dist/types/src/containers/CollectionPresenterContainer/CollectionPresenterContainer.d.ts.map +1 -0
- package/dist/types/src/containers/CollectionPresenterContainer/index.d.ts +2 -0
- package/dist/types/src/containers/CollectionPresenterContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.d.ts +6 -0
- package/dist/types/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.d.ts.map +1 -0
- package/dist/types/src/containers/DocumentPresenterContainer/index.d.ts +2 -0
- package/dist/types/src/containers/DocumentPresenterContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/MarkdownSlide/MarkdownSlide.d.ts +8 -0
- package/dist/types/src/containers/MarkdownSlide/MarkdownSlide.d.ts.map +1 -0
- package/dist/types/src/containers/MarkdownSlide/index.d.ts +2 -0
- package/dist/types/src/containers/MarkdownSlide/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +5 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +4 -6
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/PresenterCapabilities.d.ts +4 -0
- package/dist/types/src/types/PresenterCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/PresenterOperation.d.ts +17 -0
- package/dist/types/src/types/PresenterOperation.d.ts.map +1 -0
- package/dist/types/src/types/Settings.d.ts +7 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +11 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/useExitPresenter.d.ts +3 -4
- package/dist/types/src/useExitPresenter.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +101 -43
- package/src/PresenterPlugin.node.ts +16 -0
- package/src/PresenterPlugin.test.ts +23 -0
- package/src/PresenterPlugin.tsx +14 -27
- package/src/capabilities/app-graph-builder.ts +93 -106
- package/src/capabilities/index.ts +4 -4
- package/src/capabilities/react-surface.tsx +59 -54
- package/src/capabilities/settings.ts +24 -12
- package/src/components/Markdown/{Container.stories.tsx → Panel.stories.tsx} +7 -9
- package/src/components/Markdown/{Container.tsx → Panel.tsx} +6 -6
- package/src/components/Markdown/Slide.stories.tsx +5 -4
- package/src/components/Markdown/Slide.tsx +2 -2
- package/src/components/Markdown/index.ts +1 -1
- package/src/components/Markdown/theme.ts +5 -5
- package/src/components/Presenter/Layout.tsx +24 -23
- package/src/components/Presenter/Pager.stories.tsx +3 -5
- package/src/components/Presenter/Pager.tsx +53 -18
- package/src/components/PresenterSettings/PresenterSettings.stories.tsx +32 -0
- package/src/components/PresenterSettings/PresenterSettings.tsx +31 -0
- package/src/components/PresenterSettings/index.ts +5 -0
- package/src/components/RevealPlayer/RevealPlayer.stories.tsx +6 -5
- package/src/components/RevealPlayer/RevealPlayer.tsx +104 -95
- package/src/components/index.ts +5 -5
- package/src/containers/CollectionPresenterContainer/CollectionPresenterContainer.tsx +50 -0
- package/src/containers/CollectionPresenterContainer/index.ts +5 -0
- package/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.tsx +24 -0
- package/src/containers/DocumentPresenterContainer/index.ts +5 -0
- package/src/containers/MarkdownSlide/MarkdownSlide.tsx +26 -0
- package/src/containers/MarkdownSlide/index.ts +5 -0
- package/src/containers/index.ts +9 -0
- package/src/index.ts +1 -3
- package/src/meta.ts +9 -6
- package/src/plugin.ts +9 -0
- package/src/testing.ts +6 -6
- package/src/translations.ts +4 -5
- package/src/types/PresenterCapabilities.ts +15 -0
- package/src/types/PresenterOperation.ts +25 -0
- package/src/types/Settings.ts +20 -0
- package/src/types/index.ts +21 -0
- package/src/useExitPresenter.ts +26 -25
- package/dist/lib/browser/CollectionPresenterContainer-U7D57ZVN.mjs +0 -191
- package/dist/lib/browser/CollectionPresenterContainer-U7D57ZVN.mjs.map +0 -7
- package/dist/lib/browser/DocumentPresenterContainer-F42V4KAL.mjs +0 -183
- package/dist/lib/browser/DocumentPresenterContainer-F42V4KAL.mjs.map +0 -7
- package/dist/lib/browser/MarkdownSlide-ZUPODCSC.mjs +0 -223
- package/dist/lib/browser/MarkdownSlide-ZUPODCSC.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-5LNLRZBN.mjs +0 -105
- package/dist/lib/browser/app-graph-builder-5LNLRZBN.mjs.map +0 -7
- package/dist/lib/browser/chunk-ENIFUI47.mjs +0 -41
- package/dist/lib/browser/chunk-ENIFUI47.mjs.map +0 -7
- package/dist/lib/browser/chunk-UVGTHJUO.mjs +0 -36
- package/dist/lib/browser/chunk-UVGTHJUO.mjs.map +0 -7
- package/dist/lib/browser/chunk-VSD5LSE5.mjs +0 -15
- package/dist/lib/browser/chunk-VSD5LSE5.mjs.map +0 -7
- package/dist/lib/browser/chunk-W4IR3DJE.mjs +0 -39
- package/dist/lib/browser/chunk-W4IR3DJE.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -67
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-UAXR5ZP3.mjs +0 -57
- package/dist/lib/browser/react-surface-UAXR5ZP3.mjs.map +0 -7
- package/dist/lib/browser/settings-VQVVDAGY.mjs +0 -22
- package/dist/lib/browser/settings-VQVVDAGY.mjs.map +0 -7
- package/dist/types/src/components/CollectionPresenterContainer.d.ts +0 -7
- package/dist/types/src/components/CollectionPresenterContainer.d.ts.map +0 -1
- package/dist/types/src/components/DocumentPresenterContainer.d.ts +0 -7
- package/dist/types/src/components/DocumentPresenterContainer.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/Container.d.ts +0 -8
- package/dist/types/src/components/Markdown/Container.d.ts.map +0 -1
- package/dist/types/src/components/Markdown/Container.stories.d.ts.map +0 -1
- package/dist/types/src/components/MarkdownSlide.d.ts +0 -7
- package/dist/types/src/components/MarkdownSlide.d.ts.map +0 -1
- package/dist/types/src/components/PresenterSettings.d.ts +0 -6
- package/dist/types/src/components/PresenterSettings.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -39
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/components/CollectionPresenterContainer.tsx +0 -44
- package/src/components/DocumentPresenterContainer.tsx +0 -23
- package/src/components/MarkdownSlide.tsx +0 -24
- package/src/components/PresenterSettings.tsx +0 -30
- package/src/types.ts +0 -46
package/package.json
CHANGED
|
@@ -1,81 +1,139 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-presenter",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.dfabb4ec29",
|
|
4
4
|
"description": "Braneframe presenter plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#components": {
|
|
22
|
+
"source": "./src/components/index.ts",
|
|
23
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#containers": {
|
|
27
|
+
"source": "./src/containers/index.ts",
|
|
28
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#meta": {
|
|
32
|
+
"source": "./src/meta.ts",
|
|
33
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#plugin": {
|
|
37
|
+
"source": {
|
|
38
|
+
"node": "./src/PresenterPlugin.node.ts",
|
|
39
|
+
"default": "./src/PresenterPlugin.tsx"
|
|
40
|
+
},
|
|
41
|
+
"types": "./dist/types/src/PresenterPlugin.d.ts",
|
|
42
|
+
"node": "./dist/lib/neutral/PresenterPlugin.node.mjs",
|
|
43
|
+
"default": "./dist/lib/neutral/PresenterPlugin.mjs"
|
|
44
|
+
},
|
|
45
|
+
"#testing": "./src/testing.ts",
|
|
46
|
+
"#translations": {
|
|
47
|
+
"source": "./src/translations.ts",
|
|
48
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
49
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
50
|
+
},
|
|
51
|
+
"#types": {
|
|
52
|
+
"source": "./src/types/index.ts",
|
|
53
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
54
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
11
57
|
"exports": {
|
|
12
58
|
".": {
|
|
13
59
|
"source": "./src/index.ts",
|
|
14
60
|
"types": "./dist/types/src/index.d.ts",
|
|
15
|
-
"
|
|
61
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./plugin": {
|
|
64
|
+
"source": "./src/plugin.ts",
|
|
65
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
66
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./translations": {
|
|
69
|
+
"source": "./src/translations.ts",
|
|
70
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
71
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
16
72
|
}
|
|
17
73
|
},
|
|
18
74
|
"types": "dist/types/src/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
"*": {}
|
|
21
|
-
},
|
|
22
75
|
"files": [
|
|
23
76
|
"dist",
|
|
24
77
|
"src"
|
|
25
78
|
],
|
|
26
79
|
"dependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
80
|
+
"@effect-atom/atom": "^0.5.1",
|
|
81
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
29
82
|
"hastscript": "^7.1.0",
|
|
30
83
|
"highlight.js": "^11.9.0",
|
|
31
84
|
"marked": "^12.0.2",
|
|
32
|
-
"react-markdown": "^
|
|
85
|
+
"react-markdown": "^10.1.0",
|
|
33
86
|
"react-resize-detector": "^11.0.1",
|
|
34
87
|
"rehype-add-classes": "^1.0.0",
|
|
35
88
|
"rehype-highlight": "^6.0.0",
|
|
36
89
|
"remark-frontmatter": "^5.0.0",
|
|
37
90
|
"remark-parse-frontmatter": "^1.0.3",
|
|
38
91
|
"reveal.js": "^5.1.0",
|
|
39
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/plugin-
|
|
47
|
-
"@dxos/plugin-
|
|
48
|
-
"@dxos/plugin-markdown": "0.8.4-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/react-ui-
|
|
54
|
-
"@dxos/react-ui-
|
|
92
|
+
"@dxos/app-framework": "0.8.4-main.dfabb4ec29",
|
|
93
|
+
"@dxos/app-toolkit": "0.8.4-main.dfabb4ec29",
|
|
94
|
+
"@dxos/effect": "0.8.4-main.dfabb4ec29",
|
|
95
|
+
"@dxos/echo": "0.8.4-main.dfabb4ec29",
|
|
96
|
+
"@dxos/async": "0.8.4-main.dfabb4ec29",
|
|
97
|
+
"@dxos/log": "0.8.4-main.dfabb4ec29",
|
|
98
|
+
"@dxos/plugin-client": "0.8.4-main.dfabb4ec29",
|
|
99
|
+
"@dxos/plugin-deck": "0.8.4-main.dfabb4ec29",
|
|
100
|
+
"@dxos/plugin-graph": "0.8.4-main.dfabb4ec29",
|
|
101
|
+
"@dxos/plugin-markdown": "0.8.4-main.dfabb4ec29",
|
|
102
|
+
"@dxos/react-client": "0.8.4-main.dfabb4ec29",
|
|
103
|
+
"@dxos/compute": "0.8.4-main.dfabb4ec29",
|
|
104
|
+
"@dxos/plugin-stack": "0.8.4-main.dfabb4ec29",
|
|
105
|
+
"@dxos/react-ui-attention": "0.8.4-main.dfabb4ec29",
|
|
106
|
+
"@dxos/react-ui-form": "0.8.4-main.dfabb4ec29",
|
|
107
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.dfabb4ec29",
|
|
108
|
+
"@dxos/react-ui-stack": "0.8.4-main.dfabb4ec29",
|
|
109
|
+
"@dxos/schema": "0.8.4-main.dfabb4ec29",
|
|
110
|
+
"@dxos/util": "0.8.4-main.dfabb4ec29",
|
|
111
|
+
"@dxos/types": "0.8.4-main.dfabb4ec29"
|
|
55
112
|
},
|
|
56
113
|
"devDependencies": {
|
|
57
|
-
"@effect-
|
|
58
|
-
"@effect/platform": "0.
|
|
59
|
-
"@types/react": "~
|
|
60
|
-
"@types/react-dom": "~
|
|
114
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
115
|
+
"@effect/platform": "0.94.4",
|
|
116
|
+
"@types/react": "~19.2.7",
|
|
117
|
+
"@types/react-dom": "~19.2.3",
|
|
61
118
|
"@types/reveal.js": "^5.0.3",
|
|
62
|
-
"effect": "3.
|
|
63
|
-
"react": "~
|
|
64
|
-
"react-dom": "~
|
|
65
|
-
"vite": "
|
|
66
|
-
"@dxos/random": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/react-ui
|
|
69
|
-
"@dxos/
|
|
119
|
+
"effect": "3.20.0",
|
|
120
|
+
"react": "~19.2.3",
|
|
121
|
+
"react-dom": "~19.2.3",
|
|
122
|
+
"vite": "^8.0.10",
|
|
123
|
+
"@dxos/random": "0.8.4-main.dfabb4ec29",
|
|
124
|
+
"@dxos/plugin-testing": "0.8.4-main.dfabb4ec29",
|
|
125
|
+
"@dxos/react-ui": "0.8.4-main.dfabb4ec29",
|
|
126
|
+
"@dxos/ui-theme": "0.8.4-main.dfabb4ec29",
|
|
127
|
+
"@dxos/storybook-utils": "0.8.4-main.dfabb4ec29"
|
|
70
128
|
},
|
|
71
129
|
"peerDependencies": {
|
|
72
|
-
"@effect-
|
|
73
|
-
"@effect/platform": "
|
|
74
|
-
"effect": "
|
|
75
|
-
"react": "~
|
|
76
|
-
"react-dom": "~
|
|
77
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
78
|
-
"@dxos/
|
|
130
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
131
|
+
"@effect/platform": "0.94.4",
|
|
132
|
+
"effect": "3.20.0",
|
|
133
|
+
"react": "~19.2.3",
|
|
134
|
+
"react-dom": "~19.2.3",
|
|
135
|
+
"@dxos/react-ui": "0.8.4-main.dfabb4ec29",
|
|
136
|
+
"@dxos/ui-theme": "0.8.4-main.dfabb4ec29"
|
|
79
137
|
},
|
|
80
138
|
"publishConfig": {
|
|
81
139
|
"access": "public"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
|
|
8
|
+
import { AppGraphBuilder } from '#capabilities';
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
|
|
11
|
+
export const PresenterPlugin = Plugin.define(meta).pipe(
|
|
12
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
13
|
+
Plugin.make,
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default PresenterPlugin;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
8
|
+
|
|
9
|
+
import { PresenterPlugin } from '#plugin';
|
|
10
|
+
|
|
11
|
+
import { meta } from './meta';
|
|
12
|
+
|
|
13
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
14
|
+
|
|
15
|
+
describe('PresenterPlugin', () => {
|
|
16
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
17
|
+
await using harness = await createComposerTestApp({
|
|
18
|
+
plugins: [PresenterPlugin()],
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
expect(harness.manager.getActive()).toContain(moduleId('AppGraphBuilder'));
|
|
22
|
+
});
|
|
23
|
+
});
|
package/src/PresenterPlugin.tsx
CHANGED
|
@@ -2,35 +2,22 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
6
7
|
|
|
7
|
-
import { AppGraphBuilder, PresenterSettings, ReactSurface } from '
|
|
8
|
-
import { meta } from '
|
|
9
|
-
import { translations } from '
|
|
8
|
+
import { AppGraphBuilder, PresenterSettings, ReactSurface } from '#capabilities';
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
import { translations } from '#translations';
|
|
10
11
|
|
|
11
12
|
// TODO(burdon): Only scale markdown content.
|
|
12
13
|
// TODO(burdon): Map stack content; Slide content type (e.g., markdown, sketch, IPFS image, table, etc.)
|
|
13
14
|
|
|
14
|
-
export const PresenterPlugin = ()
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
activatesOn: Events.SetupTranslations,
|
|
24
|
-
activate: () => contributes(Capabilities.Translations, translations),
|
|
25
|
-
}),
|
|
26
|
-
defineModule({
|
|
27
|
-
id: `${meta.id}/module/react-surface`,
|
|
28
|
-
activatesOn: Events.SetupReactSurface,
|
|
29
|
-
activate: ReactSurface,
|
|
30
|
-
}),
|
|
31
|
-
defineModule({
|
|
32
|
-
id: `${meta.id}/module/app-graph-builder`,
|
|
33
|
-
activatesOn: Events.SetupAppGraph,
|
|
34
|
-
activate: AppGraphBuilder,
|
|
35
|
-
}),
|
|
36
|
-
]);
|
|
15
|
+
export const PresenterPlugin = Plugin.define(meta).pipe(
|
|
16
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
17
|
+
AppPlugin.addSettingsModule({ activate: PresenterSettings }),
|
|
18
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
19
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
20
|
+
Plugin.make,
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export default PresenterPlugin;
|
|
@@ -2,115 +2,102 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
7
7
|
|
|
8
|
-
import { Capabilities,
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { AppCapabilities, AppNode, LayoutOperation, getObjectPathFromObject, getSpacePath } from '@dxos/app-toolkit';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
9
11
|
import { Obj } from '@dxos/echo';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
14
|
-
import {
|
|
15
|
-
import { DataType } from '@dxos/schema';
|
|
12
|
+
import { Collection } from '@dxos/echo';
|
|
13
|
+
import { DeckCapabilities, DeckOperation } from '@dxos/plugin-deck';
|
|
14
|
+
import { GraphBuilder, type Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
15
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
16
|
+
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
16
17
|
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
18
|
+
import { meta } from '#meta';
|
|
19
|
+
import { PresenterOperation } from '#types';
|
|
20
|
+
import { PresenterCapabilities } from '#types';
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
/** Match nodes that can be presented (Collection or Document). */
|
|
23
|
+
const whenPresentable = (node: Node.Node) =>
|
|
24
|
+
Option.orElse(NodeMatcher.whenEchoType(Collection.Collection)(node), () =>
|
|
25
|
+
NodeMatcher.whenEchoType(Markdown.Document)(node),
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export default Capability.makeModule(
|
|
29
|
+
Effect.fnUntraced(function* () {
|
|
30
|
+
const capabilities = yield* Capability.Service;
|
|
31
|
+
|
|
32
|
+
const extensions = yield* GraphBuilder.createExtension({
|
|
33
|
+
id: 'root',
|
|
25
34
|
// TODO(wittjosiah): This is a hack to work around presenter previously relying on "variant". Remove.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
id: `${PresenterAction.TogglePresentation._tag}/${id}`,
|
|
78
|
-
// TODO(burdon): Allow function so can generate state when activated.
|
|
79
|
-
// So can set explicit fullscreen state coordinated with current presenter state.
|
|
80
|
-
data: async () => {
|
|
81
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
82
|
-
const layout = context.getCapability(DeckCapabilities.MutableDeckState);
|
|
83
|
-
const presenterId = [id, 'presenter'].join(ATTENDABLE_PATH_SEPARATOR);
|
|
84
|
-
if (!layout.deck.fullscreen) {
|
|
85
|
-
void dispatch(
|
|
86
|
-
createIntent(DeckAction.Adjust, {
|
|
87
|
-
type: 'solo--fullscreen',
|
|
88
|
-
id: presenterId,
|
|
89
|
-
}),
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
await dispatch(
|
|
93
|
-
createIntent(LayoutAction.Open, {
|
|
94
|
-
part: 'main',
|
|
95
|
-
subject: [presenterId],
|
|
96
|
-
options: { workspace: spaceId },
|
|
97
|
-
}),
|
|
98
|
-
);
|
|
99
|
-
},
|
|
100
|
-
properties: {
|
|
101
|
-
label: ['toggle presentation label', { ns: PRESENTER_PLUGIN }],
|
|
102
|
-
icon: 'ph--presentation--regular',
|
|
103
|
-
disposition: 'list-item',
|
|
104
|
-
keyBinding: {
|
|
105
|
-
macos: 'shift+meta+p',
|
|
106
|
-
windows: 'shift+alt+p',
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
];
|
|
35
|
+
match: whenPresentable,
|
|
36
|
+
connector: (object, get) => {
|
|
37
|
+
const settingsAtom = capabilities.get(PresenterCapabilities.Settings);
|
|
38
|
+
const settings = get(settingsAtom);
|
|
39
|
+
const isPresentable = settings?.presentCollections
|
|
40
|
+
? Obj.instanceOf(Collection.Collection, object) || Obj.instanceOf(Markdown.Document, object)
|
|
41
|
+
: Obj.instanceOf(Markdown.Document, object);
|
|
42
|
+
if (!isPresentable) {
|
|
43
|
+
return Effect.succeed([]);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return Effect.succeed([
|
|
47
|
+
AppNode.makeCompanion({
|
|
48
|
+
id: linkedSegment('presenter'),
|
|
49
|
+
label: 'Presenter',
|
|
50
|
+
icon: 'ph--presentation--regular',
|
|
51
|
+
data: { type: meta.id, object },
|
|
52
|
+
}),
|
|
53
|
+
]);
|
|
54
|
+
},
|
|
55
|
+
actions: (object, get) => {
|
|
56
|
+
const settingsAtom = capabilities.get(PresenterCapabilities.Settings);
|
|
57
|
+
const settings = get(settingsAtom);
|
|
58
|
+
const isPresentable = settings?.presentCollections
|
|
59
|
+
? Obj.instanceOf(Collection.Collection, object) || Obj.instanceOf(Markdown.Document, object)
|
|
60
|
+
: Obj.instanceOf(Markdown.Document, object);
|
|
61
|
+
const db = Obj.getDatabase(object);
|
|
62
|
+
if (!isPresentable || !db) {
|
|
63
|
+
return Effect.succeed([]);
|
|
64
|
+
}
|
|
65
|
+
const objectPath = getObjectPathFromObject(object);
|
|
66
|
+
|
|
67
|
+
return Effect.succeed([
|
|
68
|
+
{
|
|
69
|
+
id: PresenterOperation.TogglePresentation.meta.key,
|
|
70
|
+
// TODO(burdon): Allow function so can generate state when activated.
|
|
71
|
+
// So can set explicit fullscreen state coordinated with current presenter state.
|
|
72
|
+
data: Effect.fnUntraced(function* () {
|
|
73
|
+
const deckState = yield* Capabilities.getAtomValue(DeckCapabilities.State);
|
|
74
|
+
const deck = deckState.decks[deckState.activeDeck];
|
|
75
|
+
const presenterId = `${objectPath}/${linkedSegment('presenter')}`;
|
|
76
|
+
if (!deck?.fullscreen) {
|
|
77
|
+
yield* Operation.invoke(DeckOperation.Adjust, {
|
|
78
|
+
type: 'solo--fullscreen' as const,
|
|
79
|
+
id: presenterId,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
yield* Operation.invoke(LayoutOperation.Open, {
|
|
83
|
+
subject: [presenterId],
|
|
84
|
+
workspace: getSpacePath(db.spaceId),
|
|
85
|
+
});
|
|
111
86
|
}),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
87
|
+
properties: {
|
|
88
|
+
label: ['toggle-presentation.label', { ns: meta.id }],
|
|
89
|
+
icon: 'ph--presentation--regular',
|
|
90
|
+
disposition: 'list-item',
|
|
91
|
+
keyBinding: {
|
|
92
|
+
macos: 'shift+meta+p',
|
|
93
|
+
windows: 'shift+alt+p',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
]);
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
102
|
+
}),
|
|
103
|
+
);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
6
|
|
|
7
|
-
export const AppGraphBuilder = lazy(() => import('./app-graph-builder'));
|
|
8
|
-
export const ReactSurface = lazy(() => import('./react-surface'));
|
|
9
|
-
export const PresenterSettings = lazy(() => import('./settings'));
|
|
7
|
+
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
8
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
9
|
+
export const PresenterSettings = Capability.lazy('PresenterSettings', () => import('./settings'));
|
|
@@ -2,62 +2,67 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
5
6
|
import React from 'react';
|
|
6
7
|
|
|
7
|
-
import { Capabilities,
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { Surface, useSettingsState } from '@dxos/app-framework/ui';
|
|
10
|
+
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
8
11
|
import { Obj } from '@dxos/echo';
|
|
9
|
-
import {
|
|
10
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
11
|
-
import { DataType } from '@dxos/schema';
|
|
12
|
+
import { Collection } from '@dxos/echo';
|
|
13
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
12
14
|
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
PresenterSettings,
|
|
18
|
-
} from '../components';
|
|
19
|
-
import { PRESENTER_PLUGIN } from '../meta';
|
|
20
|
-
import { type PresenterSettingsProps } from '../types';
|
|
15
|
+
import { PresenterSettings } from '#components';
|
|
16
|
+
import { CollectionPresenterContainer, DocumentPresenterContainer, MarkdownSlide } from '#containers';
|
|
17
|
+
import { meta } from '#meta';
|
|
18
|
+
import { type Settings } from '#types';
|
|
21
19
|
|
|
22
|
-
export default () =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
20
|
+
export default Capability.makeModule(() =>
|
|
21
|
+
Effect.succeed(
|
|
22
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
23
|
+
Surface.create({
|
|
24
|
+
id: 'document',
|
|
25
|
+
position: 'hoist',
|
|
26
|
+
filter: AppSurface.predicate(
|
|
27
|
+
AppSurface.Article,
|
|
28
|
+
(data): data is AppSurface.ArticleData<{ type: typeof meta.id; object: Markdown.Document }> =>
|
|
29
|
+
!!data.subject &&
|
|
30
|
+
typeof data.subject === 'object' &&
|
|
31
|
+
'type' in data.subject &&
|
|
32
|
+
'object' in data.subject &&
|
|
33
|
+
data.subject.type === meta.id &&
|
|
34
|
+
Obj.instanceOf(Markdown.Document, data.subject.object),
|
|
35
|
+
),
|
|
36
|
+
component: ({ data }) => <DocumentPresenterContainer document={data.subject.object} />,
|
|
37
|
+
}),
|
|
38
|
+
Surface.create({
|
|
39
|
+
id: 'collection',
|
|
40
|
+
position: 'hoist',
|
|
41
|
+
filter: AppSurface.predicate(
|
|
42
|
+
AppSurface.Article,
|
|
43
|
+
(data): data is AppSurface.ArticleData<{ type: typeof meta.id; object: Collection.Collection }> =>
|
|
44
|
+
!!data.subject &&
|
|
45
|
+
typeof data.subject === 'object' &&
|
|
46
|
+
'type' in data.subject &&
|
|
47
|
+
'object' in data.subject &&
|
|
48
|
+
data.subject.type === meta.id &&
|
|
49
|
+
Obj.instanceOf(Collection.Collection, data.subject.object),
|
|
50
|
+
),
|
|
51
|
+
component: ({ role, data }) => <CollectionPresenterContainer role={role} subject={data.subject.object} />,
|
|
52
|
+
}),
|
|
53
|
+
Surface.create({
|
|
54
|
+
id: 'slide',
|
|
55
|
+
filter: AppSurface.object(AppSurface.Slide, Markdown.Document),
|
|
56
|
+
component: ({ data }) => <MarkdownSlide document={data.subject} />,
|
|
57
|
+
}),
|
|
58
|
+
Surface.create({
|
|
59
|
+
id: 'plugin-settings',
|
|
60
|
+
filter: AppSurface.settings(AppSurface.Article, meta.id),
|
|
61
|
+
component: ({ data: { subject } }) => {
|
|
62
|
+
const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);
|
|
63
|
+
return <PresenterSettings settings={settings} onSettingsChange={updateSettings} />;
|
|
64
|
+
},
|
|
65
|
+
}),
|
|
66
|
+
]),
|
|
67
|
+
),
|
|
68
|
+
);
|