@dxos/plugin-presenter 0.8.1-main.ae460ac → 0.8.1-staging.31c3ee1
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/{PresenterMain-7JXM3QQ7.mjs → PresenterMain-PQPWYIWU.mjs} +3 -3
- package/dist/lib/browser/{RevealMain-DZKTATGL.mjs → RevealMain-B2PJXHND.mjs} +15 -8
- package/dist/lib/browser/RevealMain-B2PJXHND.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-6U7WTJKG.mjs → app-graph-builder-CWMMBJTB.mjs} +5 -4
- package/dist/lib/browser/app-graph-builder-CWMMBJTB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-IYU2KXPW.mjs → chunk-3VVM67QE.mjs} +4 -4
- package/dist/lib/browser/{chunk-SFMK6EE3.mjs → chunk-CQR4O6KC.mjs} +2 -2
- package/dist/lib/browser/{chunk-MSAMS5TA.mjs → chunk-FK2KJZ73.mjs} +2 -2
- package/dist/lib/browser/{chunk-Q5U3VOZB.mjs → chunk-S2S5RFJ4.mjs} +1 -1
- package/dist/lib/browser/chunk-S2S5RFJ4.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +8 -8
- package/dist/lib/browser/{intent-resolver-K4ZIL6XZ.mjs → intent-resolver-TTGJCKQ5.mjs} +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-EWJX2345.mjs → react-surface-6JT4CB4B.mjs} +10 -9
- package/dist/lib/browser/react-surface-6JT4CB4B.mjs.map +7 -0
- package/dist/lib/browser/{settings-L73ZKGLV.mjs → settings-RBF22MVS.mjs} +3 -3
- package/dist/lib/browser/{state-IGJRHRIA.mjs → state-KI7F4I6V.mjs} +3 -3
- 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/components/Markdown/Container.d.ts +2 -2
- package/dist/types/src/components/Markdown/Container.d.ts.map +1 -1
- package/dist/types/src/components/Markdown/Slide.d.ts +2 -1
- package/dist/types/src/components/Markdown/Slide.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/Layout.d.ts +2 -2
- package/dist/types/src/components/Presenter/Layout.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/Pager.d.ts +3 -3
- package/dist/types/src/components/Presenter/Pager.d.ts.map +1 -1
- package/dist/types/src/components/PresenterSettings.d.ts +2 -1
- package/dist/types/src/components/PresenterSettings.d.ts.map +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts +2 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -7
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +64 -2
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +21 -21
- package/src/capabilities/app-graph-builder.ts +3 -2
- package/src/capabilities/react-surface.tsx +5 -4
- package/src/components/RevealPlayer/RevealPlayer.tsx +13 -5
- package/src/meta.ts +2 -2
- package/dist/lib/browser/RevealMain-DZKTATGL.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs.map +0 -7
- package/dist/lib/browser/chunk-Q5U3VOZB.mjs.map +0 -7
- package/dist/lib/browser/react-surface-EWJX2345.mjs.map +0 -7
- /package/dist/lib/browser/{PresenterMain-7JXM3QQ7.mjs.map → PresenterMain-PQPWYIWU.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-IYU2KXPW.mjs.map → chunk-3VVM67QE.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-SFMK6EE3.mjs.map → chunk-CQR4O6KC.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-MSAMS5TA.mjs.map → chunk-FK2KJZ73.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-K4ZIL6XZ.mjs.map → intent-resolver-TTGJCKQ5.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-L73ZKGLV.mjs.map → settings-RBF22MVS.mjs.map} +0 -0
- /package/dist/lib/browser/{state-IGJRHRIA.mjs.map → state-KI7F4I6V.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,cAAc,EAA8B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,cAAc,EAA8B,MAAM,qBAAqB,CAAC;AAEnG,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;kCAQvC,cAAc;;qBAsC2zC,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;u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face.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA6C,MAAM,qBAAqB,CAAC;;
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA6C,MAAM,qBAAqB,CAAC;;AAW9F,wBA2CK"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
export type ContainerProps = ThemedClassName<PropsWithChildren<{}>>;
|
|
4
4
|
/**
|
|
5
5
|
* Scaled markdown container.
|
|
6
6
|
*/
|
|
7
|
-
export declare const Container: ({ children, classNames }: ContainerProps) =>
|
|
7
|
+
export declare const Container: ({ children, classNames }: ContainerProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/Container.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/Container.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,SAAS,6BAA8B,cAAc,sBA4BjE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import 'highlight.js/styles/github.css';
|
|
2
3
|
export type SlideProps = {
|
|
3
4
|
content?: string;
|
|
@@ -5,5 +6,5 @@ export type SlideProps = {
|
|
|
5
6
|
[selector: string]: string;
|
|
6
7
|
};
|
|
7
8
|
};
|
|
8
|
-
export declare const Slide: ({ content, classes }: SlideProps) =>
|
|
9
|
+
export declare const Slide: ({ content, classes }: SlideProps) => React.JSX.Element;
|
|
9
10
|
//# sourceMappingURL=Slide.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/Slide.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slide.d.ts","sourceRoot":"","sources":["../../../../../src/components/Markdown/Slide.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,gCAAgC,CAAC;AAIxC,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,KAAK,yBAA6C,UAAU,sBAwIxE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropsWithChildren, type ReactNode } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren, type ReactNode } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
export type LayoutProps = ThemedClassName<PropsWithChildren<{
|
|
4
4
|
className?: string;
|
|
@@ -7,5 +7,5 @@ export type LayoutProps = ThemedClassName<PropsWithChildren<{
|
|
|
7
7
|
bottomLeft?: ReactNode;
|
|
8
8
|
bottomRight?: ReactNode;
|
|
9
9
|
}>>;
|
|
10
|
-
export declare const Layout: ({ children, classNames, topLeft, topRight, bottomLeft, bottomRight }: LayoutProps) =>
|
|
10
|
+
export declare const Layout: ({ children, classNames, topLeft, topRight, bottomLeft, bottomRight }: LayoutProps) => React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/components/Presenter/Layout.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/components/Presenter/Layout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,MAAM,MAAM,WAAW,GAAG,eAAe,CACvC,iBAAiB,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC,CACH,CAAC;AAEF,eAAO,MAAM,MAAM,yEAA0E,WAAW,sBAavG,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
2
|
export type PagerProps = {
|
|
3
3
|
index?: number;
|
|
4
4
|
count?: number;
|
|
@@ -6,12 +6,12 @@ export type PagerProps = {
|
|
|
6
6
|
onChange?: (index: number) => void;
|
|
7
7
|
onExit?: () => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const Pager: ({ index: controlledIndex, count, keys, onChange, onExit }: PagerProps) =>
|
|
9
|
+
export declare const Pager: ({ index: controlledIndex, count, keys, onChange, onExit }: PagerProps) => React.JSX.Element | null;
|
|
10
10
|
export type PageNumberProps = {
|
|
11
11
|
index?: number;
|
|
12
12
|
count?: number;
|
|
13
13
|
};
|
|
14
|
-
export declare const PageNumber: ({ index, count }: PageNumberProps) =>
|
|
14
|
+
export declare const PageNumber: ({ index, count }: PageNumberProps) => React.JSX.Element | null;
|
|
15
15
|
export declare const StartButton: FC<{
|
|
16
16
|
running?: boolean;
|
|
17
17
|
onClick?: (start: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pager.d.ts","sourceRoot":"","sources":["../../../../../src/components/Presenter/Pager.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"Pager.d.ts","sourceRoot":"","sources":["../../../../../src/components/Presenter/Pager.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAa,MAAM,OAAO,CAAC;AAKlD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,KAAK,8DAAuE,UAAU,6BA4ElG,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,qBAA8B,eAAe,6BAYnE,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CAAE,CAMrF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type PresenterSettingsProps } from '../types';
|
|
2
3
|
export declare const PresenterSettings: ({ settings }: {
|
|
3
4
|
settings: PresenterSettingsProps;
|
|
4
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element;
|
|
5
6
|
//# sourceMappingURL=PresenterSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresenterSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/PresenterSettings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PresenterSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/PresenterSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,eAAO,MAAM,iBAAiB,iBAAkB;IAAE,QAAQ,EAAE,sBAAsB,CAAA;CAAE,sBAanF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import 'reveal.js/dist/reveal.css';
|
|
2
2
|
import 'reveal.js/dist/theme/black.css';
|
|
3
3
|
import 'highlight.js/styles/tokyo-night-dark.css';
|
|
4
|
+
import React from 'react';
|
|
4
5
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
5
6
|
export type RevealProps = ThemedClassName<{
|
|
6
7
|
content: string;
|
|
@@ -8,5 +9,5 @@ export type RevealProps = ThemedClassName<{
|
|
|
8
9
|
fullscreen?: boolean;
|
|
9
10
|
onExit?: () => void;
|
|
10
11
|
}>;
|
|
11
|
-
export declare const RevealPlayer: ({ classNames, content, slide, fullscreen, onExit }: RevealProps) =>
|
|
12
|
+
export declare const RevealPlayer: ({ classNames, content, slide, fullscreen, onExit }: RevealProps) => React.JSX.Element;
|
|
12
13
|
//# sourceMappingURL=RevealPlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevealPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/RevealPlayer/RevealPlayer.tsx"],"names":[],"mappings":"AAKA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,gCAAgC,CAAC;AAIxC,OAAO,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"RevealPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/RevealPlayer/RevealPlayer.tsx"],"names":[],"mappings":"AAKA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,gCAAgC,CAAC;AAIxC,OAAO,0CAA0C,CAAC;AAIlD,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA4CtD,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC,CAAC;AAEH,eAAO,MAAM,YAAY,uDAA+D,WAAW,sBAmGlG,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
+
import { type PluginMeta } from '@dxos/app-framework';
|
|
1
2
|
export declare const PRESENTER_PLUGIN = "dxos.org/plugin/presenter";
|
|
2
|
-
export declare const meta:
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
icon: string;
|
|
7
|
-
source: string;
|
|
8
|
-
};
|
|
3
|
+
export declare const meta: PluginMeta;
|
|
9
4
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D,eAAO,MAAM,IAAI,EAAE,UAMlB,CAAC"}
|
|
@@ -1,13 +1,75 @@
|
|
|
1
1
|
import { type Context } from 'react';
|
|
2
2
|
import { S } from '@dxos/echo-schema';
|
|
3
|
-
import { DocumentType } from '@dxos/plugin-markdown/types';
|
|
4
3
|
import { CollectionType } from '@dxos/plugin-space/types';
|
|
5
4
|
export declare namespace PresenterAction {
|
|
6
5
|
const TogglePresentation_base: S.TaggedClass<TogglePresentation, "dxos.org/plugin/presenter/action/toggle-presentation", {
|
|
7
6
|
readonly _tag: S.tag<"dxos.org/plugin/presenter/action/toggle-presentation">;
|
|
8
7
|
} & {
|
|
9
8
|
input: S.Struct<{
|
|
10
|
-
object: S.Union<[
|
|
9
|
+
object: S.Union<[import("@dxos/echo-schema").EchoObjectSchema<S.Struct<{
|
|
10
|
+
name: S.optional<typeof S.String>;
|
|
11
|
+
fallbackName: S.optional<typeof S.String>;
|
|
12
|
+
content: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
13
|
+
content: typeof S.String;
|
|
14
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>;
|
|
15
|
+
threads: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
16
|
+
name: S.optional<typeof S.String>;
|
|
17
|
+
anchor: S.optional<typeof S.String>;
|
|
18
|
+
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
19
|
+
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
20
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
21
|
+
created: S.SchemaClass<string, string, never>;
|
|
22
|
+
sender: S.Struct<{
|
|
23
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
24
|
+
readonly id: string;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
identifiers: {
|
|
27
|
+
readonly value: string;
|
|
28
|
+
readonly type: string;
|
|
29
|
+
}[];
|
|
30
|
+
}>>;
|
|
31
|
+
identityDid: S.optional<typeof S.String>;
|
|
32
|
+
identityKey: S.optional<typeof S.String>;
|
|
33
|
+
email: S.optional<typeof S.String>;
|
|
34
|
+
name: S.optional<typeof S.String>;
|
|
35
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
36
|
+
}>;
|
|
37
|
+
blocks: S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
38
|
+
pending: S.optional<typeof S.Boolean>;
|
|
39
|
+
}>, S.Struct<{
|
|
40
|
+
type: S.Literal<["text"]>;
|
|
41
|
+
disposition: S.optional<typeof S.String>;
|
|
42
|
+
text: typeof S.String;
|
|
43
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
44
|
+
pending: S.optional<typeof S.Boolean>;
|
|
45
|
+
}>, S.Struct<{
|
|
46
|
+
type: S.Literal<["json"]>;
|
|
47
|
+
disposition: S.optional<typeof S.String>;
|
|
48
|
+
data: typeof S.String;
|
|
49
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
50
|
+
pending: S.optional<typeof S.Boolean>;
|
|
51
|
+
}>, S.Struct<{
|
|
52
|
+
type: S.Literal<["image"]>;
|
|
53
|
+
id: S.optional<typeof S.String>;
|
|
54
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
55
|
+
type: S.Literal<["base64"]>;
|
|
56
|
+
mediaType: typeof S.String;
|
|
57
|
+
data: typeof S.String;
|
|
58
|
+
}>>, S.mutable<S.Struct<{
|
|
59
|
+
type: S.Literal<["http"]>;
|
|
60
|
+
url: typeof S.String;
|
|
61
|
+
}>>]>>;
|
|
62
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
63
|
+
pending: S.optional<typeof S.Boolean>;
|
|
64
|
+
}>, S.Struct<{
|
|
65
|
+
type: S.Literal<["reference"]>;
|
|
66
|
+
reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
67
|
+
}>>>]>>;
|
|
68
|
+
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
69
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
70
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
71
|
+
assistantChatQueue: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>;
|
|
72
|
+
}>>, typeof CollectionType]>;
|
|
11
73
|
state: S.optional<typeof S.Boolean>;
|
|
12
74
|
}>;
|
|
13
75
|
output: typeof S.Void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D,yBAAiB,eAAe,CAAC;;;;;;sBAkC+pE,EAAG,QAAQ,QAAO,EAAG,MAAM;8BAAoB,EAAG,QAAQ,QAAO,EAAG,MAAM;gCAAuB,mBAAmB,cAAc,mBAAmB;oCAA6C,EAAG,MAAM;0BAAgB,mBAAmB;yBAAoC,EAAG,OAAO,CAAC,EAAE,MAAM,QAAQ,mBAAmB,cAAc,mBAAmB;0BAAmC,EAAG,QAAQ,QAAO,EAAG,MAAM;4BAAkB,EAAG,QAAQ,QAAO,EAAG,MAAM;4BAAkB,EAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,cAAa,EAAG,OAAO,cAAa,EAAG,OAAO;8BAAoC,EAAG,OAAO,CAAC,EAA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AAM;qCAA2B,EAAG,QAAQ,QAAO,EAAG,OAAO;4BAAkB,EAAG,MAAM;kCAAwB,EAAG,OAAO;8CAAmD,mBAAmB;;oCAA6D,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;8BAAuB,mBAAmB;0BAAwC,mBAAmB;oCAAiD,EAAG,QAAQ,QAAQ,mBAAmB;;;;;;IA/BxxK,MAAM,OAAO,kBAAmB,SAAQ,uBASvC;KAAG;;CACL;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,oBAAoB,CAIzD,CAAC;AAEH,eAAO,MAAM,uBAAuB;;GAInC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-presenter",
|
|
3
|
-
"version": "0.8.1-
|
|
3
|
+
"version": "0.8.1-staging.31c3ee1",
|
|
4
4
|
"description": "Braneframe presenter plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"remark-frontmatter": "^5.0.0",
|
|
35
35
|
"remark-parse-frontmatter": "^1.0.3",
|
|
36
36
|
"reveal.js": "^5.1.0",
|
|
37
|
-
"@dxos/app-framework": "0.8.1-
|
|
38
|
-
"@dxos/async": "0.8.1-
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/log": "0.8.1-
|
|
43
|
-
"@dxos/plugin-
|
|
44
|
-
"@dxos/plugin-
|
|
45
|
-
"@dxos/plugin-
|
|
46
|
-
"@dxos/plugin-
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-ui-stack": "0.8.1-
|
|
50
|
-
"@dxos/react-ui-form": "0.8.1-
|
|
37
|
+
"@dxos/app-framework": "0.8.1-staging.31c3ee1",
|
|
38
|
+
"@dxos/async": "0.8.1-staging.31c3ee1",
|
|
39
|
+
"@dxos/echo-schema": "0.8.1-staging.31c3ee1",
|
|
40
|
+
"@dxos/live-object": "0.8.1-staging.31c3ee1",
|
|
41
|
+
"@dxos/local-storage": "0.8.1-staging.31c3ee1",
|
|
42
|
+
"@dxos/log": "0.8.1-staging.31c3ee1",
|
|
43
|
+
"@dxos/plugin-graph": "0.8.1-staging.31c3ee1",
|
|
44
|
+
"@dxos/plugin-client": "0.8.1-staging.31c3ee1",
|
|
45
|
+
"@dxos/plugin-markdown": "0.8.1-staging.31c3ee1",
|
|
46
|
+
"@dxos/plugin-space": "0.8.1-staging.31c3ee1",
|
|
47
|
+
"@dxos/plugin-stack": "0.8.1-staging.31c3ee1",
|
|
48
|
+
"@dxos/react-client": "0.8.1-staging.31c3ee1",
|
|
49
|
+
"@dxos/react-ui-stack": "0.8.1-staging.31c3ee1",
|
|
50
|
+
"@dxos/react-ui-form": "0.8.1-staging.31c3ee1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"react": "~18.2.0",
|
|
59
59
|
"react-dom": "~18.2.0",
|
|
60
60
|
"vite": "5.4.7",
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
61
|
+
"@dxos/random": "0.8.1-staging.31c3ee1",
|
|
62
|
+
"@dxos/react-ui": "0.8.1-staging.31c3ee1",
|
|
63
|
+
"@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
|
|
64
|
+
"@dxos/storybook-utils": "0.8.1-staging.31c3ee1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@phosphor-icons/react": "^2.1.5",
|
|
68
68
|
"react": "~18.2.0",
|
|
69
69
|
"react-dom": "~18.2.0",
|
|
70
|
-
"@dxos/react-ui": "0.8.1-
|
|
71
|
-
"@dxos/react-ui
|
|
70
|
+
"@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
|
|
71
|
+
"@dxos/react-ui": "0.8.1-staging.31c3ee1"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { contributes, type PluginsContext, Capabilities, createIntent } from '@dxos/app-framework';
|
|
6
|
+
import { isInstanceOf } from '@dxos/echo-schema';
|
|
6
7
|
import { createExtension, type Node } from '@dxos/plugin-graph';
|
|
7
8
|
import { DocumentType } from '@dxos/plugin-markdown/types';
|
|
8
9
|
import { CollectionType } from '@dxos/plugin-space/types';
|
|
@@ -21,8 +22,8 @@ export default (context: PluginsContext) =>
|
|
|
21
22
|
.requestCapabilities(Capabilities.SettingsStore)[0]
|
|
22
23
|
?.getStore<PresenterSettingsProps>(PRESENTER_PLUGIN)?.value;
|
|
23
24
|
return settings?.presentCollections
|
|
24
|
-
? node.data
|
|
25
|
-
: node.data
|
|
25
|
+
? isInstanceOf(CollectionType, node.data) || isInstanceOf(DocumentType, node.data)
|
|
26
|
+
: isInstanceOf(DocumentType, node.data);
|
|
26
27
|
},
|
|
27
28
|
actions: ({ node }) => {
|
|
28
29
|
const object = node.data;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, contributes, createSurface, useCapability } from '@dxos/app-framework';
|
|
8
|
+
import { isInstanceOf } from '@dxos/echo-schema';
|
|
8
9
|
import { SettingsStore } from '@dxos/local-storage';
|
|
9
10
|
import { DocumentType } from '@dxos/plugin-markdown/types';
|
|
10
11
|
import { CollectionType } from '@dxos/plugin-space/types';
|
|
@@ -20,14 +21,14 @@ export default () =>
|
|
|
20
21
|
id: `${PRESENTER_PLUGIN}/document`,
|
|
21
22
|
role: 'main',
|
|
22
23
|
position: 'hoist',
|
|
23
|
-
filter: (data): data is { subject: DocumentType } => data.subject
|
|
24
|
+
filter: (data): data is { subject: DocumentType } => isInstanceOf(DocumentType, data.subject),
|
|
24
25
|
component: ({ data }) => <RevealMain document={data.subject} />,
|
|
25
26
|
}),
|
|
26
27
|
createSurface({
|
|
27
28
|
id: `${PRESENTER_PLUGIN}/collection`,
|
|
28
29
|
role: 'main',
|
|
29
30
|
position: 'hoist',
|
|
30
|
-
filter: (data): data is { subject: CollectionType } => data.subject
|
|
31
|
+
filter: (data): data is { subject: CollectionType } => isInstanceOf(CollectionType, data.subject),
|
|
31
32
|
component: ({ data }) => {
|
|
32
33
|
const state = useCapability(PresenterCapabilities.MutableState);
|
|
33
34
|
|
|
@@ -47,11 +48,11 @@ export default () =>
|
|
|
47
48
|
createSurface({
|
|
48
49
|
id: `${PRESENTER_PLUGIN}/slide`,
|
|
49
50
|
role: 'slide',
|
|
50
|
-
filter: (data): data is { subject: DocumentType } => data.subject
|
|
51
|
+
filter: (data): data is { subject: DocumentType } => isInstanceOf(DocumentType, data.subject),
|
|
51
52
|
component: ({ data }) => <MarkdownSlide document={data.subject} />,
|
|
52
53
|
}),
|
|
53
54
|
createSurface({
|
|
54
|
-
id: `${PRESENTER_PLUGIN}/settings`,
|
|
55
|
+
id: `${PRESENTER_PLUGIN}/plugin-settings`,
|
|
55
56
|
role: 'article',
|
|
56
57
|
filter: (data): data is { subject: SettingsStore<PresenterSettingsProps> } =>
|
|
57
58
|
data.subject instanceof SettingsStore && data.subject.prefix === PRESENTER_PLUGIN,
|
|
@@ -25,7 +25,7 @@ const styles = `
|
|
|
25
25
|
<style type="text/css">
|
|
26
26
|
.reveal h1 {
|
|
27
27
|
font-weight: 100;
|
|
28
|
-
|
|
28
|
+
font-size: 60px;
|
|
29
29
|
opacity: 0.5;
|
|
30
30
|
}
|
|
31
31
|
.reveal h2 {
|
|
@@ -50,9 +50,14 @@ const styles = `
|
|
|
50
50
|
font-weight: 100;
|
|
51
51
|
padding: 32px;
|
|
52
52
|
}
|
|
53
|
+
.reveal pre {
|
|
54
|
+
margin-left: 0;
|
|
55
|
+
}
|
|
53
56
|
.reveal code {
|
|
57
|
+
font-size: 20px;
|
|
54
58
|
background: #111111;
|
|
55
59
|
color: #eeeeee;
|
|
60
|
+
max-height: unset !important;
|
|
56
61
|
}
|
|
57
62
|
</style>
|
|
58
63
|
`;
|
|
@@ -91,10 +96,12 @@ export const RevealPlayer = ({ classNames, content, slide, fullscreen = true, on
|
|
|
91
96
|
// https://revealjs.com/speaker-view
|
|
92
97
|
showNotes: false,
|
|
93
98
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
// width: 1600,
|
|
100
|
+
// height: 900,
|
|
101
|
+
margin: 0.1,
|
|
102
|
+
// center: false,
|
|
103
|
+
// minScale: 0.1,
|
|
104
|
+
// maxScale: 1.4,
|
|
98
105
|
|
|
99
106
|
// https://revealjs.com/markdown
|
|
100
107
|
// TODO(burdon): Requires server to serve popout window.
|
|
@@ -115,6 +122,7 @@ export const RevealPlayer = ({ classNames, content, slide, fullscreen = true, on
|
|
|
115
122
|
});
|
|
116
123
|
|
|
117
124
|
await deckRef.current.initialize();
|
|
125
|
+
|
|
118
126
|
if (slide !== undefined) {
|
|
119
127
|
deckRef.current.slide(slide < 0 ? deckRef.current?.getTotalSlides() + slide : slide - 1);
|
|
120
128
|
}
|
package/src/meta.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { type PluginMeta } from '@dxos/app-framework';
|
|
|
6
6
|
|
|
7
7
|
export const PRESENTER_PLUGIN = 'dxos.org/plugin/presenter';
|
|
8
8
|
|
|
9
|
-
export const meta = {
|
|
9
|
+
export const meta: PluginMeta = {
|
|
10
10
|
id: PRESENTER_PLUGIN,
|
|
11
11
|
name: 'Presenter',
|
|
12
12
|
description: 'Present documents as slideshows.',
|
|
13
13
|
icon: 'ph--presentation--regular',
|
|
14
14
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-presenter',
|
|
15
|
-
}
|
|
15
|
+
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/RevealMain.tsx", "../../../src/components/RevealPlayer/RevealPlayer.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type FC } from 'react';\n\nimport { createIntent, useLayout, useIntentDispatcher } from '@dxos/app-framework';\nimport { type DocumentType } from '@dxos/plugin-markdown/types';\nimport { Main } from '@dxos/react-ui';\nimport { topbarBlockPaddingStart, fixedInsetFlexLayout, bottombarBlockPaddingEnd } from '@dxos/react-ui-theme';\n\nimport { RevealPlayer } from './RevealPlayer';\nimport { PresenterAction } from '../types';\n\nconst PresenterMain: FC<{ document: DocumentType }> = ({ document }) => {\n const layout = useLayout();\n const fullscreen = layout.mode === 'fullscreen';\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n\n return (\n <Main.Content\n classNames={[\n fixedInsetFlexLayout,\n !fullscreen && topbarBlockPaddingStart,\n !fullscreen && bottombarBlockPaddingEnd,\n ]}\n >\n <RevealPlayer\n content={document.content.target?.content ?? ''}\n onExit={() => {\n void dispatch(createIntent(PresenterAction.TogglePresentation, { object: document, state: false }));\n }}\n />\n </Main.Content>\n );\n};\n\nexport default PresenterMain;\n", "//\n// Copyright 2024 DXOS.org\n//\n\n// eslint-disable-next-line no-restricted-imports\nimport 'reveal.js/dist/reveal.css';\n// eslint-disable-next-line no-restricted-imports\nimport 'reveal.js/dist/theme/black.css';\n\n// https://github.com/highlightjs/highlight.js/tree/main/src/styles\n// import 'highlight.js/styles/github-dark.css';\nimport 'highlight.js/styles/tokyo-night-dark.css';\n\nimport hljs from 'highlight.js';\nimport typescript from 'highlight.js/lib/languages/typescript';\nimport React, { useEffect, useRef } from 'react';\nimport Reveal from 'reveal.js';\nimport RevealHighlight from 'reveal.js/plugin/highlight/highlight';\nimport RevealMarkdown from 'reveal.js/plugin/markdown/plugin.js';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/react-ui-theme';\n\nconst styles = `\n<style type=\"text/css\">\n .reveal h1 {\n font-weight: 100;\n padding-left: 36px;\n opacity: 0.5;\n }\n .reveal h2 {\n font-weight: 100;\n padding-top: 60px;\n padding-left: 40px;\n font-size: 48px;\n opacity: 0.3;\n }\n .reveal h1, h2, p {\n font-family: \"Raleway\", sans-serif;\n text-align: left;\n font-weight: 200;\n }\n .reveal ul {\n font-family: \"Raleway\", sans-serif;\n display: block;\n list-style: \"- \";\n }\n .reveal blockquote p {\n text-align: center;\n font-weight: 100;\n padding: 32px;\n }\n .reveal code {\n background: #111111;\n color: #eeeeee;\n }\n</style>\n`;\n\nexport type RevealProps = ThemedClassName<{\n content: string;\n slide?: number;\n fullscreen?: boolean;\n onExit?: () => void;\n}>;\n\nexport const RevealPlayer = ({ classNames, content, slide, fullscreen = true, onExit }: RevealProps) => {\n const deckDivRef = useRef<HTMLDivElement>(null);\n const deckRef = useRef<Reveal.Api | null>(null);\n useEffect(() => {\n if (deckRef.current) {\n return;\n }\n\n // Required for syntax highlighting.\n hljs.registerLanguage('typescript', typescript);\n\n const t = setTimeout(async () => {\n // https://revealjs.com/react\n // https://revealjs.com/config\n // https://github.com/hakimel/reveal.js\n // TODO(burdon): Fragments and scroll view steps 2 at a time (safe mode?)\n deckRef.current = new Reveal(deckDivRef.current!, {\n // view: 'scroll',\n progress: false,\n transition: 'none',\n slideNumber: false,\n embedded: true,\n\n // TODO(burdon): Speaker view requires server to serve popout window.\n // https://revealjs.com/speaker-view\n showNotes: false,\n\n center: true,\n margin: 0.01,\n minScale: 0.2,\n maxScale: 1.4,\n\n // https://revealjs.com/markdown\n // TODO(burdon): Requires server to serve popout window.\n plugins: [RevealMarkdown, RevealHighlight],\n\n // See https://marked.js.org/using_advanced#options\n markdown: {\n gfm: true,\n smartypants: true,\n highlight: (code, language) => {\n if (language) {\n return hljs.highlight(code, { language }).value;\n }\n\n return hljs.highlightAuto(code).value;\n },\n },\n });\n\n await deckRef.current.initialize();\n if (slide !== undefined) {\n deckRef.current.slide(slide < 0 ? deckRef.current?.getTotalSlides() + slide : slide - 1);\n }\n\n deckRef.current.addKeyBinding({ keyCode: 27, key: 'Escape', description: 'Exit full screen' }, () => {\n onExit?.();\n });\n });\n\n return () => {\n try {\n clearTimeout(t);\n if (deckRef.current) {\n deckRef.current.destroy();\n deckRef.current = null;\n }\n } catch (err) {\n // Ignore.\n }\n };\n });\n\n return (\n <div className={mx('absolute flex h-full w-full items-center justify-center', fullscreen && 'inset-0', classNames)}>\n <div className='relative aspect-video w-full'>\n <div ref={deckDivRef} className='reveal'>\n {/* TODO(burdon): Must be in head. */}\n <style>\n <link rel='preconnect' href='https://fonts.googleapis.com' />\n <link rel='preconnect' href='https://fonts.gstatic.com' {...{ crossOrigin: '' }} />\n <link\n rel='stylesheet'\n href='https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap'\n />\n </style>\n <div className='slides'>\n <div className='!text-center' />\n <section {...{ 'data-markdown': [] }}>\n <textarea {...{ 'data-template': true }} defaultValue={[styles, content].join('\\n')}></textarea>\n </section>\n </div>\n </div>\n </div>\n </div>\n );\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,OAAOA,YAAwB;AAE/B,SAASC,cAAcC,WAAWC,2BAA2B;AAE7D,SAASC,YAAY;AACrB,SAASC,yBAAyBC,sBAAsBC,gCAAgC;;;ACJxF,OAAO;AAEP,OAAO;AAIP,OAAO;AAEP,OAAOC,UAAU;A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,qBAAexB;",
|
|
6
|
-
"names": ["React", "createIntent", "useLayout", "useIntentDispatcher", "Main", "topbarBlockPaddingStart", "fixedInsetFlexLayout", "bottombarBlockPaddingEnd", "hljs", "typescript", "React", "useEffect", "useRef", "Reveal", "RevealHighlight", "RevealMarkdown", "mx", "styles", "RevealPlayer", "classNames", "content", "slide", "fullscreen", "onExit", "deckDivRef", "useRef", "deckRef", "useEffect", "current", "hljs", "registerLanguage", "typescript", "t", "setTimeout", "Reveal", "progress", "transition", "slideNumber", "embedded", "showNotes", "center", "margin", "minScale", "maxScale", "plugins", "RevealMarkdown", "RevealHighlight", "markdown", "gfm", "smartypants", "highlight", "code", "language", "value", "highlightAuto", "initialize", "undefined", "getTotalSlides", "addKeyBinding", "keyCode", "key", "description", "clearTimeout", "destroy", "err", "div", "className", "mx", "ref", "style", "link", "rel", "href", "crossOrigin", "section", "textarea", "defaultValue", "join", "PresenterMain", "document", "layout", "useLayout", "fullscreen", "mode", "dispatchPromise", "dispatch", "useIntentDispatcher", "React", "Main", "Content", "classNames", "fixedInsetFlexLayout", "topbarBlockPaddingStart", "bottombarBlockPaddingEnd", "RevealPlayer", "content", "target", "onExit", "createIntent", "PresenterAction", "TogglePresentation", "object", "state"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes, type PluginsContext, Capabilities, createIntent } from '@dxos/app-framework';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { fullyQualifiedId } from '@dxos/react-client/echo';\n\nimport { PRESENTER_PLUGIN } from '../meta';\nimport { PresenterAction, type PresenterSettingsProps } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(\n Capabilities.AppGraphBuilder,\n createExtension({\n id: PRESENTER_PLUGIN,\n filter: (node): node is Node<CollectionType | DocumentType> => {\n const settings = context\n .requestCapabilities(Capabilities.SettingsStore)[0]\n ?.getStore<PresenterSettingsProps>(PRESENTER_PLUGIN)?.value;\n return settings?.presentCollections\n ? node.data instanceof CollectionType || node.data instanceof DocumentType\n : node.data instanceof DocumentType;\n },\n actions: ({ node }) => {\n const object = node.data;\n const id = fullyQualifiedId(object);\n return [\n {\n id: `${PresenterAction.TogglePresentation._tag}/${id}`,\n // TODO(burdon): Allow function so can generate state when activated.\n // So can set explicit fullscreen state coordinated with current presenter state.\n data: async () => {\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(PresenterAction.TogglePresentation, { object }));\n },\n properties: {\n label: ['toggle presentation label', { ns: PRESENTER_PLUGIN }],\n icon: 'ph--presentation--regular',\n keyBinding: {\n macos: 'shift+meta+p',\n windows: 'shift+alt+p',\n },\n },\n },\n ];\n },\n }),\n );\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAIA,SAASA,aAAkCC,cAAcC,oBAAoB;AAC7E,SAASC,uBAAkC;AAC3C,SAASC,oBAAoB;AAC7B,SAASC,sBAAsB;AAC/B,SAASC,wBAAwB;AAKjC,IAAA,4BAAe,CAACC,YACdC,YACEC,aAAaC,iBACbC,gBAAgB;EACdC,IAAIC;EACJC,QAAQ,CAACC,SAAAA;AACP,UAAMC,WAAWT,QACdU,oBAAoBR,aAAaS,aAAa,EAAE,CAAA,GAC/CC,SAAiCN,gBAAAA,GAAmBO;AACxD,WAAOJ,UAAUK,qBACbN,KAAKO,gBAAgBC,kBAAkBR,KAAKO,gBAAgBE,eAC5DT,KAAKO,gBAAgBE;EAC3B;EACAC,SAAS,CAAC,EAAEV,KAAI,MAAE;AAChB,UAAMW,SAASX,KAAKO;AACpB,UAAMV,KAAKe,iBAAiBD,MAAAA;AAC5B,WAAO;MACL;QACEd,IAAI,GAAGgB,gBAAgBC,mBAAmBC,IAAI,IAAIlB,EAAAA;;;QAGlDU,MAAM,YAAA;AACJ,gBAAM,EAAES,iBAAiBC,SAAQ,IAAKzB,QAAQ0B,kBAAkBxB,aAAayB,gBAAgB;AAC7F,gBAAMF,SAASG,aAAaP,gBAAgBC,oBAAoB;YAAEH;UAAO,CAAA,CAAA;QAC3E;QACAU,YAAY;UACVC,OAAO;YAAC;YAA6B;cAAEC,IAAIzB;YAAiB;;UAC5D0B,MAAM;UACNC,YAAY;YACVC,OAAO;YACPC,SAAS;UACX;QACF;MACF;;EAEJ;AACF,CAAA,CAAA;",
|
|
6
|
-
"names": ["contributes", "Capabilities", "createIntent", "createExtension", "DocumentType", "CollectionType", "fullyQualifiedId", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "PRESENTER_PLUGIN", "filter", "node", "settings", "requestCapabilities", "SettingsStore", "getStore", "value", "presentCollections", "data", "CollectionType", "DocumentType", "actions", "object", "fullyQualifiedId", "PresenterAction", "TogglePresentation", "_tag", "dispatchPromise", "dispatch", "requestCapability", "IntentDispatcher", "createIntent", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const PRESENTER_PLUGIN = 'dxos.org/plugin/presenter';\n\nexport const meta = {\n id: PRESENTER_PLUGIN,\n name: 'Presenter',\n description: 'Present documents as slideshows.',\n icon: 'ph--presentation--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-presenter',\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;AACV;",
|
|
6
|
-
"names": ["PRESENTER_PLUGIN", "meta", "id", "name", "description", "icon", "source"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface, useCapability } from '@dxos/app-framework';\nimport { SettingsStore } from '@dxos/local-storage';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { CollectionType } from '@dxos/plugin-space/types';\n\nimport { PresenterCapabilities } from './capabilities';\nimport { MarkdownSlide, PresenterSettings, PresenterMain, RevealMain } from '../components';\nimport { PRESENTER_PLUGIN } from '../meta';\nimport { PresenterContext, type PresenterSettingsProps } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${PRESENTER_PLUGIN}/document`,\n role: 'main',\n position: 'hoist',\n filter: (data): data is { subject: DocumentType } => data.subject instanceof DocumentType,\n component: ({ data }) => <RevealMain document={data.subject} />,\n }),\n createSurface({\n id: `${PRESENTER_PLUGIN}/collection`,\n role: 'main',\n position: 'hoist',\n filter: (data): data is { subject: CollectionType } => data.subject instanceof CollectionType,\n component: ({ data }) => {\n const state = useCapability(PresenterCapabilities.MutableState);\n\n return (\n <PresenterContext.Provider\n value={{\n running: state.presenting,\n start: () => (state.presenting = true),\n stop: () => (state.presenting = false),\n }}\n >\n <PresenterMain collection={data.subject} />\n </PresenterContext.Provider>\n );\n },\n }),\n createSurface({\n id: `${PRESENTER_PLUGIN}/slide`,\n role: 'slide',\n filter: (data): data is { subject: DocumentType } => data.subject instanceof DocumentType,\n component: ({ data }) => <MarkdownSlide document={data.subject} />,\n }),\n createSurface({\n id: `${PRESENTER_PLUGIN}/settings`,\n role: 'article',\n filter: (data): data is { subject: SettingsStore<PresenterSettingsProps> } =>\n data.subject instanceof SettingsStore && data.subject.prefix === PRESENTER_PLUGIN,\n component: ({ data: { subject } }) => <PresenterSettings settings={subject.value} />,\n }),\n ]);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,eAAeC,qBAAqB;AACxE,SAASC,qBAAqB;AAC9B,SAASC,oBAAoB;AAC7B,SAASC,sBAAsB;AAO/B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNC,UAAU;IACVC,QAAQ,CAACC,SAA4CA,KAAKC,mBAAmBC;IAC7EC,WAAW,CAAC,EAAEH,KAAI,MAAO,sBAAA,cAACI,YAAAA;MAAWC,UAAUL,KAAKC;;EACtD,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNC,UAAU;IACVC,QAAQ,CAACC,SAA8CA,KAAKC,mBAAmBK;IAC/EH,WAAW,CAAC,EAAEH,KAAI,MAAE;AAClB,YAAMO,QAAQC,cAAcC,sBAAsBC,YAAY;AAE9D,aACE,sBAAA,cAACC,iBAAiBC,UAAQ;QACxBC,OAAO;UACLC,SAASP,MAAMQ;UACfC,OAAO,MAAOT,MAAMQ,aAAa;UACjCE,MAAM,MAAOV,MAAMQ,aAAa;QAClC;SAEA,sBAAA,cAACG,eAAAA;QAAcC,YAAYnB,KAAKC;;IAGtC;EACF,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNE,QAAQ,CAACC,SAA4CA,KAAKC,mBAAmBC;IAC7EC,WAAW,CAAC,EAAEH,KAAI,MAAO,sBAAA,cAACoB,eAAAA;MAAcf,UAAUL,KAAKC;;EACzD,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNE,QAAQ,CAACC,SACPA,KAAKC,mBAAmBoB,iBAAiBrB,KAAKC,QAAQqB,WAAW1B;IACnEO,WAAW,CAAC,EAAEH,MAAM,EAAEC,QAAO,EAAE,MAAO,sBAAA,cAACsB,mBAAAA;MAAkBC,UAAUvB,QAAQY;;EAC7E,CAAA;CACD;",
|
|
6
|
-
"names": ["React", "Capabilities", "contributes", "createSurface", "useCapability", "SettingsStore", "DocumentType", "CollectionType", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "PRESENTER_PLUGIN", "role", "position", "filter", "data", "subject", "DocumentType", "component", "RevealMain", "document", "CollectionType", "state", "useCapability", "PresenterCapabilities", "MutableState", "PresenterContext", "Provider", "value", "running", "presenting", "start", "stop", "PresenterMain", "collection", "MarkdownSlide", "SettingsStore", "prefix", "PresenterSettings", "settings"]
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/browser/{intent-resolver-K4ZIL6XZ.mjs.map → intent-resolver-TTGJCKQ5.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|