@dxos/plugin-presenter 0.8.0 → 0.8.1-main.81238a8

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.
Files changed (72) hide show
  1. package/dist/lib/browser/{PresenterMain-7JXM3QQ7.mjs → PresenterMain-PQPWYIWU.mjs} +3 -3
  2. package/dist/lib/browser/{RevealMain-WPCHJETF.mjs → RevealMain-B2PJXHND.mjs} +23 -12
  3. package/dist/lib/browser/RevealMain-B2PJXHND.mjs.map +7 -0
  4. package/dist/lib/browser/{app-graph-builder-6U7WTJKG.mjs → app-graph-builder-CWMMBJTB.mjs} +5 -4
  5. package/dist/lib/browser/app-graph-builder-CWMMBJTB.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-G3Z6NWTR.mjs → chunk-3VVM67QE.mjs} +6 -6
  7. package/dist/lib/browser/{chunk-G3Z6NWTR.mjs.map → chunk-3VVM67QE.mjs.map} +3 -3
  8. package/dist/lib/browser/{chunk-SFMK6EE3.mjs → chunk-CQR4O6KC.mjs} +2 -2
  9. package/dist/lib/browser/{chunk-MSAMS5TA.mjs → chunk-FK2KJZ73.mjs} +2 -2
  10. package/dist/lib/browser/{chunk-Q5U3VOZB.mjs → chunk-S2S5RFJ4.mjs} +1 -1
  11. package/dist/lib/browser/chunk-S2S5RFJ4.mjs.map +7 -0
  12. package/dist/lib/browser/index.mjs +8 -8
  13. package/dist/lib/browser/{intent-resolver-27OZKSSE.mjs → intent-resolver-TTGJCKQ5.mjs} +4 -4
  14. package/dist/lib/browser/{intent-resolver-27OZKSSE.mjs.map → intent-resolver-TTGJCKQ5.mjs.map} +2 -2
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/{react-surface-BKJWX4FK.mjs → react-surface-6ZX6LL3N.mjs} +9 -8
  17. package/dist/lib/browser/react-surface-6ZX6LL3N.mjs.map +7 -0
  18. package/dist/lib/browser/{settings-L73ZKGLV.mjs → settings-RBF22MVS.mjs} +3 -3
  19. package/dist/lib/browser/{state-IGJRHRIA.mjs → state-KI7F4I6V.mjs} +3 -3
  20. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  21. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  22. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  24. package/dist/types/src/components/Markdown/Container.d.ts +2 -2
  25. package/dist/types/src/components/Markdown/Container.d.ts.map +1 -1
  26. package/dist/types/src/components/Markdown/Slide.d.ts +2 -1
  27. package/dist/types/src/components/Markdown/Slide.d.ts.map +1 -1
  28. package/dist/types/src/components/Presenter/Layout.d.ts +2 -2
  29. package/dist/types/src/components/Presenter/Layout.d.ts.map +1 -1
  30. package/dist/types/src/components/Presenter/Pager.d.ts +3 -3
  31. package/dist/types/src/components/Presenter/Pager.d.ts.map +1 -1
  32. package/dist/types/src/components/PresenterSettings.d.ts +2 -1
  33. package/dist/types/src/components/PresenterSettings.d.ts.map +1 -1
  34. package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts +13 -0
  35. package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts.map +1 -0
  36. package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts +8 -0
  37. package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts.map +1 -0
  38. package/dist/types/src/components/RevealPlayer/index.d.ts +2 -0
  39. package/dist/types/src/components/RevealPlayer/index.d.ts.map +1 -0
  40. package/dist/types/src/components/index.d.ts +3 -3
  41. package/dist/types/src/components/index.d.ts.map +1 -1
  42. package/dist/types/src/meta.d.ts +2 -7
  43. package/dist/types/src/meta.d.ts.map +1 -1
  44. package/dist/types/src/types.d.ts +32 -2
  45. package/dist/types/src/types.d.ts.map +1 -1
  46. package/package.json +21 -21
  47. package/src/capabilities/app-graph-builder.ts +3 -2
  48. package/src/capabilities/intent-resolver.ts +0 -1
  49. package/src/capabilities/react-surface.tsx +4 -3
  50. package/src/components/RevealMain.tsx +1 -1
  51. package/src/components/RevealPlayer/RevealPlayer.stories.tsx +39 -0
  52. package/src/components/{Reveal/Reveal.tsx → RevealPlayer/RevealPlayer.tsx} +42 -26
  53. package/src/components/{Reveal → RevealPlayer}/index.ts +1 -1
  54. package/src/components/index.ts +1 -1
  55. package/src/meta.ts +2 -2
  56. package/src/vite-env.d.ts +20 -0
  57. package/dist/lib/browser/RevealMain-WPCHJETF.mjs.map +0 -7
  58. package/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs.map +0 -7
  59. package/dist/lib/browser/chunk-Q5U3VOZB.mjs.map +0 -7
  60. package/dist/lib/browser/react-surface-BKJWX4FK.mjs.map +0 -7
  61. package/dist/types/src/components/Reveal/Reveal.d.ts +0 -10
  62. package/dist/types/src/components/Reveal/Reveal.d.ts.map +0 -1
  63. package/dist/types/src/components/Reveal/index.d.ts +0 -2
  64. package/dist/types/src/components/Reveal/index.d.ts.map +0 -1
  65. package/dist/types/src/components/Reveal.stories.d.ts +0 -6
  66. package/dist/types/src/components/Reveal.stories.d.ts.map +0 -1
  67. package/src/components/Reveal.stories.tsx +0 -36
  68. /package/dist/lib/browser/{PresenterMain-7JXM3QQ7.mjs.map → PresenterMain-PQPWYIWU.mjs.map} +0 -0
  69. /package/dist/lib/browser/{chunk-SFMK6EE3.mjs.map → chunk-CQR4O6KC.mjs.map} +0 -0
  70. /package/dist/lib/browser/{chunk-MSAMS5TA.mjs.map → chunk-FK2KJZ73.mjs.map} +0 -0
  71. /package/dist/lib/browser/{settings-L73ZKGLV.mjs.map → settings-RBF22MVS.mjs.map} +0 -0
  72. /package/dist/lib/browser/{state-IGJRHRIA.mjs.map → state-KI7F4I6V.mjs.map} +0 -0
