@dxos/app-framework 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549

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.
@@ -480,4 +480,4 @@ export {
480
480
  useApp,
481
481
  useIntentResolver
482
482
  };
483
- //# sourceMappingURL=chunk-VFUKEZIN.mjs.map
483
+ //# sourceMappingURL=chunk-6XKO24JP.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/react/useCapabilities.ts", "../../../src/react/PluginManagerProvider.ts", "../../../src/react/common.ts", "../../../src/react/types.ts", "../../../src/react/ErrorBoundary.tsx", "../../../src/react/Surface.tsx", "../../../src/react/useApp.tsx", "../../../src/react/App.tsx", "../../../src/helpers.ts", "../../../src/react/useLoading.tsx", "../../../src/react/DefaultFallback.tsx", "../../../src/react/useIntentResolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\n\nimport { invariant } from '@dxos/invariant';\n\nimport { type InterfaceDef } from '../core';\n\nimport { usePluginManager } from './PluginManagerProvider';\n\n/**\n * Hook to request capabilities from the plugin context.\n * @returns An array of capabilities.\n */\nexport const useCapabilities = <T>(interfaceDef: InterfaceDef<T>) => {\n const manager = usePluginManager();\n return useAtomValue(manager.context.capabilities(interfaceDef));\n};\n\n/**\n * Hook to request a capability from the plugin context.\n * @returns The capability.\n * @throws If no capability is found.\n */\nexport const useCapability = <T>(interfaceDef: InterfaceDef<T>) => {\n const capabilities = useCapabilities(interfaceDef);\n invariant(capabilities.length > 0, `No capability found for ${interfaceDef.identifier}`);\n return capabilities[0];\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { createContext, useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { type PluginManager } from '../core';\n\nconst PluginManagerContext = createContext<PluginManager | undefined>(undefined);\n\n/**\n * Get the plugin manager.\n */\nexport const usePluginManager = (): PluginManager =>\n useContext(PluginManagerContext) ?? raise(new Error('Missing PluginManagerContext'));\n\n/**\n * Context provider for a plugin manager.\n */\nexport const PluginManagerProvider = PluginManagerContext.Provider;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities } from '../common';\n\nimport { useCapability } from './useCapabilities';\n\nexport const useIntentDispatcher = () => useCapability(Capabilities.IntentDispatcher);\n\nexport const useAppGraph = () => useCapability(Capabilities.AppGraph);\n\nexport const useLayout = () => useCapability(Capabilities.Layout);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { type Obj } from '@dxos/echo';\n\nexport const SurfaceCardRole = Schema.Literal(\n 'card',\n 'card--popover',\n 'card--intrinsic',\n 'card--extrinsic',\n 'card--transclusion',\n);\n\nexport type SurfaceCardRole = Schema.Schema.Type<typeof SurfaceCardRole>;\n\n// TODO(burdon): Define all roles.\nexport type SurfaceRole =\n | 'item'\n | 'article'\n | 'complementary' // (for companion?)\n | 'section'\n | SurfaceCardRole;\n\n/**\n * Base type for surface components.\n */\n// TODO(burdon): Standardize PluginSettings and ObjectProperties.\n// TODO(burdon): Include attendableId?\n// TODO(burdon): companionTo?\nexport type SurfaceComponentProps<Subject extends Obj.Any = Obj.Any, Role extends string = string> = {\n role?: Role;\n\n /** The primary object being displayed. */\n subject: Subject;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { Component, type FC, type PropsWithChildren, type ReactNode } from 'react';\n\ntype State = {\n error: Error | undefined;\n};\n\nexport type ErrorBoundaryProps = PropsWithChildren<{\n data?: any;\n fallback?: FC<{ data?: any; error: Error }>;\n}>;\n\n/**\n * Surface error boundary.\n * For basic usage prefer providing a fallback component to `Surface`.\n *\n * Ref: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary\n */\nexport class ErrorBoundary extends Component<ErrorBoundaryProps, State> {\n static getDerivedStateFromError(error: Error): { error: Error } {\n return { error };\n }\n\n override state = { error: undefined };\n\n override componentDidUpdate(prevProps: ErrorBoundaryProps): void {\n if (prevProps.data !== this.props.data) {\n this.resetError();\n }\n }\n\n override render(): ReactNode {\n if (this.state.error) {\n const Fallback = this.props.fallback ?? DefaultFallback;\n return <Fallback data={this.props.data} error={this.state.error} />;\n }\n\n return this.props.children;\n }\n\n private resetError(): void {\n this.setState({ error: undefined });\n }\n}\n\nconst DefaultFallback: NonNullable<ErrorBoundaryProps['fallback']> = ({ data, error }) => {\n return (\n <div className='flex flex-col gap-2 overflow-hidden border border-red-500 rounded-sm'>\n <h1 className='p-2'>ERROR: {error.message}</h1>\n <pre className='p-2 overflow-y-auto text-sm text-subdued'>{JSON.stringify(data, null, 2)}</pre>\n </div>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, {\n Fragment,\n type NamedExoticComponent,\n type RefAttributes,\n Suspense,\n forwardRef,\n memo,\n useMemo,\n} from 'react';\n\nimport { useDefaultValue } from '@dxos/react-hooks';\nimport { byPosition } from '@dxos/util';\n\nimport { Capabilities, type SurfaceDefinition, type SurfaceProps } from '../common';\nimport { type PluginContext } from '../core';\n\nimport { ErrorBoundary } from './ErrorBoundary';\nimport { useCapabilities } from './useCapabilities';\n\nconst DEFAULT_PLACEHOLDER = <Fragment />;\n\n/**\n * A surface is a named region of the screen that can be populated by plugins.\n */\nexport const Surface: NamedExoticComponent<SurfaceProps & RefAttributes<HTMLElement>> = memo(\n forwardRef(\n (\n { id: _id, role, data: dataParam, limit, fallback = DefaultFallback, placeholder = DEFAULT_PLACEHOLDER, ...rest },\n forwardedRef,\n ) => {\n // TODO(wittjosiah): This will make all surfaces depend on a single signal.\n // This isn't ideal because it means that any change to the data will cause all surfaces to re-render.\n // This effectively means that plugin modules which contribute surfaces need to all be activated at startup.\n // This should be fine for now because it's how it worked prior to capabilities api anyway.\n // In the future, it would be nice to be able to bucket the surface contributions by role.\n const surfaces = useSurfaces();\n const data = useDefaultValue(dataParam, () => ({}));\n\n // NOTE: Memoizing the candidates makes the surface not re-render based on reactivity within data.\n const definitions = findCandidates(surfaces, { role, data });\n const candidates = limit ? definitions.slice(0, limit) : definitions;\n const nodes = candidates.map(({ id, component: Component }) => (\n <Component ref={forwardedRef} key={id} id={id} role={role} data={data} limit={limit} {...rest} />\n ));\n\n // TODO(burdon): Able to inject DOM properties into root (e.g., object.id).\n const suspense = <Suspense fallback={placeholder}>{nodes}</Suspense>;\n\n return (\n <ErrorBoundary data={data} fallback={fallback}>\n {suspense}\n </ErrorBoundary>\n );\n },\n ),\n);\n\n// TODO(burdon): Make user facing, with telemetry.\n// TODO(burdon): Change based on dev/prod mode; infer subject type, id.\nconst DefaultFallback = ({ data, error, dev }: { data: any; error: Error; dev?: boolean }) => {\n if (dev) {\n return (\n <div className='flex flex-col gap-4 p-4 is-full overflow-y-auto'>\n <h1 className='flex gap-2 text-sm mbs-2'>{error.message}</h1>\n <pre className='overflow-auto text-xs text-description'>{JSON.stringify(data, null, 2)}</pre>\n </div>\n );\n }\n\n return (\n <div className='flex flex-col gap-4 p-4 is-full overflow-y-auto border border-roseFill'>\n <h1 className='flex gap-2 text-sm mbs-2 text-rose-500'>{error.message}</h1>\n <pre className='overflow-auto text-xs text-description'>{error.stack}</pre>\n <pre className='overflow-auto text-xs text-description'>{JSON.stringify(data, null, 2)}</pre>\n </div>\n );\n};\n\n/**\n * @internal\n */\nexport const useSurfaces = () => {\n const surfaces = useCapabilities(Capabilities.ReactSurface);\n return useMemo(() => surfaces.flat(), [surfaces]);\n};\n\n/**\n * @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.\n */\nexport const isSurfaceAvailable = (context: PluginContext, { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n const surfaces = context.getCapabilities(Capabilities.ReactSurface);\n const candidates = findCandidates(surfaces.flat(), { role, data });\n return candidates.length > 0;\n};\n\nconst findCandidates = (surfaces: SurfaceDefinition[], { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n return Object.values(surfaces)\n .filter((definition) =>\n Array.isArray(definition.role) ? definition.role.includes(role) : definition.role === role,\n )\n .filter(({ filter }) => (filter ? filter(data ?? {}) : true))\n .toSorted(byPosition);\n};\n\nSurface.displayName = 'Surface';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { RegistryContext } from '@effect-atom/atom-react';\nimport { effect } from '@preact/signals-core';\nimport React, { type FC, useCallback, useEffect, useMemo } from 'react';\n\nimport { invariant } from '@dxos/invariant';\nimport { live } from '@dxos/live-object';\nimport { useAsyncEffect, useDefaultValue } from '@dxos/react-hooks';\n\nimport { Capabilities, Events } from '../common';\nimport { type Plugin, PluginManager, type PluginManagerOptions } from '../core';\n\nimport { App } from './App';\nimport { DefaultFallback } from './DefaultFallback';\nimport { ErrorBoundary } from './ErrorBoundary';\nimport { PluginManagerProvider } from './PluginManagerProvider';\n\nconst ENABLED_KEY = 'dxos.org/app-framework/enabled';\n\nexport type UseAppOptions = {\n pluginManager?: PluginManager;\n pluginLoader?: PluginManagerOptions['pluginLoader'];\n plugins?: Plugin[];\n core?: string[];\n defaults?: string[];\n placeholder?: FC<{ stage: number }>;\n fallback?: ErrorBoundary['props']['fallback'];\n cacheEnabled?: boolean;\n safeMode?: boolean;\n debounce?: number;\n};\n\n/**\n * Expected usage is for this to be the entrypoint of the application.\n * Initializes plugins and renders the root components.\n *\n * @example\n * const plugins = [LayoutPlugin(), MyPlugin()];\n * const core = [LayoutPluginId];\n * const default = [MyPluginId];\n * const fallback = <div>Initializing Plugins...</div>;\n * const App = useApp({ plugins, core, default, fallback });\n * createRoot(document.getElementById('root')!).render(\n * <StrictMode>\n * <App />\n * </StrictMode>,\n * );\n *\n * @param params.pluginLoader A function which loads new plugins.\n * @param params.plugins All plugins available to the application.\n * @param params.core Core plugins which will always be enabled.\n * @param params.defaults Default plugins are enabled by default but can be disabled by the user.\n * @param params.placeholder Placeholder component to render during startup.\n * @param params.fallback Fallback component to render if an error occurs during startup.\n * @param params.cacheEnabled Whether to cache enabled plugins in localStorage.\n * @param params.safeMode Whether to enable safe mode, which disables optional plugins.\n */\nexport const useApp = ({\n pluginManager,\n pluginLoader: pluginLoaderParam,\n plugins: pluginsParam,\n core: coreParam,\n defaults: defaultsParam,\n placeholder,\n fallback = DefaultFallback,\n cacheEnabled = false,\n safeMode = false,\n debounce = 0,\n}: UseAppOptions) => {\n const plugins = useDefaultValue(pluginsParam, () => []);\n const core = useDefaultValue(coreParam, () => plugins.map(({ meta }) => meta.id));\n const defaults = useDefaultValue(defaultsParam, () => []);\n\n // TODO(wittjosiah): Provide a custom plugin loader which supports loading via url.\n const pluginLoader = useMemo(\n () =>\n pluginLoaderParam ??\n ((id: string) => {\n const plugin = plugins.find((plugin) => plugin.meta.id === id);\n invariant(plugin, `Plugin not found: ${id}`);\n return plugin;\n }),\n [pluginLoaderParam, plugins],\n );\n\n const state = useMemo(() => live({ ready: false, error: null }), []);\n const cached: string[] = useMemo(() => JSON.parse(localStorage.getItem(ENABLED_KEY) ?? '[]'), []);\n const enabled = useMemo(\n () => (safeMode ? [] : cacheEnabled && cached.length > 0 ? cached : defaults),\n [safeMode, cacheEnabled, cached, defaults],\n );\n const manager = useMemo(\n () => pluginManager ?? new PluginManager({ pluginLoader, plugins, core, enabled }),\n [pluginManager, pluginLoader, plugins, core, enabled],\n );\n\n useEffect(() => {\n return manager.activation.on(({ event, state: _state, error }) => {\n // Once the app is ready the first time, don't show the fallback again.\n if (!state.ready && event === Events.Startup.id) {\n state.ready = _state === 'activated';\n }\n\n if (error && !state.ready && !state.error) {\n state.error = error;\n }\n });\n }, [manager, state]);\n\n useEffect(() => {\n effect(() => {\n cacheEnabled && localStorage.setItem(ENABLED_KEY, JSON.stringify(manager.enabled));\n });\n }, [cacheEnabled, manager]);\n\n useEffect(() => {\n setupDevtools(manager);\n }, [manager]);\n\n useAsyncEffect(async () => {\n manager.context.contributeCapability({\n interface: Capabilities.PluginManager,\n implementation: manager,\n module: 'dxos.org/app-framework/plugin-manager',\n });\n\n manager.context.contributeCapability({\n interface: Capabilities.AtomRegistry,\n implementation: manager.registry,\n module: 'dxos.org/app-framework/atom-registry',\n });\n\n await Promise.all([\n // TODO(wittjosiah): Factor out such that this could be called per surface role when attempting to render.\n manager.activate(Events.SetupReactSurface),\n manager.activate(Events.Startup),\n ]);\n\n return () => {\n manager.context.removeCapability(Capabilities.PluginManager, manager);\n manager.context.removeCapability(Capabilities.AtomRegistry, manager.registry);\n };\n }, [manager]);\n\n return useCallback(\n () => (\n <ErrorBoundary fallback={fallback}>\n <PluginManagerProvider value={manager}>\n <RegistryContext.Provider value={manager.registry}>\n <App placeholder={placeholder} state={state} debounce={debounce} />\n </RegistryContext.Provider>\n </PluginManagerProvider>\n </ErrorBoundary>\n ),\n [fallback, manager, placeholder, state],\n );\n};\n\nconst setupDevtools = (manager: PluginManager) => {\n (globalThis as any).composer ??= {};\n (globalThis as any).composer.manager = manager;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type PropsWithChildren } from 'react';\n\nimport { Capabilities } from '../common';\nimport { topologicalSort } from '../helpers';\n\nimport { type UseAppOptions } from './useApp';\nimport { useCapabilities } from './useCapabilities';\nimport { LoadingState, useLoading } from './useLoading';\n\nexport type AppProps = Pick<UseAppOptions, 'placeholder' | 'debounce'> & {\n state: { ready: boolean; error: unknown };\n};\n\nexport const App = ({ placeholder: Placeholder, state, debounce }: AppProps) => {\n const reactContexts = useCapabilities(Capabilities.ReactContext);\n const reactRoots = useCapabilities(Capabilities.ReactRoot);\n const stage = useLoading(state, debounce);\n\n if (state.error) {\n // This triggers the error boundary to provide UI feedback for the startup error.\n throw state.error;\n }\n\n // TODO(wittjosiah): Consider using Suspense instead.\n if (stage < LoadingState.Done) {\n if (!Placeholder) {\n return null;\n }\n\n return <Placeholder stage={stage} />;\n }\n\n const ComposedContext = composeContexts(reactContexts);\n return (\n <ComposedContext>\n {reactRoots.map(({ id, root: Component }) => (\n <Component key={id} />\n ))}\n </ComposedContext>\n );\n};\n\nconst composeContexts = (contexts: Capabilities.ReactContext[]) => {\n if (contexts.length === 0) {\n return ({ children }: PropsWithChildren) => <>{children}</>;\n }\n\n return topologicalSort(contexts)\n .map(({ context }) => context)\n .reduce((Acc, Next) => ({ children }) => (\n <Acc>\n <Next>{children}</Next>\n </Acc>\n ));\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\ntype DependencyNode = {\n id: string;\n dependsOn?: string[];\n};\n\n/**\n * Topologically sorts a list of nodes based on their dependencies.\n */\n// TODO(wittjosiah): Factor out?\nexport const topologicalSort = <T extends DependencyNode>(nodes: T[]): T[] => {\n const getDependencies = (nodeId: string, seen = new Set<string>(), path = new Set<string>()): string[] => {\n if (path.has(nodeId)) {\n throw new Error(`Circular dependency detected involving ${nodeId}`);\n }\n if (seen.has(nodeId)) {\n return [];\n }\n\n const node = nodes.find((n) => n.id === nodeId);\n if (!node) {\n throw new Error(`Node ${nodeId} not found but is listed as a dependency`);\n }\n\n const newPath = new Set([...path, nodeId]);\n const newSeen = new Set([...seen, nodeId]);\n\n const dependsOn = node.dependsOn ?? [];\n return [...dependsOn.flatMap((depId) => getDependencies(depId, newSeen, newPath)), nodeId];\n };\n\n // Get all unique dependencies.\n const allDependencies = nodes\n .map((node) => node.id)\n .flatMap((id) => getDependencies(id))\n .filter((id, index, self) => self.indexOf(id) === index);\n\n // Map back to original nodes\n return allDependencies\n .map((id) => nodes.find((node) => node.id === id))\n .filter((node): node is T => node !== undefined);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useEffect, useState } from 'react';\n\nimport { type AppProps } from './App';\n\nexport enum LoadingState {\n Loading = 0,\n FadeIn = 1,\n FadeOut = 2,\n Done = 3,\n}\n\n/**\n * To avoid \"flashing\" the placeholder, we wait a period of time before starting the loading animation.\n * If loading completes during this time the placehoder is not shown, otherwise is it displayed for a minimum period of time.\n *\n * States:\n * 0: Loading - Wait for a period of time before starting the loading animation.\n * 1: Fade-in - Display a loading animation.\n * 2: Fade-out - Fade out the loading animation.\n * 3: Done - Remove the placeholder.\n */\nexport const useLoading = (state: AppProps['state'], debounce = 0) => {\n const [stage, setStage] = useState<LoadingState>(LoadingState.Loading);\n useEffect(() => {\n if (!debounce) {\n return;\n }\n\n const i = setInterval(() => {\n setStage((stage) => {\n switch (stage) {\n case LoadingState.Loading: {\n if (!state.ready) {\n return LoadingState.FadeIn;\n } else {\n clearInterval(i);\n return LoadingState.Done;\n }\n }\n\n case LoadingState.FadeIn: {\n if (state.ready) {\n return LoadingState.FadeOut;\n }\n break;\n }\n\n case LoadingState.FadeOut: {\n clearInterval(i);\n return LoadingState.Done;\n }\n }\n\n return stage;\n });\n }, debounce);\n\n return () => clearInterval(i);\n }, [debounce]);\n\n if (!debounce) {\n return state.ready ? LoadingState.Done : LoadingState.Loading;\n }\n\n return stage;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\n/**\n * NOTE: Default fallback should not use tailwind or theme.\n */\nexport const DefaultFallback = ({ error }: { error: Error }) => {\n return (\n <div\n style={{\n margin: '1rem',\n padding: '1rem',\n overflow: 'hidden',\n border: '4px solid teal',\n borderRadius: '1rem',\n }}\n >\n {/* TODO(wittjosiah): Link to docs for replacing default. */}\n <h1 style={{ margin: '0.5rem 0', fontSize: '1.2rem' }}>ERROR: {error.message}</h1>\n <pre style={{ overflow: 'auto', fontSize: '1rem', whiteSpace: 'pre-wrap', color: '#888888' }}>{error.stack}</pre>\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { Capabilities } from '../common';\nimport { type AnyIntentResolver } from '../plugin-intent';\nimport { usePluginManager } from '../react';\n\nexport const useIntentResolver = (module: string, resolver: AnyIntentResolver) => {\n const manager = usePluginManager();\n useEffect(() => {\n manager.context.contributeCapability({\n module,\n interface: Capabilities.IntentResolver,\n implementation: resolver,\n });\n\n return () => manager.context.removeCapability(Capabilities.IntentResolver, resolver);\n }, [module, resolver]);\n};\n"],
5
+ "mappings": ";;;;;;;AAIA,SAASA,o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,SAASqC,aAAAA,kBAAiB;AAMnB,IAAMC,oBAAoB,CAACC,QAAgBC,aAAAA;AAChD,QAAMC,UAAUC,iBAAAA;AAChBC,EAAAA,WAAU,MAAA;AACRF,YAAQG,QAAQC,qBAAqB;MACnCN;MACAO,WAAWC,aAAaC;MACxBC,gBAAgBT;IAClB,CAAA;AAEA,WAAO,MAAMC,QAAQG,QAAQM,iBAAiBH,aAAaC,gBAAgBR,QAAAA;EAC7E,GAAG;IAACD;IAAQC;GAAS;AACvB;",
6
+ "names": ["useAtomValue", "invariant", "createContext", "useContext", "raise", "PluginManagerContext", "createContext", "undefined", "usePluginManager", "useContext", "raise", "Error", "PluginManagerProvider", "Provider", "useCapabilities", "interfaceDef", "manager", "usePluginManager", "useAtomValue", "context", "capabilities", "useCapability", "invariant", "length", "identifier", "useIntentDispatcher", "useCapability", "Capabilities", "IntentDispatcher", "useAppGraph", "AppGraph", "useLayout", "Layout", "Schema", "SurfaceCardRole", "Literal", "React", "Component", "ErrorBoundary", "Component", "getDerivedStateFromError", "error", "state", "undefined", "componentDidUpdate", "prevProps", "data", "props", "resetError", "render", "Fallback", "fallback", "DefaultFallback", "children", "setState", "div", "className", "h1", "message", "pre", "JSON", "stringify", "React", "Fragment", "Suspense", "forwardRef", "memo", "useMemo", "useDefaultValue", "byPosition", "DEFAULT_PLACEHOLDER", "React", "Fragment", "Surface", "memo", "forwardRef", "id", "_id", "role", "data", "dataParam", "limit", "fallback", "DefaultFallback", "placeholder", "rest", "forwardedRef", "surfaces", "useSurfaces", "useDefaultValue", "definitions", "findCandidates", "candidates", "slice", "nodes", "map", "component", "Component", "ref", "key", "suspense", "Suspense", "ErrorBoundary", "error", "dev", "div", "className", "h1", "message", "pre", "JSON", "stringify", "stack", "useCapabilities", "Capabilities", "ReactSurface", "useMemo", "flat", "isSurfaceAvailable", "context", "getCapabilities", "length", "Object", "values", "filter", "definition", "Array", "isArray", "includes", "toSorted", "byPosition", "displayName", "RegistryContext", "effect", "React", "useCallback", "useEffect", "useMemo", "invariant", "live", "useAsyncEffect", "useDefaultValue", "React", "topologicalSort", "nodes", "getDependencies", "nodeId", "seen", "Set", "path", "has", "Error", "node", "find", "n", "id", "newPath", "newSeen", "dependsOn", "flatMap", "depId", "allDependencies", "map", "filter", "index", "self", "indexOf", "undefined", "useEffect", "useState", "LoadingState", "useLoading", "state", "debounce", "stage", "setStage", "useState", "useEffect", "i", "setInterval", "ready", "clearInterval", "App", "placeholder", "Placeholder", "state", "debounce", "reactContexts", "useCapabilities", "Capabilities", "ReactContext", "reactRoots", "ReactRoot", "stage", "useLoading", "error", "LoadingState", "Done", "React", "ComposedContext", "composeContexts", "map", "id", "root", "Component", "key", "contexts", "length", "children", "topologicalSort", "context", "reduce", "Acc", "Next", "React", "DefaultFallback", "error", "React", "div", "style", "margin", "padding", "overflow", "border", "borderRadius", "h1", "fontSize", "message", "pre", "whiteSpace", "color", "stack", "ENABLED_KEY", "useApp", "pluginManager", "pluginLoader", "pluginLoaderParam", "plugins", "pluginsParam", "core", "coreParam", "defaults", "defaultsParam", "placeholder", "fallback", "DefaultFallback", "cacheEnabled", "safeMode", "debounce", "useDefaultValue", "map", "meta", "id", "useMemo", "plugin", "find", "invariant", "state", "live", "ready", "error", "cached", "JSON", "parse", "localStorage", "getItem", "enabled", "length", "manager", "PluginManager", "useEffect", "activation", "on", "event", "_state", "Events", "Startup", "effect", "setItem", "stringify", "setupDevtools", "useAsyncEffect", "context", "contributeCapability", "interface", "Capabilities", "implementation", "module", "AtomRegistry", "registry", "Promise", "all", "activate", "SetupReactSurface", "removeCapability", "useCallback", "React", "ErrorBoundary", "PluginManagerProvider", "value", "RegistryContext", "Provider", "App", "globalThis", "composer", "useEffect", "useIntentResolver", "module", "resolver", "manager", "usePluginManager", "useEffect", "context", "contributeCapability", "interface", "Capabilities", "IntentResolver", "implementation", "removeCapability"]
7
+ }
@@ -1 +1 @@
1
- {"inputs":{"src/core/capabilities.ts":{"bytes":24231,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/core/events.ts":{"bytes":5358,"imports":[],"format":"esm"},"src/core/manager.ts":{"bytes":67292,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Array","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/HashSet","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"}],"format":"esm"},"src/core/plugin.ts":{"bytes":7949,"imports":[],"format":"esm"},"src/core/index.ts":{"bytes":725,"imports":[{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"},{"path":"src/core/manager.ts","kind":"import-statement","original":"./manager"},{"path":"src/core/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"},"src/common/capabilities.ts":{"bytes":13060,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/common/collaboration.ts":{"bytes":2090,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/common/events.ts":{"bytes":5619,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/common/file.ts":{"bytes":2507,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/graph.ts":{"bytes":1389,"imports":[],"format":"esm"},"src/plugin-intent/intent.ts":{"bytes":10044,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/plugin-intent/meta.ts":{"bytes":752,"imports":[],"format":"esm"},"src/plugin-intent/actions.ts":{"bytes":3091,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-intent/errors.ts":{"bytes":3899,"imports":[],"format":"esm"},"src/plugin-intent/intent-dispatcher.ts":{"bytes":33539,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"}],"format":"esm"},"src/plugin-intent/IntentPlugin.ts":{"bytes":2780,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"dynamic-import","original":"./intent-dispatcher"}],"format":"esm"},"src/plugin-intent/index.ts":{"bytes":843,"imports":[{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"import-statement","original":"./intent-dispatcher"},{"path":"src/plugin-intent/IntentPlugin.ts","kind":"import-statement","original":"./IntentPlugin"}],"format":"esm"},"src/common/layout.ts":{"bytes":42464,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"}],"format":"esm"},"src/common/surface.ts":{"bytes":4170,"imports":[],"format":"esm"},"src/common/translations.ts":{"bytes":2223,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/index.ts":{"bytes":1089,"imports":[{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/common/collaboration.ts","kind":"import-statement","original":"./collaboration"},{"path":"src/common/events.ts","kind":"import-statement","original":"./events"},{"path":"src/common/file.ts","kind":"import-statement","original":"./file"},{"path":"src/common/graph.ts","kind":"import-statement","original":"./graph"},{"path":"src/common/layout.ts","kind":"import-statement","original":"./layout"},{"path":"src/common/surface.ts","kind":"import-statement","original":"./surface"},{"path":"src/common/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/plugin-settings/meta.ts":{"bytes":766,"imports":[],"format":"esm"},"src/plugin-settings/actions.ts":{"bytes":2823,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/translations.ts":{"bytes":1416,"imports":[{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/store.ts":{"bytes":4068,"imports":[{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/plugin-settings/intent-resolver.ts":{"bytes":3852,"imports":[{"path":"effect/Function","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"}],"format":"esm"},"src/plugin-settings/app-graph-builder.ts":{"bytes":20918,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/SettingsPlugin.ts":{"bytes":4414,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/plugin-settings/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/plugin-settings/store.ts","kind":"dynamic-import","original":"./store"},{"path":"src/plugin-settings/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/plugin-settings/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"}],"format":"esm"},"src/plugin-settings/index.ts":{"bytes":574,"imports":[{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/SettingsPlugin.ts","kind":"import-statement","original":"./SettingsPlugin"}],"format":"esm"},"src/index.ts":{"bytes":739,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"./plugin-intent"},{"path":"src/plugin-settings/index.ts","kind":"import-statement","original":"./plugin-settings"}],"format":"esm"},"src/react/PluginManagerProvider.ts":{"bytes":2017,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/react/useCapabilities.ts":{"bytes":3288,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"}],"format":"esm"},"src/react/common.ts":{"bytes":1564,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/react/types.ts":{"bytes":1848,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/react/ErrorBoundary.tsx":{"bytes":5566,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/Surface.tsx":{"bytes":14332,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/helpers.ts":{"bytes":4985,"imports":[],"format":"esm"},"src/react/useLoading.tsx":{"bytes":5797,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/App.tsx":{"bytes":6032,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"},{"path":"src/react/useLoading.tsx","kind":"import-statement","original":"./useLoading"}],"format":"esm"},"src/react/DefaultFallback.tsx":{"bytes":3015,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/useApp.tsx":{"bytes":18814,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/react/App.tsx","kind":"import-statement","original":"./App"},{"path":"src/react/DefaultFallback.tsx","kind":"import-statement","original":"./DefaultFallback"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"}],"format":"esm"},"src/react/useIntentResolver.ts":{"bytes":2465,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"}],"format":"esm"},"src/react/index.ts":{"bytes":1153,"imports":[{"path":"src/react/common.ts","kind":"import-statement","original":"./common"},{"path":"src/react/types.ts","kind":"import-statement","original":"./types"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"},{"path":"src/react/Surface.tsx","kind":"import-statement","original":"./Surface"},{"path":"src/react/useApp.tsx","kind":"import-statement","original":"./useApp"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"},{"path":"src/react/useIntentResolver.ts","kind":"import-statement","original":"./useIntentResolver"}],"format":"esm"},"src/testing/withPluginManager.tsx":{"bytes":10935,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"}],"format":"esm"},"src/testing/index.ts":{"bytes":486,"imports":[{"path":"src/testing/withPluginManager.tsx","kind":"import-statement","original":"./withPluginManager"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2683},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SCPE4ZO2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"dist/lib/browser/store-CNPHOYTJ.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/intent-resolver-QVCKRX6G.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/app-graph-builder-OIEZZC45.mjs","kind":"dynamic-import"}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","SETTINGS_ID","SETTINGS_KEY","SettingsAction","SettingsPlugin","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","isAllOf","isOneOf","lazy","oneOf"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/plugin-settings/index.ts":{"bytesInOutput":0},"src/plugin-settings/translations.ts":{"bytesInOutput":212},"src/plugin-settings/SettingsPlugin.ts":{"bytesInOutput":851}},"bytes":2477},"dist/lib/browser/react/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/react/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-VFUKEZIN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"}],"exports":["ErrorBoundary","PluginManagerProvider","Surface","SurfaceCardRole","isSurfaceAvailable","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"entryPoint":"src/react/index.ts","inputs":{},"bytes":612},"dist/lib/browser/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5675},"dist/lib/browser/testing/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-VFUKEZIN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["setupPluginManager","withPluginManager"],"entryPoint":"src/testing/index.ts","inputs":{"src/testing/withPluginManager.tsx":{"bytesInOutput":2138},"src/testing/index.ts":{"bytesInOutput":0}},"bytes":2445},"dist/lib/browser/chunk-VFUKEZIN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33932},"dist/lib/browser/chunk-VFUKEZIN.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["ErrorBoundary","PluginManagerProvider","Surface","SurfaceCardRole","isSurfaceAvailable","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"inputs":{"src/react/useCapabilities.ts":{"bytesInOutput":722},"src/react/PluginManagerProvider.ts":{"bytesInOutput":312},"src/react/common.ts":{"bytesInOutput":198},"src/react/index.ts":{"bytesInOutput":0},"src/react/types.ts":{"bytesInOutput":164},"src/react/ErrorBoundary.tsx":{"bytesInOutput":1269},"src/react/Surface.tsx":{"bytesInOutput":3127},"src/react/useApp.tsx":{"bytesInOutput":3902},"src/react/App.tsx":{"bytesInOutput":1315},"src/helpers.ts":{"bytesInOutput":1049},"src/react/useLoading.tsx":{"bytesInOutput":1181},"src/react/DefaultFallback.tsx":{"bytesInOutput":812},"src/react/useIntentResolver.ts":{"bytesInOutput":429}},"bytes":15286},"dist/lib/browser/intent-dispatcher-LZ4AE66E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/intent-dispatcher-LZ4AE66E.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"}],"exports":["createDispatcher","createResolver","default"],"entryPoint":"src/plugin-intent/intent-dispatcher.ts","inputs":{},"bytes":251},"dist/lib/browser/store-CNPHOYTJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2193},"dist/lib/browser/store-CNPHOYTJ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"@dxos/local-storage","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/store.ts","inputs":{"src/plugin-settings/store.ts":{"bytesInOutput":815}},"bytes":1001},"dist/lib/browser/intent-resolver-QVCKRX6G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1848},"dist/lib/browser/intent-resolver-QVCKRX6G.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SCPE4ZO2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"effect/Function","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/intent-resolver.ts","inputs":{"src/plugin-settings/intent-resolver.ts":{"bytesInOutput":602}},"bytes":965},"dist/lib/browser/app-graph-builder-OIEZZC45.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9832},"dist/lib/browser/app-graph-builder-OIEZZC45.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SCPE4ZO2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/app-graph-builder.ts","inputs":{"src/plugin-settings/app-graph-builder.ts":{"bytesInOutput":4322}},"bytes":4656},"dist/lib/browser/chunk-SCPE4ZO2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1645},"dist/lib/browser/chunk-SCPE4ZO2.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["SETTINGS_ID","SETTINGS_KEY","SettingsAction","meta"],"inputs":{"src/plugin-settings/meta.ts":{"bytesInOutput":69},"src/plugin-settings/actions.ts":{"bytesInOutput":622}},"bytes":870},"dist/lib/browser/chunk-WPW5VVAX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":115507},"dist/lib/browser/chunk-WPW5VVAX.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Array","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/HashSet","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"dist/lib/browser/intent-dispatcher-LZ4AE66E.mjs","kind":"dynamic-import"},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","intent_dispatcher_default","isAllOf","isOneOf","lazy","oneOf"],"inputs":{"src/plugin-intent/intent-dispatcher.ts":{"bytesInOutput":6366},"src/core/capabilities.ts":{"bytesInOutput":5523},"src/core/index.ts":{"bytesInOutput":0},"src/core/events.ts":{"bytesInOutput":512},"src/core/manager.ts":{"bytesInOutput":17369},"src/core/plugin.ts":{"bytesInOutput":710},"src/common/capabilities.ts":{"bytesInOutput":2364},"src/common/index.ts":{"bytesInOutput":0},"src/common/collaboration.ts":{"bytesInOutput":511},"src/common/events.ts":{"bytesInOutput":1232},"src/common/file.ts":{"bytesInOutput":406},"src/common/layout.ts":{"bytesInOutput":12318},"src/plugin-intent/actions.ts":{"bytesInOutput":606},"src/plugin-intent/intent.ts":{"bytesInOutput":910},"src/plugin-intent/meta.ts":{"bytesInOutput":65},"src/plugin-intent/index.ts":{"bytesInOutput":0},"src/plugin-intent/errors.ts":{"bytesInOutput":684},"src/plugin-intent/IntentPlugin.ts":{"bytesInOutput":577},"src/common/surface.ts":{"bytesInOutput":48},"src/common/translations.ts":{"bytesInOutput":329}},"bytes":51757}}}
1
+ {"inputs":{"src/core/capabilities.ts":{"bytes":24231,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/core/events.ts":{"bytes":5358,"imports":[],"format":"esm"},"src/core/manager.ts":{"bytes":67292,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Array","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/HashSet","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"}],"format":"esm"},"src/core/plugin.ts":{"bytes":7949,"imports":[],"format":"esm"},"src/core/index.ts":{"bytes":725,"imports":[{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"},{"path":"src/core/manager.ts","kind":"import-statement","original":"./manager"},{"path":"src/core/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"},"src/common/capabilities.ts":{"bytes":13060,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/common/collaboration.ts":{"bytes":2090,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true}],"format":"esm"},"src/common/events.ts":{"bytes":5619,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/common/file.ts":{"bytes":2507,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/graph.ts":{"bytes":1389,"imports":[],"format":"esm"},"src/plugin-intent/intent.ts":{"bytes":10044,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/plugin-intent/meta.ts":{"bytes":752,"imports":[],"format":"esm"},"src/plugin-intent/actions.ts":{"bytes":3091,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-intent/errors.ts":{"bytes":3899,"imports":[],"format":"esm"},"src/plugin-intent/intent-dispatcher.ts":{"bytes":33539,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"}],"format":"esm"},"src/plugin-intent/IntentPlugin.ts":{"bytes":2780,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"dynamic-import","original":"./intent-dispatcher"}],"format":"esm"},"src/plugin-intent/index.ts":{"bytes":843,"imports":[{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"import-statement","original":"./intent-dispatcher"},{"path":"src/plugin-intent/IntentPlugin.ts","kind":"import-statement","original":"./IntentPlugin"}],"format":"esm"},"src/common/layout.ts":{"bytes":42464,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"}],"format":"esm"},"src/common/surface.ts":{"bytes":4170,"imports":[],"format":"esm"},"src/common/translations.ts":{"bytes":2223,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/index.ts":{"bytes":1089,"imports":[{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/common/collaboration.ts","kind":"import-statement","original":"./collaboration"},{"path":"src/common/events.ts","kind":"import-statement","original":"./events"},{"path":"src/common/file.ts","kind":"import-statement","original":"./file"},{"path":"src/common/graph.ts","kind":"import-statement","original":"./graph"},{"path":"src/common/layout.ts","kind":"import-statement","original":"./layout"},{"path":"src/common/surface.ts","kind":"import-statement","original":"./surface"},{"path":"src/common/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/plugin-settings/meta.ts":{"bytes":766,"imports":[],"format":"esm"},"src/plugin-settings/actions.ts":{"bytes":2823,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/translations.ts":{"bytes":1416,"imports":[{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/store.ts":{"bytes":4068,"imports":[{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/plugin-settings/intent-resolver.ts":{"bytes":3852,"imports":[{"path":"effect/Function","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"}],"format":"esm"},"src/plugin-settings/app-graph-builder.ts":{"bytes":20918,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/SettingsPlugin.ts":{"bytes":4414,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/plugin-settings/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/plugin-settings/store.ts","kind":"dynamic-import","original":"./store"},{"path":"src/plugin-settings/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/plugin-settings/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"}],"format":"esm"},"src/plugin-settings/index.ts":{"bytes":574,"imports":[{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/SettingsPlugin.ts","kind":"import-statement","original":"./SettingsPlugin"}],"format":"esm"},"src/index.ts":{"bytes":739,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"./plugin-intent"},{"path":"src/plugin-settings/index.ts","kind":"import-statement","original":"./plugin-settings"}],"format":"esm"},"src/react/PluginManagerProvider.ts":{"bytes":2017,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/react/useCapabilities.ts":{"bytes":3288,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"}],"format":"esm"},"src/react/common.ts":{"bytes":1564,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/react/types.ts":{"bytes":1876,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/react/ErrorBoundary.tsx":{"bytes":5566,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/Surface.tsx":{"bytes":14332,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/helpers.ts":{"bytes":4985,"imports":[],"format":"esm"},"src/react/useLoading.tsx":{"bytes":5797,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/App.tsx":{"bytes":6032,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"},{"path":"src/react/useLoading.tsx","kind":"import-statement","original":"./useLoading"}],"format":"esm"},"src/react/DefaultFallback.tsx":{"bytes":3015,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/useApp.tsx":{"bytes":18814,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/react/App.tsx","kind":"import-statement","original":"./App"},{"path":"src/react/DefaultFallback.tsx","kind":"import-statement","original":"./DefaultFallback"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"}],"format":"esm"},"src/react/useIntentResolver.ts":{"bytes":2465,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"}],"format":"esm"},"src/react/index.ts":{"bytes":1153,"imports":[{"path":"src/react/common.ts","kind":"import-statement","original":"./common"},{"path":"src/react/types.ts","kind":"import-statement","original":"./types"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"},{"path":"src/react/Surface.tsx","kind":"import-statement","original":"./Surface"},{"path":"src/react/useApp.tsx","kind":"import-statement","original":"./useApp"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"},{"path":"src/react/useIntentResolver.ts","kind":"import-statement","original":"./useIntentResolver"}],"format":"esm"},"src/testing/withPluginManager.tsx":{"bytes":10935,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"}],"format":"esm"},"src/testing/index.ts":{"bytes":486,"imports":[{"path":"src/testing/withPluginManager.tsx","kind":"import-statement","original":"./withPluginManager"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2683},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SCPE4ZO2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"dist/lib/browser/store-CNPHOYTJ.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/intent-resolver-QVCKRX6G.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/app-graph-builder-OIEZZC45.mjs","kind":"dynamic-import"}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","SETTINGS_ID","SETTINGS_KEY","SettingsAction","SettingsPlugin","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","isAllOf","isOneOf","lazy","oneOf"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/plugin-settings/index.ts":{"bytesInOutput":0},"src/plugin-settings/translations.ts":{"bytesInOutput":212},"src/plugin-settings/SettingsPlugin.ts":{"bytesInOutput":851}},"bytes":2477},"dist/lib/browser/react/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/react/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6XKO24JP.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"}],"exports":["ErrorBoundary","PluginManagerProvider","Surface","SurfaceCardRole","isSurfaceAvailable","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"entryPoint":"src/react/index.ts","inputs":{},"bytes":612},"dist/lib/browser/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5675},"dist/lib/browser/testing/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-6XKO24JP.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["setupPluginManager","withPluginManager"],"entryPoint":"src/testing/index.ts","inputs":{"src/testing/withPluginManager.tsx":{"bytesInOutput":2138},"src/testing/index.ts":{"bytesInOutput":0}},"bytes":2445},"dist/lib/browser/chunk-6XKO24JP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":33951},"dist/lib/browser/chunk-6XKO24JP.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["ErrorBoundary","PluginManagerProvider","Surface","SurfaceCardRole","isSurfaceAvailable","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"inputs":{"src/react/useCapabilities.ts":{"bytesInOutput":722},"src/react/PluginManagerProvider.ts":{"bytesInOutput":312},"src/react/common.ts":{"bytesInOutput":198},"src/react/index.ts":{"bytesInOutput":0},"src/react/types.ts":{"bytesInOutput":164},"src/react/ErrorBoundary.tsx":{"bytesInOutput":1269},"src/react/Surface.tsx":{"bytesInOutput":3127},"src/react/useApp.tsx":{"bytesInOutput":3902},"src/react/App.tsx":{"bytesInOutput":1315},"src/helpers.ts":{"bytesInOutput":1049},"src/react/useLoading.tsx":{"bytesInOutput":1181},"src/react/DefaultFallback.tsx":{"bytesInOutput":812},"src/react/useIntentResolver.ts":{"bytesInOutput":429}},"bytes":15286},"dist/lib/browser/intent-dispatcher-LZ4AE66E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/intent-dispatcher-LZ4AE66E.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"}],"exports":["createDispatcher","createResolver","default"],"entryPoint":"src/plugin-intent/intent-dispatcher.ts","inputs":{},"bytes":251},"dist/lib/browser/store-CNPHOYTJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2193},"dist/lib/browser/store-CNPHOYTJ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"@dxos/local-storage","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/store.ts","inputs":{"src/plugin-settings/store.ts":{"bytesInOutput":815}},"bytes":1001},"dist/lib/browser/intent-resolver-QVCKRX6G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1848},"dist/lib/browser/intent-resolver-QVCKRX6G.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SCPE4ZO2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"effect/Function","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/intent-resolver.ts","inputs":{"src/plugin-settings/intent-resolver.ts":{"bytesInOutput":602}},"bytes":965},"dist/lib/browser/app-graph-builder-OIEZZC45.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9832},"dist/lib/browser/app-graph-builder-OIEZZC45.mjs":{"imports":[{"path":"dist/lib/browser/chunk-SCPE4ZO2.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-WPW5VVAX.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/app-graph-builder.ts","inputs":{"src/plugin-settings/app-graph-builder.ts":{"bytesInOutput":4322}},"bytes":4656},"dist/lib/browser/chunk-SCPE4ZO2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1645},"dist/lib/browser/chunk-SCPE4ZO2.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["SETTINGS_ID","SETTINGS_KEY","SettingsAction","meta"],"inputs":{"src/plugin-settings/meta.ts":{"bytesInOutput":69},"src/plugin-settings/actions.ts":{"bytesInOutput":622}},"bytes":870},"dist/lib/browser/chunk-WPW5VVAX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":115507},"dist/lib/browser/chunk-WPW5VVAX.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Array","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/HashSet","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"dist/lib/browser/intent-dispatcher-LZ4AE66E.mjs","kind":"dynamic-import"},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","intent_dispatcher_default","isAllOf","isOneOf","lazy","oneOf"],"inputs":{"src/plugin-intent/intent-dispatcher.ts":{"bytesInOutput":6366},"src/core/capabilities.ts":{"bytesInOutput":5523},"src/core/index.ts":{"bytesInOutput":0},"src/core/events.ts":{"bytesInOutput":512},"src/core/manager.ts":{"bytesInOutput":17369},"src/core/plugin.ts":{"bytesInOutput":710},"src/common/capabilities.ts":{"bytesInOutput":2364},"src/common/index.ts":{"bytesInOutput":0},"src/common/collaboration.ts":{"bytesInOutput":511},"src/common/events.ts":{"bytesInOutput":1232},"src/common/file.ts":{"bytesInOutput":406},"src/common/layout.ts":{"bytesInOutput":12318},"src/plugin-intent/actions.ts":{"bytesInOutput":606},"src/plugin-intent/intent.ts":{"bytesInOutput":910},"src/plugin-intent/meta.ts":{"bytesInOutput":65},"src/plugin-intent/index.ts":{"bytesInOutput":0},"src/plugin-intent/errors.ts":{"bytesInOutput":684},"src/plugin-intent/IntentPlugin.ts":{"bytesInOutput":577},"src/common/surface.ts":{"bytesInOutput":48},"src/common/translations.ts":{"bytesInOutput":329}},"bytes":51757}}}
@@ -13,7 +13,7 @@ import {
13
13
  useLayout,
14
14
  usePluginManager,
15
15
  useSurfaces
16
- } from "../chunk-VFUKEZIN.mjs";
16
+ } from "../chunk-6XKO24JP.mjs";
17
17
  import "../chunk-WPW5VVAX.mjs";
