@dxos/plugin-presenter 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393
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/{browser/PresenterSettings-DZO2DC53.mjs → neutral/PresenterSettings-2G4XD4QY.mjs} +9 -13
- package/dist/lib/neutral/PresenterSettings-2G4XD4QY.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-DIEDSRPX.mjs +97 -0
- package/dist/lib/neutral/app-graph-builder-DIEDSRPX.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-V323QBC3.mjs +41 -0
- package/dist/lib/neutral/chunk-V323QBC3.mjs.map +7 -0
- package/dist/lib/{browser → neutral/components}/index.mjs +3 -53
- package/dist/lib/{browser → neutral/components}/index.mjs.map +4 -4
- 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-W74KM2N3.mjs +54 -0
- package/dist/lib/neutral/react-surface-W74KM2N3.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 +1 -0
- 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.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Panel.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Slide.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Slide.stories.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 +1 -1
- package/dist/types/src/components/Presenter/Pager.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/Pager.stories.d.ts.map +1 -1
- package/dist/types/src/components/PresenterSettings/PresenterSettings.d.ts +1 -1
- package/dist/types/src/components/PresenterSettings/PresenterSettings.d.ts.map +1 -1
- package/dist/types/src/components/PresenterSettings/PresenterSettings.stories.d.ts +4 -6
- package/dist/types/src/components/PresenterSettings/PresenterSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts +5 -7
- package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/CollectionPresenterContainer/CollectionPresenterContainer.d.ts.map +1 -1
- package/dist/types/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.d.ts +1 -1
- package/dist/types/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.d.ts.map +1 -1
- package/dist/types/src/containers/MarkdownSlide/MarkdownSlide.d.ts +1 -1
- package/dist/types/src/containers/MarkdownSlide/MarkdownSlide.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.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 -7
- 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/{operations/definitions.d.ts → types/PresenterOperation.d.ts} +6 -6
- package/dist/types/src/types/PresenterOperation.d.ts.map +1 -0
- package/dist/types/src/types/Settings.d.ts +1 -1
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +2 -6
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/useExitPresenter.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +79 -40
- package/src/PresenterPlugin.node.ts +16 -0
- package/src/PresenterPlugin.test.ts +23 -0
- package/src/PresenterPlugin.tsx +3 -2
- package/src/capabilities/app-graph-builder.ts +5 -7
- package/src/capabilities/react-surface.tsx +2 -3
- package/src/components/PresenterSettings/PresenterSettings.stories.tsx +2 -1
- package/src/components/PresenterSettings/PresenterSettings.tsx +8 -9
- package/src/components/RevealPlayer/RevealPlayer.stories.tsx +2 -1
- package/src/components/RevealPlayer/RevealPlayer.tsx +1 -1
- package/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.tsx +1 -1
- package/src/containers/MarkdownSlide/MarkdownSlide.tsx +1 -1
- package/src/index.ts +1 -3
- package/src/plugin.ts +9 -0
- package/src/translations.ts +0 -2
- package/src/types/PresenterCapabilities.ts +15 -0
- package/src/{operations/definitions.ts → types/PresenterOperation.ts} +4 -2
- package/src/types/Settings.ts +6 -1
- package/src/types/index.ts +2 -11
- package/src/useExitPresenter.ts +1 -2
- package/dist/lib/browser/PresenterSettings-DZO2DC53.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operations/index.mjs +0 -30
- package/dist/lib/browser/operations/index.mjs.map +0 -7
- package/dist/types/src/operations/definitions.d.ts.map +0 -1
- package/dist/types/src/operations/index.d.ts +0 -2
- package/dist/types/src/operations/index.d.ts.map +0 -1
- package/src/operations/index.ts +0 -5
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-presenter",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.4f23b4e393",
|
|
4
4
|
"description": "Braneframe presenter plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -13,24 +13,62 @@
|
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
-
"#capabilities":
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
+
},
|
|
21
45
|
"#testing": "./src/testing.ts",
|
|
22
|
-
"#
|
|
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
|
+
}
|
|
23
56
|
},
|
|
24
57
|
"exports": {
|
|
25
58
|
".": {
|
|
26
59
|
"source": "./src/index.ts",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
60
|
+
"types": "./dist/types/src/index.d.ts",
|
|
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"
|
|
29
67
|
},
|
|
30
|
-
"./
|
|
31
|
-
"source": "./src/
|
|
32
|
-
"types": "./dist/types/src/
|
|
33
|
-
"
|
|
68
|
+
"./translations": {
|
|
69
|
+
"source": "./src/translations.ts",
|
|
70
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
71
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
34
72
|
}
|
|
35
73
|
},
|
|
36
74
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -51,26 +89,26 @@
|
|
|
51
89
|
"remark-frontmatter": "^5.0.0",
|
|
52
90
|
"remark-parse-frontmatter": "^1.0.3",
|
|
53
91
|
"reveal.js": "^5.1.0",
|
|
54
|
-
"@dxos/app-
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/plugin-
|
|
62
|
-
"@dxos/plugin-
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/react-
|
|
67
|
-
"@dxos/react-
|
|
68
|
-
"@dxos/react-ui-
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/util": "0.8.4-main.
|
|
92
|
+
"@dxos/app-framework": "0.8.4-main.4f23b4e393",
|
|
93
|
+
"@dxos/app-toolkit": "0.8.4-main.4f23b4e393",
|
|
94
|
+
"@dxos/async": "0.8.4-main.4f23b4e393",
|
|
95
|
+
"@dxos/effect": "0.8.4-main.4f23b4e393",
|
|
96
|
+
"@dxos/compute": "0.8.4-main.4f23b4e393",
|
|
97
|
+
"@dxos/log": "0.8.4-main.4f23b4e393",
|
|
98
|
+
"@dxos/plugin-client": "0.8.4-main.4f23b4e393",
|
|
99
|
+
"@dxos/plugin-deck": "0.8.4-main.4f23b4e393",
|
|
100
|
+
"@dxos/plugin-graph": "0.8.4-main.4f23b4e393",
|
|
101
|
+
"@dxos/plugin-markdown": "0.8.4-main.4f23b4e393",
|
|
102
|
+
"@dxos/plugin-stack": "0.8.4-main.4f23b4e393",
|
|
103
|
+
"@dxos/react-ui-attention": "0.8.4-main.4f23b4e393",
|
|
104
|
+
"@dxos/react-client": "0.8.4-main.4f23b4e393",
|
|
105
|
+
"@dxos/react-ui-form": "0.8.4-main.4f23b4e393",
|
|
106
|
+
"@dxos/react-ui-stack": "0.8.4-main.4f23b4e393",
|
|
107
|
+
"@dxos/schema": "0.8.4-main.4f23b4e393",
|
|
108
|
+
"@dxos/types": "0.8.4-main.4f23b4e393",
|
|
109
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.4f23b4e393",
|
|
110
|
+
"@dxos/echo": "0.8.4-main.4f23b4e393",
|
|
111
|
+
"@dxos/util": "0.8.4-main.4f23b4e393"
|
|
74
112
|
},
|
|
75
113
|
"devDependencies": {
|
|
76
114
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -81,11 +119,12 @@
|
|
|
81
119
|
"effect": "3.20.0",
|
|
82
120
|
"react": "~19.2.3",
|
|
83
121
|
"react-dom": "~19.2.3",
|
|
84
|
-
"vite": "^
|
|
85
|
-
"@dxos/random": "0.8.4-main.
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
88
|
-
"@dxos/ui
|
|
122
|
+
"vite": "^8.0.10",
|
|
123
|
+
"@dxos/random": "0.8.4-main.4f23b4e393",
|
|
124
|
+
"@dxos/ui-theme": "0.8.4-main.4f23b4e393",
|
|
125
|
+
"@dxos/storybook-utils": "0.8.4-main.4f23b4e393",
|
|
126
|
+
"@dxos/react-ui": "0.8.4-main.4f23b4e393",
|
|
127
|
+
"@dxos/plugin-testing": "0.8.4-main.4f23b4e393"
|
|
89
128
|
},
|
|
90
129
|
"peerDependencies": {
|
|
91
130
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -93,8 +132,8 @@
|
|
|
93
132
|
"effect": "3.20.0",
|
|
94
133
|
"react": "~19.2.3",
|
|
95
134
|
"react-dom": "~19.2.3",
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/ui
|
|
135
|
+
"@dxos/ui-theme": "0.8.4-main.4f23b4e393",
|
|
136
|
+
"@dxos/react-ui": "0.8.4-main.4f23b4e393"
|
|
98
137
|
},
|
|
99
138
|
"publishConfig": {
|
|
100
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
|
@@ -7,8 +7,7 @@ import { AppPlugin } from '@dxos/app-toolkit';
|
|
|
7
7
|
|
|
8
8
|
import { AppGraphBuilder, PresenterSettings, ReactSurface } from '#capabilities';
|
|
9
9
|
import { meta } from '#meta';
|
|
10
|
-
|
|
11
|
-
import { translations } from './translations';
|
|
10
|
+
import { translations } from '#translations';
|
|
12
11
|
|
|
13
12
|
// TODO(burdon): Only scale markdown content.
|
|
14
13
|
// TODO(burdon): Map stack content; Slide content type (e.g., markdown, sketch, IPFS image, table, etc.)
|
|
@@ -20,3 +19,5 @@ export const PresenterPlugin = Plugin.define(meta).pipe(
|
|
|
20
19
|
AppPlugin.addTranslationsModule({ translations }),
|
|
21
20
|
Plugin.make,
|
|
22
21
|
);
|
|
22
|
+
|
|
23
|
+
export default PresenterPlugin;
|
|
@@ -7,17 +7,15 @@ import * as Option from 'effect/Option';
|
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { AppCapabilities, AppNode, LayoutOperation, getObjectPathFromObject, getSpacePath } from '@dxos/app-toolkit';
|
|
10
|
-
import {
|
|
11
|
-
import { Collection } from '@dxos/echo';
|
|
12
|
-
import {
|
|
13
|
-
import { DeckCapabilities } from '@dxos/plugin-deck';
|
|
14
|
-
import { DeckOperation } from '@dxos/plugin-deck/operations';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
11
|
+
import { Collection, Obj } from '@dxos/echo';
|
|
12
|
+
import { DeckCapabilities, DeckOperation } from '@dxos/plugin-deck';
|
|
15
13
|
import { GraphBuilder, type Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
16
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
14
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
17
15
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
18
16
|
|
|
19
17
|
import { meta } from '#meta';
|
|
20
|
-
import { PresenterOperation } from '#
|
|
18
|
+
import { PresenterOperation } from '#types';
|
|
21
19
|
import { PresenterCapabilities } from '#types';
|
|
22
20
|
|
|
23
21
|
/** Match nodes that can be presented (Collection or Document). */
|
|
@@ -8,9 +8,8 @@ import React from 'react';
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { Surface, useSettingsState } from '@dxos/app-framework/ui';
|
|
10
10
|
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
11
|
-
import { Obj } from '@dxos/echo';
|
|
12
|
-
import {
|
|
13
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
11
|
+
import { Collection, Obj } from '@dxos/echo';
|
|
12
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
14
13
|
|
|
15
14
|
import { PresenterSettings } from '#components';
|
|
16
15
|
import { CollectionPresenterContainer, DocumentPresenterContainer, MarkdownSlide } from '#containers';
|
|
@@ -6,7 +6,8 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
6
6
|
|
|
7
7
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
8
8
|
|
|
9
|
-
import { translations } from '
|
|
9
|
+
import { translations } from '#translations';
|
|
10
|
+
|
|
10
11
|
import { PresenterSettings } from './PresenterSettings';
|
|
11
12
|
|
|
12
13
|
const meta = {
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
8
|
-
import {
|
|
8
|
+
import { useTranslation } from '@dxos/react-ui';
|
|
9
9
|
import { Settings as SettingsForm } from '@dxos/react-ui-form';
|
|
10
10
|
|
|
11
11
|
import { meta } from '#meta';
|
|
12
|
-
import {
|
|
12
|
+
import { Settings } from '#types';
|
|
13
13
|
|
|
14
14
|
export type PresenterSettingsProps = AppSurface.SettingsArticleProps<Settings.Settings>;
|
|
15
15
|
|
|
@@ -19,13 +19,12 @@ export const PresenterSettings = ({ settings, onSettingsChange }: PresenterSetti
|
|
|
19
19
|
return (
|
|
20
20
|
<SettingsForm.Viewport>
|
|
21
21
|
<SettingsForm.Section title={t('settings.title', { ns: meta.id })}>
|
|
22
|
-
<SettingsForm.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</SettingsForm.Item>
|
|
22
|
+
<SettingsForm.FieldSet
|
|
23
|
+
readonly={!onSettingsChange}
|
|
24
|
+
schema={Settings.Settings}
|
|
25
|
+
values={settings}
|
|
26
|
+
onValuesChanged={(values) => onSettingsChange?.(() => values)}
|
|
27
|
+
/>
|
|
29
28
|
</SettingsForm.Section>
|
|
30
29
|
</SettingsForm.Viewport>
|
|
31
30
|
);
|
|
@@ -6,8 +6,9 @@ import { type Meta } from '@storybook/react-vite';
|
|
|
6
6
|
|
|
7
7
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
8
8
|
|
|
9
|
+
import { translations } from '#translations';
|
|
10
|
+
|
|
9
11
|
import CONTENT from '../../../testing/deck.md?raw';
|
|
10
|
-
import { translations } from '../../translations';
|
|
11
12
|
import { RevealPlayer } from './RevealPlayer';
|
|
12
13
|
|
|
13
14
|
// https://revealjs.com/markdown
|
|
@@ -152,7 +152,7 @@ export const RevealPlayer = composable<HTMLDivElement, RevealProps>(
|
|
|
152
152
|
})}
|
|
153
153
|
ref={forwardedRef}
|
|
154
154
|
>
|
|
155
|
-
<div
|
|
155
|
+
<div className='relative aspect-video h-full w-full h-auto max-h-full overflow-hidden'>
|
|
156
156
|
<div ref={deckDivRef} className='absolute inset-0 reveal'>
|
|
157
157
|
{/* NOTE: Must be in head. */}
|
|
158
158
|
<style>
|
package/src/index.ts
CHANGED
package/src/plugin.ts
ADDED
package/src/translations.ts
CHANGED
|
@@ -13,8 +13,6 @@ export const translations = [
|
|
|
13
13
|
'plugin.name': 'Presenter',
|
|
14
14
|
'settings.title': 'Presenter settings',
|
|
15
15
|
'toggle-presentation.label': 'Present',
|
|
16
|
-
'present-collections.label': 'Present collections (experimental)',
|
|
17
|
-
'present-collections.description': 'Enable presenting collections of documents as a slideshow.',
|
|
18
16
|
},
|
|
19
17
|
},
|
|
20
18
|
},
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// @import-as-namespace
|
|
6
|
+
|
|
7
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
8
|
+
|
|
9
|
+
import { Capability } from '@dxos/app-framework';
|
|
10
|
+
|
|
11
|
+
import { meta } from '#meta';
|
|
12
|
+
|
|
13
|
+
// Inline import to avoid `Settings` namespace alias colliding with the
|
|
14
|
+
// `Settings` capability export below.
|
|
15
|
+
export const Settings = Capability.make<Atom.Writable<import('./Settings').Settings>>(`${meta.id}.capability.settings`);
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
// @import-as-namespace
|
|
6
|
+
|
|
5
7
|
import * as Schema from 'effect/Schema';
|
|
6
8
|
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
7
10
|
import { Collection } from '@dxos/echo';
|
|
8
|
-
import {
|
|
9
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
11
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
10
12
|
|
|
11
13
|
import { meta } from '#meta';
|
|
12
14
|
|
package/src/types/Settings.ts
CHANGED
|
@@ -8,7 +8,12 @@ import * as Schema from 'effect/Schema';
|
|
|
8
8
|
|
|
9
9
|
export const Settings = Schema.mutable(
|
|
10
10
|
Schema.Struct({
|
|
11
|
-
presentCollections: Schema.optional(
|
|
11
|
+
presentCollections: Schema.optional(
|
|
12
|
+
Schema.Boolean.annotations({
|
|
13
|
+
title: 'Present collections (experimental)',
|
|
14
|
+
description: 'Enable presenting collections of documents as a slideshow.',
|
|
15
|
+
}),
|
|
16
|
+
),
|
|
12
17
|
}),
|
|
13
18
|
);
|
|
14
19
|
|
package/src/types/index.ts
CHANGED
|
@@ -2,15 +2,8 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type Atom } from '@effect-atom/atom-react';
|
|
6
5
|
import { type Context, createContext } from 'react';
|
|
7
6
|
|
|
8
|
-
import { Capability } from '@dxos/app-framework';
|
|
9
|
-
|
|
10
|
-
import { meta } from '#meta';
|
|
11
|
-
|
|
12
|
-
import * as Settings from './Settings';
|
|
13
|
-
|
|
14
7
|
export type PresenterContextType = {
|
|
15
8
|
running: boolean;
|
|
16
9
|
start: () => void;
|
|
@@ -23,8 +16,6 @@ export const PresenterContext: Context<PresenterContextType> = createContext<Pre
|
|
|
23
16
|
stop: () => {},
|
|
24
17
|
});
|
|
25
18
|
|
|
19
|
+
export * as PresenterCapabilities from './PresenterCapabilities';
|
|
20
|
+
export * as PresenterOperation from './PresenterOperation';
|
|
26
21
|
export * as Settings from './Settings';
|
|
27
|
-
|
|
28
|
-
export namespace PresenterCapabilities {
|
|
29
|
-
export const Settings = Capability.make<Atom.Writable<Settings.Settings>>(`${meta.id}.capability.settings`);
|
|
30
|
-
}
|
package/src/useExitPresenter.ts
CHANGED
|
@@ -8,8 +8,7 @@ import { useCallback, useMemo } from 'react';
|
|
|
8
8
|
import { useCapability, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
9
9
|
import { LayoutOperation, getObjectPathFromObject, getSpacePath } from '@dxos/app-toolkit';
|
|
10
10
|
import { Obj } from '@dxos/echo';
|
|
11
|
-
import { DeckCapabilities } from '@dxos/plugin-deck';
|
|
12
|
-
import { DeckOperation } from '@dxos/plugin-deck/operations';
|
|
11
|
+
import { DeckCapabilities, DeckOperation } from '@dxos/plugin-deck';
|
|
13
12
|
|
|
14
13
|
export const useExitPresenter = (object: any) => {
|
|
15
14
|
const { invokePromise } = useOperationInvoker();
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/PresenterSettings/PresenterSettings.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type AppSurface } from '@dxos/app-toolkit/ui';\nimport { Input, useTranslation } from '@dxos/react-ui';\nimport { Settings as SettingsForm } from '@dxos/react-ui-form';\n\nimport { meta } from '#meta';\nimport { type Settings } from '#types';\n\nexport type PresenterSettingsProps = AppSurface.SettingsArticleProps<Settings.Settings>;\n\nexport const PresenterSettings = ({ settings, onSettingsChange }: PresenterSettingsProps) => {\n const { t } = useTranslation(meta.id);\n\n return (\n <SettingsForm.Viewport>\n <SettingsForm.Section title={t('settings.title', { ns: meta.id })}>\n <SettingsForm.Item title={t('present-collections.label')} description={t('present-collections.description')}>\n <Input.Switch\n disabled={!onSettingsChange}\n checked={settings.presentCollections}\n onCheckedChange={(checked) => onSettingsChange?.((s) => ({ ...s, presentCollections: !!checked }))}\n />\n </SettingsForm.Item>\n </SettingsForm.Section>\n </SettingsForm.Viewport>\n );\n};\n"],
|
|
5
|
-
"mappings": ";;;AAIA,OAAOA,WAAW;AAGlB,SAASC,OAAOC,sBAAsB;AACtC,SAASC,YAAYC,oBAAoB;AAEzC,SAASC,YAAY;AAKd,IAAMC,oBAAoB,CAAC,EAAEC,UAAUC,iBAAgB,MAA0B;AACtF,QAAM,EAAEC,EAAC,IAAKC,eAAeC,KAAKC,EAAE;AAEpC,SACE,sBAAA,cAACC,aAAaC,UAAQ,MACpB,sBAAA,cAACD,aAAaE,SAAO;IAACC,OAAOP,EAAE,kBAAkB;MAAEQ,IAAIN,KAAKC;IAAG,CAAA;KAC7D,sBAAA,cAACC,aAAaK,MAAI;IAACF,OAAOP,EAAE,2BAAA;IAA8BU,aAAaV,EAAE,iCAAA;KACvE,sBAAA,cAACW,MAAMC,QAAM;IACXC,UAAU,CAACd;IACXe,SAAShB,SAASiB;IAClBC,iBAAiB,CAACF,YAAYf,mBAAmB,CAACkB,OAAO;MAAE,GAAGA;MAAGF,oBAAoB,CAAC,CAACD;IAAQ,EAAA;;AAM3G;",
|
|
6
|
-
"names": ["React", "Input", "useTranslation", "Settings", "SettingsForm", "meta", "PresenterSettings", "settings", "onSettingsChange", "t", "useTranslation", "meta", "id", "SettingsForm", "Viewport", "Section", "title", "ns", "Item", "description", "Input", "Switch", "disabled", "checked", "presentCollections", "onCheckedChange", "s"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/components/Markdown/Panel.tsx":{"bytes":7961,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css?raw":{"bytes":1972,"imports":[]},"src/components/Markdown/theme.ts":{"bytes":2088,"imports":[],"format":"esm"},"src/components/Markdown/Slide.tsx":{"bytes":11710,"imports":[{"path":"highlight.js/styles/github.css","kind":"import-statement","external":true},{"path":"hastscript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-markdown","kind":"import-statement","external":true},{"path":"rehype-add-classes","kind":"import-statement","external":true},{"path":"rehype-highlight","kind":"import-statement","external":true},{"path":"remark-frontmatter","kind":"import-statement","external":true},{"path":"remark-parse-frontmatter","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css?raw","kind":"import-statement","original":"./styles.css?raw"},{"path":"src/components/Markdown/theme.ts","kind":"import-statement","original":"./theme"}],"format":"esm"},"src/components/Markdown/index.ts":{"bytes":554,"imports":[{"path":"src/components/Markdown/Panel.tsx","kind":"import-statement","original":"./Panel"},{"path":"src/components/Markdown/Slide.tsx","kind":"import-statement","original":"./Slide"}],"format":"esm"},"src/components/Presenter/Layout.tsx":{"bytes":3698,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/Pager.tsx":{"bytes":12421,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/index.ts":{"bytes":560,"imports":[{"path":"src/components/Presenter/Layout.tsx","kind":"import-statement","original":"./Layout"},{"path":"src/components/Presenter/Pager.tsx","kind":"import-statement","original":"./Pager"}],"format":"esm"},"src/components/RevealPlayer/RevealPlayer.tsx":{"bytes":16727,"imports":[{"path":"reveal.js/dist/reveal.css","kind":"import-statement","external":true},{"path":"reveal.js/dist/theme/black.css","kind":"import-statement","external":true},{"path":"highlight.js/styles/tokyo-night-dark.css","kind":"import-statement","external":true},{"path":"highlight.js","kind":"import-statement","external":true},{"path":"highlight.js/lib/languages/typescript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/highlight/highlight","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/RevealPlayer/index.ts":{"bytes":496,"imports":[{"path":"src/components/RevealPlayer/RevealPlayer.tsx","kind":"import-statement","original":"./RevealPlayer"}],"format":"esm"},"src/components/PresenterSettings/PresenterSettings.tsx":{"bytes":3983,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/components/PresenterSettings/index.ts":{"bytes":649,"imports":[{"path":"src/components/PresenterSettings/PresenterSettings.tsx","kind":"import-statement","original":"./PresenterSettings"}],"format":"esm"},"src/components/index.ts":{"bytes":1112,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Markdown/index.ts","kind":"import-statement","original":"./Markdown"},{"path":"src/components/Presenter/index.ts","kind":"import-statement","original":"./Presenter"},{"path":"src/components/RevealPlayer/index.ts","kind":"import-statement","original":"./RevealPlayer"},{"path":"src/components/PresenterSettings/index.ts","kind":"dynamic-import","original":"./PresenterSettings"}],"format":"esm"},"src/meta.ts":{"bytes":1831,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1881,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/PresenterPlugin.tsx":{"bytes":2985,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":653,"imports":[{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/PresenterPlugin.tsx","kind":"import-statement","original":"./PresenterPlugin"}],"format":"esm"},"src/operations/definitions.ts":{"bytes":2841,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/operations/index.ts":{"bytes":584,"imports":[{"path":"src/operations/definitions.ts","kind":"import-statement","original":"./definitions"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":32144},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","kind":"import-statement","external":true},{"path":"hastscript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-markdown","kind":"import-statement","external":true},{"path":"rehype-add-classes","kind":"import-statement","external":true},{"path":"rehype-highlight","kind":"import-statement","external":true},{"path":"remark-frontmatter","kind":"import-statement","external":true},{"path":"remark-parse-frontmatter","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"reveal.js/dist/reveal.css","kind":"import-statement","external":true},{"path":"reveal.js/dist/theme/black.css","kind":"import-statement","external":true},{"path":"highlight.js/styles/tokyo-night-dark.css","kind":"import-statement","external":true},{"path":"highlight.js","kind":"import-statement","external":true},{"path":"highlight.js/lib/languages/typescript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/highlight/highlight","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"dist/lib/browser/PresenterSettings-DZO2DC53.mjs","kind":"dynamic-import"},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["Layout","PageNumber","Pager","Panel","PresenterPlugin","PresenterSettings","RevealPlayer","Slide","StartButton","meta"],"entryPoint":"src/index.ts","inputs":{"src/components/index.ts":{"bytesInOutput":110},"src/components/Markdown/Panel.tsx":{"bytesInOutput":1327},"src/components/Markdown/index.ts":{"bytesInOutput":0},"src/components/Markdown/Slide.tsx":{"bytesInOutput":2652},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css?raw":{"bytesInOutput":2101},"src/components/Markdown/theme.ts":{"bytesInOutput":484},"src/components/Presenter/Layout.tsx":{"bytesInOutput":1012},"src/components/Presenter/index.ts":{"bytesInOutput":0},"src/components/Presenter/Pager.tsx":{"bytesInOutput":3259},"src/components/RevealPlayer/RevealPlayer.tsx":{"bytesInOutput":4624},"src/components/RevealPlayer/index.ts":{"bytesInOutput":0},"src/index.ts":{"bytesInOutput":0},"src/meta.ts":{"bytesInOutput":443},"src/PresenterPlugin.tsx":{"bytesInOutput":536},"src/translations.ts":{"bytesInOutput":431}},"bytes":17720},"dist/lib/browser/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1445},"dist/lib/browser/operations/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PresenterOperation"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/definitions.ts":{"bytesInOutput":688},"src/operations/index.ts":{"bytesInOutput":0}},"bytes":865},"dist/lib/browser/PresenterSettings-DZO2DC53.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2154},"dist/lib/browser/PresenterSettings-DZO2DC53.mjs":{"imports":[{"path":"dist/lib/browser/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/components/PresenterSettings/index.ts","inputs":{"src/components/PresenterSettings/PresenterSettings.tsx":{"bytesInOutput":894},"src/components/PresenterSettings/index.ts":{"bytesInOutput":0}},"bytes":1083},"dist/lib/browser/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__export
|
|
3
|
-
} from "../chunk-J5LGTIGS.mjs";
|
|
4
|
-
|
|
5
|
-
// src/operations/definitions.ts
|
|
6
|
-
var definitions_exports = {};
|
|
7
|
-
__export(definitions_exports, {
|
|
8
|
-
TogglePresentation: () => TogglePresentation
|
|
9
|
-
});
|
|
10
|
-
import * as Schema from "effect/Schema";
|
|
11
|
-
import { Collection } from "@dxos/echo";
|
|
12
|
-
import { Operation } from "@dxos/operation";
|
|
13
|
-
import { Markdown } from "@dxos/plugin-markdown/types";
|
|
14
|
-
import { meta } from "#meta";
|
|
15
|
-
var PRESENTER_OPERATION = `${meta.id}.operation`;
|
|
16
|
-
var TogglePresentation = Operation.make({
|
|
17
|
-
meta: {
|
|
18
|
-
key: `${PRESENTER_OPERATION}.toggle-presentation`,
|
|
19
|
-
name: "Toggle Presentation"
|
|
20
|
-
},
|
|
21
|
-
input: Schema.Struct({
|
|
22
|
-
object: Schema.Union(Markdown.Document, Collection.Collection),
|
|
23
|
-
state: Schema.optional(Schema.Boolean)
|
|
24
|
-
}),
|
|
25
|
-
output: Schema.Void
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
definitions_exports as PresenterOperation
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/operations/definitions.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Collection } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { Markdown } from '@dxos/plugin-markdown/types';\n\nimport { meta } from '#meta';\n\nconst PRESENTER_OPERATION = `${meta.id}.operation`;\n\n// TODO(wittjosiah): This appears to be unused.\nexport const TogglePresentation = Operation.make({\n meta: { key: `${PRESENTER_OPERATION}.toggle-presentation`, name: 'Toggle Presentation' },\n input: Schema.Struct({\n object: Schema.Union(Markdown.Document, Collection.Collection),\n state: Schema.optional(Schema.Boolean),\n }),\n output: Schema.Void,\n});\n"],
|
|
5
|
-
"mappings": ";;;;;AAAA;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AAEzB,SAASC,YAAY;AAErB,IAAMC,sBAAsB,GAAGC,KAAKC,EAAE;AAG/B,IAAMC,qBAAqBC,UAAUC,KAAK;EAC/CJ,MAAM;IAAEK,KAAK,GAAGN,mBAAAA;IAA2CO,MAAM;EAAsB;EACvFC,OAAcC,cAAO;IACnBC,QAAeC,aAAMC,SAASC,UAAUC,WAAWA,UAAU;IAC7DC,OAAcC,gBAAgBC,cAAO;EACvC,CAAA;EACAC,QAAeC;AACjB,CAAA;",
|
|
6
|
-
"names": ["Schema", "Collection", "Operation", "Markdown", "meta", "PRESENTER_OPERATION", "meta", "id", "TogglePresentation", "Operation", "make", "key", "name", "input", "Struct", "object", "Union", "Markdown", "Document", "Collection", "state", "optional", "Boolean", "output", "Void"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/operations/definitions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,eAAO,MAAM,kBAAkB;;;;;;yBAQmoB,CAAC;;;;;;;;eADjqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,kBAAkB,MAAM,eAAe,CAAC"}
|
package/src/operations/index.ts
DELETED
|
File without changes
|
|
File without changes
|