@@ -3,20 +3,21 @@ import {
3
3
  PresenterMain,
4
4
  PresenterSettings,
5
5
  RevealMain
6
- } from "./chunk-G3Z6NWTR.mjs";
6
+ } from "./chunk-3VVM67QE.mjs";
7
7
  import {
8
8
  PresenterCapabilities
9
- } from "./chunk-MSAMS5TA.mjs";
9
+ } from "./chunk-FK2KJZ73.mjs";
10
10
  import {
11
11
  PresenterContext
12
- } from "./chunk-SFMK6EE3.mjs";
12
+ } from "./chunk-CQR4O6KC.mjs";
13
13
  import {
14
14
  PRESENTER_PLUGIN
15
- } from "./chunk-Q5U3VOZB.mjs";
15
+ } from "./chunk-S2S5RFJ4.mjs";
16
16
 
17
17
  // packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx
18
18
  import React from "react";
19
19
  import { Capabilities, contributes, createSurface, useCapability } from "@dxos/app-framework";
20
+ import { isInstanceOf } from "@dxos/echo-schema";
20
21
  import { SettingsStore } from "@dxos/local-storage";
21
22
  import { DocumentType } from "@dxos/plugin-markdown/types";
22
23
  import { CollectionType } from "@dxos/plugin-space/types";
@@ -25,7 +26,7 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
25
26
  id: `${PRESENTER_PLUGIN}/document`,
26
27
  role: "main",
27
28
  position: "hoist",
28
- filter: (data) => data.subject instanceof DocumentType,
29
+ filter: (data) => isInstanceOf(DocumentType, data.subject),
29
30
  component: ({ data }) => /* @__PURE__ */ React.createElement(RevealMain, {
30
31
  document: data.subject
31
32
  })
