@dxos/plugin-presenter 0.7.5-main.9d26e3a → 0.7.5-main.b19bfc8

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 (84) hide show
  1. package/dist/lib/browser/{PresenterMain-TQE4OZK2.mjs → PresenterMain-7JXM3QQ7.mjs} +8 -8
  2. package/dist/lib/browser/PresenterMain-7JXM3QQ7.mjs.map +7 -0
  3. package/dist/lib/browser/{RevealMain-JGKAQMQ4.mjs → RevealMain-YFG5E6JB.mjs} +6 -5
  4. package/dist/lib/browser/RevealMain-YFG5E6JB.mjs.map +7 -0
  5. package/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs +54 -0
  6. package/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-MSAMS5TA.mjs +16 -0
  8. package/dist/lib/browser/chunk-MSAMS5TA.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-67PDV7KN.mjs → chunk-Q5U3VOZB.mjs} +3 -3
  10. package/dist/lib/browser/chunk-Q5U3VOZB.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-Z6QQB6KB.mjs → chunk-SFMK6EE3.mjs} +7 -3
  12. package/dist/lib/browser/chunk-SFMK6EE3.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-Y3TXMZKR.mjs +31 -0
  14. package/dist/lib/browser/chunk-Y3TXMZKR.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +57 -172
  16. package/dist/lib/browser/index.mjs.map +4 -4
  17. package/dist/lib/browser/intent-resolver-27OZKSSE.mjs +46 -0
  18. package/dist/lib/browser/intent-resolver-27OZKSSE.mjs.map +7 -0
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/react-surface-OGCVIWCS.mjs +71 -0
  21. package/dist/lib/browser/react-surface-OGCVIWCS.mjs.map +7 -0
  22. package/dist/lib/browser/settings-L73ZKGLV.mjs +22 -0
  23. package/dist/lib/browser/settings-L73ZKGLV.mjs.map +7 -0
  24. package/dist/lib/browser/state-IGJRHRIA.mjs +18 -0
  25. package/dist/lib/browser/state-IGJRHRIA.mjs.map +7 -0
  26. package/dist/types/src/PresenterPlugin.d.ts +1 -3
  27. package/dist/types/src/PresenterPlugin.d.ts.map +1 -1
  28. package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
  29. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  30. package/dist/types/src/capabilities/capabilities.d.ts +8 -0
  31. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
  32. package/dist/types/src/capabilities/index.d.ts +183 -0
  33. package/dist/types/src/capabilities/index.d.ts.map +1 -0
  34. package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
  35. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
  36. package/dist/types/src/capabilities/react-surface.d.ts +4 -0
  37. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/settings.d.ts +4 -0
  39. package/dist/types/src/capabilities/settings.d.ts.map +1 -0
  40. package/dist/types/src/capabilities/state.d.ts +4 -0
  41. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  42. package/dist/types/src/components/Markdown/Container.d.ts +2 -2
  43. package/dist/types/src/components/Markdown/Container.d.ts.map +1 -1
  44. package/dist/types/src/components/Markdown/Slide.d.ts +1 -2
  45. package/dist/types/src/components/Markdown/Slide.d.ts.map +1 -1
  46. package/dist/types/src/components/Presenter/Layout.d.ts +2 -2
  47. package/dist/types/src/components/Presenter/Layout.d.ts.map +1 -1
  48. package/dist/types/src/components/Presenter/Pager.d.ts +3 -3
  49. package/dist/types/src/components/Presenter/Pager.d.ts.map +1 -1
  50. package/dist/types/src/components/PresenterSettings.d.ts +1 -2
  51. package/dist/types/src/components/PresenterSettings.d.ts.map +1 -1
  52. package/dist/types/src/components/Reveal/Reveal.d.ts +1 -2
  53. package/dist/types/src/components/Reveal/Reveal.d.ts.map +1 -1
  54. package/dist/types/src/components/RevealMain.d.ts.map +1 -1
  55. package/dist/types/src/components/index.d.ts +3 -3
  56. package/dist/types/src/index.d.ts +2 -2
  57. package/dist/types/src/index.d.ts.map +1 -1
  58. package/dist/types/src/meta.d.ts +1 -2
  59. package/dist/types/src/meta.d.ts.map +1 -1
  60. package/dist/types/src/types.d.ts +4 -5
  61. package/dist/types/src/types.d.ts.map +1 -1
  62. package/dist/types/tsconfig.tsbuildinfo +1 -1
  63. package/package.json +23 -29
  64. package/src/PresenterPlugin.tsx +39 -142
  65. package/src/capabilities/app-graph-builder.ts +51 -0
  66. package/src/capabilities/capabilities.ts +13 -0
  67. package/src/capabilities/index.ts +13 -0
  68. package/src/capabilities/intent-resolver.ts +44 -0
  69. package/src/capabilities/react-surface.tsx +60 -0
  70. package/src/capabilities/settings.ts +19 -0
  71. package/src/capabilities/state.ts +17 -0
  72. package/src/components/Presenter/Pager.tsx +2 -2
  73. package/src/components/PresenterMain.tsx +3 -3
  74. package/src/components/PresenterSettings.tsx +3 -3
  75. package/src/components/RevealMain.tsx +3 -2
  76. package/src/index.ts +2 -4
  77. package/src/meta.ts +1 -1
  78. package/src/types.ts +6 -15
  79. package/dist/lib/browser/PresenterMain-TQE4OZK2.mjs.map +0 -7
  80. package/dist/lib/browser/RevealMain-JGKAQMQ4.mjs.map +0 -7
  81. package/dist/lib/browser/chunk-67PDV7KN.mjs.map +0 -7
  82. package/dist/lib/browser/chunk-Z6QQB6KB.mjs.map +0 -7
  83. package/dist/lib/browser/meta.mjs +0 -9
  84. package/dist/lib/browser/meta.mjs.map +0 -7
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/PresenterPlugin.tsx", "../../../src/components/index.ts", "../../../src/components/PresenterSettings.tsx", "../../../src/translations.ts", "../../../src/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport {\n resolvePlugin,\n type PluginDefinition,\n parseIntentPlugin,\n LayoutAction,\n NavigationAction,\n createSurface,\n createIntent,\n createResolver,\n} from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\nimport { LocalStorageStore } from '@dxos/local-storage';\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 { PresenterMain, PresenterSettings, MarkdownSlide, RevealMain } from './components';\nimport meta, { PRESENTER_PLUGIN } from './meta';\nimport translations from './translations';\nimport { PresenterContext, type PresenterSettingsProps, type PresenterPluginProvides, PresenterAction } from './types';\n\n// TODO(burdon): Only scale markdown content.\n// TODO(burdon): Map stack content; Slide content type (e.g., markdown, sketch, IPFS image, table, etc.)\n\ntype PresenterState = {\n presenting: boolean;\n};\n\nexport const PresenterPlugin = (): PluginDefinition<PresenterPluginProvides> => {\n const settings = new LocalStorageStore<PresenterSettingsProps>(PRESENTER_PLUGIN);\n\n // TODO(burdon): Do we need context providers if we can get the state from the plugin?\n const state = create<PresenterState>({ presenting: false });\n\n return {\n meta,\n provides: {\n translations,\n settings: settings.values,\n graph: {\n builder: (plugins) => {\n const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatchPromise;\n if (!dispatch) {\n return [];\n }\n\n return createExtension({\n id: PRESENTER_PLUGIN,\n filter: (node): node is Node<CollectionType | DocumentType> =>\n settings.values.presentCollections\n ? node.data instanceof CollectionType || node.data instanceof DocumentType\n : node.data instanceof DocumentType,\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 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 },\n context: ({ children }) => {\n return (\n <PresenterContext.Provider\n value={{\n running: state.presenting,\n start: () => (state.presenting = true),\n stop: () => (state.presenting = false),\n }}\n >\n {children}\n </PresenterContext.Provider>\n );\n },\n surface: {\n definitions: () => [\n createSurface({\n id: `${PRESENTER_PLUGIN}/document`,\n role: 'main',\n disposition: '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 disposition: 'hoist',\n filter: (data): data is { subject: CollectionType } => data.subject instanceof CollectionType,\n component: ({ data }) => <PresenterMain collection={data.subject} />,\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: 'settings',\n filter: (data): data is any => data.subject === PRESENTER_PLUGIN,\n component: () => <PresenterSettings settings={settings.values} />,\n }),\n ],\n },\n intent: {\n resolvers: () =>\n createResolver(PresenterAction.TogglePresentation, ({ object, state: next }) => {\n state.presenting = next ?? !state.presenting;\n\n if (state.presenting) {\n return {\n intents: [\n createIntent(LayoutAction.SetLayoutMode, { layoutMode: 'fullscreen' }),\n createIntent(NavigationAction.Open, { activeParts: { fullScreen: fullyQualifiedId(object) } }),\n ],\n };\n } else {\n return {\n intents: [\n createIntent(LayoutAction.SetLayoutMode, { revert: true }),\n createIntent(NavigationAction.Close, { activeParts: { fullScreen: fullyQualifiedId(object) } }),\n ],\n };\n }\n }),\n },\n },\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport * from './PresenterSettings';\n\nexport const RevealMain = lazy(() => import('./RevealMain'));\nexport const PresenterMain = lazy(() => import('./PresenterMain'));\nexport const MarkdownSlide = lazy(() => import('./MarkdownSlide'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Input, useTranslation } from '@dxos/react-ui';\nimport { DeprecatedFormInput } from '@dxos/react-ui-form';\n\nimport { PRESENTER_PLUGIN } from '../meta';\nimport { type PresenterSettingsProps } from '../types';\n\nexport const PresenterSettings = ({ settings }: { settings: PresenterSettingsProps }) => {\n const { t } = useTranslation(PRESENTER_PLUGIN);\n\n return (\n <>\n <DeprecatedFormInput label={t('present collections label')}>\n <Input.Switch\n checked={settings.presentCollections}\n onCheckedChange={(checked) => (settings.presentCollections = !!checked)}\n />\n </DeprecatedFormInput>\n </>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { PRESENTER_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [PRESENTER_PLUGIN]: {\n 'plugin name': 'Presenter',\n 'toggle presentation label': 'Present',\n 'present collections label': 'Present collections (experimental)',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { PresenterPlugin } from './PresenterPlugin';\n\nexport default PresenterPlugin;\n\nexport * from './components';\n\nexport * from './PresenterPlugin';\n"],
5
- "mappings": ";;;;;;;;;;AAIA,OAAOA,YAAW;AAElB,SACEC,eAEAC,mBACAC,cACAC,kBACAC,eACAC,cACAC,sBACK;AACP,SAASC,cAAc;AACvB,SAASC,yBAAyB;AAClC,SAASC,uBAAkC;AAC3C,SAASC,oBAAoB;AAC7B,SAASC,sBAAsB;AAC/B,SAASC,wBAAwB;;;ACjBjC,SAASC,YAAY;;;ACArB,OAAOC,WAAW;AAElB,SAASC,OAAOC,sBAAsB;AACtC,SAASC,2BAA2B;AAK7B,IAAMC,oBAAoB,CAAC,EAAEC,SAAQ,MAAwC;AAClF,QAAM,EAAEC,EAAC,IAAKC,eAAeC,gBAAAA;AAE7B,SACE,sBAAA,cAAA,MAAA,UAAA,MACE,sBAAA,cAACC,qBAAAA;IAAoBC,OAAOJ,EAAE,2BAAA;KAC5B,sBAAA,cAACK,MAAMC,QAAM;IACXC,SAASR,SAASS;IAClBC,iBAAiB,CAACF,YAAaR,SAASS,qBAAqB,CAAC,CAACD;;AAKzE;;;ADjBO,IAAMG,aAAaC,KAAK,MAAM,OAAO,2BAAA,CAAA;AACrC,IAAMC,gBAAgBD,KAAK,MAAM,OAAO,8BAAA,CAAA;AACxC,IAAME,gBAAgBF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;AEJ/C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACG,gBAAAA,GAAmB;QAClB,eAAe;QACf,6BAA6B;QAC7B,6BAA6B;MAC/B;IACF;EACF;;;;AHoBK,IAAMC,kBAAkB,MAAA;AAC7B,QAAMC,WAAW,IAAIC,kBAA0CC,gBAAAA;AAG/D,QAAMC,QAAQC,OAAuB;IAAEC,YAAY;EAAM,CAAA;AAEzD,SAAO;IACLC;IACAC,UAAU;MACRC;MACAR,UAAUA,SAASS;MACnBC,OAAO;QACLC,SAAS,CAACC,YAAAA;AACR,gBAAMC,WAAWC,cAAcF,SAASG,iBAAAA,GAAoBR,SAASS,OAAOC;AAC5E,cAAI,CAACJ,UAAU;AACb,mBAAO,CAAA;UACT;AAEA,iBAAOK,gBAAgB;YACrBC,IAAIjB;YACJkB,QAAQ,CAACC,SACPrB,SAASS,OAAOa,qBACZD,KAAKE,gBAAgBC,kBAAkBH,KAAKE,gBAAgBE,eAC5DJ,KAAKE,gBAAgBE;YAC3BC,SAAS,CAAC,EAAEL,KAAI,MAAE;AAChB,oBAAMM,SAASN,KAAKE;AACpB,oBAAMJ,KAAKS,iBAAiBD,MAAAA;AAC5B,qBAAO;gBACL;kBACER,IAAI,GAAGU,gBAAgBC,mBAAmBC,IAAI,IAAIZ,EAAAA;;;kBAGlDI,MAAM,YAAA;AACJ,0BAAMV,SAASmB,aAAaH,gBAAgBC,oBAAoB;sBAAEH;oBAAO,CAAA,CAAA;kBAC3E;kBACAM,YAAY;oBACVC,OAAO;sBAAC;sBAA6B;wBAAEC,IAAIjC;sBAAiB;;oBAC5DkC,MAAM;oBACNC,YAAY;sBACVC,OAAO;sBACPC,SAAS;oBACX;kBACF;gBACF;;YAEJ;UACF,CAAA;QACF;MACF;MACAC,SAAS,CAAC,EAAEC,SAAQ,MAAE;AACpB,eACE,gBAAAC,OAAA,cAACC,iBAAiBC,UAAQ;UACxBC,OAAO;YACLC,SAAS3C,MAAME;YACf0C,OAAO,MAAO5C,MAAME,aAAa;YACjC2C,MAAM,MAAO7C,MAAME,aAAa;UAClC;WAECoC,QAAAA;MAGP;MACAQ,SAAS;QACPC,aAAa,MAAM;UACjBC,cAAc;YACZhC,IAAI,GAAGjB,gBAAAA;YACPkD,MAAM;YACNC,aAAa;YACbjC,QAAQ,CAACG,SAA4CA,KAAK+B,mBAAmB7B;YAC7E8B,WAAW,CAAC,EAAEhC,KAAI,MAAO,gBAAAmB,OAAA,cAACc,YAAAA;cAAWC,UAAUlC,KAAK+B;;UACtD,CAAA;UACAH,cAAc;YACZhC,IAAI,GAAGjB,gBAAAA;YACPkD,MAAM;YACNC,aAAa;YACbjC,QAAQ,CAACG,SAA8CA,KAAK+B,mBAAmB9B;YAC/E+B,WAAW,CAAC,EAAEhC,KAAI,MAAO,gBAAAmB,OAAA,cAACgB,eAAAA;cAAcC,YAAYpC,KAAK+B;;UAC3D,CAAA;UACAH,cAAc;YACZhC,IAAI,GAAGjB,gBAAAA;YACPkD,MAAM;YACNhC,QAAQ,CAACG,SAA4CA,KAAK+B,mBAAmB7B;YAC7E8B,WAAW,CAAC,EAAEhC,KAAI,MAAO,gBAAAmB,OAAA,cAACkB,eAAAA;cAAcH,UAAUlC,KAAK+B;;UACzD,CAAA;UACAH,cAAc;YACZhC,IAAI,GAAGjB,gBAAAA;YACPkD,MAAM;YACNhC,QAAQ,CAACG,SAAsBA,KAAK+B,YAAYpD;YAChDqD,WAAW,MAAM,gBAAAb,OAAA,cAACmB,mBAAAA;cAAkB7D,UAAUA,SAASS;;UACzD,CAAA;;MAEJ;MACAO,QAAQ;QACN8C,WAAW,MACTC,eAAelC,gBAAgBC,oBAAoB,CAAC,EAAEH,QAAQxB,OAAO6D,KAAI,MAAE;AACzE7D,gBAAME,aAAa2D,QAAQ,CAAC7D,MAAME;AAElC,cAAIF,MAAME,YAAY;AACpB,mBAAO;cACL4D,SAAS;gBACPjC,aAAakC,aAAaC,eAAe;kBAAEC,YAAY;gBAAa,CAAA;gBACpEpC,aAAaqC,iBAAiBC,MAAM;kBAAEC,aAAa;oBAAEC,YAAY5C,iBAAiBD,MAAAA;kBAAQ;gBAAE,CAAA;;YAEhG;UACF,OAAO;AACL,mBAAO;cACLsC,SAAS;gBACPjC,aAAakC,aAAaC,eAAe;kBAAEM,QAAQ;gBAAK,CAAA;gBACxDzC,aAAaqC,iBAAiBK,OAAO;kBAAEH,aAAa;oBAAEC,YAAY5C,iBAAiBD,MAAAA;kBAAQ;gBAAE,CAAA;;YAEjG;UACF;QACF,CAAA;MACJ;IACF;EACF;AACF;;;AIjJA,IAAA,cAAegD;",
6
- "names": ["React", "resolvePlugin", "parseIntentPlugin", "LayoutAction", "NavigationAction", "createSurface", "createIntent", "createResolver", "create", "LocalStorageStore", "createExtension", "DocumentType", "CollectionType", "fullyQualifiedId", "lazy", "React", "Input", "useTranslation", "DeprecatedFormInput", "PresenterSettings", "settings", "t", "useTranslation", "PRESENTER_PLUGIN", "DeprecatedFormInput", "label", "Input", "Switch", "checked", "presentCollections", "onCheckedChange", "RevealMain", "lazy", "PresenterMain", "MarkdownSlide", "PRESENTER_PLUGIN", "PresenterPlugin", "settings", "LocalStorageStore", "PRESENTER_PLUGIN", "state", "create", "presenting", "meta", "provides", "translations", "values", "graph", "builder", "plugins", "dispatch", "resolvePlugin", "parseIntentPlugin", "intent", "dispatchPromise", "createExtension", "id", "filter", "node", "presentCollections", "data", "CollectionType", "DocumentType", "actions", "object", "fullyQualifiedId", "PresenterAction", "TogglePresentation", "_tag", "createIntent", "properties", "label", "ns", "icon", "keyBinding", "macos", "windows", "context", "children", "React", "PresenterContext", "Provider", "value", "running", "start", "stop", "surface", "definitions", "createSurface", "role", "disposition", "subject", "component", "RevealMain", "document", "PresenterMain", "collection", "MarkdownSlide", "PresenterSettings", "resolvers", "createResolver", "next", "intents", "LayoutAction", "SetLayoutMode", "layoutMode", "NavigationAction", "Open", "activeParts", "fullScreen", "revert", "Close", "PresenterPlugin"]
3
+ "sources": ["../../../src/capabilities/index.ts", "../../../src/PresenterPlugin.tsx", "../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\nexport const PresenterSettings = lazy(() => import('./settings'));\nexport const PresenterState = lazy(() => import('./state'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { definePlugin, defineModule, Events, contributes, Capabilities } from '@dxos/app-framework';\n\nimport { AppGraphBuilder, IntentResolver, PresenterSettings, PresenterState, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\n// TODO(burdon): Only scale markdown content.\n// TODO(burdon): Map stack content; Slide content type (e.g., markdown, sketch, IPFS image, table, etc.)\n\nexport const PresenterPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/settings`,\n activatesOn: Events.SetupSettings,\n activate: PresenterSettings,\n }),\n defineModule({\n id: `${meta.id}/module/state`,\n // TODO(wittjosiah): Does not integrate with settings store.\n // Should this be a different event?\n // Should settings store be renamed to be more generic?\n activatesOn: Events.SetupSettings,\n activate: PresenterState,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { PRESENTER_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [PRESENTER_PLUGIN]: {\n 'plugin name': 'Presenter',\n 'toggle presentation label': 'Present',\n 'present collections label': 'Present collections (experimental)',\n },\n },\n },\n];\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;AAIA,SAASA,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC1C,IAAMC,iBAAiBD,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAMG,qBAAoBH,KAAK,MAAM,OAAO,yBAAA,CAAA;AAC5C,IAAMI,iBAAiBJ,KAAK,MAAM,OAAO,sBAAA,CAAA;;;ACNhD,SAASK,cAAcC,cAAcC,QAAQC,aAAaC,oBAAoB;;;ACE9E,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,gBAAAA,GAAmB;QAClB,eAAe;QACf,6BAA6B;QAC7B,6BAA6B;MAC/B;IACF;EACF;;;;ADFK,IAAMC,kBAAkB,MAC7BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAUC;EACZ,CAAA;EACAN,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;;;;IAIdC,aAAaC,OAAOC;IACpBC,UAAUE;EACZ,CAAA;EACAP,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOK;IACpBH,UAAU,MAAMI,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAZ,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOU;IACpBR,UAAUS;EACZ,CAAA;EACAd,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOY;IACpBV,UAAUW;EACZ,CAAA;EACAhB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOc;IACpBZ,UAAUa;EACZ,CAAA;CACD;",
6
+ "names": ["lazy", "AppGraphBuilder", "lazy", "IntentResolver", "ReactSurface", "PresenterSettings", "PresenterState", "definePlugin", "defineModule", "Events", "contributes", "Capabilities", "PRESENTER_PLUGIN", "PresenterPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupSettings", "activate", "PresenterSettings", "PresenterState", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver", "SetupAppGraph", "AppGraphBuilder"]
7
7
  }
@@ -0,0 +1,46 @@
1
+ import {
2
+ PresenterCapabilities
3
+ } from "./chunk-MSAMS5TA.mjs";
4
+ import {
5
+ PresenterAction
6
+ } from "./chunk-SFMK6EE3.mjs";
7
+ import "./chunk-Q5U3VOZB.mjs";
8
+
9
+ // packages/plugins/plugin-presenter/src/capabilities/intent-resolver.ts
10
+ import { Capabilities, contributes, createIntent, createResolver, LayoutAction } from "@dxos/app-framework";
11
+ import { fullyQualifiedId } from "@dxos/react-client/echo";
12
+ var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, createResolver({
13
+ intent: PresenterAction.TogglePresentation,
14
+ resolve: ({ object, state: next }) => {
15
+ const state = context.requestCapability(PresenterCapabilities.MutableState);
16
+ state.presenting = next ?? !state.presenting;
17
+ if (state.presenting) {
18
+ return {
19
+ intents: [
20
+ createIntent(LayoutAction.SetLayoutMode, {
21
+ part: "mode",
22
+ subject: fullyQualifiedId(object),
23
+ options: {
24
+ mode: "fullscreen"
25
+ }
26
+ })
27
+ ]
28
+ };
29
+ } else {
30
+ return {
31
+ intents: [
32
+ createIntent(LayoutAction.SetLayoutMode, {
33
+ part: "mode",
34
+ options: {
35
+ revert: true
36
+ }
37
+ })
38
+ ]
39
+ };
40
+ }
41
+ }
42
+ }));
43
+ export {
44
+ intent_resolver_default as default
45
+ };
46
+ //# sourceMappingURL=intent-resolver-27OZKSSE.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/intent-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n Capabilities,\n contributes,\n createIntent,\n createResolver,\n LayoutAction,\n type PluginsContext,\n} from '@dxos/app-framework';\nimport { fullyQualifiedId } from '@dxos/react-client/echo';\n\nimport { PresenterCapabilities } from './capabilities';\nimport { PresenterAction } from '../types';\n\nexport default (context: PluginsContext) =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: PresenterAction.TogglePresentation,\n resolve: ({ object, state: next }) => {\n const state = context.requestCapability(PresenterCapabilities.MutableState);\n state.presenting = next ?? !state.presenting;\n\n if (state.presenting) {\n return {\n intents: [\n createIntent(LayoutAction.SetLayoutMode, {\n part: 'mode',\n subject: fullyQualifiedId(object),\n options: { mode: 'fullscreen' },\n }),\n ],\n };\n } else {\n return {\n intents: [createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { revert: true } })],\n };\n }\n },\n }),\n );\n"],
5
+ "mappings": ";;;;;;;;;AAIA,SACEA,cACAC,aACAC,cACAC,gBACAC,oBAEK;AACP,SAASC,wBAAwB;AAKjC,IAAA,0BAAe,CAACC,YACdC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,gBAAgBC;EACxBC,SAAS,CAAC,EAAEC,QAAQC,OAAOC,KAAI,MAAE;AAC/B,UAAMD,QAAQV,QAAQY,kBAAkBC,sBAAsBC,YAAY;AAC1EJ,UAAMK,aAAaJ,QAAQ,CAACD,MAAMK;AAElC,QAAIL,MAAMK,YAAY;AACpB,aAAO;QACLC,SAAS;UACPC,aAAaC,aAAaC,eAAe;YACvCC,MAAM;YACNC,SAASC,iBAAiBb,MAAAA;YAC1Bc,SAAS;cAAEC,MAAM;YAAa;UAChC,CAAA;;MAEJ;IACF,OAAO;AACL,aAAO;QACLR,SAAS;UAACC,aAAaC,aAAaC,eAAe;YAAEC,MAAM;YAAQG,SAAS;cAAEE,QAAQ;YAAK;UAAE,CAAA;;MAC/F;IACF;EACF;AACF,CAAA,CAAA;",
6
+ "names": ["Capabilities", "contributes", "createIntent", "createResolver", "LayoutAction", "fullyQualifiedId", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "PresenterAction", "TogglePresentation", "resolve", "object", "state", "next", "requestCapability", "PresenterCapabilities", "MutableState", "presenting", "intents", "createIntent", "LayoutAction", "SetLayoutMode", "part", "subject", "fullyQualifiedId", "options", "mode", "revert"]
7
+ }
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-presenter/src/meta.ts":{"bytes":1477,"imports":[],"format":"esm"},"packages/plugins/plugin-presenter/src/components/PresenterSettings.tsx":{"bytes":2784,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx":{"bytes":12225,"imports":[{"path":"reveal.js/dist/reveal.css","kind":"import-statement","external":true},{"path":"reveal.js/dist/theme/black.css","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Reveal/index.ts":{"bytes":517,"imports":[{"path":"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx","kind":"import-statement","original":"./Reveal"}],"format":"esm"},"packages/plugins/plugin-presenter/src/types.ts":{"bytes":4191,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/RevealMain.tsx":{"bytes":4597,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Reveal/index.ts","kind":"import-statement","original":"./Reveal"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Presenter/Layout.tsx":{"bytes":3461,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Presenter/Pager.tsx":{"bytes":12360,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Presenter/index.ts":{"bytes":605,"imports":[{"path":"packages/plugins/plugin-presenter/src/components/Presenter/Layout.tsx","kind":"import-statement","original":"./Layout"},{"path":"packages/plugins/plugin-presenter/src/components/Presenter/Pager.tsx","kind":"import-statement","original":"./Pager"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx":{"bytes":8156,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Presenter/index.ts","kind":"import-statement","original":"./Presenter"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/Container.tsx":{"bytes":8182,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/theme.ts":{"bytes":2210,"imports":[],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/Slide.tsx":{"bytes":17556,"imports":[{"path":"hastscript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-markdown","kind":"import-statement","external":true},{"path":"rehype-add-classes","kind":"import-statement","external":true},{"path":"rehype-highlight","kind":"import-statement","external":true},{"path":"remark-frontmatter","kind":"import-statement","external":true},{"path":"remark-parse-frontmatter","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Markdown/theme.ts","kind":"import-statement","original":"./theme"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/index.ts":{"bytes":611,"imports":[{"path":"packages/plugins/plugin-presenter/src/components/Markdown/Container.tsx","kind":"import-statement","original":"./Container"},{"path":"packages/plugins/plugin-presenter/src/components/Markdown/Slide.tsx","kind":"import-statement","original":"./Slide"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx":{"bytes":1892,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Markdown/index.ts","kind":"import-statement","original":"./Markdown"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/index.ts":{"bytes":1391,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/PresenterSettings.tsx","kind":"import-statement","original":"./PresenterSettings"},{"path":"packages/plugins/plugin-presenter/src/components/RevealMain.tsx","kind":"dynamic-import","original":"./RevealMain"},{"path":"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx","kind":"dynamic-import","original":"./PresenterMain"},{"path":"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx","kind":"dynamic-import","original":"./MarkdownSlide"}],"format":"esm"},"packages/plugins/plugin-presenter/src/translations.ts":{"bytes":1402,"imports":[{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx":{"bytes":20856,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-presenter/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/index.ts":{"bytes":915,"imports":[{"path":"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx","kind":"import-statement","original":"./PresenterPlugin"},{"path":"packages/plugins/plugin-presenter/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx","kind":"import-statement","original":"./PresenterPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-presenter/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12359},"packages/plugins/plugin-presenter/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Z6QQB6KB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-JGKAQMQ4.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-TQE4OZK2.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/MarkdownSlide-5NYXG5SC.mjs","kind":"dynamic-import"}],"exports":["MarkdownSlide","PresenterMain","PresenterPlugin","PresenterSettings","RevealMain","default"],"entryPoint":"packages/plugins/plugin-presenter/src/index.ts","inputs":{"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx":{"bytesInOutput":5179},"packages/plugins/plugin-presenter/src/components/index.ts":{"bytesInOutput":240},"packages/plugins/plugin-presenter/src/components/PresenterSettings.tsx":{"bytesInOutput":588},"packages/plugins/plugin-presenter/src/translations.ts":{"bytesInOutput":255},"packages/plugins/plugin-presenter/src/index.ts":{"bytesInOutput":35}},"bytes":7042},"packages/plugins/plugin-presenter/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-presenter/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs","kind":"import-statement"}],"exports":["PRESENTER_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-presenter/src/meta.ts","inputs":{},"bytes":167},"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-JGKAQMQ4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8227},"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-JGKAQMQ4.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Z6QQB6KB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"reveal.js/dist/reveal.css","kind":"import-statement","external":true},{"path":"reveal.js/dist/theme/black.css","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/components/RevealMain.tsx","inputs":{"packages/plugins/plugin-presenter/src/components/RevealMain.tsx":{"bytesInOutput":1017},"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx":{"bytesInOutput":3168},"packages/plugins/plugin-presenter/src/components/Reveal/index.ts":{"bytesInOutput":0}},"bytes":4574},"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-TQE4OZK2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12402},"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-TQE4OZK2.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Z6QQB6KB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx","inputs":{"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx":{"bytesInOutput":1889},"packages/plugins/plugin-presenter/src/components/Presenter/Layout.tsx":{"bytesInOutput":908},"packages/plugins/plugin-presenter/src/components/Presenter/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-presenter/src/components/Presenter/Pager.tsx":{"bytesInOutput":3320}},"bytes":6614},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Z6QQB6KB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2336},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Z6QQB6KB.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["PresenterAction","PresenterContext"],"inputs":{"packages/plugins/plugin-presenter/src/types.ts":{"bytesInOutput":759}},"bytes":964},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":705},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-67PDV7KN.mjs":{"imports":[],"exports":["PRESENTER_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-presenter/src/meta.ts":{"bytesInOutput":294}},"bytes":435},"packages/plugins/plugin-presenter/dist/lib/browser/MarkdownSlide-5NYXG5SC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13438},"packages/plugins/plugin-presenter/dist/lib/browser/MarkdownSlide-5NYXG5SC.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"hastscript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-markdown","kind":"import-statement","external":true},{"path":"rehype-add-classes","kind":"import-statement","external":true},{"path":"rehype-highlight","kind":"import-statement","external":true},{"path":"remark-frontmatter","kind":"import-statement","external":true},{"path":"remark-parse-frontmatter","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx","inputs":{"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx":{"bytesInOutput":333},"packages/plugins/plugin-presenter/src/components/Markdown/Container.tsx":{"bytesInOutput":1351},"packages/plugins/plugin-presenter/src/components/Markdown/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-presenter/src/components/Markdown/Slide.tsx":{"bytesInOutput":4999},"packages/plugins/plugin-presenter/src/components/Markdown/theme.ts":{"bytesInOutput":509}},"bytes":7723}}}
1
+ {"inputs":{"packages/plugins/plugin-presenter/src/meta.ts":{"bytes":1514,"imports":[],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/capabilities.ts":{"bytes":1764,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/types.ts":{"bytes":4250,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/app-graph-builder.ts":{"bytes":7397,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/intent-resolver.ts":{"bytes":4945,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/PresenterSettings.tsx":{"bytes":2974,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx":{"bytes":12225,"imports":[{"path":"reveal.js/dist/reveal.css","kind":"import-statement","external":true},{"path":"reveal.js/dist/theme/black.css","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Reveal/index.ts":{"bytes":517,"imports":[{"path":"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx","kind":"import-statement","original":"./Reveal"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/RevealMain.tsx":{"bytes":4411,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Reveal/index.ts","kind":"import-statement","original":"./Reveal"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Presenter/Layout.tsx":{"bytes":3461,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Presenter/Pager.tsx":{"bytes":12360,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Presenter/index.ts":{"bytes":605,"imports":[{"path":"packages/plugins/plugin-presenter/src/components/Presenter/Layout.tsx","kind":"import-statement","original":"./Layout"},{"path":"packages/plugins/plugin-presenter/src/components/Presenter/Pager.tsx","kind":"import-statement","original":"./Pager"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx":{"bytes":7839,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Presenter/index.ts","kind":"import-statement","original":"./Presenter"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/Container.tsx":{"bytes":8182,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/theme.ts":{"bytes":2210,"imports":[],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/Slide.tsx":{"bytes":17556,"imports":[{"path":"hastscript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-markdown","kind":"import-statement","external":true},{"path":"rehype-add-classes","kind":"import-statement","external":true},{"path":"rehype-highlight","kind":"import-statement","external":true},{"path":"remark-frontmatter","kind":"import-statement","external":true},{"path":"remark-parse-frontmatter","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Markdown/theme.ts","kind":"import-statement","original":"./theme"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/Markdown/index.ts":{"bytes":611,"imports":[{"path":"packages/plugins/plugin-presenter/src/components/Markdown/Container.tsx","kind":"import-statement","original":"./Container"},{"path":"packages/plugins/plugin-presenter/src/components/Markdown/Slide.tsx","kind":"import-statement","original":"./Slide"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx":{"bytes":1892,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/Markdown/index.ts","kind":"import-statement","original":"./Markdown"}],"format":"esm"},"packages/plugins/plugin-presenter/src/components/index.ts":{"bytes":1391,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/components/PresenterSettings.tsx","kind":"import-statement","original":"./PresenterSettings"},{"path":"packages/plugins/plugin-presenter/src/components/RevealMain.tsx","kind":"dynamic-import","original":"./RevealMain"},{"path":"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx","kind":"dynamic-import","original":"./PresenterMain"},{"path":"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx","kind":"dynamic-import","original":"./MarkdownSlide"}],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx":{"bytes":8450,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-presenter/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/settings.ts":{"bytes":2024,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-presenter/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/state.ts":{"bytes":2198,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"packages/plugins/plugin-presenter/src/capabilities/index.ts":{"bytes":1940,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-presenter/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-presenter/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-presenter/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"},{"path":"packages/plugins/plugin-presenter/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"}],"format":"esm"},"packages/plugins/plugin-presenter/src/translations.ts":{"bytes":1402,"imports":[{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx":{"bytes":6208,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-presenter/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-presenter/src/index.ts":{"bytes":906,"imports":[{"path":"packages/plugins/plugin-presenter/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-presenter/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx","kind":"import-statement","original":"./PresenterPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-presenter/dist/lib/browser/state-IGJRHRIA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1008},"packages/plugins/plugin-presenter/dist/lib/browser/state-IGJRHRIA.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-MSAMS5TA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-presenter/src/capabilities/state.ts":{"bytesInOutput":237}},"bytes":479},"packages/plugins/plugin-presenter/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4233},"packages/plugins/plugin-presenter/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Y3TXMZKR.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-MSAMS5TA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/intent-resolver-27OZKSSE.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/react-surface-OGCVIWCS.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/settings-L73ZKGLV.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/state-IGJRHRIA.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["MarkdownSlide","PRESENTER_PLUGIN","PresenterCapabilities","PresenterMain","PresenterPlugin","PresenterSettings","RevealMain","meta"],"entryPoint":"packages/plugins/plugin-presenter/src/index.ts","inputs":{"packages/plugins/plugin-presenter/src/capabilities/index.ts":{"bytesInOutput":405},"packages/plugins/plugin-presenter/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx":{"bytesInOutput":1188},"packages/plugins/plugin-presenter/src/translations.ts":{"bytesInOutput":255}},"bytes":2520},"packages/plugins/plugin-presenter/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3672},"packages/plugins/plugin-presenter/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-presenter/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1686}},"bytes":1986},"packages/plugins/plugin-presenter/dist/lib/browser/intent-resolver-27OZKSSE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2394},"packages/plugins/plugin-presenter/dist/lib/browser/intent-resolver-27OZKSSE.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-MSAMS5TA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-presenter/src/capabilities/intent-resolver.ts":{"bytesInOutput":1016}},"bytes":1346},"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-YFG5E6JB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8089},"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-YFG5E6JB.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"reveal.js/dist/reveal.css","kind":"import-statement","external":true},{"path":"reveal.js/dist/theme/black.css","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/components/RevealMain.tsx","inputs":{"packages/plugins/plugin-presenter/src/components/RevealMain.tsx":{"bytesInOutput":969},"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx":{"bytesInOutput":3168},"packages/plugins/plugin-presenter/src/components/Reveal/index.ts":{"bytesInOutput":0}},"bytes":4526},"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-7JXM3QQ7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12193},"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-7JXM3QQ7.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx","inputs":{"packages/plugins/plugin-presenter/src/components/PresenterMain.tsx":{"bytesInOutput":1804},"packages/plugins/plugin-presenter/src/components/Presenter/Layout.tsx":{"bytesInOutput":908},"packages/plugins/plugin-presenter/src/components/Presenter/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-presenter/src/components/Presenter/Pager.tsx":{"bytesInOutput":3320}},"bytes":6529},"packages/plugins/plugin-presenter/dist/lib/browser/MarkdownSlide-5NYXG5SC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13438},"packages/plugins/plugin-presenter/dist/lib/browser/MarkdownSlide-5NYXG5SC.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"hastscript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react-markdown","kind":"import-statement","external":true},{"path":"rehype-add-classes","kind":"import-statement","external":true},{"path":"rehype-highlight","kind":"import-statement","external":true},{"path":"remark-frontmatter","kind":"import-statement","external":true},{"path":"remark-parse-frontmatter","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx","inputs":{"packages/plugins/plugin-presenter/src/components/MarkdownSlide.tsx":{"bytesInOutput":333},"packages/plugins/plugin-presenter/src/components/Markdown/Container.tsx":{"bytesInOutput":1351},"packages/plugins/plugin-presenter/src/components/Markdown/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-presenter/src/components/Markdown/Slide.tsx":{"bytesInOutput":4999},"packages/plugins/plugin-presenter/src/components/Markdown/theme.ts":{"bytesInOutput":509}},"bytes":7723},"packages/plugins/plugin-presenter/dist/lib/browser/react-surface-OGCVIWCS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4136},"packages/plugins/plugin-presenter/dist/lib/browser/react-surface-OGCVIWCS.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Y3TXMZKR.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-MSAMS5TA.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx":{"bytesInOutput":1856}},"bytes":2318},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Y3TXMZKR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2151},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Y3TXMZKR.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-YFG5E6JB.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-7JXM3QQ7.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/MarkdownSlide-5NYXG5SC.mjs","kind":"dynamic-import"}],"exports":["MarkdownSlide","PresenterMain","PresenterSettings","RevealMain"],"inputs":{"packages/plugins/plugin-presenter/src/components/PresenterSettings.tsx":{"bytesInOutput":622},"packages/plugins/plugin-presenter/src/components/index.ts":{"bytesInOutput":240}},"bytes":1183},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-MSAMS5TA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":836},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-MSAMS5TA.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["PresenterCapabilities"],"inputs":{"packages/plugins/plugin-presenter/src/capabilities/capabilities.ts":{"bytesInOutput":367}},"bytes":578},"packages/plugins/plugin-presenter/dist/lib/browser/settings-L73ZKGLV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1010},"packages/plugins/plugin-presenter/dist/lib/browser/settings-L73ZKGLV.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-presenter/src/capabilities/settings.ts":{"bytesInOutput":313}},"bytes":594},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2283},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-SFMK6EE3.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true}],"exports":["PresenterAction","PresenterContext","PresenterSettingsSchema"],"inputs":{"packages/plugins/plugin-presenter/src/types.ts":{"bytesInOutput":859}},"bytes":1091},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":720},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-Q5U3VOZB.mjs":{"imports":[],"exports":["PRESENTER_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-presenter/src/meta.ts":{"bytesInOutput":286}},"bytes":419}}}
@@ -0,0 +1,71 @@
1
+ import {
2
+ MarkdownSlide,
3
+ PresenterMain,
4
+ PresenterSettings,
5
+ RevealMain
6
+ } from "./chunk-Y3TXMZKR.mjs";
7
+ import {
8
+ PresenterCapabilities
9
+ } from "./chunk-MSAMS5TA.mjs";
10
+ import {
11
+ PresenterContext
12
+ } from "./chunk-SFMK6EE3.mjs";
13
+ import {
14
+ PRESENTER_PLUGIN
15
+ } from "./chunk-Q5U3VOZB.mjs";
16
+
17
+ // packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx
18
+ import React from "react";
19
+ import { Capabilities, contributes, createSurface, useCapability } from "@dxos/app-framework";
20
+ import { SettingsStore } from "@dxos/local-storage";
21
+ import { DocumentType } from "@dxos/plugin-markdown/types";
22
+ import { CollectionType } from "@dxos/plugin-space/types";
23
+ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
24
+ createSurface({
25
+ id: `${PRESENTER_PLUGIN}/document`,
26
+ role: "main",
27
+ position: "hoist",
28
+ filter: (data) => data.subject instanceof DocumentType,
29
+ component: ({ data }) => /* @__PURE__ */ React.createElement(RevealMain, {
30
+ document: data.subject
31
+ })
32
+ }),
33
+ createSurface({
34
+ id: `${PRESENTER_PLUGIN}/collection`,
35
+ role: "main",
36
+ position: "hoist",
37
+ filter: (data) => data.subject instanceof CollectionType,
38
+ component: ({ data }) => {
39
+ const state = useCapability(PresenterCapabilities.MutableState);
40
+ return /* @__PURE__ */ React.createElement(PresenterContext.Provider, {
41
+ value: {
42
+ running: state.presenting,
43
+ start: () => state.presenting = true,
44
+ stop: () => state.presenting = false
45
+ }
46
+ }, /* @__PURE__ */ React.createElement(PresenterMain, {
47
+ collection: data.subject
48
+ }));
49
+ }
50
+ }),
51
+ createSurface({
52
+ id: `${PRESENTER_PLUGIN}/slide`,
53
+ role: "slide",
54
+ filter: (data) => data.subject instanceof DocumentType,
55
+ component: ({ data }) => /* @__PURE__ */ React.createElement(MarkdownSlide, {
56
+ document: data.subject
57
+ })
58
+ }),
59
+ createSurface({
60
+ id: `${PRESENTER_PLUGIN}/settings`,
61
+ role: "article",
62
+ filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix === PRESENTER_PLUGIN,
63
+ component: ({ data: { subject } }) => /* @__PURE__ */ React.createElement(PresenterSettings, {
64
+ settings: subject.value
65
+ })
66
+ })
67
+ ]);
68
+ export {
69
+ react_surface_default as default
70
+ };
71
+ //# sourceMappingURL=react-surface-OGCVIWCS.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 { 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
+ }
@@ -0,0 +1,22 @@
1
+ import {
2
+ PresenterSettingsSchema
3
+ } from "./chunk-SFMK6EE3.mjs";
4
+ import {
5
+ PRESENTER_PLUGIN
6
+ } from "./chunk-Q5U3VOZB.mjs";
7
+
8
+ // packages/plugins/plugin-presenter/src/capabilities/settings.ts
9
+ import { Capabilities, contributes } from "@dxos/app-framework";
10
+ import { create } from "@dxos/live-object";
11
+ var settings_default = () => {
12
+ const settings = create({});
13
+ return contributes(Capabilities.Settings, {
14
+ schema: PresenterSettingsSchema,
15
+ prefix: PRESENTER_PLUGIN,
16
+ value: settings
17
+ });
18
+ };
19
+ export {
20
+ settings_default as default
21
+ };
22
+ //# sourceMappingURL=settings-L73ZKGLV.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/settings.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\n\nimport { PRESENTER_PLUGIN } from '../meta';\nimport { PresenterSettingsSchema, type PresenterSettingsProps } from '../types';\n\nexport default () => {\n const settings = create<PresenterSettingsProps>({});\n\n return contributes(Capabilities.Settings, {\n schema: PresenterSettingsSchema,\n prefix: PRESENTER_PLUGIN,\n value: settings,\n });\n};\n"],
5
+ "mappings": ";;;;;;;;AAIA,SAASA,cAAcC,mBAAmB;AAC1C,SAASC,cAAc;AAKvB,IAAA,mBAAe,MAAA;AACb,QAAMC,WAAWC,OAA+B,CAAC,CAAA;AAEjD,SAAOC,YAAYC,aAAaC,UAAU;IACxCC,QAAQC;IACRC,QAAQC;IACRC,OAAOT;EACT,CAAA;AACF;",
6
+ "names": ["Capabilities", "contributes", "create", "settings", "create", "contributes", "Capabilities", "Settings", "schema", "PresenterSettingsSchema", "prefix", "PRESENTER_PLUGIN", "value"]
7
+ }
@@ -0,0 +1,18 @@
1
+ import {
2
+ PresenterCapabilities
3
+ } from "./chunk-MSAMS5TA.mjs";
4
+ import "./chunk-Q5U3VOZB.mjs";
5
+
6
+ // packages/plugins/plugin-presenter/src/capabilities/state.ts
7
+ import { contributes } from "@dxos/app-framework";
8
+ import { create } from "@dxos/live-object";
9
+ var state_default = () => {
10
+ const state = create({
11
+ presenting: false
12
+ });
13
+ return contributes(PresenterCapabilities.State, state);
14
+ };
15
+ export {
16
+ state_default as default
17
+ };
18
+ //# sourceMappingURL=state-IGJRHRIA.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/state.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\n\nimport { PresenterCapabilities } from './capabilities';\n\nexport default () => {\n // TODO(burdon): Do we need context providers if we can get the state from the plugin?\n // No, the main reason would be compability with existing apis.\n // For anything made specifically for the plugin framework they can depend on `useCapabilities`.\n const state = create<PresenterCapabilities.State>({ presenting: false });\n\n return contributes(PresenterCapabilities.State, state);\n};\n"],
5
+ "mappings": ";;;;;;AAIA,SAASA,mBAAmB;AAC5B,SAASC,cAAc;AAIvB,IAAA,gBAAe,MAAA;AAIb,QAAMC,QAAQC,OAAoC;IAAEC,YAAY;EAAM,CAAA;AAEtE,SAAOC,YAAYC,sBAAsBC,OAAOL,KAAAA;AAClD;",
6
+ "names": ["contributes", "create", "state", "create", "presenting", "contributes", "PresenterCapabilities", "State"]
7
+ }
@@ -1,4 +1,2 @@
1
- import { type PluginDefinition } from '@dxos/app-framework';
2
- import { type PresenterPluginProvides } from './types';
3
- export declare const PresenterPlugin: () => PluginDefinition<PresenterPluginProvides>;
1
+ export declare const PresenterPlugin: () => import("@dxos/app-framework").Plugin;
4
2
  //# sourceMappingURL=PresenterPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PresenterPlugin.d.ts","sourceRoot":"","sources":["../../../src/PresenterPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,gBAAgB,EAOtB,MAAM,qBAAqB,CAAC;AAW7B,OAAO,EAAiD,KAAK,uBAAuB,EAAmB,MAAM,SAAS,CAAC;AASvH,eAAO,MAAM,eAAe,QAAO,gBAAgB,CAAC,uBAAuB,CAoH1E,CAAC"}
1
+ {"version":3,"file":"PresenterPlugin.d.ts","sourceRoot":"","sources":["../../../src/PresenterPlugin.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe,4CAmCxB,CAAC"}