@dxos/plugin-presenter 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51
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/CollectionPresenterContainer-WE7HOMFY.mjs +176 -0
- package/dist/lib/browser/CollectionPresenterContainer-WE7HOMFY.mjs.map +7 -0
- package/dist/lib/browser/DocumentPresenterContainer-3BU2DS5E.mjs +173 -0
- package/dist/lib/browser/DocumentPresenterContainer-3BU2DS5E.mjs.map +7 -0
- package/dist/lib/browser/{MarkdownSlide-BLVWTH3U.mjs → MarkdownSlide-GIYJABHE.mjs} +56 -79
- package/dist/lib/browser/MarkdownSlide-GIYJABHE.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-OH6QU3DC.mjs +113 -0
- package/dist/lib/browser/app-graph-builder-OH6QU3DC.mjs.map +7 -0
- package/dist/lib/browser/chunk-46CHA6Y5.mjs +41 -0
- package/dist/lib/browser/chunk-46CHA6Y5.mjs.map +7 -0
- package/dist/lib/browser/chunk-4PZXJXBO.mjs +50 -0
- package/dist/lib/browser/chunk-4PZXJXBO.mjs.map +7 -0
- package/dist/lib/browser/chunk-L7QYO6LF.mjs +38 -0
- package/dist/lib/browser/chunk-L7QYO6LF.mjs.map +7 -0
- package/dist/lib/browser/chunk-VQVZVXPJ.mjs +18 -0
- package/dist/lib/browser/chunk-VQVZVXPJ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +24 -30
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-P7YJFHF3.mjs → react-surface-QY4ETW6S.mjs} +27 -20
- package/dist/lib/browser/react-surface-QY4ETW6S.mjs.map +7 -0
- package/dist/lib/browser/settings-OLQ7QNLC.mjs +32 -0
- package/dist/lib/browser/settings-OLQ7QNLC.mjs.map +7 -0
- package/dist/types/src/PresenterPlugin.d.ts +2 -1
- package/dist/types/src/PresenterPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +3 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +7 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +10 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/components/CollectionPresenterContainer.d.ts +5 -5
- package/dist/types/src/components/CollectionPresenterContainer.d.ts.map +1 -1
- package/dist/types/src/components/MarkdownSlide.d.ts +4 -3
- package/dist/types/src/components/MarkdownSlide.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/PresenterSettings.d.ts +4 -2
- package/dist/types/src/components/PresenterSettings.d.ts.map +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +20 -19
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +35 -26
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/useExitPresenter.d.ts +2 -3
- package/dist/types/src/useExitPresenter.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -38
- package/src/PresenterPlugin.tsx +9 -23
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +106 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/index.ts +3 -5
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +71 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +31 -0
- package/src/components/CollectionPresenterContainer.tsx +14 -14
- package/src/components/DocumentPresenterContainer.tsx +3 -3
- package/src/components/Markdown/Container.stories.tsx +1 -1
- package/src/components/Markdown/Container.tsx +2 -2
- package/src/components/Markdown/Slide.stories.tsx +1 -1
- package/src/components/Markdown/theme.ts +2 -2
- package/src/components/MarkdownSlide.tsx +6 -2
- package/src/components/Presenter/Layout.tsx +1 -1
- package/src/components/Presenter/Pager.stories.tsx +1 -1
- package/src/components/Presenter/Pager.tsx +53 -18
- package/src/components/PresenterSettings.tsx +16 -11
- package/src/components/RevealPlayer/RevealPlayer.stories.tsx +1 -1
- package/src/components/RevealPlayer/RevealPlayer.tsx +15 -5
- package/src/meta.ts +8 -3
- package/src/types.ts +16 -8
- package/src/useExitPresenter.ts +24 -24
- package/dist/lib/browser/CollectionPresenterContainer-LPJILYRF.mjs +0 -191
- package/dist/lib/browser/CollectionPresenterContainer-LPJILYRF.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-BLVWTH3U.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-RLGABE65.mjs +0 -106
- package/dist/lib/browser/app-graph-builder-RLGABE65.mjs.map +0 -7
- package/dist/lib/browser/chunk-6ZM323ED.mjs +0 -13
- package/dist/lib/browser/chunk-6ZM323ED.mjs.map +0 -7
- package/dist/lib/browser/chunk-7DV6S5XB.mjs +0 -39
- package/dist/lib/browser/chunk-7DV6S5XB.mjs.map +0 -7
- package/dist/lib/browser/chunk-QTSOWA2K.mjs +0 -41
- package/dist/lib/browser/chunk-QTSOWA2K.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/react-surface-P7YJFHF3.mjs.map +0 -7
- package/dist/lib/browser/settings-7A4A2H6X.mjs +0 -22
- package/dist/lib/browser/settings-7A4A2H6X.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -113
- package/src/capabilities/react-surface.tsx +0 -63
- package/src/capabilities/settings.ts +0 -19
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useEffect } from 'react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { IconButton, useControlledState } from '@dxos/react-ui';
|
|
8
8
|
|
|
9
9
|
export type PagerProps = {
|
|
10
10
|
index?: number;
|
|
@@ -14,8 +14,8 @@ export type PagerProps = {
|
|
|
14
14
|
onExit?: () => void;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export const Pager = ({ index:
|
|
18
|
-
const [index, setIndex] = useControlledState(
|
|
17
|
+
export const Pager = ({ index: indexProp = 0, count = 0, keys, onChange, onExit }: PagerProps) => {
|
|
18
|
+
const [index, setIndex] = useControlledState(indexProp);
|
|
19
19
|
useEffect(() => {
|
|
20
20
|
onChange?.(index);
|
|
21
21
|
}, [index]);
|
|
@@ -76,18 +76,46 @@ export const Pager = ({ index: indexParam = 0, count = 0, keys, onChange, onExit
|
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
<div className='flex items-center text-neutral-500'>
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
<IconButton
|
|
80
|
+
icon='ph--caret-double-left--regular'
|
|
81
|
+
size={6}
|
|
82
|
+
label='Jump to first'
|
|
83
|
+
iconOnly
|
|
84
|
+
noTooltip
|
|
85
|
+
variant='ghost'
|
|
86
|
+
classNames='p-0'
|
|
87
|
+
onClick={() => onChange?.(0)}
|
|
88
|
+
/>
|
|
89
|
+
<IconButton
|
|
90
|
+
icon='ph--caret-left--regular'
|
|
91
|
+
size={6}
|
|
92
|
+
label='Previous'
|
|
93
|
+
iconOnly
|
|
94
|
+
noTooltip
|
|
95
|
+
variant='ghost'
|
|
96
|
+
classNames='p-0'
|
|
97
|
+
onClick={() => handleChangeIndex(-1)}
|
|
98
|
+
/>
|
|
99
|
+
<IconButton
|
|
100
|
+
icon='ph--caret-right--regular'
|
|
101
|
+
size={6}
|
|
102
|
+
label='Next'
|
|
103
|
+
iconOnly
|
|
104
|
+
noTooltip
|
|
105
|
+
variant='ghost'
|
|
106
|
+
classNames='p-0'
|
|
107
|
+
onClick={() => handleChangeIndex(1)}
|
|
108
|
+
/>
|
|
109
|
+
<IconButton
|
|
110
|
+
icon='ph--caret-double-right--regular'
|
|
111
|
+
size={6}
|
|
112
|
+
label='Jump to last'
|
|
113
|
+
iconOnly
|
|
114
|
+
noTooltip
|
|
115
|
+
variant='ghost'
|
|
116
|
+
classNames='p-0'
|
|
117
|
+
onClick={() => onChange?.(count - 1)}
|
|
118
|
+
/>
|
|
91
119
|
</div>
|
|
92
120
|
);
|
|
93
121
|
};
|
|
@@ -113,8 +141,15 @@ export const PageNumber = ({ index = 0, count = 1 }: PageNumberProps) => {
|
|
|
113
141
|
|
|
114
142
|
export const StartButton = ({ running, onClick }: { running?: boolean; onClick?: (start: boolean) => void }) => {
|
|
115
143
|
return (
|
|
116
|
-
<
|
|
117
|
-
{
|
|
118
|
-
|
|
144
|
+
<IconButton
|
|
145
|
+
icon={running ? 'ph--x--regular' : 'ph--play--regular'}
|
|
146
|
+
size={6}
|
|
147
|
+
label={running ? 'Stop' : 'Play'}
|
|
148
|
+
iconOnly
|
|
149
|
+
noTooltip
|
|
150
|
+
variant='ghost'
|
|
151
|
+
classNames='p-0'
|
|
152
|
+
onClick={() => onClick?.(!running)}
|
|
153
|
+
/>
|
|
119
154
|
);
|
|
120
155
|
};
|
|
@@ -5,26 +5,31 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { Input, useTranslation } from '@dxos/react-ui';
|
|
8
|
-
import {
|
|
8
|
+
import { Settings } from '@dxos/react-ui-form';
|
|
9
9
|
|
|
10
10
|
import { meta } from '../meta';
|
|
11
11
|
import { type PresenterSettingsProps } from '../types';
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export type PresenterSettingsComponentProps = {
|
|
14
|
+
settings: PresenterSettingsProps;
|
|
15
|
+
onSettingsChange: (fn: (current: PresenterSettingsProps) => PresenterSettingsProps) => void;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const PresenterSettings = ({ settings, onSettingsChange }: PresenterSettingsComponentProps) => {
|
|
14
19
|
const { t } = useTranslation(meta.id);
|
|
15
20
|
|
|
16
21
|
return (
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
<
|
|
20
|
-
<
|
|
22
|
+
<Settings.Root>
|
|
23
|
+
<Settings.Section title={t('settings title', { ns: meta.id })}>
|
|
24
|
+
<Settings.Group>
|
|
25
|
+
<Settings.ItemInput title={t('present collections label')}>
|
|
21
26
|
<Input.Switch
|
|
22
27
|
checked={settings.presentCollections}
|
|
23
|
-
onCheckedChange={(checked) => (
|
|
28
|
+
onCheckedChange={(checked) => onSettingsChange((s) => ({ ...s, presentCollections: !!checked }))}
|
|
24
29
|
/>
|
|
25
|
-
</
|
|
26
|
-
</
|
|
27
|
-
</
|
|
28
|
-
</
|
|
30
|
+
</Settings.ItemInput>
|
|
31
|
+
</Settings.Group>
|
|
32
|
+
</Settings.Section>
|
|
33
|
+
</Settings.Root>
|
|
29
34
|
);
|
|
30
35
|
};
|
|
@@ -22,7 +22,7 @@ import { RevealPlayer } from './RevealPlayer';
|
|
|
22
22
|
const meta = {
|
|
23
23
|
title: 'plugins/plugin-presenter/RevealPlayer',
|
|
24
24
|
component: RevealPlayer,
|
|
25
|
-
decorators: [withTheme],
|
|
25
|
+
decorators: [withTheme()],
|
|
26
26
|
parameters: {
|
|
27
27
|
layout: 'fullscreen',
|
|
28
28
|
translations,
|
|
@@ -18,7 +18,7 @@ import RevealHighlight from 'reveal.js/plugin/highlight/highlight';
|
|
|
18
18
|
import RevealMarkdown from 'reveal.js/plugin/markdown/plugin.js';
|
|
19
19
|
|
|
20
20
|
import { type ThemedClassName, useAsyncEffect } from '@dxos/react-ui';
|
|
21
|
-
import { mx } from '@dxos/
|
|
21
|
+
import { mx } from '@dxos/ui-theme';
|
|
22
22
|
|
|
23
23
|
const styles = `
|
|
24
24
|
<style type="text/css">
|
|
@@ -91,6 +91,9 @@ export const RevealPlayer = ({ classNames, content, slide, fullscreen = true, on
|
|
|
91
91
|
slideNumber: false,
|
|
92
92
|
embedded: true,
|
|
93
93
|
|
|
94
|
+
// Disable autoplay to prevent errors in headless environments (e.g., CI).
|
|
95
|
+
autoPlayMedia: false,
|
|
96
|
+
|
|
94
97
|
// TODO(burdon): Speaker view requires server to serve popout window.
|
|
95
98
|
// https://revealjs.com/speaker-view
|
|
96
99
|
showNotes: false,
|
|
@@ -142,11 +145,18 @@ export const RevealPlayer = ({ classNames, content, slide, fullscreen = true, on
|
|
|
142
145
|
};
|
|
143
146
|
});
|
|
144
147
|
|
|
148
|
+
// TOOD(burdon): Trap cursor keys (otherwise tabster grabs focus.)
|
|
145
149
|
return (
|
|
146
|
-
<div
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
<div
|
|
151
|
+
className={mx(
|
|
152
|
+
'grid place-items-center is-full bs-full overflow-hidden bg-black',
|
|
153
|
+
fullscreen && 'absolute inset-0',
|
|
154
|
+
classNames,
|
|
155
|
+
)}
|
|
156
|
+
>
|
|
157
|
+
<div className='relative aspect-video is-full bs-full bs-auto max-bs-full overflow-hidden'>
|
|
158
|
+
<div ref={deckDivRef} className='absolute inset-0 reveal'>
|
|
159
|
+
{/* NOTE: Must be in head. */}
|
|
150
160
|
<style>
|
|
151
161
|
<link rel='preconnect' href='https://fonts.googleapis.com' />
|
|
152
162
|
<link rel='preconnect' href='https://fonts.gstatic.com' {...{ crossOrigin: '' }} />
|
package/src/meta.ts
CHANGED
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type
|
|
5
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { trim } from '@dxos/util';
|
|
6
7
|
|
|
7
|
-
export const meta:
|
|
8
|
+
export const meta: Plugin.Meta = {
|
|
8
9
|
id: 'dxos.org/plugin/presenter',
|
|
9
10
|
name: 'Presenter',
|
|
10
|
-
description:
|
|
11
|
+
description: trim`
|
|
12
|
+
Transform markdown documents into interactive presentation slideshows.
|
|
13
|
+
Navigate between slides with keyboard controls and present content in full-screen mode.
|
|
14
|
+
`,
|
|
11
15
|
icon: 'ph--presentation--regular',
|
|
16
|
+
iconHue: 'indigo',
|
|
12
17
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-presenter',
|
|
13
18
|
};
|
package/src/types.ts
CHANGED
|
@@ -2,27 +2,31 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
5
6
|
import * as Schema from 'effect/Schema';
|
|
6
7
|
import { type Context, createContext } from 'react';
|
|
7
8
|
|
|
9
|
+
import { Capability } from '@dxos/app-framework';
|
|
10
|
+
import { Operation } from '@dxos/operation';
|
|
8
11
|
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
9
|
-
import {
|
|
12
|
+
import { Collection } from '@dxos/schema';
|
|
10
13
|
|
|
11
14
|
import { meta } from './meta';
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
const PRESENTER_ACTION = `${meta.id}/action`;
|
|
16
|
+
const PRESENTER_OPERATION = `${meta.id}/operation`;
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
// TODO(wittjosiah): This appears to be unused.
|
|
19
|
+
export namespace PresenterOperation {
|
|
20
|
+
export const TogglePresentation = Operation.make({
|
|
21
|
+
meta: { key: `${PRESENTER_OPERATION}/toggle-presentation`, name: 'Toggle Presentation' },
|
|
22
|
+
schema: {
|
|
19
23
|
input: Schema.Struct({
|
|
20
|
-
object: Schema.Union(Markdown.Document,
|
|
24
|
+
object: Schema.Union(Markdown.Document, Collection.Collection),
|
|
21
25
|
state: Schema.optional(Schema.Boolean),
|
|
22
26
|
}),
|
|
23
27
|
output: Schema.Void,
|
|
24
28
|
},
|
|
25
|
-
)
|
|
29
|
+
});
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
export type PresenterContextType = {
|
|
@@ -44,3 +48,7 @@ export const PresenterSettingsSchema = Schema.mutable(
|
|
|
44
48
|
);
|
|
45
49
|
|
|
46
50
|
export type PresenterSettingsProps = Schema.Schema.Type<typeof PresenterSettingsSchema>;
|
|
51
|
+
|
|
52
|
+
export namespace PresenterCapabilities {
|
|
53
|
+
export const Settings = Capability.make<Atom.Writable<PresenterSettingsProps>>(`${meta.id}/capability/settings`);
|
|
54
|
+
}
|
package/src/useExitPresenter.ts
CHANGED
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
+
import { useCallback, useMemo } from 'react';
|
|
6
7
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
8
|
+
import { useCapability, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
9
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
10
|
+
import { Obj } from '@dxos/echo';
|
|
9
11
|
import { DeckCapabilities } from '@dxos/plugin-deck';
|
|
10
|
-
import {
|
|
11
|
-
import { fullyQualifiedId, getSpace } from '@dxos/react-client/echo';
|
|
12
|
+
import { DeckOperation } from '@dxos/plugin-deck/types';
|
|
12
13
|
|
|
13
|
-
export const useExitPresenter = (object:
|
|
14
|
-
const {
|
|
15
|
-
const
|
|
14
|
+
export const useExitPresenter = (object: any) => {
|
|
15
|
+
const { invokePromise } = useOperationInvoker();
|
|
16
|
+
const stateAtom = useCapability(DeckCapabilities.State);
|
|
17
|
+
const state = useAtomValue(stateAtom);
|
|
18
|
+
|
|
19
|
+
// Compute deck from decks[activeDeck] since the getter doesn't survive spread operations.
|
|
20
|
+
const deck = useMemo(() => state.decks[state.activeDeck], [state.decks, state.activeDeck]);
|
|
16
21
|
|
|
17
22
|
return useCallback(() => {
|
|
18
|
-
const objectId =
|
|
19
|
-
if (
|
|
20
|
-
void
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
);
|
|
23
|
+
const objectId = Obj.getDXN(object).toString();
|
|
24
|
+
if (deck?.fullscreen) {
|
|
25
|
+
void invokePromise(DeckOperation.Adjust, {
|
|
26
|
+
type: 'solo--fullscreen',
|
|
27
|
+
id: objectId,
|
|
28
|
+
});
|
|
26
29
|
}
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}),
|
|
33
|
-
);
|
|
34
|
-
}, [dispatch, object]);
|
|
30
|
+
return invokePromise(LayoutOperation.Open, {
|
|
31
|
+
subject: [objectId],
|
|
32
|
+
workspace: Obj.getDatabase(object)?.spaceId,
|
|
33
|
+
});
|
|
34
|
+
}, [invokePromise, object, deck]);
|
|
35
35
|
};
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useExitPresenter
|
|
3
|
-
} from "./chunk-UVGTHJUO.mjs";
|
|
4
|
-
import {
|
|
5
|
-
PresenterContext
|
|
6
|
-
} from "./chunk-7DV6S5XB.mjs";
|
|
7
|
-
import "./chunk-6ZM323ED.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/CollectionPresenterContainer.tsx
|
|
10
|
-
import { useSignals as _useSignals3 } from "@preact-signals/safe-react/tracking";
|
|
11
|
-
import React3, { useContext, useState } from "react";
|
|
12
|
-
import { Surface } from "@dxos/app-framework";
|
|
13
|
-
import { StackItem } from "@dxos/react-ui-stack";
|
|
14
|
-
|
|
15
|
-
// src/components/Presenter/Layout.tsx
|
|
16
|
-
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
17
|
-
import React from "react";
|
|
18
|
-
import { mx } from "@dxos/react-ui-theme";
|
|
19
|
-
var Layout = ({ children, classNames, topLeft, topRight, bottomLeft, bottomRight }) => {
|
|
20
|
-
var _effect = _useSignals();
|
|
21
|
-
try {
|
|
22
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
23
|
-
className: mx("flex grow relative overflow-hidden bg-attention", classNames)
|
|
24
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
25
|
-
className: mx("flex flex-col grow overflow-hidden")
|
|
26
|
-
}, children), /* @__PURE__ */ React.createElement("div", {
|
|
27
|
-
className: "z-[200]"
|
|
28
|
-
}, /* @__PURE__ */ React.createElement("div", {
|
|
29
|
-
className: "absolute top-4 left-4"
|
|
30
|
-
}, topLeft), /* @__PURE__ */ React.createElement("div", {
|
|
31
|
-
className: "absolute top-4 right-4"
|
|
32
|
-
}, topRight), /* @__PURE__ */ React.createElement("div", {
|
|
33
|
-
className: "absolute bottom-4 left-4"
|
|
34
|
-
}, bottomLeft), /* @__PURE__ */ React.createElement("div", {
|
|
35
|
-
className: "absolute bottom-4 right-4"
|
|
36
|
-
}, bottomRight)));
|
|
37
|
-
} finally {
|
|
38
|
-
_effect.f();
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// src/components/Presenter/Pager.tsx
|
|
43
|
-
import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
|
|
44
|
-
import React2, { useEffect } from "react";
|
|
45
|
-
import { Button, Icon, useControlledState } from "@dxos/react-ui";
|
|
46
|
-
var Pager = ({ index: indexParam = 0, count = 0, keys, onChange, onExit }) => {
|
|
47
|
-
var _effect = _useSignals2();
|
|
48
|
-
try {
|
|
49
|
-
const [index, setIndex] = useControlledState(indexParam);
|
|
50
|
-
useEffect(() => {
|
|
51
|
-
onChange?.(index);
|
|
52
|
-
}, [
|
|
53
|
-
index
|
|
54
|
-
]);
|
|
55
|
-
const handleChangeIndex = (dir) => {
|
|
56
|
-
setIndex((index2) => {
|
|
57
|
-
const next = index2 + dir;
|
|
58
|
-
return next >= 0 && next < count ? next : index2;
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (!keys) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const keydownHandler = (event) => {
|
|
66
|
-
switch (event.key) {
|
|
67
|
-
case "Escape": {
|
|
68
|
-
onExit?.();
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
case "ArrowLeft": {
|
|
72
|
-
if (event.shiftKey) {
|
|
73
|
-
onChange?.(0);
|
|
74
|
-
} else {
|
|
75
|
-
handleChangeIndex(-1);
|
|
76
|
-
}
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
case "ArrowRight": {
|
|
80
|
-
if (event.shiftKey) {
|
|
81
|
-
onChange?.(count - 1);
|
|
82
|
-
} else {
|
|
83
|
-
handleChangeIndex(1);
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
case "ArrowUp": {
|
|
88
|
-
onChange?.(0);
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
case "ArrowDown": {
|
|
92
|
-
onChange?.(count - 1);
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
window.addEventListener("keydown", keydownHandler);
|
|
98
|
-
return () => window.removeEventListener("keydown", keydownHandler);
|
|
99
|
-
}, [
|
|
100
|
-
keys,
|
|
101
|
-
count
|
|
102
|
-
]);
|
|
103
|
-
if (index === void 0 || !count) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
107
|
-
className: "flex items-center text-neutral-500"
|
|
108
|
-
}, /* @__PURE__ */ React2.createElement(Button, {
|
|
109
|
-
variant: "ghost",
|
|
110
|
-
classNames: "p-0",
|
|
111
|
-
onClick: () => onChange?.(0)
|
|
112
|
-
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
113
|
-
icon: "ph--caret-double-left--regular",
|
|
114
|
-
size: 6
|
|
115
|
-
})), /* @__PURE__ */ React2.createElement(Button, {
|
|
116
|
-
variant: "ghost",
|
|
117
|
-
classNames: "p-0",
|
|
118
|
-
onClick: () => handleChangeIndex(-1)
|
|
119
|
-
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
120
|
-
icon: "ph--caret-left--regular",
|
|
121
|
-
size: 6
|
|
122
|
-
})), /* @__PURE__ */ React2.createElement(Button, {
|
|
123
|
-
variant: "ghost",
|
|
124
|
-
classNames: "p-0",
|
|
125
|
-
onClick: () => handleChangeIndex(1)
|
|
126
|
-
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
127
|
-
icon: "ph--caret-right--regular",
|
|
128
|
-
size: 6
|
|
129
|
-
})), /* @__PURE__ */ React2.createElement(Button, {
|
|
130
|
-
variant: "ghost",
|
|
131
|
-
classNames: "p-0",
|
|
132
|
-
onClick: () => onChange?.(count - 1)
|
|
133
|
-
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
134
|
-
icon: "ph--caret-double-right--regular",
|
|
135
|
-
size: 6
|
|
136
|
-
})));
|
|
137
|
-
} finally {
|
|
138
|
-
_effect.f();
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
var PageNumber = ({ index = 0, count = 1 }) => {
|
|
142
|
-
var _effect = _useSignals2();
|
|
143
|
-
try {
|
|
144
|
-
if (index === void 0 || !count) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
return /* @__PURE__ */ React2.createElement("div", {
|
|
148
|
-
className: "flex items-center text-neutral-500 text-2xl"
|
|
149
|
-
}, /* @__PURE__ */ React2.createElement("div", null, index + 1, " / ", count));
|
|
150
|
-
} finally {
|
|
151
|
-
_effect.f();
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
// src/components/CollectionPresenterContainer.tsx
|
|
156
|
-
var CollectionPresenterContainer = ({ collection }) => {
|
|
157
|
-
var _effect = _useSignals3();
|
|
158
|
-
try {
|
|
159
|
-
const [slide, setSlide] = useState(0);
|
|
160
|
-
const { running } = useContext(PresenterContext);
|
|
161
|
-
const handleExit = useExitPresenter(collection);
|
|
162
|
-
return /* @__PURE__ */ React3.createElement(StackItem.Content, {
|
|
163
|
-
classNames: "relative"
|
|
164
|
-
}, /* @__PURE__ */ React3.createElement(Layout, {
|
|
165
|
-
bottomRight: /* @__PURE__ */ React3.createElement(PageNumber, {
|
|
166
|
-
index: slide,
|
|
167
|
-
count: collection.objects.length
|
|
168
|
-
}),
|
|
169
|
-
bottomLeft: /* @__PURE__ */ React3.createElement(Pager, {
|
|
170
|
-
index: slide,
|
|
171
|
-
count: collection.objects.length,
|
|
172
|
-
keys: running,
|
|
173
|
-
onChange: setSlide,
|
|
174
|
-
onExit: handleExit
|
|
175
|
-
})
|
|
176
|
-
}, /* @__PURE__ */ React3.createElement(Surface, {
|
|
177
|
-
role: "slide",
|
|
178
|
-
data: {
|
|
179
|
-
subject: collection.objects[slide]
|
|
180
|
-
},
|
|
181
|
-
placeholder: /* @__PURE__ */ React3.createElement(React3.Fragment, null)
|
|
182
|
-
})));
|
|
183
|
-
} finally {
|
|
184
|
-
_effect.f();
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
var CollectionPresenterContainer_default = CollectionPresenterContainer;
|
|
188
|
-
export {
|
|
189
|
-
CollectionPresenterContainer_default as default
|
|
190
|
-
};
|
|
191
|
-
//# sourceMappingURL=CollectionPresenterContainer-LPJILYRF.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/CollectionPresenterContainer.tsx", "../../../src/components/Presenter/Layout.tsx", "../../../src/components/Presenter/Pager.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type FC, useContext, useState } from 'react';\n\nimport { Surface } from '@dxos/app-framework';\nimport { StackItem } from '@dxos/react-ui-stack';\nimport { type DataType } from '@dxos/schema';\n\nimport { PresenterContext } from '../types';\nimport { useExitPresenter } from '../useExitPresenter';\n\nimport { Layout, PageNumber, Pager } from './Presenter';\n\nconst CollectionPresenterContainer: FC<{ collection: DataType.Collection }> = ({ collection }) => {\n const [slide, setSlide] = useState(0);\n\n const { running } = useContext(PresenterContext);\n\n const handleExit = useExitPresenter(collection);\n\n return (\n <StackItem.Content classNames='relative'>\n <Layout\n bottomRight={<PageNumber index={slide} count={collection.objects.length} />}\n bottomLeft={\n <Pager\n index={slide}\n count={collection.objects.length}\n keys={running}\n onChange={setSlide}\n onExit={handleExit}\n />\n }\n >\n {/* TODO(wittjosiah): Better slide placeholder. */}\n <Surface role='slide' data={{ subject: collection.objects[slide] }} placeholder={<></>} />\n </Layout>\n </StackItem.Content>\n );\n};\n\nexport default CollectionPresenterContainer;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type PropsWithChildren, type ReactNode } from 'react';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-ui-theme';\n\nexport type LayoutProps = ThemedClassName<\n PropsWithChildren<{\n className?: string;\n topLeft?: ReactNode;\n topRight?: ReactNode;\n bottomLeft?: ReactNode;\n bottomRight?: ReactNode;\n }>\n>;\n\nexport const Layout = ({ children, classNames, topLeft, topRight, bottomLeft, bottomRight }: LayoutProps) => {\n return (\n <div className={mx('flex grow relative overflow-hidden bg-attention', classNames)}>\n <div className={mx('flex flex-col grow overflow-hidden')}>{children}</div>\n\n <div className='z-[200]'>\n <div className='absolute top-4 left-4'>{topLeft}</div>\n <div className='absolute top-4 right-4'>{topRight}</div>\n <div className='absolute bottom-4 left-4'>{bottomLeft}</div>\n <div className='absolute bottom-4 right-4'>{bottomRight}</div>\n </div>\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useEffect } from 'react';\n\nimport { Button, Icon, useControlledState } from '@dxos/react-ui';\n\nexport type PagerProps = {\n index?: number;\n count?: number;\n keys?: boolean; // TODO(burdon): Rename.\n onChange?: (index: number) => void;\n onExit?: () => void;\n};\n\nexport const Pager = ({ index: indexParam = 0, count = 0, keys, onChange, onExit }: PagerProps) => {\n const [index, setIndex] = useControlledState(indexParam);\n useEffect(() => {\n onChange?.(index);\n }, [index]);\n\n const handleChangeIndex = (dir: number) => {\n setIndex((index) => {\n const next = index + dir;\n return next >= 0 && next < count ? next : index;\n });\n };\n\n // TODO(burdon): Standardize via system key binding.\n useEffect(() => {\n if (!keys) {\n return;\n }\n\n const keydownHandler = (event: KeyboardEvent) => {\n switch (event.key) {\n case 'Escape': {\n onExit?.();\n break;\n }\n case 'ArrowLeft': {\n if (event.shiftKey) {\n onChange?.(0);\n } else {\n handleChangeIndex(-1);\n }\n break;\n }\n case 'ArrowRight': {\n if (event.shiftKey) {\n onChange?.(count - 1);\n } else {\n handleChangeIndex(1);\n }\n break;\n }\n case 'ArrowUp': {\n onChange?.(0);\n break;\n }\n case 'ArrowDown': {\n onChange?.(count - 1);\n break;\n }\n }\n };\n\n window.addEventListener('keydown', keydownHandler);\n return () => window.removeEventListener('keydown', keydownHandler);\n }, [keys, count]);\n\n if (index === undefined || !count) {\n return null;\n }\n\n return (\n <div className='flex items-center text-neutral-500'>\n <Button variant='ghost' classNames='p-0' onClick={() => onChange?.(0)}>\n <Icon icon='ph--caret-double-left--regular' size={6} />\n </Button>\n <Button variant='ghost' classNames='p-0' onClick={() => handleChangeIndex(-1)}>\n <Icon icon='ph--caret-left--regular' size={6} />\n </Button>\n <Button variant='ghost' classNames='p-0' onClick={() => handleChangeIndex(1)}>\n <Icon icon='ph--caret-right--regular' size={6} />\n </Button>\n <Button variant='ghost' classNames='p-0' onClick={() => onChange?.(count - 1)}>\n <Icon icon='ph--caret-double-right--regular' size={6} />\n </Button>\n </div>\n );\n};\n\nexport type PageNumberProps = {\n index?: number;\n count?: number;\n};\n\nexport const PageNumber = ({ index = 0, count = 1 }: PageNumberProps) => {\n if (index === undefined || !count) {\n return null;\n }\n\n return (\n <div className='flex items-center text-neutral-500 text-2xl'>\n <div>\n {index + 1} / {count}\n </div>\n </div>\n );\n};\n\nexport const StartButton = ({ running, onClick }: { running?: boolean; onClick?: (start: boolean) => void }) => {\n return (\n <Button variant='ghost' classNames='p-0' onClick={() => onClick?.(!running)}>\n {(running && <Icon icon='ph--x--regular' size={6} />) || <Icon icon='ph--play--regular' size={6} />}\n </Button>\n );\n};\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": ["React", "useContext", "useState", "Surface", "StackItem", "React", "mx", "Layout", "children", "classNames", "topLeft", "topRight", "bottomLeft", "bottomRight", "div", "className", "mx", "React", "useEffect", "Button", "Icon", "useControlledState", "Pager", "index", "indexParam", "count", "keys", "onChange", "onExit", "setIndex", "useControlledState", "useEffect", "handleChangeIndex", "dir", "next", "keydownHandler", "event", "key", "shiftKey", "window", "addEventListener", "removeEventListener", "undefined", "React", "div", "className", "Button", "variant", "classNames", "onClick", "Icon", "icon", "size", "PageNumber", "CollectionPresenterContainer", "collection", "slide", "setSlide", "useState", "running", "useContext", "PresenterContext", "handleExit", "useExitPresenter", "React", "StackItem", "Content", "classNames", "Layout", "bottomRight", "PageNumber", "index", "count", "objects", "length", "bottomLeft", "Pager", "keys", "onChange", "onExit", "Surface", "role", "data", "subject", "placeholder"]
|
|
7
|
-
}
|