@@ -34,7 +35,7 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
34
35
  id: `${PRESENTER_PLUGIN}/collection`,
35
36
  role: "main",
36
37
  position: "hoist",
37
- filter: (data) => data.subject instanceof CollectionType,
38
+ filter: (data) => isInstanceOf(CollectionType, data.subject),
38
39
  component: ({ data }) => {
39
40
  const state = useCapability(PresenterCapabilities.MutableState);
40
41
  return /* @__PURE__ */ React.createElement(PresenterContext.Provider, {
@@ -51,7 +52,7 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
51
52
  createSurface({
52
53
  id: `${PRESENTER_PLUGIN}/slide`,
53
54
  role: "slide",
54
- filter: (data) => data.subject instanceof DocumentType,
55
+ filter: (data) => isInstanceOf(DocumentType, data.subject),
55
56
  component: ({ data }) => /* @__PURE__ */ React.createElement(MarkdownSlide, {
56
57
  document: data.subject
57
58
  })
@@ -68,4 +69,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
68
69
  export {
69
70
  react_surface_default as default
70
71
  };
71
- //# sourceMappingURL=react-surface-BKJWX4FK.mjs.map
72
+ //# sourceMappingURL=react-surface-6ZX6LL3N.mjs.map
@@ -0,0 +1,7 @@
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 { isInstanceOf } from '@dxos/echo-schema';\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 } => isInstanceOf(DocumentType, data.subject),\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 } => isInstanceOf(CollectionType, data.subject),\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 } => isInstanceOf(DocumentType, data.subject),\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,oBAAoB;AAC7B,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,SAA4CC,aAAaC,cAAcF,KAAKG,OAAO;IAC5FC,WAAW,CAAC,EAAEJ,KAAI,MAAO,sBAAA,cAACK,YAAAA;MAAWC,UAAUN,KAAKG;;EACtD,CAAA;EACAT,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNC,UAAU;IACVC,QAAQ,CAACC,SAA8CC,aAAaM,gBAAgBP,KAAKG,OAAO;IAChGC,WAAW,CAAC,EAAEJ,KAAI,MAAE;AAClB,YAAMQ,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,YAAYpB,KAAKG;;IAGtC;EACF,CAAA;EACAT,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNE,QAAQ,CAACC,SAA4CC,aAAaC,cAAcF,KAAKG,OAAO;IAC5FC,WAAW,CAAC,EAAEJ,KAAI,MAAO,sBAAA,cAACqB,eAAAA;MAAcf,UAAUN,KAAKG;;EACzD,CAAA;EACAT,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNE,QAAQ,CAACC,SACPA,KAAKG,mBAAmBmB,iBAAiBtB,KAAKG,QAAQoB,WAAW3B;IACnEQ,WAAW,CAAC,EAAEJ,MAAM,EAAEG,QAAO,EAAE,MAAO,sBAAA,cAACqB,mBAAAA;MAAkBC,UAAUtB,QAAQW;;EAC7E,CAAA;CACD;",
6
+ "names": ["React", "Capabilities", "contributes", "createSurface", "useCapability", "isInstanceOf", "SettingsStore", "DocumentType", "CollectionType", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "PRESENTER_PLUGIN", "role", "position", "filter", "data", "isInstanceOf", "DocumentType", "subject", "component", "RevealMain", "document", "CollectionType", "state", "useCapability", "PresenterCapabilities", "MutableState", "PresenterContext", "Provider", "value", "running", "presenting", "start", "stop", "PresenterMain", "collection", "MarkdownSlide", "SettingsStore", "prefix", "PresenterSettings", "settings"]
7
+ }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PresenterSettingsSchema
3
- } from "./chunk-SFMK6EE3.mjs";
3
+ } from "./chunk-CQR4O6KC.mjs";
4
4
  import {
5
5
  PRESENTER_PLUGIN
6
- } from "./chunk-Q5U3VOZB.mjs";
6
+ } from "./chunk-S2S5RFJ4.mjs";
7
7
 
8
8
  // packages/plugins/plugin-presenter/src/capabilities/settings.ts
