@dxos/plugin-presenter 0.7.5-main.9cb18ac → 0.7.5-main.9d2a38b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{PresenterMain-TQE4OZK2.mjs → PresenterMain-2RSALOUX.mjs} +6 -6
- package/dist/lib/browser/PresenterMain-2RSALOUX.mjs.map +7 -0
- package/dist/lib/browser/{RevealMain-JGKAQMQ4.mjs → RevealMain-SWCWANYN.mjs} +6 -5
- package/dist/lib/browser/{RevealMain-JGKAQMQ4.mjs.map → RevealMain-SWCWANYN.mjs.map} +3 -3
- package/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs +54 -0
- package/dist/lib/browser/app-graph-builder-6U7WTJKG.mjs.map +7 -0
- package/dist/lib/browser/chunk-MSAMS5TA.mjs +16 -0
- package/dist/lib/browser/chunk-MSAMS5TA.mjs.map +7 -0
- package/dist/lib/browser/chunk-P2BIPL4V.mjs +31 -0
- package/dist/lib/browser/chunk-P2BIPL4V.mjs.map +7 -0
- package/dist/lib/browser/{chunk-67PDV7KN.mjs → chunk-Q5U3VOZB.mjs} +3 -3
- package/dist/lib/browser/chunk-Q5U3VOZB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-Z6QQB6KB.mjs → chunk-SFMK6EE3.mjs} +7 -3
- package/dist/lib/browser/chunk-SFMK6EE3.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +60 -172
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-CAYS4SCJ.mjs +46 -0
- package/dist/lib/browser/intent-resolver-CAYS4SCJ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-context-A3AXJRTF.mjs +30 -0
- package/dist/lib/browser/react-context-A3AXJRTF.mjs.map +7 -0
- package/dist/lib/browser/react-surface-U7AXT65E.mjs +58 -0
- package/dist/lib/browser/react-surface-U7AXT65E.mjs.map +7 -0
- package/dist/lib/browser/settings-L73ZKGLV.mjs +22 -0
- package/dist/lib/browser/settings-L73ZKGLV.mjs.map +7 -0
- package/dist/lib/browser/state-IGJRHRIA.mjs +18 -0
- package/dist/lib/browser/state-IGJRHRIA.mjs.map +7 -0
- package/dist/types/src/PresenterPlugin.d.ts +1 -3
- package/dist/types/src/PresenterPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/capabilities.d.ts +8 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +188 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context.d.ts +8 -0
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +4 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state.d.ts +4 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/components/RevealMain.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +4 -5
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +21 -29
- package/src/PresenterPlugin.tsx +47 -141
- package/src/capabilities/app-graph-builder.ts +51 -0
- package/src/capabilities/capabilities.ts +13 -0
- package/src/capabilities/index.ts +14 -0
- package/src/capabilities/intent-resolver.ts +42 -0
- package/src/capabilities/react-context.tsx +31 -0
- package/src/capabilities/react-surface.tsx +48 -0
- package/src/capabilities/settings.ts +19 -0
- package/src/capabilities/state.ts +17 -0
- package/src/components/PresenterMain.tsx +3 -3
- package/src/components/RevealMain.tsx +3 -2
- package/src/index.ts +2 -4
- package/src/meta.ts +1 -1
- package/src/types.ts +6 -15
- package/dist/lib/browser/PresenterMain-TQE4OZK2.mjs.map +0 -7
- package/dist/lib/browser/chunk-67PDV7KN.mjs.map +0 -7
- package/dist/lib/browser/chunk-Z6QQB6KB.mjs.map +0 -7
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/browser/meta.mjs.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
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 ReactContext = lazy(() => import('./react-context'));\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 {\n AppGraphBuilder,\n IntentResolver,\n PresenterSettings,\n PresenterState,\n ReactContext,\n ReactSurface,\n} 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 activatesOn: Events.Startup,\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-context`,\n activatesOn: Events.Startup,\n activate: ReactContext,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.Startup,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntents,\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,eAAeH,KAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAMI,qBAAoBJ,KAAK,MAAM,OAAO,yBAAA,CAAA;AAC5C,IAAMK,iBAAiBL,KAAK,MAAM,OAAO,sBAAA,CAAA;;;ACPhD,SAASM,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;;;;ADKK,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;IACdC,aAAaC,OAAOI;IACpBF,UAAUG;EACZ,CAAA;EACAR,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOM;IACpBJ,UAAU,MAAMK,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAb,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOI;IACpBF,UAAUS;EACZ,CAAA;EACAd,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOI;IACpBF,UAAUU;EACZ,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOa;IACpBX,UAAUY;EACZ,CAAA;EACAjB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOe;IACpBb,UAAUc;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["lazy", "AppGraphBuilder", "lazy", "IntentResolver", "ReactContext", "ReactSurface", "PresenterSettings", "PresenterState", "definePlugin", "defineModule", "Events", "contributes", "Capabilities", "PRESENTER_PLUGIN", "PresenterPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupSettings", "activate", "PresenterSettings", "Startup", "PresenterState", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "ReactContext", "ReactSurface", "SetupIntents", "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, NavigationAction } from "@dxos/app-framework";
|
|
11
|
+
import { fullyQualifiedId } from "@dxos/react-client/echo";
|
|
12
|
+
var intent_resolver_default = (context) => contributes(Capabilities.IntentResolver, createResolver(PresenterAction.TogglePresentation, ({ object, state: next }) => {
|
|
13
|
+
const state = context.requestCapability(PresenterCapabilities.MutableState);
|
|
14
|
+
state.presenting = next ?? !state.presenting;
|
|
15
|
+
if (state.presenting) {
|
|
16
|
+
return {
|
|
17
|
+
intents: [
|
|
18
|
+
createIntent(LayoutAction.SetLayoutMode, {
|
|
19
|
+
layoutMode: "fullscreen"
|
|
20
|
+
}),
|
|
21
|
+
createIntent(NavigationAction.Open, {
|
|
22
|
+
activeParts: {
|
|
23
|
+
fullScreen: fullyQualifiedId(object)
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
} else {
|
|
29
|
+
return {
|
|
30
|
+
intents: [
|
|
31
|
+
createIntent(LayoutAction.SetLayoutMode, {
|
|
32
|
+
revert: true
|
|
33
|
+
}),
|
|
34
|
+
createIntent(NavigationAction.Close, {
|
|
35
|
+
activeParts: {
|
|
36
|
+
fullScreen: fullyQualifiedId(object)
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
export {
|
|
44
|
+
intent_resolver_default as default
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=intent-resolver-CAYS4SCJ.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 NavigationAction,\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(PresenterAction.TogglePresentation, ({ 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, { 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"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SACEA,cACAC,aACAC,cACAC,gBACAC,cACAC,wBAEK;AACP,SAASC,wBAAwB;AAKjC,IAAA,0BAAe,CAACC,YACdC,YACEC,aAAaC,gBACbC,eAAeC,gBAAgBC,oBAAoB,CAAC,EAAEC,QAAQC,OAAOC,KAAI,MAAE;AACzE,QAAMD,QAAQR,QAAQU,kBAAkBC,sBAAsBC,YAAY;AAC1EJ,QAAMK,aAAaJ,QAAQ,CAACD,MAAMK;AAElC,MAAIL,MAAMK,YAAY;AACpB,WAAO;MACLC,SAAS;QACPC,aAAaC,aAAaC,eAAe;UAAEC,YAAY;QAAa,CAAA;QACpEH,aAAaI,iBAAiBC,MAAM;UAAEC,aAAa;YAAEC,YAAYC,iBAAiBhB,MAAAA;UAAQ;QAAE,CAAA;;IAEhG;EACF,OAAO;AACL,WAAO;MACLO,SAAS;QACPC,aAAaC,aAAaC,eAAe;UAAEO,QAAQ;QAAK,CAAA;QACxDT,aAAaI,iBAAiBM,OAAO;UAAEJ,aAAa;YAAEC,YAAYC,iBAAiBhB,MAAAA;UAAQ;QAAE,CAAA;;IAEjG;EACF;AACF,CAAA,CAAA;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "createIntent", "createResolver", "LayoutAction", "NavigationAction", "fullyQualifiedId", "context", "contributes", "Capabilities", "IntentResolver", "createResolver", "PresenterAction", "TogglePresentation", "object", "state", "next", "requestCapability", "PresenterCapabilities", "MutableState", "presenting", "intents", "createIntent", "LayoutAction", "SetLayoutMode", "layoutMode", "NavigationAction", "Open", "activeParts", "fullScreen", "fullyQualifiedId", "revert", "Close"]
|
|
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":5152,"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/capabilities/react-context.tsx":{"bytes":3238,"imports":[{"path":"react","kind":"import-statement","external":true},{"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/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/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/components/RevealMain.tsx":{"bytes":4606,"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":8018,"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":6753,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","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/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-presenter/src/meta.ts","kind":"import-statement","original":"../meta"}],"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":2181,"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-context.tsx","kind":"dynamic-import","original":"./react-context"},{"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":6235,"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/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/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":4411},"packages/plugins/plugin-presenter/dist/lib/browser/index.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-P2BIPL4V.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-CAYS4SCJ.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/react-context-A3AXJRTF.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/react-surface-U7AXT65E.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":476},"packages/plugins/plugin-presenter/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-presenter/src/PresenterPlugin.tsx":{"bytesInOutput":1121},"packages/plugins/plugin-presenter/src/translations.ts":{"bytesInOutput":255}},"bytes":2524},"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-CAYS4SCJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2544},"packages/plugins/plugin-presenter/dist/lib/browser/intent-resolver-CAYS4SCJ.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":1087}},"bytes":1417},"packages/plugins/plugin-presenter/dist/lib/browser/react-context-A3AXJRTF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1607},"packages/plugins/plugin-presenter/dist/lib/browser/react-context-A3AXJRTF.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":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-presenter/src/capabilities/react-context.tsx","inputs":{"packages/plugins/plugin-presenter/src/capabilities/react-context.tsx":{"bytesInOutput":557}},"bytes":911},"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/RevealMain-SWCWANYN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8212},"packages/plugins/plugin-presenter/dist/lib/browser/RevealMain-SWCWANYN.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":1016},"packages/plugins/plugin-presenter/src/components/Reveal/Reveal.tsx":{"bytesInOutput":3168},"packages/plugins/plugin-presenter/src/components/Reveal/index.ts":{"bytesInOutput":0}},"bytes":4573},"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-2RSALOUX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12307},"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-2RSALOUX.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":1851},"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":6576},"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/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-U7AXT65E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3314},"packages/plugins/plugin-presenter/dist/lib/browser/react-surface-U7AXT65E.mjs":{"imports":[{"path":"packages/plugins/plugin-presenter/dist/lib/browser/chunk-P2BIPL4V.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/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":1520}},"bytes":1859},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-P2BIPL4V.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2020},"packages/plugins/plugin-presenter/dist/lib/browser/chunk-P2BIPL4V.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-SWCWANYN.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-presenter/dist/lib/browser/PresenterMain-2RSALOUX.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":588},"packages/plugins/plugin-presenter/src/components/index.ts":{"bytesInOutput":240}},"bytes":1149},"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,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PresenterCapabilities
|
|
3
|
+
} from "./chunk-MSAMS5TA.mjs";
|
|
4
|
+
import {
|
|
5
|
+
PresenterContext
|
|
6
|
+
} from "./chunk-SFMK6EE3.mjs";
|
|
7
|
+
import {
|
|
8
|
+
PRESENTER_PLUGIN
|
|
9
|
+
} from "./chunk-Q5U3VOZB.mjs";
|
|
10
|
+
|
|
11
|
+
// packages/plugins/plugin-presenter/src/capabilities/react-context.tsx
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Capabilities, contributes, useCapability } from "@dxos/app-framework";
|
|
14
|
+
var react_context_default = () => contributes(Capabilities.ReactContext, {
|
|
15
|
+
id: PRESENTER_PLUGIN,
|
|
16
|
+
context: ({ children }) => {
|
|
17
|
+
const state = useCapability(PresenterCapabilities.MutableState);
|
|
18
|
+
return /* @__PURE__ */ React.createElement(PresenterContext.Provider, {
|
|
19
|
+
value: {
|
|
20
|
+
running: state.presenting,
|
|
21
|
+
start: () => state.presenting = true,
|
|
22
|
+
stop: () => state.presenting = false
|
|
23
|
+
}
|
|
24
|
+
}, children);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
react_context_default as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=react-context-A3AXJRTF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-context.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, useCapability } from '@dxos/app-framework';\n\nimport { PresenterCapabilities } from './capabilities';\nimport { PRESENTER_PLUGIN } from '../meta';\nimport { PresenterContext } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactContext, {\n id: PRESENTER_PLUGIN,\n context: ({ children }) => {\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 {children}\n </PresenterContext.Provider>\n );\n },\n });\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AAMzD,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,IAAIC;EACJC,SAAS,CAAC,EAAEC,SAAQ,MAAE;AACpB,UAAMC,QAAQC,cAAcC,sBAAsBC,YAAY;AAE9D,WACE,sBAAA,cAACC,iBAAiBC,UAAQ;MACxBC,OAAO;QACLC,SAASP,MAAMQ;QACfC,OAAO,MAAOT,MAAMQ,aAAa;QACjCE,MAAM,MAAOV,MAAMQ,aAAa;MAClC;OAECT,QAAAA;EAGP;AACF,CAAA;",
|
|
6
|
+
"names": ["React", "Capabilities", "contributes", "useCapability", "contributes", "Capabilities", "ReactContext", "id", "PRESENTER_PLUGIN", "context", "children", "state", "useCapability", "PresenterCapabilities", "MutableState", "PresenterContext", "Provider", "value", "running", "presenting", "start", "stop"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MarkdownSlide,
|
|
3
|
+
PresenterMain,
|
|
4
|
+
PresenterSettings,
|
|
5
|
+
RevealMain
|
|
6
|
+
} from "./chunk-P2BIPL4V.mjs";
|
|
7
|
+
import {
|
|
8
|
+
PRESENTER_PLUGIN
|
|
9
|
+
} from "./chunk-Q5U3VOZB.mjs";
|
|
10
|
+
|
|
11
|
+
// packages/plugins/plugin-presenter/src/capabilities/react-surface.tsx
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Capabilities, contributes, createSurface, useCapability } from "@dxos/app-framework";
|
|
14
|
+
import { DocumentType } from "@dxos/plugin-markdown/types";
|
|
15
|
+
import { CollectionType } from "@dxos/plugin-space/types";
|
|
16
|
+
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
17
|
+
createSurface({
|
|
18
|
+
id: `${PRESENTER_PLUGIN}/document`,
|
|
19
|
+
role: "main",
|
|
20
|
+
disposition: "hoist",
|
|
21
|
+
filter: (data) => data.subject instanceof DocumentType,
|
|
22
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(RevealMain, {
|
|
23
|
+
document: data.subject
|
|
24
|
+
})
|
|
25
|
+
}),
|
|
26
|
+
createSurface({
|
|
27
|
+
id: `${PRESENTER_PLUGIN}/collection`,
|
|
28
|
+
role: "main",
|
|
29
|
+
disposition: "hoist",
|
|
30
|
+
filter: (data) => data.subject instanceof CollectionType,
|
|
31
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(PresenterMain, {
|
|
32
|
+
collection: data.subject
|
|
33
|
+
})
|
|
34
|
+
}),
|
|
35
|
+
createSurface({
|
|
36
|
+
id: `${PRESENTER_PLUGIN}/slide`,
|
|
37
|
+
role: "slide",
|
|
38
|
+
filter: (data) => data.subject instanceof DocumentType,
|
|
39
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(MarkdownSlide, {
|
|
40
|
+
document: data.subject
|
|
41
|
+
})
|
|
42
|
+
}),
|
|
43
|
+
createSurface({
|
|
44
|
+
id: `${PRESENTER_PLUGIN}/settings`,
|
|
45
|
+
role: "settings",
|
|
46
|
+
filter: (data) => data.subject === PRESENTER_PLUGIN,
|
|
47
|
+
component: () => {
|
|
48
|
+
const settings = useCapability(Capabilities.SettingsStore).getStore(PRESENTER_PLUGIN).value;
|
|
49
|
+
return /* @__PURE__ */ React.createElement(PresenterSettings, {
|
|
50
|
+
settings
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
]);
|
|
55
|
+
export {
|
|
56
|
+
react_surface_default as default
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=react-surface-U7AXT65E.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 { DocumentType } from '@dxos/plugin-markdown/types';\nimport { CollectionType } from '@dxos/plugin-space/types';\n\nimport { MarkdownSlide, PresenterSettings, PresenterMain, RevealMain } from '../components';\nimport { PRESENTER_PLUGIN } from '../meta';\nimport { type PresenterSettingsProps } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\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: () => {\n const settings = useCapability(Capabilities.SettingsStore).getStore<PresenterSettingsProps>(\n PRESENTER_PLUGIN,\n )!.value;\n return <PresenterSettings settings={settings} />;\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,eAAeC,qBAAqB;AACxE,SAASC,oBAAoB;AAC7B,SAASC,sBAAsB;AAM/B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNC,aAAa;IACbC,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,aAAa;IACbC,QAAQ,CAACC,SAA8CA,KAAKC,mBAAmBK;IAC/EH,WAAW,CAAC,EAAEH,KAAI,MAAO,sBAAA,cAACO,eAAAA;MAAcC,YAAYR,KAAKC;;EAC3D,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNE,QAAQ,CAACC,SAA4CA,KAAKC,mBAAmBC;IAC7EC,WAAW,CAAC,EAAEH,KAAI,MAAO,sBAAA,cAACS,eAAAA;MAAcJ,UAAUL,KAAKC;;EACzD,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,gBAAAA;IACPC,MAAM;IACNE,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL;IAChDO,WAAW,MAAA;AACT,YAAMO,WAAWC,cAAcnB,aAAaoB,aAAa,EAAEC,SACzDjB,gBAAAA,EACCkB;AACH,aAAO,sBAAA,cAACC,mBAAAA;QAAkBL;;IAC5B;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "Capabilities", "contributes", "createSurface", "useCapability", "DocumentType", "CollectionType", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "PRESENTER_PLUGIN", "role", "disposition", "filter", "data", "subject", "DocumentType", "component", "RevealMain", "document", "CollectionType", "PresenterMain", "collection", "MarkdownSlide", "settings", "useCapability", "SettingsStore", "getStore", "value", "PresenterSettings"]
|
|
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
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"PresenterPlugin.d.ts","sourceRoot":"","sources":["../../../src/PresenterPlugin.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,eAAe,4CAqCxB,CAAC"}
|