18
18
  export {
19
19
  ErrorBoundary,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useApp
3
- } from "../chunk-VFUKEZIN.mjs";
3
+ } from "../chunk-6XKO24JP.mjs";
4
4
  import {
5
5
  Capabilities,
6
6
  Events,
@@ -481,4 +481,4 @@ export {
481
481
  useApp,
482
482
  useIntentResolver
483
483
  };
484
- //# sourceMappingURL=chunk-IJOHO66N.mjs.map
484
+ //# sourceMappingURL=chunk-3UPX5OIS.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/react/useCapabilities.ts", "../../../src/react/PluginManagerProvider.ts", "../../../src/react/common.ts", "../../../src/react/types.ts", "../../../src/react/ErrorBoundary.tsx", "../../../src/react/Surface.tsx", "../../../src/react/useApp.tsx", "../../../src/react/App.tsx", "../../../src/helpers.ts", "../../../src/react/useLoading.tsx", "../../../src/react/DefaultFallback.tsx", "../../../src/react/useIntentResolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { useAtomValue } from '@effect-atom/atom-react';\n\nimport { invariant } from '@dxos/invariant';\n\nimport { type InterfaceDef } from '../core';\n\nimport { usePluginManager } from './PluginManagerProvider';\n\n/**\n * Hook to request capabilities from the plugin context.\n * @returns An array of capabilities.\n */\nexport const useCapabilities = <T>(interfaceDef: InterfaceDef<T>) => {\n const manager = usePluginManager();\n return useAtomValue(manager.context.capabilities(interfaceDef));\n};\n\n/**\n * Hook to request a capability from the plugin context.\n * @returns The capability.\n * @throws If no capability is found.\n */\nexport const useCapability = <T>(interfaceDef: InterfaceDef<T>) => {\n const capabilities = useCapabilities(interfaceDef);\n invariant(capabilities.length > 0, `No capability found for ${interfaceDef.identifier}`);\n return capabilities[0];\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { createContext, useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { type PluginManager } from '../core';\n\nconst PluginManagerContext = createContext<PluginManager | undefined>(undefined);\n\n/**\n * Get the plugin manager.\n */\nexport const usePluginManager = (): PluginManager =>\n useContext(PluginManagerContext) ?? raise(new Error('Missing PluginManagerContext'));\n\n/**\n * Context provider for a plugin manager.\n */\nexport const PluginManagerProvider = PluginManagerContext.Provider;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities } from '../common';\n\nimport { useCapability } from './useCapabilities';\n\nexport const useIntentDispatcher = () => useCapability(Capabilities.IntentDispatcher);\n\nexport const useAppGraph = () => useCapability(Capabilities.AppGraph);\n\nexport const useLayout = () => useCapability(Capabilities.Layout);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { type Obj } from '@dxos/echo';\n\nexport const SurfaceCardRole = Schema.Literal(\n 'card',\n 'card--popover',\n 'card--intrinsic',\n 'card--extrinsic',\n 'card--transclusion',\n);\n\nexport type SurfaceCardRole = Schema.Schema.Type<typeof SurfaceCardRole>;\n\n// TODO(burdon): Define all roles.\nexport type SurfaceRole =\n | 'item'\n | 'article'\n | 'complementary' // (for companion?)\n | 'section'\n | SurfaceCardRole;\n\n/**\n * Base type for surface components.\n */\n// TODO(burdon): Standardize PluginSettings and ObjectProperties.\n// TODO(burdon): Include attendableId?\n// TODO(burdon): companionTo?\nexport type SurfaceComponentProps<Subject extends Obj.Any = Obj.Any, Role extends string = string> = {\n role?: Role;\n\n /** The primary object being displayed. */\n subject: Subject;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { Component, type FC, type PropsWithChildren, type ReactNode } from 'react';\n\ntype State = {\n error: Error | undefined;\n};\n\nexport type ErrorBoundaryProps = PropsWithChildren<{\n data?: any;\n fallback?: FC<{ data?: any; error: Error }>;\n}>;\n\n/**\n * Surface error boundary.\n * For basic usage prefer providing a fallback component to `Surface`.\n *\n * Ref: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary\n */\nexport class ErrorBoundary extends Component<ErrorBoundaryProps, State> {\n static getDerivedStateFromError(error: Error): { error: Error } {\n return { error };\n }\n\n override state = { error: undefined };\n\n override componentDidUpdate(prevProps: ErrorBoundaryProps): void {\n if (prevProps.data !== this.props.data) {\n this.resetError();\n }\n }\n\n override render(): ReactNode {\n if (this.state.error) {\n const Fallback = this.props.fallback ?? DefaultFallback;\n return <Fallback data={this.props.data} error={this.state.error} />;\n }\n\n return this.props.children;\n }\n\n private resetError(): void {\n this.setState({ error: undefined });\n }\n}\n\nconst DefaultFallback: NonNullable<ErrorBoundaryProps['fallback']> = ({ data, error }) => {\n return (\n <div className='flex flex-col gap-2 overflow-hidden border border-red-500 rounded-sm'>\n <h1 className='p-2'>ERROR: {error.message}</h1>\n <pre className='p-2 overflow-y-auto text-sm text-subdued'>{JSON.stringify(data, null, 2)}</pre>\n </div>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, {\n Fragment,\n type NamedExoticComponent,\n type RefAttributes,\n Suspense,\n forwardRef,\n memo,\n useMemo,\n} from 'react';\n\nimport { useDefaultValue } from '@dxos/react-hooks';\nimport { byPosition } from '@dxos/util';\n\nimport { Capabilities, type SurfaceDefinition, type SurfaceProps } from '../common';\nimport { type PluginContext } from '../core';\n\nimport { ErrorBoundary } from './ErrorBoundary';\nimport { useCapabilities } from './useCapabilities';\n\nconst DEFAULT_PLACEHOLDER = <Fragment />;\n\n/**\n * A surface is a named region of the screen that can be populated by plugins.\n */\nexport const Surface: NamedExoticComponent<SurfaceProps & RefAttributes<HTMLElement>> = memo(\n forwardRef(\n (\n { id: _id, role, data: dataParam, limit, fallback = DefaultFallback, placeholder = DEFAULT_PLACEHOLDER, ...rest },\n forwardedRef,\n ) => {\n // TODO(wittjosiah): This will make all surfaces depend on a single signal.\n // This isn't ideal because it means that any change to the data will cause all surfaces to re-render.\n // This effectively means that plugin modules which contribute surfaces need to all be activated at startup.\n // This should be fine for now because it's how it worked prior to capabilities api anyway.\n // In the future, it would be nice to be able to bucket the surface contributions by role.\n const surfaces = useSurfaces();\n const data = useDefaultValue(dataParam, () => ({}));\n\n // NOTE: Memoizing the candidates makes the surface not re-render based on reactivity within data.\n const definitions = findCandidates(surfaces, { role, data });\n const candidates = limit ? definitions.slice(0, limit) : definitions;\n const nodes = candidates.map(({ id, component: Component }) => (\n <Component ref={forwardedRef} key={id} id={id} role={role} data={data} limit={limit} {...rest} />\n ));\n\n // TODO(burdon): Able to inject DOM properties into root (e.g., object.id).\n const suspense = <Suspense fallback={placeholder}>{nodes}</Suspense>;\n\n return (\n <ErrorBoundary data={data} fallback={fallback}>\n {suspense}\n </ErrorBoundary>\n );\n },\n ),\n);\n\n// TODO(burdon): Make user facing, with telemetry.\n// TODO(burdon): Change based on dev/prod mode; infer subject type, id.\nconst DefaultFallback = ({ data, error, dev }: { data: any; error: Error; dev?: boolean }) => {\n if (dev) {\n return (\n <div className='flex flex-col gap-4 p-4 is-full overflow-y-auto'>\n <h1 className='flex gap-2 text-sm mbs-2'>{error.message}</h1>\n <pre className='overflow-auto text-xs text-description'>{JSON.stringify(data, null, 2)}</pre>\n </div>\n );\n }\n\n return (\n <div className='flex flex-col gap-4 p-4 is-full overflow-y-auto border border-roseFill'>\n <h1 className='flex gap-2 text-sm mbs-2 text-rose-500'>{error.message}</h1>\n <pre className='overflow-auto text-xs text-description'>{error.stack}</pre>\n <pre className='overflow-auto text-xs text-description'>{JSON.stringify(data, null, 2)}</pre>\n </div>\n );\n};\n\n/**\n * @internal\n */\nexport const useSurfaces = () => {\n const surfaces = useCapabilities(Capabilities.ReactSurface);\n return useMemo(() => surfaces.flat(), [surfaces]);\n};\n\n/**\n * @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.\n */\nexport const isSurfaceAvailable = (context: PluginContext, { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n const surfaces = context.getCapabilities(Capabilities.ReactSurface);\n const candidates = findCandidates(surfaces.flat(), { role, data });\n return candidates.length > 0;\n};\n\nconst findCandidates = (surfaces: SurfaceDefinition[], { role, data }: Pick<SurfaceProps, 'role' | 'data'>) => {\n return Object.values(surfaces)\n .filter((definition) =>\n Array.isArray(definition.role) ? definition.role.includes(role) : definition.role === role,\n )\n .filter(({ filter }) => (filter ? filter(data ?? {}) : true))\n .toSorted(byPosition);\n};\n\nSurface.displayName = 'Surface';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { RegistryContext } from '@effect-atom/atom-react';\nimport { effect } from '@preact/signals-core';\nimport React, { type FC, useCallback, useEffect, useMemo } from 'react';\n\nimport { invariant } from '@dxos/invariant';\nimport { live } from '@dxos/live-object';\nimport { useAsyncEffect, useDefaultValue } from '@dxos/react-hooks';\n\nimport { Capabilities, Events } from '../common';\nimport { type Plugin, PluginManager, type PluginManagerOptions } from '../core';\n\nimport { App } from './App';\nimport { DefaultFallback } from './DefaultFallback';\nimport { ErrorBoundary } from './ErrorBoundary';\nimport { PluginManagerProvider } from './PluginManagerProvider';\n\nconst ENABLED_KEY = 'dxos.org/app-framework/enabled';\n\nexport type UseAppOptions = {\n pluginManager?: PluginManager;\n pluginLoader?: PluginManagerOptions['pluginLoader'];\n plugins?: Plugin[];\n core?: string[];\n defaults?: string[];\n placeholder?: FC<{ stage: number }>;\n fallback?: ErrorBoundary['props']['fallback'];\n cacheEnabled?: boolean;\n safeMode?: boolean;\n debounce?: number;\n};\n\n/**\n * Expected usage is for this to be the entrypoint of the application.\n * Initializes plugins and renders the root components.\n *\n * @example\n * const plugins = [LayoutPlugin(), MyPlugin()];\n * const core = [LayoutPluginId];\n * const default = [MyPluginId];\n * const fallback = <div>Initializing Plugins...</div>;\n * const App = useApp({ plugins, core, default, fallback });\n * createRoot(document.getElementById('root')!).render(\n * <StrictMode>\n * <App />\n * </StrictMode>,\n * );\n *\n * @param params.pluginLoader A function which loads new plugins.\n * @param params.plugins All plugins available to the application.\n * @param params.core Core plugins which will always be enabled.\n * @param params.defaults Default plugins are enabled by default but can be disabled by the user.\n * @param params.placeholder Placeholder component to render during startup.\n * @param params.fallback Fallback component to render if an error occurs during startup.\n * @param params.cacheEnabled Whether to cache enabled plugins in localStorage.\n * @param params.safeMode Whether to enable safe mode, which disables optional plugins.\n */\nexport const useApp = ({\n pluginManager,\n pluginLoader: pluginLoaderParam,\n plugins: pluginsParam,\n core: coreParam,\n defaults: defaultsParam,\n placeholder,\n fallback = DefaultFallback,\n cacheEnabled = false,\n safeMode = false,\n debounce = 0,\n}: UseAppOptions) => {\n const plugins = useDefaultValue(pluginsParam, () => []);\n const core = useDefaultValue(coreParam, () => plugins.map(({ meta }) => meta.id));\n const defaults = useDefaultValue(defaultsParam, () => []);\n\n // TODO(wittjosiah): Provide a custom plugin loader which supports loading via url.\n const pluginLoader = useMemo(\n () =>\n pluginLoaderParam ??\n ((id: string) => {\n const plugin = plugins.find((plugin) => plugin.meta.id === id);\n invariant(plugin, `Plugin not found: ${id}`);\n return plugin;\n }),\n [pluginLoaderParam, plugins],\n );\n\n const state = useMemo(() => live({ ready: false, error: null }), []);\n const cached: string[] = useMemo(() => JSON.parse(localStorage.getItem(ENABLED_KEY) ?? '[]'), []);\n const enabled = useMemo(\n () => (safeMode ? [] : cacheEnabled && cached.length > 0 ? cached : defaults),\n [safeMode, cacheEnabled, cached, defaults],\n );\n const manager = useMemo(\n () => pluginManager ?? new PluginManager({ pluginLoader, plugins, core, enabled }),\n [pluginManager, pluginLoader, plugins, core, enabled],\n );\n\n useEffect(() => {\n return manager.activation.on(({ event, state: _state, error }) => {\n // Once the app is ready the first time, don't show the fallback again.\n if (!state.ready && event === Events.Startup.id) {\n state.ready = _state === 'activated';\n }\n\n if (error && !state.ready && !state.error) {\n state.error = error;\n }\n });\n }, [manager, state]);\n\n useEffect(() => {\n effect(() => {\n cacheEnabled && localStorage.setItem(ENABLED_KEY, JSON.stringify(manager.enabled));\n });\n }, [cacheEnabled, manager]);\n\n useEffect(() => {\n setupDevtools(manager);\n }, [manager]);\n\n useAsyncEffect(async () => {\n manager.context.contributeCapability({\n interface: Capabilities.PluginManager,\n implementation: manager,\n module: 'dxos.org/app-framework/plugin-manager',\n });\n\n manager.context.contributeCapability({\n interface: Capabilities.AtomRegistry,\n implementation: manager.registry,\n module: 'dxos.org/app-framework/atom-registry',\n });\n\n await Promise.all([\n // TODO(wittjosiah): Factor out such that this could be called per surface role when attempting to render.\n manager.activate(Events.SetupReactSurface),\n manager.activate(Events.Startup),\n ]);\n\n return () => {\n manager.context.removeCapability(Capabilities.PluginManager, manager);\n manager.context.removeCapability(Capabilities.AtomRegistry, manager.registry);\n };\n }, [manager]);\n\n return useCallback(\n () => (\n <ErrorBoundary fallback={fallback}>\n <PluginManagerProvider value={manager}>\n <RegistryContext.Provider value={manager.registry}>\n <App placeholder={placeholder} state={state} debounce={debounce} />\n </RegistryContext.Provider>\n </PluginManagerProvider>\n </ErrorBoundary>\n ),\n [fallback, manager, placeholder, state],\n );\n};\n\nconst setupDevtools = (manager: PluginManager) => {\n (globalThis as any).composer ??= {};\n (globalThis as any).composer.manager = manager;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type PropsWithChildren } from 'react';\n\nimport { Capabilities } from '../common';\nimport { topologicalSort } from '../helpers';\n\nimport { type UseAppOptions } from './useApp';\nimport { useCapabilities } from './useCapabilities';\nimport { LoadingState, useLoading } from './useLoading';\n\nexport type AppProps = Pick<UseAppOptions, 'placeholder' | 'debounce'> & {\n state: { ready: boolean; error: unknown };\n};\n\nexport const App = ({ placeholder: Placeholder, state, debounce }: AppProps) => {\n const reactContexts = useCapabilities(Capabilities.ReactContext);\n const reactRoots = useCapabilities(Capabilities.ReactRoot);\n const stage = useLoading(state, debounce);\n\n if (state.error) {\n // This triggers the error boundary to provide UI feedback for the startup error.\n throw state.error;\n }\n\n // TODO(wittjosiah): Consider using Suspense instead.\n if (stage < LoadingState.Done) {\n if (!Placeholder) {\n return null;\n }\n\n return <Placeholder stage={stage} />;\n }\n\n const ComposedContext = composeContexts(reactContexts);\n return (\n <ComposedContext>\n {reactRoots.map(({ id, root: Component }) => (\n <Component key={id} />\n ))}\n </ComposedContext>\n );\n};\n\nconst composeContexts = (contexts: Capabilities.ReactContext[]) => {\n if (contexts.length === 0) {\n return ({ children }: PropsWithChildren) => <>{children}</>;\n }\n\n return topologicalSort(contexts)\n .map(({ context }) => context)\n .reduce((Acc, Next) => ({ children }) => (\n <Acc>\n <Next>{children}</Next>\n </Acc>\n ));\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\ntype DependencyNode = {\n id: string;\n dependsOn?: string[];\n};\n\n/**\n * Topologically sorts a list of nodes based on their dependencies.\n */\n// TODO(wittjosiah): Factor out?\nexport const topologicalSort = <T extends DependencyNode>(nodes: T[]): T[] => {\n const getDependencies = (nodeId: string, seen = new Set<string>(), path = new Set<string>()): string[] => {\n if (path.has(nodeId)) {\n throw new Error(`Circular dependency detected involving ${nodeId}`);\n }\n if (seen.has(nodeId)) {\n return [];\n }\n\n const node = nodes.find((n) => n.id === nodeId);\n if (!node) {\n throw new Error(`Node ${nodeId} not found but is listed as a dependency`);\n }\n\n const newPath = new Set([...path, nodeId]);\n const newSeen = new Set([...seen, nodeId]);\n\n const dependsOn = node.dependsOn ?? [];\n return [...dependsOn.flatMap((depId) => getDependencies(depId, newSeen, newPath)), nodeId];\n };\n\n // Get all unique dependencies.\n const allDependencies = nodes\n .map((node) => node.id)\n .flatMap((id) => getDependencies(id))\n .filter((id, index, self) => self.indexOf(id) === index);\n\n // Map back to original nodes\n return allDependencies\n .map((id) => nodes.find((node) => node.id === id))\n .filter((node): node is T => node !== undefined);\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useEffect, useState } from 'react';\n\nimport { type AppProps } from './App';\n\nexport enum LoadingState {\n Loading = 0,\n FadeIn = 1,\n FadeOut = 2,\n Done = 3,\n}\n\n/**\n * To avoid \"flashing\" the placeholder, we wait a period of time before starting the loading animation.\n * If loading completes during this time the placehoder is not shown, otherwise is it displayed for a minimum period of time.\n *\n * States:\n * 0: Loading - Wait for a period of time before starting the loading animation.\n * 1: Fade-in - Display a loading animation.\n * 2: Fade-out - Fade out the loading animation.\n * 3: Done - Remove the placeholder.\n */\nexport const useLoading = (state: AppProps['state'], debounce = 0) => {\n const [stage, setStage] = useState<LoadingState>(LoadingState.Loading);\n useEffect(() => {\n if (!debounce) {\n return;\n }\n\n const i = setInterval(() => {\n setStage((stage) => {\n switch (stage) {\n case LoadingState.Loading: {\n if (!state.ready) {\n return LoadingState.FadeIn;\n } else {\n clearInterval(i);\n return LoadingState.Done;\n }\n }\n\n case LoadingState.FadeIn: {\n if (state.ready) {\n return LoadingState.FadeOut;\n }\n break;\n }\n\n case LoadingState.FadeOut: {\n clearInterval(i);\n return LoadingState.Done;\n }\n }\n\n return stage;\n });\n }, debounce);\n\n return () => clearInterval(i);\n }, [debounce]);\n\n if (!debounce) {\n return state.ready ? LoadingState.Done : LoadingState.Loading;\n }\n\n return stage;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\n/**\n * NOTE: Default fallback should not use tailwind or theme.\n */\nexport const DefaultFallback = ({ error }: { error: Error }) => {\n return (\n <div\n style={{\n margin: '1rem',\n padding: '1rem',\n overflow: 'hidden',\n border: '4px solid teal',\n borderRadius: '1rem',\n }}\n >\n {/* TODO(wittjosiah): Link to docs for replacing default. */}\n <h1 style={{ margin: '0.5rem 0', fontSize: '1.2rem' }}>ERROR: {error.message}</h1>\n <pre style={{ overflow: 'auto', fontSize: '1rem', whiteSpace: 'pre-wrap', color: '#888888' }}>{error.stack}</pre>\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { Capabilities } from '../common';\nimport { type AnyIntentResolver } from '../plugin-intent';\nimport { usePluginManager } from '../react';\n\nexport const useIntentResolver = (module: string, resolver: AnyIntentResolver) => {\n const manager = usePluginManager();\n useEffect(() => {\n manager.context.contributeCapability({\n module,\n interface: Capabilities.IntentResolver,\n implementation: resolver,\n });\n\n return () => manager.context.removeCapability(Capabilities.IntentResolver, resolver);\n }, [module, resolver]);\n};\n"],
5
+ "mappings": ";;;;;;;;AAIA,SAASA,oBAAoB;AAE7B,SAASC,iBAAiB;;;ACF1B,SAASC,eAAeC,kBAAkB;AAE1C,SAASC,aAAa;AAItB,IAAMC,uBAAuBC,cA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EAAAA,WAAU,MAAA;AACRF,YAAQG,QAAQC,qBAAqB;MACnCN;MACAO,WAAWC,aAAaC;MACxBC,gBAAgBT;IAClB,CAAA;AAEA,WAAO,MAAMC,QAAQG,QAAQM,iBAAiBH,aAAaC,gBAAgBR,QAAAA;EAC7E,GAAG;IAACD;IAAQC;GAAS;AACvB;",
6
+ "names": ["useAtomValue", "invariant", "createContext", "useContext", "raise", "PluginManagerContext", "createContext", "undefined", "usePluginManager", "useContext", "raise", "Error", "PluginManagerProvider", "Provider", "useCapabilities", "interfaceDef", "manager", "usePluginManager", "useAtomValue", "context", "capabilities", "useCapability", "invariant", "length", "identifier", "useIntentDispatcher", "useCapability", "Capabilities", "IntentDispatcher", "useAppGraph", "AppGraph", "useLayout", "Layout", "Schema", "SurfaceCardRole", "Literal", "React", "Component", "ErrorBoundary", "Component", "getDerivedStateFromError", "error", "state", "undefined", "componentDidUpdate", "prevProps", "data", "props", "resetError", "render", "Fallback", "fallback", "DefaultFallback", "children", "setState", "div", "className", "h1", "message", "pre", "JSON", "stringify", "React", "Fragment", "Suspense", "forwardRef", "memo", "useMemo", "useDefaultValue", "byPosition", "DEFAULT_PLACEHOLDER", "React", "Fragment", "Surface", "memo", "forwardRef", "id", "_id", "role", "data", "dataParam", "limit", "fallback", "DefaultFallback", "placeholder", "rest", "forwardedRef", "surfaces", "useSurfaces", "useDefaultValue", "definitions", "findCandidates", "candidates", "slice", "nodes", "map", "component", "Component", "ref", "key", "suspense", "Suspense", "ErrorBoundary", "error", "dev", "div", "className", "h1", "message", "pre", "JSON", "stringify", "stack", "useCapabilities", "Capabilities", "ReactSurface", "useMemo", "flat", "isSurfaceAvailable", "context", "getCapabilities", "length", "Object", "values", "filter", "definition", "Array", "isArray", "includes", "toSorted", "byPosition", "displayName", "RegistryContext", "effect", "React", "useCallback", "useEffect", "useMemo", "invariant", "live", "useAsyncEffect", "useDefaultValue", "React", "topologicalSort", "nodes", "getDependencies", "nodeId", "seen", "Set", "path", "has", "Error", "node", "find", "n", "id", "newPath", "newSeen", "dependsOn", "flatMap", "depId", "allDependencies", "map", "filter", "index", "self", "indexOf", "undefined", "useEffect", "useState", "LoadingState", "useLoading", "state", "debounce", "stage", "setStage", "useState", "useEffect", "i", "setInterval", "ready", "clearInterval", "App", "placeholder", "Placeholder", "state", "debounce", "reactContexts", "useCapabilities", "Capabilities", "ReactContext", "reactRoots", "ReactRoot", "stage", "useLoading", "error", "LoadingState", "Done", "React", "ComposedContext", "composeContexts", "map", "id", "root", "Component", "key", "contexts", "length", "children", "topologicalSort", "context", "reduce", "Acc", "Next", "React", "DefaultFallback", "error", "React", "div", "style", "margin", "padding", "overflow", "border", "borderRadius", "h1", "fontSize", "message", "pre", "whiteSpace", "color", "stack", "ENABLED_KEY", "useApp", "pluginManager", "pluginLoader", "pluginLoaderParam", "plugins", "pluginsParam", "core", "coreParam", "defaults", "defaultsParam", "placeholder", "fallback", "DefaultFallback", "cacheEnabled", "safeMode", "debounce", "useDefaultValue", "map", "meta", "id", "useMemo", "plugin", "find", "invariant", "state", "live", "ready", "error", "cached", "JSON", "parse", "localStorage", "getItem", "enabled", "length", "manager", "PluginManager", "useEffect", "activation", "on", "event", "_state", "Events", "Startup", "effect", "setItem", "stringify", "setupDevtools", "useAsyncEffect", "context", "contributeCapability", "interface", "Capabilities", "implementation", "module", "AtomRegistry", "registry", "Promise", "all", "activate", "SetupReactSurface", "removeCapability", "useCallback", "React", "ErrorBoundary", "PluginManagerProvider", "value", "RegistryContext", "Provider", "App", "globalThis", "composer", "useEffect", "useIntentResolver", "module", "resolver", "manager", "usePluginManager", "useEffect", "context", "contributeCapability", "interface", "Capabilities", "IntentResolver", "implementation", "removeCapability"]
7
+ }