9
9
  import { Capabilities, contributes } from "@dxos/app-framework";
@@ -19,4 +19,4 @@ var settings_default = () => {
19
19
  export {
20
20
  settings_default as default
21
21
  };
22
- //# sourceMappingURL=settings-L73ZKGLV.mjs.map
22
+ //# sourceMappingURL=settings-RBF22MVS.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PresenterCapabilities
3
- } from "./chunk-MSAMS5TA.mjs";
4
- import "./chunk-Q5U3VOZB.mjs";
3
+ } from "./chunk-FK2KJZ73.mjs";
4
+ import "./chunk-S2S5RFJ4.mjs";
5
5
 
6
6
  // packages/plugins/plugin-presenter/src/capabilities/state.ts
7
7
  import { contributes } from "@dxos/app-framework";
@@ -15,4 +15,4 @@ var state_default = () => {
15
15
  export {
16
16
  state_default as default
17
17
  };
18
- //# sourceMappingURL=state-IGJRHRIA.mjs.map
18
+ //# sourceMappingURL=state-KI7F4I6V.mjs.map
@@ -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;AACnG,OAAO,EAAmB,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;kCAQvC,cAAc;;qBAsCi4C,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;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2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AgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAP5qV,CAAC;AACzE,eAAO,MAAM,cAAc,mPAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,iBAAiB,4LAAmC,CAAC;AAClE,eAAO,MAAM,cAAc,yOAAgC,CAAC;AAE5D,cAAc,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EAKZ,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;kCAMJ,cAAc;AAAvC,wBA0BI"}
1
+ {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EAKZ,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;kCAMJ,cAAc;AAAvC,wBAyBI"}
@@ -1 +1 @@
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;;AAU9F,wBA2CK"}
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) => import("react/jsx-runtime").JSX.Element;
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,OAAc,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,4CA4BjE,CAAC"}
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) => import("react/jsx-runtime").JSX.Element;
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":"AAYA,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,4CAwIxE,CAAC"}
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) => import("react/jsx-runtime").JSX.Element;
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,OAAc,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,4CAavG,CAAC"}
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) => import("react/jsx-runtime").JSX.Element | null;
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) => import("react/jsx-runtime").JSX.Element | null;
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,OAAc,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,mDA4ElG,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,mDAYnE,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
+ {"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
- }) => import("react/jsx-runtime").JSX.Element;
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":"AAUA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD,eAAO,MAAM,iBAAiB,iBAAkB;IAAE,QAAQ,EAAE,sBAAsB,CAAA;CAAE,4CAanF,CAAC"}
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"}
@@ -0,0 +1,13 @@
1
+ import 'reveal.js/dist/reveal.css';
2
+ import 'reveal.js/dist/theme/black.css';
3
+ import 'highlight.js/styles/tokyo-night-dark.css';
4
+ import React from 'react';
5
+ import { type ThemedClassName } from '@dxos/react-ui';
6
+ export type RevealProps = ThemedClassName<{
7
+ content: string;
8
+ slide?: number;
9
+ fullscreen?: boolean;
10
+ onExit?: () => void;
11
+ }>;
12
+ export declare const RevealPlayer: ({ classNames, content, slide, fullscreen, onExit }: RevealProps) => React.JSX.Element;
13
+ //# sourceMappingURL=RevealPlayer.d.ts.map
@@ -0,0 +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;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"}
@@ -0,0 +1,8 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@storybook/react';
3
+ import { RevealPlayer } from './RevealPlayer';
4
+ declare const meta: Meta<typeof RevealPlayer>;
5
+ export default meta;
6
+ type Story = Meta<typeof RevealPlayer>;
7
+ export declare const Default: Story;
8
+ //# sourceMappingURL=RevealPlayer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RevealPlayer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/RevealPlayer/RevealPlayer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAY9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAOnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './RevealPlayer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/RevealPlayer/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  export * from './PresenterSettings';
2
+ export declare const MarkdownSlide: import("react").LazyExoticComponent<import("react").FC<{
3
+ document: import("@dxos/plugin-markdown/types").DocumentType;
4
+ }>>;
2
5
  export declare const RevealMain: import("react").LazyExoticComponent<import("react").FC<{
3
6
  document: import("@dxos/plugin-markdown/types").DocumentType;
4
7
  }>>;
