@dxos/plugin-presenter 0.9.1-main.c7dcc2e112 → 0.10.0
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/PLUGIN.mdl +12 -12
- package/dist/lib/neutral/{CollectionPresenterArticle-ZRYWBX2H.mjs → CollectionArticle-7R4KJWDW.mjs} +4 -4
- package/dist/lib/neutral/CollectionArticle-7R4KJWDW.mjs.map +7 -0
- package/dist/lib/neutral/{DocumentPresenterContainer-5QF4P736.mjs → DocumentArticle-YZRKVEN7.mjs} +13 -6
- package/dist/lib/neutral/DocumentArticle-YZRKVEN7.mjs.map +7 -0
- package/dist/lib/neutral/PresenterPlugin.mjs +1 -1
- package/dist/lib/neutral/PresenterPlugin.mjs.map +1 -1
- package/dist/lib/neutral/SlideArticle-FE2I6KBO.mjs +20 -0
- package/dist/lib/neutral/SlideArticle-FE2I6KBO.mjs.map +7 -0
- package/dist/lib/neutral/{app-graph-builder-JMQVBFG2.mjs → app-graph-builder-FNDFY5L3.mjs} +2 -2
- package/dist/lib/neutral/app-graph-builder-FNDFY5L3.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +2 -2
- package/dist/lib/neutral/{chunk-H5JLSLAO.mjs → chunk-NDZ6IIAL.mjs} +2 -2
- package/dist/lib/neutral/{chunk-H5JLSLAO.mjs.map → chunk-NDZ6IIAL.mjs.map} +3 -3
- package/dist/lib/neutral/components/index.mjs +11 -19
- package/dist/lib/neutral/components/index.mjs.map +4 -4
- package/dist/lib/neutral/containers/index.mjs +6 -6
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/index.mjs +1 -1
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{react-surface-YGBE3TDK.mjs → react-surface-VO4GPCLQ.mjs} +11 -23
- package/dist/lib/neutral/react-surface-VO4GPCLQ.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +0 -1
- package/dist/lib/neutral/translations.mjs.map +2 -2
- package/dist/lib/neutral/types/index.mjs +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown-extension.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -3
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/components/Presenter/PresentationShell.d.ts +4 -2
- package/dist/types/src/components/Presenter/PresentationShell.d.ts.map +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.d.ts.map +1 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts +0 -1
- package/dist/types/src/components/RevealPlayer/RevealPlayer.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts +6 -0
- package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts.map +1 -0
- package/dist/types/src/containers/CollectionArticle/index.d.ts +2 -0
- package/dist/types/src/{components/PresenterSettings → containers/CollectionArticle}/index.d.ts.map +1 -1
- package/dist/types/src/containers/DocumentArticle/DocumentArticle.d.ts +6 -0
- package/dist/types/src/containers/DocumentArticle/DocumentArticle.d.ts.map +1 -0
- package/dist/types/src/containers/DocumentArticle/index.d.ts +2 -0
- package/dist/types/src/containers/DocumentArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/SlideArticle/SlideArticle.d.ts +6 -0
- package/dist/types/src/containers/SlideArticle/SlideArticle.d.ts.map +1 -0
- package/dist/types/src/containers/SlideArticle/index.d.ts +2 -0
- package/dist/types/src/containers/SlideArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -3
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/PresenterOperation.d.ts +3 -12
- package/dist/types/src/types/PresenterOperation.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +32 -32
- package/src/capabilities/app-graph-builder.ts +4 -3
- package/src/capabilities/react-surface.tsx +8 -17
- package/src/components/Markdown/Panel.stories.tsx +1 -1
- package/src/components/Presenter/PresentationShell.tsx +15 -12
- package/src/components/RevealPlayer/RevealPlayer.tsx +11 -12
- package/src/components/index.ts +0 -4
- package/src/containers/{CollectionPresenterArticle/CollectionPresenterArticle.tsx → CollectionArticle/CollectionArticle.tsx} +2 -2
- package/src/containers/CollectionArticle/index.ts +5 -0
- package/src/containers/DocumentArticle/DocumentArticle.tsx +34 -0
- package/src/containers/DocumentArticle/index.ts +5 -0
- package/src/containers/{MarkdownSlide/MarkdownSlide.tsx → SlideArticle/SlideArticle.tsx} +4 -5
- package/src/containers/SlideArticle/index.ts +5 -0
- package/src/containers/index.ts +3 -3
- package/src/translations.ts +0 -1
- package/src/types/PresenterOperation.ts +1 -1
- package/dist/lib/neutral/CollectionPresenterArticle-ZRYWBX2H.mjs.map +0 -7
- package/dist/lib/neutral/DocumentPresenterContainer-5QF4P736.mjs.map +0 -7
- package/dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs +0 -18
- package/dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs.map +0 -7
- package/dist/lib/neutral/PresenterSettings-4YFP4K5G.mjs +0 -25
- package/dist/lib/neutral/PresenterSettings-4YFP4K5G.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-JMQVBFG2.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-YGBE3TDK.mjs.map +0 -7
- package/dist/types/src/components/PresenterSettings/PresenterSettings.d.ts +0 -6
- package/dist/types/src/components/PresenterSettings/PresenterSettings.d.ts.map +0 -1
- package/dist/types/src/components/PresenterSettings/PresenterSettings.stories.d.ts +0 -23
- package/dist/types/src/components/PresenterSettings/PresenterSettings.stories.d.ts.map +0 -1
- package/dist/types/src/components/PresenterSettings/index.d.ts +0 -2
- package/dist/types/src/containers/CollectionPresenterArticle/CollectionPresenterArticle.d.ts +0 -6
- package/dist/types/src/containers/CollectionPresenterArticle/CollectionPresenterArticle.d.ts.map +0 -1
- package/dist/types/src/containers/CollectionPresenterArticle/index.d.ts +0 -2
- package/dist/types/src/containers/CollectionPresenterArticle/index.d.ts.map +0 -1
- package/dist/types/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.d.ts +0 -6
- package/dist/types/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.d.ts.map +0 -1
- package/dist/types/src/containers/DocumentPresenterContainer/index.d.ts +0 -2
- package/dist/types/src/containers/DocumentPresenterContainer/index.d.ts.map +0 -1
- package/dist/types/src/containers/MarkdownSlide/MarkdownSlide.d.ts +0 -8
- package/dist/types/src/containers/MarkdownSlide/MarkdownSlide.d.ts.map +0 -1
- package/dist/types/src/containers/MarkdownSlide/index.d.ts +0 -2
- package/dist/types/src/containers/MarkdownSlide/index.d.ts.map +0 -1
- package/src/components/PresenterSettings/PresenterSettings.stories.tsx +0 -32
- package/src/components/PresenterSettings/PresenterSettings.tsx +0 -31
- package/src/components/PresenterSettings/index.ts +0 -5
- package/src/containers/CollectionPresenterArticle/index.ts +0 -5
- package/src/containers/DocumentPresenterContainer/DocumentPresenterContainer.tsx +0 -26
- package/src/containers/DocumentPresenterContainer/index.ts +0 -5
- package/src/containers/MarkdownSlide/index.ts +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport * from './Markdown';\nexport * from './Presenter';\nexport * from './RevealPlayer';\n\nexport const PresenterSettings: ComponentType<any> = lazy(() => import('./PresenterSettings'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type PropsWithChildren, useState } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type PanelProps = ThemedClassName<PropsWithChildren<{}>>;\n\n/**\n * Scaled markdown panel.\n */\nexport const Panel = ({ children, classNames }: PanelProps) => {\n const [props, setProps] = useState({});\n const {\n ref: containerRef,\n width,\n height,\n } = useResizeDetector({\n refreshMode: 'debounce',\n refreshRate: 200,\n refreshOptions: {\n leading: true,\n },\n onResize: ({ width, height }) => {\n if (width && height) {\n setProps(createLayoutProps({ width, height }));\n }\n },\n });\n\n // TODO(burdon): Reconcile highlight colors with markdown editor.\n // https://www.npmjs.com/package/react-markdown\n return (\n <div ref={containerRef} className={mx('flex grow relative overflow-hidden bg-attention-surface', classNames)}>\n <div className={mx('dx-container absolute')} style={props}>\n {width && height && children}\n </div>\n </div>\n );\n};\n\n/**\n * Compute CSS properties to transform DIV to be full screen.\n *\n * Display resolutions:\n * window.screen.{availWidth, availHeight}\n * 5K Studio 16.2-inch Macbook Pro\n * Max 5120 x 2880 3456 x 2234\n * Default 2560 x 1440 1728 x 1117 (Actual height 1080 - 37 pixel notch)\n * Aspect 1.77 (16/9) 1.54\n */\nconst createLayoutProps = ({ width, height }: { width: number; height: number }) => {\n // Config.\n const aspectRatio = 16 / 9;\n const nominalWidth = 2560;\n const nominalHeight = nominalWidth / aspectRatio;\n\n // NOTE: Hack to detect full height on Macbook Pro due to notch.\n // const macIntelNotch = 1117 - 1080;\n // const fullscreen =\n // height === screen.availHeight ||\n // (window.navigator.platform === 'MacIntel' && height === screen.availHeight - macIntelNotch);\n\n // If not fullscreen then make scale slightly smaller so there's a natural border.\n // const scaleFactor = fullscreen ? 1 : 0.95;\n\n // Compute scaling factor required.\n const scale = Math.min(width / nominalWidth, height / nominalHeight);\n\n return {\n left: (width - nominalWidth) / 2,\n top: (height - nominalHeight) / 2,\n width: nominalWidth,\n height: nominalHeight,\n transform: `scale(${scale})`,\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport 'highlight.js/styles/github.css';\n\nimport { h } from 'hastscript';\nimport React from 'react';\nimport ReactMarkdown, { type Options as ReactMarkdownOptions } from 'react-markdown';\nimport rehypeAddClasses from 'rehype-add-classes';\nimport rehypeHighlight from 'rehype-highlight';\nimport remarkFrontmatter from 'remark-frontmatter';\nimport remarkParseFrontmatter from 'remark-parse-frontmatter';\n\nimport styles from './styles.css?raw';\nimport { theme } from './theme';\n\nexport type SlideProps = {\n content?: string;\n classes?: Record<string, string>;\n};\n\nexport const Slide = ({ content = '', classes = theme.nodes }: SlideProps) => {\n // TODO(thure): `rehype-highlight` ends up using `github.css` from `highlight.js`, but this does not appear to be\n // configurable. Find a way to remove the literal stylesheet here.\n return (\n <>\n <style>{styles}</style>\n <ReactMarkdown\n components={components}\n // Markdown to HTML.\n remarkPlugins={[[remarkFrontmatter, 'yaml'], remarkParseFrontmatter as any]}\n // HTML processing.\n rehypePlugins={[[rehypeAddClasses, classes], rehypeHighlight as any, slideLayout]}\n >\n {content}\n </ReactMarkdown>\n </>\n );\n};\n\n/**\n * Rehype plugin to format DOM based on frontmatter.\n * https://github.com/unifiedjs/unified#plugin\n * TODO(burdon): See tools/presenter: remarkPluginLayout\n * E.g., layout image from front-matter.\n */\nconst slideLayout =\n (_options = {}) =>\n (tree: any, file: any) => {\n const {\n data: { frontmatter = {} },\n } = file;\n\n let content = tree.children;\n const { layout, image } = frontmatter;\n if (image) {\n const img = h('div', {\n class: 'flex grow shrink-0 bg-cover bg-center bg-no-repeat',\n style: {\n backgroundImage: `url(${image})`,\n },\n });\n\n switch (layout) {\n case 'fullscreen': {\n content = img;\n break;\n }\n\n case 'columns': {\n content = h('div', { class: 'flex grow grid grid-cols-2' }, [\n h('div', { class: theme.padding }, [content]),\n img,\n ]);\n break;\n }\n\n case 'rows': {\n content = h('div', { class: 'flex grow flex-col' }, [\n h('div', { class: theme.padding }, [content]),\n h('div', { class: ['flex grow pt-0', theme.padding] }, [img]),\n ]);\n break;\n }\n }\n } else {\n content = h('div', { class: ['flex grow flex-col', theme.padding] }, [content]);\n }\n\n const root = h('div', { class: ['flex flex-col grow', theme.root] }, [content]);\n tree.children = [root];\n };\n\nconst ImageWrapper = ({ node: _, ...props }: { node: any }) => {\n const { alt = '', src } = props as { alt: string; src: string };\n return <img alt={alt} src={src} />;\n};\n\nconst components: ReactMarkdownOptions['components'] = {\n img: ({ node, ...props }) => <ImageWrapper node={node} {...props} />,\n};\n", "/*!\n Theme: GitHub Dark\n Description: Dark theme as seen on github.com\n Author: github.com\n Maintainer: @Hirse\n Updated: 2021-05-15\n Outdated base version: https://github.com/primer/github-syntax-dark\n Current colors taken from GitHub's CSS\n*/\n/* TODO(burdon): Use tokens. */\n.dark pre code.hljs {\n display: block;\n overflow-x: auto;\n padding: 1em;\n}\n.dark code.hljs {\n padding: 3px 5px;\n}\n.dark .hljs {\n color: #c9d1d9;\n background: #0d1117;\n}\n.dark .hljs-doctag,\n.dark .hljs-keyword,\n.dark .hljs-meta .hljs-keyword,\n.dark .hljs-template-tag,\n.dark .hljs-template-variable,\n.dark .hljs-type,\n.dark .hljs-variable.language_ {\n color: #ff7b72;\n}\n.dark .hljs-title,\n.dark .hljs-title.class_,\n.dark .hljs-title.class_.inherited__,\n.dark .hljs-title.function_ {\n color: #d2a8ff;\n}\n.dark .hljs-attr,\n.dark .hljs-attribute,\n.dark .hljs-literal,\n.dark .hljs-meta,\n.dark .hljs-number,\n.dark .hljs-operator,\n.dark .hljs-variable,\n.dark .hljs-selector-attr,\n.dark .hljs-selector-class,\n.dark .hljs-selector-id {\n color: #79c0ff;\n}\n.dark .hljs-regexp,\n.dark .hljs-string,\n.dark .hljs-meta .hljs-string {\n color: #a5d6ff;\n}\n.dark .hljs-built_in,\n.dark .hljs-symbol {\n color: #ffa657;\n}\n.dark .hljs-comment,\n.dark .hljs-code,\n.dark .hljs-formula {\n color: #8b949e;\n}\n.dark .hljs-name,\n.dark .hljs-quote,\n.dark .hljs-selector-tag,\n.dark .hljs-selector-pseudo {\n color: #7ee787;\n}\n.dark .hljs-subst {\n color: #c9d1d9;\n}\n.dark .hljs-section {\n color: #1f6feb;\n font-weight: bold;\n}\n.dark .hljs-bullet {\n color: #f2cc60;\n}\n.dark .hljs-emphasis {\n color: #c9d1d9;\n font-style: italic;\n}\n.dark .hljs-strong {\n color: #c9d1d9;\n font-weight: bold;\n}\n.dark .hljs-addition {\n color: #aff5b4;\n background-color: #033a16;\n}\n.dark .hljs-deletion {\n color: #ffdcd7;\n background-color: #67060c;\n}\n.dark .hljs-char.escape_,\n.dark .hljs-link,\n.dark .hljs-params,\n.dark .hljs-property,\n.dark .hljs-punctuation,\n.dark .hljs-tag {\n /* purposely ignored */\n all: unset;\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// TODO(burdon): Create theme type and picker.\n\nexport const theme = {\n root: 'bg-attention-surface leading-relaxed font-mono',\n\n padding: 'px-40 py-16 gap-8',\n\n nodes: {\n h1: 'text-[80px] text-accent-text',\n h2: 'text-[60px] text-accent-text',\n h3: 'text-[48px] text-accent-text',\n\n p: 'text-[48px]',\n\n ul: 'my-[16px] ml-12 leading-relaxed list-disc',\n ol: 'my-[16px] ml-24 leading-relaxed list-decimal',\n li: 'pl-6 text-[48px]',\n\n pre: 'w-full mx-0 my-[32px] p-4 bg-input-surface',\n code: 'p-0 text-[40px]',\n },\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type PropsWithChildren, type ReactNode } from 'react';\n\nimport { composable, composableProps } from '@dxos/react-ui';\n\nexport type LayoutProps = PropsWithChildren<{\n topLeft?: ReactNode;\n topRight?: ReactNode;\n bottomLeft?: ReactNode;\n bottomRight?: ReactNode;\n}>;\n\nexport const Layout = composable<HTMLDivElement, LayoutProps>(\n ({ children, topLeft, topRight, bottomLeft, bottomRight, ...props }, forwardedRef) => {\n return (\n <div\n {...composableProps(props, { classNames: 'flex grow relative overflow-hidden bg-attention-surface' })}\n ref={forwardedRef}\n >\n <div className='flex flex-col grow overflow-hidden'>{children}</div>\n\n <div className='z-[200]'>\n <div className='absolute top-4 left-4'>{topLeft}</div>\n <div className='absolute top-4 right-4'>{topRight}</div>\n <div className='absolute bottom-4 left-4'>{bottomLeft}</div>\n <div className='absolute bottom-4 right-4'>{bottomRight}</div>\n </div>\n </div>\n );\n },\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useEffect } from 'react';\n\nimport { IconButton, useControlledState } from '@dxos/react-ui';\n\nexport type PagerProps = {\n index?: number;\n count?: number;\n keys?: boolean; // TODO(burdon): Rename.\n onChange?: (index: number) => void;\n onExit?: () => void;\n};\n\nexport const Pager = ({ index: indexProp = 0, count = 0, keys, onChange, onExit }: PagerProps) => {\n const [index, setIndex] = useControlledState(indexProp);\n useEffect(() => {\n onChange?.(index);\n }, [index]);\n\n const handleChangeIndex = (dir: number) => {\n setIndex((index) => {\n const next = index + dir;\n return next >= 0 && next < count ? next : index;\n });\n };\n\n // TODO(burdon): Standardize via system key binding.\n useEffect(() => {\n if (!keys) {\n return;\n }\n\n const keydownHandler = (event: KeyboardEvent) => {\n switch (event.key) {\n case 'Escape': {\n onExit?.();\n break;\n }\n case 'ArrowLeft': {\n if (event.shiftKey) {\n onChange?.(0);\n } else {\n handleChangeIndex(-1);\n }\n break;\n }\n case 'ArrowRight': {\n if (event.shiftKey) {\n onChange?.(count - 1);\n } else {\n handleChangeIndex(1);\n }\n break;\n }\n case 'ArrowUp': {\n onChange?.(0);\n break;\n }\n case 'ArrowDown': {\n onChange?.(count - 1);\n break;\n }\n }\n };\n\n window.addEventListener('keydown', keydownHandler);\n return () => window.removeEventListener('keydown', keydownHandler);\n }, [keys, count]);\n\n if (index === undefined || !count) {\n return null;\n }\n\n return (\n <div className='flex items-center text-neutral-500'>\n <IconButton\n icon='ph--caret-double-left--regular'\n size={6}\n label='Jump to first'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => onChange?.(0)}\n />\n <IconButton\n icon='ph--caret-left--regular'\n size={6}\n label='Previous'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => handleChangeIndex(-1)}\n />\n <IconButton\n icon='ph--caret-right--regular'\n size={6}\n label='Next'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => handleChangeIndex(1)}\n />\n <IconButton\n icon='ph--caret-double-right--regular'\n size={6}\n label='Jump to last'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => onChange?.(count - 1)}\n />\n </div>\n );\n};\n\nexport type PageNumberProps = {\n index?: number;\n count?: number;\n};\n\nexport const PageNumber = ({ index = 0, count = 1 }: PageNumberProps) => {\n if (index === undefined || !count) {\n return null;\n }\n\n return (\n <div className='flex items-center text-neutral-500 text-2xl'>\n <div>\n {index + 1} / {count}\n </div>\n </div>\n );\n};\n\nexport const StartButton = ({ running, onClick }: { running?: boolean; onClick?: (start: boolean) => void }) => {\n return (\n <IconButton\n icon={running ? 'ph--x--regular' : 'ph--play--regular'}\n size={6}\n label={running ? 'Stop' : 'Play'}\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => onClick?.(!running)}\n />\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type PropsWithChildren, useCallback, useEffect, useRef, useState } from 'react';\n\nimport { composable, composableProps } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type PresentationShellProps = PropsWithChildren<{\n /** Invoked once the exit fade-out has completed. */\n onExit?: () => void;\n /** Fade-in/out duration (ms). */\n fadeDuration?: number;\n /** Duration the [ESC] hint remains visible (ms). */\n hintDuration?: number;\n}>;\n\n/**\n * Wraps presentation content with a fade-in/out transition, an ESC handler that exits in a\n * single keypress (intercepting before the deck's fullscreen handler), and a transient [ESC]\n * caption shown on enter.\n */\nexport const PresentationShell = composable<HTMLDivElement, PresentationShellProps>(\n ({ children, onExit, fadeDuration = 300, hintDuration = 3000, ...props }, forwardedRef) => {\n const [visible, setVisible] = useState(false);\n const [exiting, setExiting] = useState(false);\n const [showHint, setShowHint] = useState(true);\n const exitTimeout = useRef<ReturnType<typeof setTimeout>>(undefined);\n // Guards against exiting twice; a state updater can't gate this since React double-invokes\n // updaters in dev, which would schedule the exit (and its side effects) more than once.\n const exitingRef = useRef(false);\n\n // Fade in once mounted.\n useEffect(() => {\n const frame = requestAnimationFrame(() => setVisible(true));\n return () => cancelAnimationFrame(frame);\n }, []);\n\n // Hide the hint after the configured duration.\n useEffect(() => {\n const timer = setTimeout(() => setShowHint(false), hintDuration);\n return () => clearTimeout(timer);\n }, [hintDuration]);\n\n const handleExit = useCallback(() => {\n if (exitingRef.current) {\n return;\n }\n exitingRef.current = true;\n setExiting(true);\n setVisible(false);\n exitTimeout.current = setTimeout(() => onExit?.(), fadeDuration);\n }, [onExit, fadeDuration]);\n\n useEffect(() => () => clearTimeout(exitTimeout.current), []);\n\n // Capture ESC before the deck/reveal handlers so a single keypress exits directly.\n useEffect(() => {\n const handler = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopImmediatePropagation();\n handleExit();\n }\n };\n\n document.addEventListener('keydown', handler, { capture: true });\n return () => document.removeEventListener('keydown', handler, { capture: true });\n }, [handleExit]);\n\n return (\n <div\n {...composableProps(props, {\n classNames: [\n 'relative grow overflow-hidden bg-black transition-opacity',\n visible && !exiting ? 'opacity-100' : 'opacity-0',\n ],\n style: { transitionDuration: `${fadeDuration}ms` },\n })}\n ref={forwardedRef}\n >\n {children}\n\n <div\n className={mx(\n 'absolute top-4 left-4 z-[300] transition-opacity duration-500',\n showHint && !exiting ? 'opacity-100' : 'opacity-0',\n )}\n >\n <span className='rounded-sm bg-white/10 px-2 py-1 font-mono text-sm text-white/70'>[ESC]</span>\n </div>\n </div>\n );\n },\n);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport 'reveal.js/dist/reveal.css';\nimport 'reveal.js/dist/theme/black.css';\n// https://github.com/highlightjs/highlight.js/tree/main/src/styles\n// import 'highlight.js/styles/github-dark.css';\nimport 'highlight.js/styles/tokyo-night-dark.css';\n\nimport hljs from 'highlight.js';\nimport typescript from 'highlight.js/lib/languages/typescript';\nimport React, { useRef } from 'react';\nimport Reveal from 'reveal.js';\nimport RevealHighlight from 'reveal.js/plugin/highlight/highlight';\nimport RevealMarkdown from 'reveal.js/plugin/markdown/plugin.js';\n\nimport { useAsyncEffect } from '@dxos/react-ui';\nimport { composable, composableProps } from '@dxos/react-ui';\n\nconst styles = `\n<style type=\"text/css\">\n .reveal h1 {\n font-weight: 100;\n font-size: 60px;\n opacity: 0.5;\n }\n .reveal h2 {\n font-weight: 100;\n padding-top: 60px;\n padding-left: 40px;\n font-size: 48px;\n opacity: 0.3;\n }\n .reveal h1, h2, p {\n font-family: \"Raleway\", sans-serif;\n text-align: left;\n font-weight: 200;\n }\n .reveal ul {\n font-family: \"Raleway\", sans-serif;\n display: block;\n list-style: \"- \";\n }\n .reveal blockquote p {\n text-align: center;\n font-weight: 100;\n padding: 32px;\n }\n .reveal pre {\n margin-left: 0;\n }\n .reveal code {\n font-size: 20px;\n background: #111111;\n color: #eeeeee;\n max-height: unset !important;\n }\n</style>\n`;\n\nexport type RevealProps = {\n content: string;\n slide?: number;\n fullscreen?: boolean;\n onExit?: () => void;\n};\n\nexport const RevealPlayer = composable<HTMLDivElement, RevealProps>(\n ({ content, slide, fullscreen = true, onExit, children, ...props }, forwardedRef) => {\n const deckDivRef = useRef<HTMLDivElement>(null);\n const deckRef = useRef<Reveal.Api | null>(null);\n\n useAsyncEffect(async () => {\n if (deckRef.current) {\n return;\n }\n\n // Required for syntax highlighting.\n hljs.registerLanguage('typescript', typescript);\n\n // https://revealjs.com/react\n // https://revealjs.com/config\n // https://github.com/hakimel/reveal.js\n // TODO(burdon): Fragments and scroll view steps 2 at a time (safe mode?)\n deckRef.current = new Reveal(deckDivRef.current!, {\n // view: 'scroll',\n progress: false,\n transition: 'none',\n slideNumber: false,\n embedded: true,\n\n // Disable autoplay to prevent errors in headless environments (e.g., CI).\n autoPlayMedia: false,\n\n // TODO(burdon): Speaker view requires server to serve popout window.\n // https://revealjs.com/speaker-view\n showNotes: false,\n\n // width: 1600,\n // height: 900,\n margin: 0.1,\n // center: false,\n // minScale: 0.1,\n // maxScale: 1.4,\n\n // https://revealjs.com/markdown\n // TODO(burdon): Requires server to serve popout window.\n plugins: [RevealMarkdown, RevealHighlight],\n\n // See https://marked.js.org/using_advanced#options\n markdown: {\n gfm: true,\n smartypants: true,\n highlight: (code, language) => {\n if (language) {\n return hljs.highlight(code, { language }).value;\n }\n\n return hljs.highlightAuto(code).value;\n },\n },\n });\n\n await deckRef.current.initialize();\n\n if (slide !== undefined) {\n deckRef.current.slide(slide < 0 ? deckRef.current?.getTotalSlides() + slide : slide - 1);\n }\n\n deckRef.current.addKeyBinding({ keyCode: 27, key: 'Escape', description: 'Exit full screen' }, () => {\n onExit?.();\n });\n\n return () => {\n try {\n if (deckRef.current) {\n deckRef.current.destroy();\n deckRef.current = null;\n }\n } catch {\n // Ignore.\n }\n };\n });\n\n // TOOD(burdon): Trap cursor keys (otherwise tabster grabs focus.)\n return (\n <div\n {...composableProps(props, {\n classNames: ['dx-container grid place-items-center bg-black', fullscreen && 'absolute inset-0'],\n })}\n ref={forwardedRef}\n >\n <div className='relative aspect-video h-full w-full h-auto max-h-full overflow-hidden'>\n <div ref={deckDivRef} className='absolute inset-0 reveal'>\n {/* NOTE: Must be in head. */}\n <style>\n <link rel='preconnect' href='https://fonts.googleapis.com' />\n <link rel='preconnect' href='https://fonts.gstatic.com' {...{ crossOrigin: '' }} />\n <link\n rel='stylesheet'\n href='https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap'\n />\n </style>\n <div className='slides'>\n <div className='text-center!' />\n <section {...{ 'data-markdown': [] }}>\n <textarea {...{ 'data-template': true }} defaultValue={[styles, content].join('\\n')}></textarea>\n </section>\n </div>\n </div>\n </div>\n </div>\n );\n },\n);\n"],
|
|
5
|
-
"mappings": ";;;AAIA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../../src/components/Markdown/Panel.tsx", "../../../../src/components/Markdown/Slide.tsx", "raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css", "../../../../src/components/Markdown/theme.ts", "../../../../src/components/Presenter/Layout.tsx", "../../../../src/components/Presenter/Pager.tsx", "../../../../src/components/Presenter/PresentationShell.tsx", "../../../../src/components/RevealPlayer/RevealPlayer.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type PropsWithChildren, useState } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\n\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type PanelProps = ThemedClassName<PropsWithChildren<{}>>;\n\n/**\n * Scaled markdown panel.\n */\nexport const Panel = ({ children, classNames }: PanelProps) => {\n const [props, setProps] = useState({});\n const {\n ref: containerRef,\n width,\n height,\n } = useResizeDetector({\n refreshMode: 'debounce',\n refreshRate: 200,\n refreshOptions: {\n leading: true,\n },\n onResize: ({ width, height }) => {\n if (width && height) {\n setProps(createLayoutProps({ width, height }));\n }\n },\n });\n\n // TODO(burdon): Reconcile highlight colors with markdown editor.\n // https://www.npmjs.com/package/react-markdown\n return (\n <div ref={containerRef} className={mx('flex grow relative overflow-hidden bg-attention-surface', classNames)}>\n <div className={mx('dx-container absolute')} style={props}>\n {width && height && children}\n </div>\n </div>\n );\n};\n\n/**\n * Compute CSS properties to transform DIV to be full screen.\n *\n * Display resolutions:\n * window.screen.{availWidth, availHeight}\n * 5K Studio 16.2-inch Macbook Pro\n * Max 5120 x 2880 3456 x 2234\n * Default 2560 x 1440 1728 x 1117 (Actual height 1080 - 37 pixel notch)\n * Aspect 1.77 (16/9) 1.54\n */\nconst createLayoutProps = ({ width, height }: { width: number; height: number }) => {\n // Config.\n const aspectRatio = 16 / 9;\n const nominalWidth = 2560;\n const nominalHeight = nominalWidth / aspectRatio;\n\n // NOTE: Hack to detect full height on Macbook Pro due to notch.\n // const macIntelNotch = 1117 - 1080;\n // const fullscreen =\n // height === screen.availHeight ||\n // (window.navigator.platform === 'MacIntel' && height === screen.availHeight - macIntelNotch);\n\n // If not fullscreen then make scale slightly smaller so there's a natural border.\n // const scaleFactor = fullscreen ? 1 : 0.95;\n\n // Compute scaling factor required.\n const scale = Math.min(width / nominalWidth, height / nominalHeight);\n\n return {\n left: (width - nominalWidth) / 2,\n top: (height - nominalHeight) / 2,\n width: nominalWidth,\n height: nominalHeight,\n transform: `scale(${scale})`,\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport 'highlight.js/styles/github.css';\n\nimport { h } from 'hastscript';\nimport React from 'react';\nimport ReactMarkdown, { type Options as ReactMarkdownOptions } from 'react-markdown';\nimport rehypeAddClasses from 'rehype-add-classes';\nimport rehypeHighlight from 'rehype-highlight';\nimport remarkFrontmatter from 'remark-frontmatter';\nimport remarkParseFrontmatter from 'remark-parse-frontmatter';\n\nimport styles from './styles.css?raw';\nimport { theme } from './theme';\n\nexport type SlideProps = {\n content?: string;\n classes?: Record<string, string>;\n};\n\nexport const Slide = ({ content = '', classes = theme.nodes }: SlideProps) => {\n // TODO(thure): `rehype-highlight` ends up using `github.css` from `highlight.js`, but this does not appear to be\n // configurable. Find a way to remove the literal stylesheet here.\n return (\n <>\n <style>{styles}</style>\n <ReactMarkdown\n components={components}\n // Markdown to HTML.\n remarkPlugins={[[remarkFrontmatter, 'yaml'], remarkParseFrontmatter as any]}\n // HTML processing.\n rehypePlugins={[[rehypeAddClasses, classes], rehypeHighlight as any, slideLayout]}\n >\n {content}\n </ReactMarkdown>\n </>\n );\n};\n\n/**\n * Rehype plugin to format DOM based on frontmatter.\n * https://github.com/unifiedjs/unified#plugin\n * TODO(burdon): See tools/presenter: remarkPluginLayout\n * E.g., layout image from front-matter.\n */\nconst slideLayout =\n (_options = {}) =>\n (tree: any, file: any) => {\n const {\n data: { frontmatter = {} },\n } = file;\n\n let content = tree.children;\n const { layout, image } = frontmatter;\n if (image) {\n const img = h('div', {\n class: 'flex grow shrink-0 bg-cover bg-center bg-no-repeat',\n style: {\n backgroundImage: `url(${image})`,\n },\n });\n\n switch (layout) {\n case 'fullscreen': {\n content = img;\n break;\n }\n\n case 'columns': {\n content = h('div', { class: 'flex grow grid grid-cols-2' }, [\n h('div', { class: theme.padding }, [content]),\n img,\n ]);\n break;\n }\n\n case 'rows': {\n content = h('div', { class: 'flex grow flex-col' }, [\n h('div', { class: theme.padding }, [content]),\n h('div', { class: ['flex grow pt-0', theme.padding] }, [img]),\n ]);\n break;\n }\n }\n } else {\n content = h('div', { class: ['flex grow flex-col', theme.padding] }, [content]);\n }\n\n const root = h('div', { class: ['flex flex-col grow', theme.root] }, [content]);\n tree.children = [root];\n };\n\nconst ImageWrapper = ({ node: _, ...props }: { node: any }) => {\n const { alt = '', src } = props as { alt: string; src: string };\n return <img alt={alt} src={src} />;\n};\n\nconst components: ReactMarkdownOptions['components'] = {\n img: ({ node, ...props }) => <ImageWrapper node={node} {...props} />,\n};\n", "/*!\n Theme: GitHub Dark\n Description: Dark theme as seen on github.com\n Author: github.com\n Maintainer: @Hirse\n Updated: 2021-05-15\n Outdated base version: https://github.com/primer/github-syntax-dark\n Current colors taken from GitHub's CSS\n*/\n/* TODO(burdon): Use tokens. */\n.dark pre code.hljs {\n display: block;\n overflow-x: auto;\n padding: 1em;\n}\n.dark code.hljs {\n padding: 3px 5px;\n}\n.dark .hljs {\n color: #c9d1d9;\n background: #0d1117;\n}\n.dark .hljs-doctag,\n.dark .hljs-keyword,\n.dark .hljs-meta .hljs-keyword,\n.dark .hljs-template-tag,\n.dark .hljs-template-variable,\n.dark .hljs-type,\n.dark .hljs-variable.language_ {\n color: #ff7b72;\n}\n.dark .hljs-title,\n.dark .hljs-title.class_,\n.dark .hljs-title.class_.inherited__,\n.dark .hljs-title.function_ {\n color: #d2a8ff;\n}\n.dark .hljs-attr,\n.dark .hljs-attribute,\n.dark .hljs-literal,\n.dark .hljs-meta,\n.dark .hljs-number,\n.dark .hljs-operator,\n.dark .hljs-variable,\n.dark .hljs-selector-attr,\n.dark .hljs-selector-class,\n.dark .hljs-selector-id {\n color: #79c0ff;\n}\n.dark .hljs-regexp,\n.dark .hljs-string,\n.dark .hljs-meta .hljs-string {\n color: #a5d6ff;\n}\n.dark .hljs-built_in,\n.dark .hljs-symbol {\n color: #ffa657;\n}\n.dark .hljs-comment,\n.dark .hljs-code,\n.dark .hljs-formula {\n color: #8b949e;\n}\n.dark .hljs-name,\n.dark .hljs-quote,\n.dark .hljs-selector-tag,\n.dark .hljs-selector-pseudo {\n color: #7ee787;\n}\n.dark .hljs-subst {\n color: #c9d1d9;\n}\n.dark .hljs-section {\n color: #1f6feb;\n font-weight: bold;\n}\n.dark .hljs-bullet {\n color: #f2cc60;\n}\n.dark .hljs-emphasis {\n color: #c9d1d9;\n font-style: italic;\n}\n.dark .hljs-strong {\n color: #c9d1d9;\n font-weight: bold;\n}\n.dark .hljs-addition {\n color: #aff5b4;\n background-color: #033a16;\n}\n.dark .hljs-deletion {\n color: #ffdcd7;\n background-color: #67060c;\n}\n.dark .hljs-char.escape_,\n.dark .hljs-link,\n.dark .hljs-params,\n.dark .hljs-property,\n.dark .hljs-punctuation,\n.dark .hljs-tag {\n /* purposely ignored */\n all: unset;\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// TODO(burdon): Create theme type and picker.\n\nexport const theme = {\n root: 'bg-attention-surface leading-relaxed font-mono',\n\n padding: 'px-40 py-16 gap-8',\n\n nodes: {\n h1: 'text-[80px] text-accent-text',\n h2: 'text-[60px] text-accent-text',\n h3: 'text-[48px] text-accent-text',\n\n p: 'text-[48px]',\n\n ul: 'my-[16px] ml-12 leading-relaxed list-disc',\n ol: 'my-[16px] ml-24 leading-relaxed list-decimal',\n li: 'pl-6 text-[48px]',\n\n pre: 'w-full mx-0 my-[32px] p-4 bg-input-surface',\n code: 'p-0 text-[40px]',\n },\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type PropsWithChildren, type ReactNode } from 'react';\n\nimport { composable, composableProps } from '@dxos/react-ui';\n\nexport type LayoutProps = PropsWithChildren<{\n topLeft?: ReactNode;\n topRight?: ReactNode;\n bottomLeft?: ReactNode;\n bottomRight?: ReactNode;\n}>;\n\nexport const Layout = composable<HTMLDivElement, LayoutProps>(\n ({ children, topLeft, topRight, bottomLeft, bottomRight, ...props }, forwardedRef) => {\n return (\n <div\n {...composableProps(props, { classNames: 'flex grow relative overflow-hidden bg-attention-surface' })}\n ref={forwardedRef}\n >\n <div className='flex flex-col grow overflow-hidden'>{children}</div>\n\n <div className='z-[200]'>\n <div className='absolute top-4 left-4'>{topLeft}</div>\n <div className='absolute top-4 right-4'>{topRight}</div>\n <div className='absolute bottom-4 left-4'>{bottomLeft}</div>\n <div className='absolute bottom-4 right-4'>{bottomRight}</div>\n </div>\n </div>\n );\n },\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useEffect } from 'react';\n\nimport { IconButton, useControlledState } from '@dxos/react-ui';\n\nexport type PagerProps = {\n index?: number;\n count?: number;\n keys?: boolean; // TODO(burdon): Rename.\n onChange?: (index: number) => void;\n onExit?: () => void;\n};\n\nexport const Pager = ({ index: indexProp = 0, count = 0, keys, onChange, onExit }: PagerProps) => {\n const [index, setIndex] = useControlledState(indexProp);\n useEffect(() => {\n onChange?.(index);\n }, [index]);\n\n const handleChangeIndex = (dir: number) => {\n setIndex((index) => {\n const next = index + dir;\n return next >= 0 && next < count ? next : index;\n });\n };\n\n // TODO(burdon): Standardize via system key binding.\n useEffect(() => {\n if (!keys) {\n return;\n }\n\n const keydownHandler = (event: KeyboardEvent) => {\n switch (event.key) {\n case 'Escape': {\n onExit?.();\n break;\n }\n case 'ArrowLeft': {\n if (event.shiftKey) {\n onChange?.(0);\n } else {\n handleChangeIndex(-1);\n }\n break;\n }\n case 'ArrowRight': {\n if (event.shiftKey) {\n onChange?.(count - 1);\n } else {\n handleChangeIndex(1);\n }\n break;\n }\n case 'ArrowUp': {\n onChange?.(0);\n break;\n }\n case 'ArrowDown': {\n onChange?.(count - 1);\n break;\n }\n }\n };\n\n window.addEventListener('keydown', keydownHandler);\n return () => window.removeEventListener('keydown', keydownHandler);\n }, [keys, count]);\n\n if (index === undefined || !count) {\n return null;\n }\n\n return (\n <div className='flex items-center text-neutral-500'>\n <IconButton\n icon='ph--caret-double-left--regular'\n size={6}\n label='Jump to first'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => onChange?.(0)}\n />\n <IconButton\n icon='ph--caret-left--regular'\n size={6}\n label='Previous'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => handleChangeIndex(-1)}\n />\n <IconButton\n icon='ph--caret-right--regular'\n size={6}\n label='Next'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => handleChangeIndex(1)}\n />\n <IconButton\n icon='ph--caret-double-right--regular'\n size={6}\n label='Jump to last'\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => onChange?.(count - 1)}\n />\n </div>\n );\n};\n\nexport type PageNumberProps = {\n index?: number;\n count?: number;\n};\n\nexport const PageNumber = ({ index = 0, count = 1 }: PageNumberProps) => {\n if (index === undefined || !count) {\n return null;\n }\n\n return (\n <div className='flex items-center text-neutral-500 text-2xl'>\n <div>\n {index + 1} / {count}\n </div>\n </div>\n );\n};\n\nexport const StartButton = ({ running, onClick }: { running?: boolean; onClick?: (start: boolean) => void }) => {\n return (\n <IconButton\n icon={running ? 'ph--x--regular' : 'ph--play--regular'}\n size={6}\n label={running ? 'Stop' : 'Play'}\n iconOnly\n noTooltip\n variant='ghost'\n classNames='p-0'\n onClick={() => onClick?.(!running)}\n />\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type PropsWithChildren, useCallback, useEffect, useRef, useState } from 'react';\n\nimport { composable, composableProps } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nexport type PresentationShellProps = PropsWithChildren<{\n /** Fade-in/out duration (ms). */\n fadeDuration?: number;\n /** Duration the [ESC] hint remains visible (ms). */\n hintDuration?: number;\n /** Whether the presentation is fullscreen. */\n fullscreen?: boolean;\n /** Invoked once the exit fade-out has completed. */\n onExit?: () => void;\n}>;\n\n/**\n * Wraps presentation content with a fade-in/out transition, an ESC handler that exits in a\n * single keypress (intercepting before the deck's fullscreen handler), and a transient [ESC]\n * caption shown on enter.\n */\nexport const PresentationShell = composable<HTMLDivElement, PresentationShellProps>(\n ({ children, fadeDuration = 300, hintDuration = 3000, fullscreen = true, onExit, ...props }, forwardedRef) => {\n const [visible, setVisible] = useState(false);\n const [exiting, setExiting] = useState(false);\n const [showHint, setShowHint] = useState(true);\n const exitTimeout = useRef<ReturnType<typeof setTimeout>>(undefined);\n // Guards against exiting twice; a state updater can't gate this since React double-invokes\n // updaters in dev, which would schedule the exit (and its side effects) more than once.\n const exitingRef = useRef(false);\n\n // Fade in once mounted.\n useEffect(() => {\n const frame = requestAnimationFrame(() => setVisible(true));\n return () => cancelAnimationFrame(frame);\n }, []);\n\n // Hide the hint after the configured duration.\n useEffect(() => {\n const timer = setTimeout(() => setShowHint(false), hintDuration);\n return () => clearTimeout(timer);\n }, [hintDuration]);\n\n const handleExit = useCallback(() => {\n if (exitingRef.current) {\n return;\n }\n exitingRef.current = true;\n setExiting(true);\n setVisible(false);\n exitTimeout.current = setTimeout(() => onExit?.(), fadeDuration);\n }, [onExit, fadeDuration]);\n\n useEffect(() => () => clearTimeout(exitTimeout.current), []);\n\n // Capture ESC before the deck/reveal handlers so a single keypress exits directly.\n useEffect(() => {\n const handler = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopImmediatePropagation();\n handleExit();\n }\n };\n\n document.addEventListener('keydown', handler, { capture: true });\n return () => document.removeEventListener('keydown', handler, { capture: true });\n }, [handleExit]);\n\n return (\n <div\n {...composableProps(props, {\n classNames: [\n 'relative grow overflow-hidden bg-black transition-opacity',\n visible && !exiting ? 'opacity-100' : 'opacity-0',\n ],\n style: { transitionDuration: `${fadeDuration}ms` },\n })}\n ref={forwardedRef}\n >\n {children}\n {fullscreen && (\n <div\n className={mx(\n 'absolute top-4 left-4 z-[300] transition-opacity duration-500',\n showHint && !exiting ? 'opacity-100' : 'opacity-0',\n )}\n >\n <span className='rounded-sm bg-white/10 px-2 py-1 font-mono text-sm text-white/70'>[ESC]</span>\n </div>\n )}\n </div>\n );\n },\n);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport 'reveal.js/dist/reveal.css';\nimport 'reveal.js/dist/theme/black.css';\n// https://github.com/highlightjs/highlight.js/tree/main/src/styles\n// import 'highlight.js/styles/github-dark.css';\nimport 'highlight.js/styles/tokyo-night-dark.css';\n\nimport hljs from 'highlight.js';\nimport typescript from 'highlight.js/lib/languages/typescript';\nimport React, { useRef } from 'react';\nimport Reveal from 'reveal.js';\nimport RevealHighlight from 'reveal.js/plugin/highlight/highlight';\nimport RevealMarkdown from 'reveal.js/plugin/markdown/plugin.js';\n\nimport { useAsyncEffect } from '@dxos/react-ui';\nimport { composable, composableProps } from '@dxos/react-ui';\nimport { mx } from '@dxos/ui-theme';\n\nconst styles = `\n<style type=\"text/css\">\n .reveal h1 {\n font-weight: 100;\n font-size: 60px;\n opacity: 0.5;\n }\n .reveal h2 {\n font-weight: 100;\n padding-top: 60px;\n padding-left: 40px;\n font-size: 48px;\n opacity: 0.3;\n }\n .reveal h1, h2, p {\n font-family: \"Raleway\", sans-serif;\n text-align: left;\n font-weight: 200;\n }\n .reveal ul {\n font-family: \"Raleway\", sans-serif;\n display: block;\n list-style: \"- \";\n }\n .reveal blockquote p {\n text-align: center;\n font-weight: 100;\n padding: 32px;\n }\n .reveal pre {\n margin-left: 0;\n }\n .reveal code {\n font-size: 20px;\n background: #111111;\n color: #eeeeee;\n max-height: unset !important;\n }\n</style>\n`;\n\nexport type RevealProps = {\n content: string;\n slide?: number;\n fullscreen?: boolean;\n onExit?: () => void;\n};\n\nexport const RevealPlayer = composable<HTMLDivElement, RevealProps>(\n ({ content, slide, fullscreen = true, onExit, children, ...props }, forwardedRef) => {\n const deckDivRef = useRef<HTMLDivElement>(null);\n const deckRef = useRef<Reveal.Api | null>(null);\n\n useAsyncEffect(async () => {\n if (deckRef.current) {\n return;\n }\n\n // Required for syntax highlighting.\n hljs.registerLanguage('typescript', typescript);\n\n // https://revealjs.com/react\n // https://revealjs.com/config\n // https://github.com/hakimel/reveal.js\n // TODO(burdon): Fragments and scroll view steps 2 at a time (safe mode?)\n deckRef.current = new Reveal(deckDivRef.current!, {\n // view: 'scroll',\n progress: false,\n transition: 'none',\n slideNumber: false,\n embedded: true,\n\n // Disable autoplay to prevent errors in headless environments (e.g., CI).\n autoPlayMedia: false,\n\n // TODO(burdon): Speaker view requires server to serve popout window.\n // https://revealjs.com/speaker-view\n showNotes: false,\n\n // width: 1600,\n // height: 900,\n margin: 0.1,\n // center: false,\n // minScale: 0.1,\n // maxScale: 1.4,\n\n // https://revealjs.com/markdown\n // TODO(burdon): Requires server to serve popout window.\n plugins: [RevealMarkdown, RevealHighlight],\n\n // See https://marked.js.org/using_advanced#options\n markdown: {\n gfm: true,\n smartypants: true,\n highlight: (code, language) => {\n if (language) {\n return hljs.highlight(code, { language }).value;\n }\n\n return hljs.highlightAuto(code).value;\n },\n },\n });\n\n await deckRef.current.initialize();\n\n if (slide !== undefined) {\n deckRef.current.slide(slide < 0 ? deckRef.current?.getTotalSlides() + slide : slide - 1);\n }\n\n deckRef.current.addKeyBinding({ keyCode: 27, key: 'Escape', description: 'Exit full screen' }, () => {\n onExit?.();\n });\n\n return () => {\n try {\n if (deckRef.current) {\n deckRef.current.destroy();\n deckRef.current = null;\n }\n } catch {\n // Ignore.\n }\n };\n });\n\n // TOOD(burdon): Trap cursor keys (otherwise tabster grabs focus.)\n return (\n <div\n {...composableProps(props, {\n classNames: ['dx-container grid place-items-center bg-scrim-surface', fullscreen && 'absolute inset-0'],\n })}\n ref={forwardedRef}\n >\n <div className='relative aspect-video h-full w-full h-auto max-h-full overflow-hidden'>\n <div ref={deckDivRef} className='absolute inset-0 reveal'>\n {/* React hoists these to <head>; they must not be wrapped in <style> (which only renders CSS text). */}\n <link rel='preconnect' href='https://fonts.gstatic.com' {...{ crossOrigin: '' }} />\n <link rel='preconnect' href='https://fonts.googleapis.com' />\n <link\n rel='stylesheet'\n href='https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap'\n />\n <div className={mx('slides', !fullscreen && 'bg-base-surface p-8')}>\n <div />\n <section {...{ 'data-markdown': [] }}>\n <textarea {...{ 'data-template': true }} defaultValue={[styles, content].join('\\n')}></textarea>\n </section>\n </div>\n </div>\n </div>\n </div>\n );\n },\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,OAAOA,SAAiCC,gBAAgB;AACxD,SAASC,yBAAyB;AAGlC,SAASC,UAAU;AAOZ,IAAMC,QAAQ,CAAC,EAAEC,UAAUC,WAAU,MAAc;AACxD,QAAM,CAACC,OAAOC,QAAAA,IAAYP,SAAS,CAAC,CAAA;AACpC,QAAM,EACJQ,KAAKC,cACLC,OACAC,OAAM,IACJV,kBAAkB;IACpBW,aAAa;IACbC,aAAa;IACbC,gBAAgB;MACdC,SAAS;IACX;IACAC,UAAU,CAAC,EAAEN,OAAAA,QAAOC,QAAAA,QAAM,MAAE;AAC1B,UAAID,UAASC,SAAQ;AACnBJ,iBAASU,kBAAkB;UAAEP,OAAAA;UAAOC,QAAAA;QAAO,CAAA,CAAA;MAC7C;IACF;EACF,CAAA;AAIA,SACE,sBAAA,cAACO,OAAAA;IAAIV,KAAKC;IAAcU,WAAWjB,GAAG,2DAA2DG,UAAAA;KAC/F,sBAAA,cAACa,OAAAA;IAAIC,WAAWjB,GAAG,u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AAS;AACnBD,kBAAQC,QAAQyB,QAAO;AACvB1B,kBAAQC,UAAU;QACpB;MACF,QAAQ;MAER;IACF;EACF,CAAA;AAGA,SACE,gBAAApB,OAAA,cAAC8C,OAAAA;IACE,GAAGvC,iBAAgBS,OAAO;MACzB+B,YAAY;QAAC;QAAyDlC,cAAc;;IACtF,CAAA;IACAmC,KAAK/B;KAEL,gBAAAjB,OAAA,cAAC8C,OAAAA;IAAIG,WAAU;KACb,gBAAAjD,OAAA,cAAC8C,OAAAA;IAAIE,KAAK9B;IAAY+B,WAAU;KAE9B,gBAAAjD,OAAA,cAACkD,QAAAA;IAAKC,KAAI;IAAaC,MAAK;IAAkCC,aAAa;MAC3E,gBAAArD,OAAA,cAACkD,QAAAA;IAAKC,KAAI;IAAaC,MAAK;MAC5B,gBAAApD,OAAA,cAACkD,QAAAA;IACCC,KAAI;IACJC,MAAK;MAEP,gBAAApD,OAAA,cAAC8C,OAAAA;IAAIG,WAAWzC,IAAG,UAAU,CAACK,cAAc,qBAAA;KAC1C,gBAAAb,OAAA,cAAC8C,OAAAA,IAAAA,GACD,gBAAA9C,OAAA,cAACsD,WAAY;IAAE,iBAAiB,CAAA;EAAG,GACjC,gBAAAtD,OAAA,cAACuD,YAAAA;IAAe,iBAAiB;IAAQC,cAAc;MAAC/C;MAAQE;MAAS8C,KAAK,IAAA;;AAO5F,CAAA;",
|
|
6
|
+
"names": ["React", "useState", "useResizeDetector", "mx", "Panel", "children", "classNames", "props", "setProps", "ref", "containerRef", "width", "height", "refreshMode", "refreshRate", "refreshOptions", "leading", "onResize", "createLayoutProps", "div", "className", "style", "aspectRatio", "nominalWidth", "nominalHeight", "scale", "Math", "min", "left", "top", "transform", "h", "React", "ReactMarkdown", "rehypeAddClasses", "rehypeHighlight", "remarkFrontmatter", "remarkParseFrontmatter", "theme", "root", "padding", "nodes", "h1", "h2", "h3", "p", "ul", "ol", "li", "pre", "code", "Slide", "content", "classes", "theme", "nodes", "React", "style", "styles", "ReactMarkdown", "components", "remarkPlugins", "remarkFrontmatter", "remarkParseFrontmatter", "rehypePlugins", "rehypeAddClasses", "rehypeHighlight", "slideLayout", "_options", "tree", "file", "data", "frontmatter", "children", "layout", "image", "img", "h", "class", "backgroundImage", "padding", "root", "ImageWrapper", "node", "_", "props", "alt", "src", "React", "composable", "composableProps", "Layout", "children", "topLeft", "topRight", "bottomLeft", "bottomRight", "props", "forwardedRef", "div", "classNames", "ref", "className", "React", "useEffect", "IconButton", "useControlledState", "Pager", "index", "indexProp", "count", "keys", "onChange", "onExit", "setIndex", "handleChangeIndex", "dir", "next", "keydownHandler", "event", "key", "shiftKey", "window", "addEventListener", "removeEventListener", "undefined", "div", "className", "icon", "size", "label", "iconOnly", "noTooltip", "variant", "classNames", "onClick", "PageNumber", "StartButton", "running", "React", "useCallback", "useEffect", "useRef", "useState", "composable", "composableProps", "mx", "PresentationShell", "children", "fadeDuration", "hintDuration", "fullscreen", "onExit", "props", "forwardedRef", "visible", "setVisible", "exiting", "setExiting", "showHint", "setShowHint", "exitTimeout", "undefined", "exitingRef", "frame", "requestAnimationFrame", "cancelAnimationFrame", "timer", "setTimeout", "clearTimeout", "handleExit", "current", "handler", "event", "key", "preventDefault", "stopImmediatePropagation", "document", "addEventListener", "capture", "removeEventListener", "div", "classNames", "style", "transitionDuration", "ref", "className", "span", "hljs", "typescript", "React", "useRef", "Reveal", "RevealHighlight", "RevealMarkdown", "useAsyncEffect", "composable", "composableProps", "mx", "styles", "RevealPlayer", "content", "slide", "fullscreen", "onExit", "children", "props", "forwardedRef", "deckDivRef", "deckRef", "current", "registerLanguage", "progress", "transition", "slideNumber", "embedded", "autoPlayMedia", "showNotes", "margin", "plugins", "markdown", "gfm", "smartypants", "highlight", "code", "language", "value", "highlightAuto", "initialize", "undefined", "getTotalSlides", "addKeyBinding", "keyCode", "key", "description", "destroy", "div", "classNames", "ref", "className", "link", "rel", "href", "crossOrigin", "section", "textarea", "defaultValue", "join"]
|
|
7
7
|
}
|
|
@@ -2,12 +2,12 @@ import "../chunk-J5LGTIGS.mjs";
|
|
|
2
2
|
|
|
3
3
|
// src/containers/index.ts
|
|
4
4
|
import { lazy } from "react";
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var CollectionArticle = lazy(() => import("../CollectionArticle-7R4KJWDW.mjs"));
|
|
6
|
+
var DocumentArticle = lazy(() => import("../DocumentArticle-YZRKVEN7.mjs"));
|
|
7
|
+
var SlideArticle = lazy(() => import("../SlideArticle-FE2I6KBO.mjs"));
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
CollectionArticle,
|
|
10
|
+
DocumentArticle,
|
|
11
|
+
SlideArticle
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/containers/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const
|
|
5
|
-
"mappings": ";;;AAIA,SAA6BA,YAAY;AAElC,IAAMC,
|
|
6
|
-
"names": ["lazy", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport const CollectionArticle: ComponentType<any> = lazy(() => import('./CollectionArticle'));\nexport const DocumentArticle: ComponentType<any> = lazy(() => import('./DocumentArticle'));\nexport const SlideArticle: ComponentType<any> = lazy(() => import('./SlideArticle'));\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAA6BA,YAAY;AAElC,IAAMC,oBAAwCD,KAAK,MAAM,OAAO,mCAAA,CAAA;AAChE,IAAME,kBAAsCF,KAAK,MAAM,OAAO,iCAAA,CAAA;AAC9D,IAAMG,eAAmCH,KAAK,MAAM,OAAO,8BAAA,CAAA;",
|
|
6
|
+
"names": ["lazy", "CollectionArticle", "DocumentArticle", "SlideArticle"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"dx.config.ts":{"bytes":4610,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/types/PresenterCapabilities.ts":{"bytes":1487,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/PresenterOperation.ts":{"bytes":3438,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/Settings.ts":{"bytes":1641,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":1709,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/types/PresenterCapabilities.ts","kind":"import-statement","original":"./PresenterCapabilities"},{"path":"src/types/PresenterOperation.ts","kind":"import-statement","original":"./PresenterOperation"},{"path":"src/types/Settings.ts","kind":"import-statement","original":"./Settings"}],"format":"esm"},"src/index.ts":{"bytes":449,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/PLUGIN.mdl":{"bytes":9680,"imports":[]},"src/PresenterPlugin.tsx":{"bytes":5182,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/PLUGIN.mdl","kind":"import-statement","original":"../PLUGIN.mdl?raw"}],"format":"esm"},"src/PresenterPlugin.node.ts":{"bytes":1610,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/PresenterPlugin.workerd.ts":{"bytes":1014,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/app-graph-builder.ts":{"bytes":11757,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/markdown-extension.ts":{"bytes":4758,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"effect/Effect","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/ui-editor","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1679,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":9395,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/settings.ts":{"bytes":3150,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":2392,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"src/capabilities/markdown-extension.ts","kind":"dynamic-import","original":"./markdown-extension"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"}],"format":"esm"},"src/components/Markdown/Panel.tsx":{"bytes":7856,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css":{"bytes":1972,"imports":[]},"src/components/Markdown/theme.ts":{"bytes":1980,"imports":[],"format":"esm"},"src/components/Markdown/Slide.tsx":{"bytes":11605,"imports":[{"path":"highlight.js/styles/github.css","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":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css","kind":"import-statement","original":"./styles.css?raw"},{"path":"src/components/Markdown/theme.ts","kind":"import-statement","original":"./theme"}],"format":"esm"},"src/components/Markdown/index.ts":{"bytes":450,"imports":[{"path":"src/components/Markdown/Panel.tsx","kind":"import-statement","original":"./Panel"},{"path":"src/components/Markdown/Slide.tsx","kind":"import-statement","original":"./Slide"}],"format":"esm"},"src/components/Presenter/Layout.tsx":{"bytes":3587,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/Pager.tsx":{"bytes":12315,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/PresentationShell.tsx":{"bytes":10653,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/index.ts":{"bytes":564,"imports":[{"path":"src/components/Presenter/Layout.tsx","kind":"import-statement","original":"./Layout"},{"path":"src/components/Presenter/Pager.tsx","kind":"import-statement","original":"./Pager"},{"path":"src/components/Presenter/PresentationShell.tsx","kind":"import-statement","original":"./PresentationShell"}],"format":"esm"},"src/components/RevealPlayer/RevealPlayer.tsx":{"bytes":16549,"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":"highlight.js/styles/tokyo-night-dark.css","kind":"import-statement","external":true},{"path":"highlight.js","kind":"import-statement","external":true},{"path":"highlight.js/lib/languages/typescript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/highlight/highlight","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/RevealPlayer/index.ts":{"bytes":388,"imports":[{"path":"src/components/RevealPlayer/RevealPlayer.tsx","kind":"import-statement","original":"./RevealPlayer"}],"format":"esm"},"src/components/PresenterSettings/PresenterSettings.tsx":{"bytes":3302,"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":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/components/PresenterSettings/index.ts":{"bytes":536,"imports":[{"path":"src/components/PresenterSettings/PresenterSettings.tsx","kind":"import-statement","original":"./PresenterSettings"}],"format":"esm"},"src/components/index.ts":{"bytes":1013,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/Markdown/index.ts","kind":"import-statement","original":"./Markdown"},{"path":"src/components/Presenter/index.ts","kind":"import-statement","original":"./Presenter"},{"path":"src/components/RevealPlayer/index.ts","kind":"import-statement","original":"./RevealPlayer"},{"path":"src/components/PresenterSettings/index.ts","kind":"dynamic-import","original":"./PresenterSettings"}],"format":"esm"},"src/useExitPresenter.ts":{"bytes":2379,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/containers/CollectionPresenterArticle/CollectionPresenterArticle.tsx":{"bytes":5785,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/useExitPresenter.ts","kind":"import-statement","original":"../../useExitPresenter"}],"format":"esm"},"src/containers/CollectionPresenterArticle/index.ts":{"bytes":590,"imports":[{"path":"src/containers/CollectionPresenterArticle/CollectionPresenterArticle.tsx","kind":"import-statement","original":"./CollectionPresenterArticle"}],"format":"esm"},"src/containers/DocumentPresenterContainer/DocumentPresenterContainer.tsx":{"bytes":2702,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"src/useExitPresenter.ts","kind":"import-statement","original":"../../useExitPresenter"}],"format":"esm"},"src/containers/DocumentPresenterContainer/index.ts":{"bytes":590,"imports":[{"path":"src/containers/DocumentPresenterContainer/DocumentPresenterContainer.tsx","kind":"import-statement","original":"./DocumentPresenterContainer"}],"format":"esm"},"src/containers/MarkdownSlide/MarkdownSlide.tsx":{"bytes":1677,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true}],"format":"esm"},"src/containers/MarkdownSlide/index.ts":{"bytes":512,"imports":[{"path":"src/containers/MarkdownSlide/MarkdownSlide.tsx","kind":"import-statement","original":"./MarkdownSlide"}],"format":"esm"},"src/containers/index.ts":{"bytes":1416,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/CollectionPresenterArticle/index.ts","kind":"dynamic-import","original":"./CollectionPresenterArticle"},{"path":"src/containers/DocumentPresenterContainer/index.ts","kind":"dynamic-import","original":"./DocumentPresenterContainer"},{"path":"src/containers/MarkdownSlide/index.ts","kind":"dynamic-import","original":"./MarkdownSlide"}],"format":"esm"},"src/paths.ts":{"bytes":1088,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"format":"esm"},"src/operations/toggle-presentation.ts":{"bytes":7489,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/paths.ts","kind":"import-statement","original":"../paths"}],"format":"esm"},"src/operations/index.ts":{"bytes":876,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/toggle-presentation.ts","kind":"dynamic-import","original":"./toggle-presentation"}],"format":"esm"},"src/plugin.ts":{"bytes":870,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1363,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/settings-DBV7N5HT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1607},"dist/lib/neutral/settings-DBV7N5HT.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/settings.ts","inputs":{"src/capabilities/settings.ts":{"bytesInOutput":730}},"bytes":883},"dist/lib/neutral/PresenterSettings-4YFP4K5G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1821},"dist/lib/neutral/PresenterSettings-4YFP4K5G.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.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":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/components/PresenterSettings/index.ts","inputs":{"src/components/PresenterSettings/PresenterSettings.tsx":{"bytesInOutput":747},"src/components/PresenterSettings/index.ts":{"bytesInOutput":0}},"bytes":936},"dist/lib/neutral/CollectionPresenterArticle-ZRYWBX2H.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3221},"dist/lib/neutral/CollectionPresenterArticle-ZRYWBX2H.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-63IF7OXT.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/CollectionPresenterArticle/index.ts","inputs":{"src/containers/CollectionPresenterArticle/CollectionPresenterArticle.tsx":{"bytesInOutput":1409},"src/containers/CollectionPresenterArticle/index.ts":{"bytesInOutput":0}},"bytes":1693},"dist/lib/neutral/DocumentPresenterContainer-5QF4P736.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1508},"dist/lib/neutral/DocumentPresenterContainer-5QF4P736.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-63IF7OXT.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/DocumentPresenterContainer/index.ts","inputs":{"src/containers/DocumentPresenterContainer/DocumentPresenterContainer.tsx":{"bytesInOutput":600},"src/containers/DocumentPresenterContainer/index.ts":{"bytesInOutput":0}},"bytes":884},"dist/lib/neutral/chunk-63IF7OXT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1184},"dist/lib/neutral/chunk-63IF7OXT.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["useExitPresenter"],"inputs":{"src/useExitPresenter.ts":{"bytesInOutput":390}},"bytes":493},"dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":937},"dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/MarkdownSlide/index.ts","inputs":{"src/containers/MarkdownSlide/MarkdownSlide.tsx":{"bytesInOutput":327},"src/containers/MarkdownSlide/index.ts":{"bytesInOutput":0}},"bytes":500},"dist/lib/neutral/toggle-presentation-PH7ZJJDD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4479},"dist/lib/neutral/toggle-presentation-PH7ZJJDD.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/toggle-presentation.ts","inputs":{"src/operations/toggle-presentation.ts":{"bytesInOutput":1599},"src/paths.ts":{"bytesInOutput":147}},"bytes":1989},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":472},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/toggle-presentation-PH7ZJJDD.mjs","kind":"dynamic-import"}],"exports":["PresenterOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":167}},"bytes":305},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":448},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-MSQDHOPV.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["PresenterPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":112}},"bytes":274},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":698},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":250}},"bytes":374},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-H5JLSLAO.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["PresenterCapabilities","PresenterContext","PresenterOperation","Settings"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":383},"dist/lib/neutral/app-graph-builder-JMQVBFG2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5865},"dist/lib/neutral/app-graph-builder-JMQVBFG2.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/app-graph-builder.ts","inputs":{"src/capabilities/app-graph-builder.ts":{"bytesInOutput":3037}},"bytes":3217},"dist/lib/neutral/markdown-extension-HGLRVZDF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2410},"dist/lib/neutral/markdown-extension-HGLRVZDF.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"effect/Effect","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/ui-editor","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/markdown-extension.ts","inputs":{"src/capabilities/markdown-extension.ts":{"bytesInOutput":1033}},"bytes":1216},"dist/lib/neutral/operation-handler-3ZESW5AK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":937},"dist/lib/neutral/operation-handler-3ZESW5AK.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":351}},"bytes":531},"dist/lib/neutral/react-surface-YGBE3TDK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4823},"dist/lib/neutral/react-surface-YGBE3TDK.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":2240}},"bytes":2409},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-H5JLSLAO.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-MSQDHOPV.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["PresenterCapabilities","PresenterContext","PresenterOperation","Settings","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":436},"dist/lib/neutral/chunk-H5JLSLAO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4043},"dist/lib/neutral/chunk-H5JLSLAO.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["PresenterCapabilities_exports","PresenterContext","PresenterOperation_exports","Settings_exports"],"inputs":{"src/types/index.ts":{"bytesInOutput":142},"src/types/PresenterCapabilities.ts":{"bytesInOutput":268},"src/types/PresenterOperation.ts":{"bytesInOutput":904},"src/types/Settings.ts":{"bytesInOutput":386}},"bytes":2057},"dist/lib/neutral/PresenterPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13627},"dist/lib/neutral/PresenterPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["PresenterPlugin","default"],"entryPoint":"src/PresenterPlugin.tsx","inputs":{"src/PresenterPlugin.tsx":{"bytesInOutput":1069},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/PLUGIN.mdl":{"bytesInOutput":10748}},"bytes":12092},"dist/lib/neutral/PresenterPlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":848},"dist/lib/neutral/PresenterPlugin.node.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PresenterPlugin","default"],"entryPoint":"src/PresenterPlugin.node.ts","inputs":{"src/PresenterPlugin.node.ts":{"bytesInOutput":347}},"bytes":533},"dist/lib/neutral/PresenterPlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":537},"dist/lib/neutral/PresenterPlugin.workerd.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PresenterPlugin","default"],"entryPoint":"src/PresenterPlugin.workerd.ts","inputs":{"src/PresenterPlugin.workerd.ts":{"bytesInOutput":192}},"bytes":387},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1282},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/app-graph-builder-JMQVBFG2.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/markdown-extension-HGLRVZDF.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-3ZESW5AK.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-surface-YGBE3TDK.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/settings-DBV7N5HT.mjs","kind":"dynamic-import"}],"exports":["AppGraphBuilder","MarkdownExtension","OperationHandler","PresenterSettings","ReactSurface"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":587}},"bytes":792},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":34504},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"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/ui-theme","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","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":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/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":"highlight.js/styles/tokyo-night-dark.css","kind":"import-statement","external":true},{"path":"highlight.js","kind":"import-statement","external":true},{"path":"highlight.js/lib/languages/typescript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/highlight/highlight","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"dist/lib/neutral/PresenterSettings-4YFP4K5G.mjs","kind":"dynamic-import"}],"exports":["Layout","PageNumber","Pager","Panel","PresentationShell","PresenterSettings","RevealPlayer","Slide","StartButton"],"entryPoint":"src/components/index.ts","inputs":{"src/components/index.ts":{"bytesInOutput":111},"src/components/Markdown/Panel.tsx":{"bytesInOutput":1327},"src/components/Markdown/index.ts":{"bytesInOutput":0},"src/components/Markdown/Slide.tsx":{"bytesInOutput":2652},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css":{"bytesInOutput":2101},"src/components/Markdown/theme.ts":{"bytesInOutput":484},"src/components/Presenter/Layout.tsx":{"bytesInOutput":1012},"src/components/Presenter/index.ts":{"bytesInOutput":0},"src/components/Presenter/Pager.tsx":{"bytesInOutput":3259},"src/components/Presenter/PresentationShell.tsx":{"bytesInOutput":2342},"src/components/RevealPlayer/RevealPlayer.tsx":{"bytesInOutput":4619},"src/components/RevealPlayer/index.ts":{"bytesInOutput":0}},"bytes":18594},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":783},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/CollectionPresenterArticle-ZRYWBX2H.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/DocumentPresenterContainer-5QF4P736.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/MarkdownSlide-WXILOIBE.mjs","kind":"dynamic-import"}],"exports":["CollectionPresenterArticle","DocumentPresenterContainer","MarkdownSlide"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":301}},"bytes":484},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-MSQDHOPV.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/neutral/chunk-MSQDHOPV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2444},"dist/lib/neutral/chunk-MSQDHOPV.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":1623}},"bytes":1837},"dist/lib/neutral/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
1
|
+
{"inputs":{"dx.config.ts":{"bytes":4610,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/types/PresenterCapabilities.ts":{"bytes":1487,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/PresenterOperation.ts":{"bytes":3434,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/Settings.ts":{"bytes":1641,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":1709,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/types/PresenterCapabilities.ts","kind":"import-statement","original":"./PresenterCapabilities"},{"path":"src/types/PresenterOperation.ts","kind":"import-statement","original":"./PresenterOperation"},{"path":"src/types/Settings.ts","kind":"import-statement","original":"./Settings"}],"format":"esm"},"src/index.ts":{"bytes":449,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/PLUGIN.mdl":{"bytes":9586,"imports":[]},"src/PresenterPlugin.tsx":{"bytes":5182,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/PLUGIN.mdl","kind":"import-statement","original":"../PLUGIN.mdl?raw"}],"format":"esm"},"src/PresenterPlugin.node.ts":{"bytes":1610,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/PresenterPlugin.workerd.ts":{"bytes":1014,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/app-graph-builder.ts":{"bytes":11908,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/markdown-extension.ts":{"bytes":4758,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"effect/Effect","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/ui-editor","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1679,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":7672,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/settings.ts":{"bytes":3150,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":2392,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"src/capabilities/markdown-extension.ts","kind":"dynamic-import","original":"./markdown-extension"},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"}],"format":"esm"},"src/components/Markdown/Panel.tsx":{"bytes":7856,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css":{"bytes":1972,"imports":[]},"src/components/Markdown/theme.ts":{"bytes":1980,"imports":[],"format":"esm"},"src/components/Markdown/Slide.tsx":{"bytes":11605,"imports":[{"path":"highlight.js/styles/github.css","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":"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css","kind":"import-statement","original":"./styles.css?raw"},{"path":"src/components/Markdown/theme.ts","kind":"import-statement","original":"./theme"}],"format":"esm"},"src/components/Markdown/index.ts":{"bytes":450,"imports":[{"path":"src/components/Markdown/Panel.tsx","kind":"import-statement","original":"./Panel"},{"path":"src/components/Markdown/Slide.tsx","kind":"import-statement","original":"./Slide"}],"format":"esm"},"src/components/Presenter/Layout.tsx":{"bytes":3587,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/Pager.tsx":{"bytes":12315,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/PresentationShell.tsx":{"bytes":10930,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/Presenter/index.ts":{"bytes":564,"imports":[{"path":"src/components/Presenter/Layout.tsx","kind":"import-statement","original":"./Layout"},{"path":"src/components/Presenter/Pager.tsx","kind":"import-statement","original":"./Pager"},{"path":"src/components/Presenter/PresentationShell.tsx","kind":"import-statement","original":"./PresentationShell"}],"format":"esm"},"src/components/RevealPlayer/RevealPlayer.tsx":{"bytes":16697,"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":"highlight.js/styles/tokyo-night-dark.css","kind":"import-statement","external":true},{"path":"highlight.js","kind":"import-statement","external":true},{"path":"highlight.js/lib/languages/typescript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/highlight/highlight","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/components/RevealPlayer/index.ts":{"bytes":388,"imports":[{"path":"src/components/RevealPlayer/RevealPlayer.tsx","kind":"import-statement","original":"./RevealPlayer"}],"format":"esm"},"src/components/index.ts":{"bytes":565,"imports":[{"path":"src/components/Markdown/index.ts","kind":"import-statement","original":"./Markdown"},{"path":"src/components/Presenter/index.ts","kind":"import-statement","original":"./Presenter"},{"path":"src/components/RevealPlayer/index.ts","kind":"import-statement","original":"./RevealPlayer"}],"format":"esm"},"src/useExitPresenter.ts":{"bytes":2379,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/containers/CollectionArticle/CollectionArticle.tsx":{"bytes":5716,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/useExitPresenter.ts","kind":"import-statement","original":"../../useExitPresenter"}],"format":"esm"},"src/containers/CollectionArticle/index.ts":{"bytes":536,"imports":[{"path":"src/containers/CollectionArticle/CollectionArticle.tsx","kind":"import-statement","original":"./CollectionArticle"}],"format":"esm"},"src/containers/DocumentArticle/DocumentArticle.tsx":{"bytes":4221,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"src/useExitPresenter.ts","kind":"import-statement","original":"../../useExitPresenter"}],"format":"esm"},"src/containers/DocumentArticle/index.ts":{"bytes":524,"imports":[{"path":"src/containers/DocumentArticle/DocumentArticle.tsx","kind":"import-statement","original":"./DocumentArticle"}],"format":"esm"},"src/containers/SlideArticle/SlideArticle.tsx":{"bytes":1897,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true}],"format":"esm"},"src/containers/SlideArticle/index.ts":{"bytes":506,"imports":[{"path":"src/containers/SlideArticle/SlideArticle.tsx","kind":"import-statement","original":"./SlideArticle"}],"format":"esm"},"src/containers/index.ts":{"bytes":1290,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/CollectionArticle/index.ts","kind":"dynamic-import","original":"./CollectionArticle"},{"path":"src/containers/DocumentArticle/index.ts","kind":"dynamic-import","original":"./DocumentArticle"},{"path":"src/containers/SlideArticle/index.ts","kind":"dynamic-import","original":"./SlideArticle"}],"format":"esm"},"src/paths.ts":{"bytes":1088,"imports":[{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"format":"esm"},"src/operations/toggle-presentation.ts":{"bytes":7489,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/paths.ts","kind":"import-statement","original":"../paths"}],"format":"esm"},"src/operations/index.ts":{"bytes":876,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/toggle-presentation.ts","kind":"dynamic-import","original":"./toggle-presentation"}],"format":"esm"},"src/plugin.ts":{"bytes":870,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1223,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/settings-DBV7N5HT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1607},"dist/lib/neutral/settings-DBV7N5HT.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/effect","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/settings.ts","inputs":{"src/capabilities/settings.ts":{"bytesInOutput":730}},"bytes":883},"dist/lib/neutral/CollectionArticle-7R4KJWDW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3167},"dist/lib/neutral/CollectionArticle-7R4KJWDW.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-63IF7OXT.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/CollectionArticle/index.ts","inputs":{"src/containers/CollectionArticle/CollectionArticle.tsx":{"bytesInOutput":1400},"src/containers/CollectionArticle/index.ts":{"bytesInOutput":0}},"bytes":1648},"dist/lib/neutral/DocumentArticle-YZRKVEN7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2225},"dist/lib/neutral/DocumentArticle-YZRKVEN7.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-63IF7OXT.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/DocumentArticle/index.ts","inputs":{"src/containers/DocumentArticle/DocumentArticle.tsx":{"bytesInOutput":817},"src/containers/DocumentArticle/index.ts":{"bytesInOutput":0}},"bytes":1057},"dist/lib/neutral/chunk-63IF7OXT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1184},"dist/lib/neutral/chunk-63IF7OXT.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["useExitPresenter"],"inputs":{"src/useExitPresenter.ts":{"bytesInOutput":390}},"bytes":493},"dist/lib/neutral/SlideArticle-FE2I6KBO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1072},"dist/lib/neutral/SlideArticle-FE2I6KBO.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/SlideArticle/index.ts","inputs":{"src/containers/SlideArticle/SlideArticle.tsx":{"bytesInOutput":361},"src/containers/SlideArticle/index.ts":{"bytesInOutput":0}},"bytes":530},"dist/lib/neutral/toggle-presentation-PH7ZJJDD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4479},"dist/lib/neutral/toggle-presentation-PH7ZJJDD.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/toggle-presentation.ts","inputs":{"src/operations/toggle-presentation.ts":{"bytesInOutput":1599},"src/paths.ts":{"bytesInOutput":147}},"bytes":1989},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":472},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/toggle-presentation-PH7ZJJDD.mjs","kind":"dynamic-import"}],"exports":["PresenterOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{"src/operations/index.ts":{"bytesInOutput":167}},"bytes":305},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":448},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-MSQDHOPV.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["PresenterPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":112}},"bytes":274},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":636},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":202}},"bytes":326},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-NDZ6IIAL.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["PresenterCapabilities","PresenterContext","PresenterOperation","Settings"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":383},"dist/lib/neutral/app-graph-builder-FNDFY5L3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5966},"dist/lib/neutral/app-graph-builder-FNDFY5L3.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/app-graph-builder.ts","inputs":{"src/capabilities/app-graph-builder.ts":{"bytesInOutput":3052}},"bytes":3232},"dist/lib/neutral/markdown-extension-HGLRVZDF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2410},"dist/lib/neutral/markdown-extension-HGLRVZDF.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"effect/Effect","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/ui-editor","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/markdown-extension.ts","inputs":{"src/capabilities/markdown-extension.ts":{"bytesInOutput":1033}},"bytes":1216},"dist/lib/neutral/operation-handler-3ZESW5AK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":937},"dist/lib/neutral/operation-handler-3ZESW5AK.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":351}},"bytes":531},"dist/lib/neutral/react-surface-VO4GPCLQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3966},"dist/lib/neutral/react-surface-VO4GPCLQ.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"#containers","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":1783}},"bytes":1952},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-NDZ6IIAL.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-MSQDHOPV.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["PresenterCapabilities","PresenterContext","PresenterOperation","Settings","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":436},"dist/lib/neutral/chunk-NDZ6IIAL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4042},"dist/lib/neutral/chunk-NDZ6IIAL.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["PresenterCapabilities_exports","PresenterContext","PresenterOperation_exports","Settings_exports"],"inputs":{"src/types/index.ts":{"bytesInOutput":142},"src/types/PresenterCapabilities.ts":{"bytesInOutput":268},"src/types/PresenterOperation.ts":{"bytesInOutput":904},"src/types/Settings.ts":{"bytesInOutput":386}},"bytes":2057},"dist/lib/neutral/PresenterPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":13533},"dist/lib/neutral/PresenterPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["PresenterPlugin","default"],"entryPoint":"src/PresenterPlugin.tsx","inputs":{"src/PresenterPlugin.tsx":{"bytesInOutput":1069},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/PLUGIN.mdl":{"bytesInOutput":10654}},"bytes":11998},"dist/lib/neutral/PresenterPlugin.node.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":848},"dist/lib/neutral/PresenterPlugin.node.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PresenterPlugin","default"],"entryPoint":"src/PresenterPlugin.node.ts","inputs":{"src/PresenterPlugin.node.ts":{"bytesInOutput":347}},"bytes":533},"dist/lib/neutral/PresenterPlugin.workerd.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":537},"dist/lib/neutral/PresenterPlugin.workerd.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PresenterPlugin","default"],"entryPoint":"src/PresenterPlugin.workerd.ts","inputs":{"src/PresenterPlugin.workerd.ts":{"bytesInOutput":192}},"bytes":387},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1282},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/app-graph-builder-FNDFY5L3.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/markdown-extension-HGLRVZDF.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/operation-handler-3ZESW5AK.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/react-surface-VO4GPCLQ.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/settings-DBV7N5HT.mjs","kind":"dynamic-import"}],"exports":["AppGraphBuilder","MarkdownExtension","OperationHandler","PresenterSettings","ReactSurface"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":587}},"bytes":792},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":34351},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"react-resize-detector","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"highlight.js/styles/github.css","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":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/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":"highlight.js/styles/tokyo-night-dark.css","kind":"import-statement","external":true},{"path":"highlight.js","kind":"import-statement","external":true},{"path":"highlight.js/lib/languages/typescript","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"reveal.js","kind":"import-statement","external":true},{"path":"reveal.js/plugin/highlight/highlight","kind":"import-statement","external":true},{"path":"reveal.js/plugin/markdown/plugin.js","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["Layout","PageNumber","Pager","Panel","PresentationShell","RevealPlayer","Slide","StartButton"],"entryPoint":"src/components/index.ts","inputs":{"src/components/Markdown/Panel.tsx":{"bytesInOutput":1327},"src/components/Markdown/index.ts":{"bytesInOutput":0},"src/components/Markdown/Slide.tsx":{"bytesInOutput":2652},"raw-loader:/__w/dxos/dxos/packages/plugins/plugin-presenter/src/components/Markdown/styles.css":{"bytesInOutput":2101},"src/components/Markdown/theme.ts":{"bytesInOutput":484},"src/components/index.ts":{"bytesInOutput":0},"src/components/Presenter/Layout.tsx":{"bytesInOutput":1012},"src/components/Presenter/index.ts":{"bytesInOutput":0},"src/components/Presenter/Pager.tsx":{"bytesInOutput":3259},"src/components/Presenter/PresentationShell.tsx":{"bytesInOutput":2375},"src/components/RevealPlayer/RevealPlayer.tsx":{"bytesInOutput":4630},"src/components/RevealPlayer/index.ts":{"bytesInOutput":0}},"bytes":18450},"dist/lib/neutral/containers/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":719},"dist/lib/neutral/containers/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/neutral/CollectionArticle-7R4KJWDW.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/DocumentArticle-YZRKVEN7.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/SlideArticle-FE2I6KBO.mjs","kind":"dynamic-import"}],"exports":["CollectionArticle","DocumentArticle","SlideArticle"],"entryPoint":"src/containers/index.ts","inputs":{"src/containers/index.ts":{"bytesInOutput":259}},"bytes":421},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-MSQDHOPV.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/neutral/chunk-MSQDHOPV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2444},"dist/lib/neutral/chunk-MSQDHOPV.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":1623}},"bytes":1837},"dist/lib/neutral/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -4,27 +4,28 @@ import "./chunk-J5LGTIGS.mjs";
|
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
7
|
-
import { Surface
|
|
7
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
8
8
|
import { AppSurface } from "@dxos/app-toolkit/ui";
|
|
9
9
|
import { Collection, Obj } from "@dxos/echo";
|
|
10
10
|
import { Markdown } from "@dxos/plugin-markdown";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { Position } from "@dxos/util";
|
|
12
|
+
import { CollectionArticle, DocumentArticle, SlideArticle } from "#containers";
|
|
13
13
|
import { meta } from "#meta";
|
|
14
14
|
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
15
15
|
Surface.create({
|
|
16
16
|
id: "document",
|
|
17
|
-
position:
|
|
17
|
+
position: Position.first,
|
|
18
18
|
filter: Surface.makeFilter(AppSurface.Article, (data) => !!data.subject && typeof data.subject === "object" && "type" in data.subject && "object" in data.subject && data.subject.type === meta.profile.key && Obj.instanceOf(Markdown.Document, data.subject.object)),
|
|
19
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(
|
|
20
|
-
|
|
19
|
+
component: ({ role, data }) => /* @__PURE__ */ React.createElement(DocumentArticle, {
|
|
20
|
+
role,
|
|
21
|
+
subject: data.subject.object
|
|
21
22
|
})
|
|
22
23
|
}),
|
|
23
24
|
Surface.create({
|
|
24
25
|
id: "collection",
|
|
25
|
-
position:
|
|
26
|
+
position: Position.first,
|
|
26
27
|
filter: Surface.makeFilter(AppSurface.Article, (data) => !!data.subject && typeof data.subject === "object" && "type" in data.subject && "object" in data.subject && data.subject.type === meta.profile.key && Obj.instanceOf(Collection.Collection, data.subject.object)),
|
|
27
|
-
component: ({ role, data }) => /* @__PURE__ */ React.createElement(
|
|
28
|
+
component: ({ role, data }) => /* @__PURE__ */ React.createElement(CollectionArticle, {
|
|
28
29
|
role,
|
|
29
30
|
subject: data.subject.object
|
|
30
31
|
})
|
|
@@ -32,23 +33,10 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
32
33
|
Surface.create({
|
|
33
34
|
id: "slide",
|
|
34
35
|
filter: AppSurface.object(AppSurface.Slide, Markdown.Document),
|
|
35
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(
|
|
36
|
-
document: data.subject
|
|
37
|
-
})
|
|
38
|
-
}),
|
|
39
|
-
Surface.create({
|
|
40
|
-
id: "pluginSettings",
|
|
41
|
-
filter: AppSurface.settings(AppSurface.Article, meta.profile.key),
|
|
42
|
-
component: ({ data: { subject } }) => {
|
|
43
|
-
const { settings, updateSettings } = useSettingsState(subject.atom);
|
|
44
|
-
return /* @__PURE__ */ React.createElement(PresenterSettings, {
|
|
45
|
-
settings,
|
|
46
|
-
onSettingsChange: updateSettings
|
|
47
|
-
});
|
|
48
|
-
}
|
|
36
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(SlideArticle, data)
|
|
49
37
|
})
|
|
50
38
|
])));
|
|
51
39
|
export {
|
|
52
40
|
react_surface_default as default
|
|
53
41
|
};
|
|
54
|
-
//# sourceMappingURL=react-surface-
|
|
42
|
+
//# sourceMappingURL=react-surface-VO4GPCLQ.mjs.map
|