5
8
  export declare const PresenterMain: import("react").LazyExoticComponent<import("react").FC<{
6
9
  collection: import("@dxos/plugin-space/types").CollectionType;
7
10
  }>>;
8
- export declare const MarkdownSlide: import("react").LazyExoticComponent<import("react").FC<{
9
- document: import("@dxos/plugin-markdown/types").DocumentType;
10
- }>>;
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AAEpC,eAAO,MAAM,UAAU;;GAAqC,CAAC;AAC7D,eAAO,MAAM,aAAa;;GAAwC,CAAC;AACnE,eAAO,MAAM,aAAa;;GAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AAEpC,eAAO,MAAM,aAAa;;GAAwC,CAAC;AACnE,eAAO,MAAM,UAAU;;GAAqC,CAAC;AAC7D,eAAO,MAAM,aAAa;;GAAwC,CAAC"}
@@ -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":"AAMA,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAE5D,eAAO,MAAM,IAAI;;;;;;CAMK,CAAC"}
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,43 @@
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<[typeof DocumentType, typeof CollectionType]>;
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
+ timestamp: typeof S.String;
21
+ state: S.optional<S.Enums<typeof import("@dxos/plugin-space/types").MessageState>>;
22
+ sender: S.mutable<S.Struct<{
23
+ contact: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
24
+ name: S.optional<typeof S.String>;
25
+ identifiers: S.mutable<S.Array$<S.Struct<{
26
+ type: typeof S.String;
27
+ value: typeof S.String;
28
+ }>>>;
29
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>;
30
+ identityKey: S.optional<typeof S.String>;
31
+ email: S.optional<typeof S.String>;
32
+ name: S.optional<typeof S.String>;
33
+ }>>;
34
+ text: typeof S.String;
35
+ parts: S.optional<S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>>>;
36
+ properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
37
+ context: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>;
38
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>>;
39
+ }, import("@dxos/echo-schema").TypedObjectOptions>>>>;
40
+ }>>, typeof CollectionType]>;
11
41
  state: S.optional<typeof S.Boolean>;
12
42
  }>;
13
43
  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;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D,yBAAiB,eAAe,CAAC;;;;;;;;;;IAG/B,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"}
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;;;;;;sBAkCm8B,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,Q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gB,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.0",
3
+ "version": "0.8.1-main.81238a8",
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/local-storage": "0.8.0",
38
- "@dxos/plugin-client": "0.8.0",
39
- "@dxos/log": "0.8.0",
40
- "@dxos/app-framework": "0.8.0",
41
- "@dxos/async": "0.8.0",
42
- "@dxos/plugin-markdown": "0.8.0",
43
- "@dxos/plugin-graph": "0.8.0",
44
- "@dxos/plugin-space": "0.8.0",
45
- "@dxos/plugin-stack": "0.8.0",
46
- "@dxos/react-client": "0.8.0",
47
- "@dxos/echo-schema": "0.8.0",
48
- "@dxos/react-ui-stack": "0.8.0",
49
- "@dxos/live-object": "0.8.0",
50
- "@dxos/react-ui-form": "0.8.0"
37
+ "@dxos/app-framework": "0.8.1-main.81238a8",
38
+ "@dxos/async": "0.8.1-main.81238a8",
39
+ "@dxos/live-object": "0.8.1-main.81238a8",
40
+ "@dxos/local-storage": "0.8.1-main.81238a8",
41
+ "@dxos/echo-schema": "0.8.1-main.81238a8",
42
+ "@dxos/log": "0.8.1-main.81238a8",
43
+ "@dxos/plugin-client": "0.8.1-main.81238a8",
44
+ "@dxos/plugin-graph": "0.8.1-main.81238a8",
45
+ "@dxos/plugin-markdown": "0.8.1-main.81238a8",
46
+ "@dxos/plugin-stack": "0.8.1-main.81238a8",
47
+ "@dxos/plugin-space": "0.8.1-main.81238a8",
48
+ "@dxos/react-client": "0.8.1-main.81238a8",
49
+ "@dxos/react-ui-stack": "0.8.1-main.81238a8",
50
+ "@dxos/react-ui-form": "0.8.1-main.81238a8"
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/random": "0.8.0",
62
- "@dxos/react-ui": "0.8.0",
63
- "@dxos/react-ui-theme": "0.8.0",
64
- "@dxos/storybook-utils": "0.8.0"
61
+ "@dxos/random": "0.8.1-main.81238a8",
62
+ "@dxos/react-ui": "0.8.1-main.81238a8",
63
+ "@dxos/storybook-utils": "0.8.1-main.81238a8",
64
+ "@dxos/react-ui-theme": "0.8.1-main.81238a8"
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.0",
71
- "@dxos/react-ui-theme": "0.8.0"
70
+ "@dxos/react-ui": "0.8.1-main.81238a8",
71
+ "@dxos/react-ui-theme": "0.8.1-main.81238a8"
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 instanceof CollectionType || node.data instanceof DocumentType
25
- : node.data instanceof DocumentType;
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;
@@ -23,7 +23,6 @@ export default (context: PluginsContext) =>
23
23
  resolve: ({ object, state: next }) => {
24
24
  const state = context.requestCapability(PresenterCapabilities.MutableState);
25
25
  state.presenting = next ?? !state.presenting;
26
-
27
26
  if (state.presenting) {
28
27
  return {
29
28
  intents: [
@@ -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 instanceof DocumentType,
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 instanceof CollectionType,
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,7 +48,7 @@ export default () =>
47
48
  createSurface({
48
49
  id: `${PRESENTER_PLUGIN}/slide`,
49
50
  role: 'slide',
50
- filter: (data): data is { subject: DocumentType } => data.subject instanceof DocumentType,
51
+ filter: (data): data is { subject: DocumentType } => isInstanceOf(DocumentType, data.subject),
51
52
  component: ({ data }) => <MarkdownSlide document={data.subject} />,
52
53
  }),
53
54
  createSurface({
@@ -9,7 +9,7 @@ import { type DocumentType } from '@dxos/plugin-markdown/types';
9
9
  import { Main } from '@dxos/react-ui';
10
10
  import { topbarBlockPaddingStart, fixedInsetFlexLayout, bottombarBlockPaddingEnd } from '@dxos/react-ui-theme';
11
11
 
12
- import { RevealPlayer } from './Reveal';
12
+ import { RevealPlayer } from './RevealPlayer';
13
13
  import { PresenterAction } from '../types';
14
14
 
15
15
  const PresenterMain: FC<{ document: DocumentType }> = ({ document }) => {
@@ -0,0 +1,39 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import '@dxos-theme';
6
+
7
+ import { type Meta } from '@storybook/react';
8
+
9
+ import { RevealPlayer } from './RevealPlayer';
10
+ import CONTENT from '../../../testing/deck.md?raw';
11
+ import translations from '../../translations';
12
+
13
+ // https://revealjs.com/markdown
14
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
15
+ // https://colorhunt.co/palettes/dark
16
+ // https://colorhunt.co/palette/ff204ea0153e5d0e4100224d
17
+ // https://colorhunt.co/palette/27374d526d829db2bfdde6ed
18
+ // https://fontsource.org/fonts
19
+ // https://fonts.google.com
20
+
21
+ const meta: Meta<typeof RevealPlayer> = {
22
+ title: 'plugins/plugin-presenter/RevealPlayer',
23
+ component: RevealPlayer,
24
+ parameters: {
25
+ layout: 'fullscreen',
26
+ translations,
27
+ },
28
+ };
29
+
30
+ export default meta;
31
+
32
+ type Story = Meta<typeof RevealPlayer>;
33
+
34
+ export const Default: Story = {
35
+ args: {
36
+ fullscreen: true,
37
+ content: CONTENT,
38
+ },
39
+ };