@dxos/plugin-navtree 0.7.5-main.ff8607b → 0.7.5-staging.2ff1350
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-EO6JEADO.mjs → chunk-7OKF4GP3.mjs} +116 -73
- package/dist/lib/browser/chunk-7OKF4GP3.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +3 -3
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-6ZP5XUTS.mjs → react-surface-SIEGT4YS.mjs} +2 -2
- package/dist/lib/browser/{state-65TQKYX7.mjs → state-IEFQTUPG.mjs} +2 -2
- package/dist/lib/browser/state-IEFQTUPG.mjs.map +7 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/components/CommandsDialog.d.ts +1 -2
- package/dist/types/src/components/CommandsDialog.d.ts.map +1 -1
- package/dist/types/src/components/CommandsTrigger.d.ts +1 -2
- package/dist/types/src/components/CommandsTrigger.d.ts.map +1 -1
- package/dist/types/src/components/HaloButton.d.ts +1 -2
- package/dist/types/src/components/HaloButton.d.ts.map +1 -1
- package/dist/types/src/components/HaloButton.stories.d.ts +1 -2
- package/dist/types/src/components/HaloButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/L0Menu.d.ts +1 -2
- package/dist/types/src/components/L0Menu.d.ts.map +1 -1
- package/dist/types/src/components/L1Panels.d.ts +8 -3
- package/dist/types/src/components/L1Panels.d.ts.map +1 -1
- package/dist/types/src/components/NavTree.d.ts +1 -2
- package/dist/types/src/components/NavTree.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeContainer.d.ts +1 -1
- package/dist/types/src/components/NavTreeContainer.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeItemAction.d.ts +4 -4
- package/dist/types/src/components/NavTreeItemAction.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeItemAction.stories.d.ts +1 -1
- package/dist/types/src/components/NavTreeItemColumns.d.ts +1 -1
- package/dist/types/src/components/NavTreeItemColumns.d.ts.map +1 -1
- package/dist/types/src/components/NotchStart.d.ts +1 -2
- package/dist/types/src/components/NotchStart.d.ts.map +1 -1
- package/dist/types/src/components/types.d.ts +2 -1
- package/dist/types/src/components/types.d.ts.map +1 -1
- package/dist/types/src/experimental/Tree.d.ts +8 -8
- package/dist/types/src/experimental/Tree.d.ts.map +1 -1
- package/dist/types/src/experimental/Tree.stories.d.ts +2 -3
- package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/stories/StorybookNavTree.d.ts +1 -2
- package/dist/types/src/stories/StorybookNavTree.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +1 -1
- package/package.json +31 -31
- package/src/NavTreePlugin.tsx +2 -2
- package/src/capabilities/state.ts +1 -1
- package/src/components/L0Menu.tsx +83 -53
- package/src/components/L1Panels.tsx +25 -6
- package/src/components/NavTree.stories.tsx +1 -1
- package/src/components/NavTree.tsx +3 -3
- package/src/components/NavTreeContainer.tsx +9 -2
- package/src/components/types.ts +12 -10
- package/src/hooks.ts +1 -1
- package/src/stories/Graph.stories.tsx +1 -1
- package/src/util.ts +2 -2
- package/dist/lib/browser/chunk-EO6JEADO.mjs.map +0 -7
- package/dist/lib/browser/state-65TQKYX7.mjs.map +0 -7
- /package/dist/lib/browser/{react-surface-6ZP5XUTS.mjs.map → react-surface-SIEGT4YS.mjs.map} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/CommandsDialog.tsx", "../../../src/components/CommandsTrigger.tsx", "../../../src/components/NotchStart.tsx", "../../../src/components/HaloButton.tsx", "../../../src/util.ts", "../../../src/components/NavTreeContainer.tsx", "../../../src/components/NavTree.tsx", "../../../src/components/L0Menu.tsx", "../../../src/components/NavTreeContext.tsx", "../../../src/hooks.ts", "../../../src/components/NavTreeDocumentTitle.tsx", "../../../src/components/L1Panels.tsx", "../../../src/components/NavTreeItemColumns.tsx", "../../../src/components/NavTreeItemAction.tsx", "../../../src/capabilities/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useMemo, useState } from 'react';\n\nimport { createIntent, LayoutAction, useAppGraph, useIntentDispatcher } from '@dxos/app-framework';\nimport { type ActionLike, isActionGroup, isAction } from '@dxos/app-graph';\nimport { Keyboard, keySymbols } from '@dxos/keyboard';\nimport { Button, Dialog, Icon, useTranslation, toLocalizedString } from '@dxos/react-ui';\nimport { SearchList } from '@dxos/react-ui-searchlist';\nimport { descriptionText, mx } from '@dxos/react-ui-theme';\nimport { getHostPlatform } from '@dxos/util';\n\nimport { KEY_BINDING, NAVTREE_PLUGIN } from '../meta';\n\n// TODO(wittjosiah): This probably deserves its own plugin but for now it lives here w/ other navigation UI.\nexport const CommandsDialogContent = ({ selected: initial }: { selected?: string }) => {\n const { t } = useTranslation(NAVTREE_PLUGIN);\n const [selected, setSelected] = useState<string | undefined>(initial);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const { graph } = useAppGraph();\n\n // Traverse graph.\n // TODO(burdon): Factor out commonality with shortcut dialog.\n const allActions = useMemo(() => {\n // TODO(burdon): Get from navtree (not keyboard).\n const current = Keyboard.singleton.getCurrentContext();\n const actionMap = new Set<string>();\n const actions: ActionLike[] = [];\n graph?.traverse({\n visitor: (node, path) => {\n if (\n (isAction(node) || isActionGroup(node)) &&\n !actionMap.has(node.id) &&\n current.startsWith(path.slice(0, -1).join('/'))\n ) {\n actionMap.add(node.id);\n actions.push(node);\n }\n },\n });\n\n actions.sort((a, b) => {\n return toLocalizedString(a.properties.label, t)\n ?.toLowerCase()\n .localeCompare(toLocalizedString(b.properties.label, t)?.toLowerCase());\n });\n\n // console.log(JSON.stringify(actions, undefined, 2));\n return actions;\n }, [graph]);\n\n const group = allActions.find(({ id }) => id === selected);\n const actions = isActionGroup(group) ? graph.actions(group) : allActions;\n\n return (\n <Dialog.Content classNames={['md:max-is-[30rem] overflow-hidden mbs-12']}>\n <Dialog.Title>{t('commands dialog title', { ns: NAVTREE_PLUGIN })}</Dialog.Title>\n\n {/* TODO(burdon): BUG: Overscrolls container. */}\n <SearchList.Root label={t('command list input placeholder')} classNames='flex flex-col grow overflow-hidden my-2'>\n <SearchList.Input placeholder={t('command list input placeholder')} classNames='px-1 my-2' />\n <SearchList.Content classNames='max-bs-[24rem] overflow-auto'>\n {actions?.map((action) => {\n const label = toLocalizedString(action.properties.label, t);\n const shortcut =\n typeof action.properties.keyBinding === 'string'\n ? action.properties.keyBinding\n : action.properties.keyBinding?.[getHostPlatform()];\n return (\n <SearchList.Item\n value={label}\n key={action.id}\n onSelect={() => {\n if (action.properties.disabled) {\n return;\n }\n\n if (isActionGroup(action)) {\n setSelected(action.id);\n return;\n }\n\n void dispatch(createIntent(LayoutAction.UpdateDialog, { part: 'dialog', options: { state: false } }));\n setTimeout(() => {\n const node = graph.nodes(group ?? action, { relation: 'inbound' })[0];\n void (node && isAction(action) && action.data({ node, caller: KEY_BINDING }));\n });\n }}\n classNames='flex items-center gap-2'\n disabled={action.properties.disabled}\n {...(action.properties?.testId && { 'data-testid': action.properties.testId })}\n >\n <Icon icon={action.properties.icon} size={4} />\n <span className='grow truncate'>{label}</span>\n {shortcut && <span className={mx('shrink-0', descriptionText)}>{keySymbols(shortcut).join('')}</span>}\n </SearchList.Item>\n );\n })}\n </SearchList.Content>\n </SearchList.Root>\n\n <Dialog.Close asChild>\n <Button variant='primary' classNames='mbs-2'>\n {t('close label', { ns: 'os' })}\n </Button>\n </Dialog.Close>\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { MagnifyingGlass } from '@phosphor-icons/react';\nimport React from 'react';\n\nimport { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { Button, useTranslation } from '@dxos/react-ui';\nimport { getSize } from '@dxos/react-ui-theme';\n\nimport { COMMANDS_DIALOG, NAVTREE_PLUGIN } from '../meta';\n\n// TODO(thure): Refactor to be handled by a more appropriate plugin.\nexport const CommandsTrigger = () => {\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const { t } = useTranslation(NAVTREE_PLUGIN);\n return (\n <Button\n classNames='m-1 pli-1 lg:pli-2'\n onClick={() =>\n dispatch(\n createIntent(LayoutAction.UpdateDialog, {\n part: 'dialog',\n subject: COMMANDS_DIALOG,\n options: {\n blockAlign: 'start',\n },\n }),\n )\n }\n >\n <span className='text-description font-normal grow text-start'>{t('command list input placeholder')}</span>\n <MagnifyingGlass className={getSize(5)} />\n </Button>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { createIntent, useCapabilities, useIntentDispatcher } from '@dxos/app-framework';\nimport { ClientAction } from '@dxos/plugin-client/types';\nimport { ObservabilityCapabilities } from '@dxos/plugin-observability';\nimport { useIdentity } from '@dxos/react-client/halo';\n\nimport { HaloButton } from './HaloButton';\n\n// TODO(thure): Refactor to be handled by a more appropriate plugin (ClientPlugin?).\nexport const NotchStart = () => {\n const identity = useIdentity();\n // TODO(wittjosiah): Can this be removed now?\n const [observability] = useCapabilities(ObservabilityCapabilities.Observability);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n return (\n <HaloButton\n size={12}\n identityKey={identity?.identityKey.toHex()}\n hue={identity?.profile?.data?.hue}\n emoji={identity?.profile?.data?.emoji}\n internal={observability?.group === 'dxos'}\n onClick={() => dispatch(createIntent(ClientAction.ShareIdentity))}\n />\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { ConnectionState, useNetworkStatus } from '@dxos/react-client/mesh';\nimport { Avatar, type Size } from '@dxos/react-ui';\nimport { focusRing, mx } from '@dxos/react-ui-theme';\nimport { hexToFallback } from '@dxos/util';\n\nconst INTERNAL = 'https://avatars.githubusercontent.com/u/57182821';\n\nexport type HaloButtonProps = {\n size?: Size;\n identityKey?: string;\n hue?: string;\n emoji?: string;\n internal?: boolean;\n onClick?: () => void;\n};\n\nexport const HaloButton = (props: HaloButtonProps) => {\n const { onClick, identityKey, internal, size = 8 } = props;\n const fallbackValue = hexToFallback(identityKey ?? '0');\n const { swarm: connectionState } = useNetworkStatus();\n return (\n <button className={mx(focusRing, 'rounded grid place-items-center')} onClick={onClick}>\n <Avatar.Root\n size={size}\n variant='circle'\n status={connectionState === ConnectionState.OFFLINE ? 'error' : internal ? 'internal' : 'active'}\n hue={props.hue || fallbackValue.hue}\n >\n <Avatar.Frame data-testid='treeView.haloButton' data-joyride='welcome/halo'>\n {internal ? <Avatar.Image href={INTERNAL} /> : <Avatar.Fallback text={props.emoji || fallbackValue.emoji} />}\n </Avatar.Frame>\n </Avatar.Root>\n </button>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport {\n type Action,\n type Node,\n type NodeFilter,\n type Graph,\n ACTION_TYPE,\n ACTION_GROUP_TYPE,\n isAction,\n isActionLike,\n} from '@dxos/app-graph';\nimport { isNonNullable } from '@dxos/util';\n\nimport { type FlattenedActions, type NavTreeItemGraphNode } from './types';\n\nexport const getParent = (\n graph: Graph,\n node: NavTreeItemGraphNode,\n path: string[],\n): NavTreeItemGraphNode | undefined => {\n const parentId = path[path.length - 2];\n return graph.nodes(node, { relation: 'inbound' }).find((n) => n.id === parentId) as NavTreeItemGraphNode | undefined;\n};\n\nexport const getPersistenceParent = (\n graph: Graph,\n node: NavTreeItemGraphNode,\n path: string[],\n persistenceClass: string,\n): NavTreeItemGraphNode | null => {\n if (node.properties.acceptPersistenceClass?.has(persistenceClass)) {\n return node;\n } else {\n const parent = getParent(graph, node, path);\n return parent ? getPersistenceParent(graph, parent, path.slice(0, path.length - 1), persistenceClass) : null;\n }\n};\n\nexport const resolveMigrationOperation = (\n graph: Graph,\n activeNode: NavTreeItemGraphNode,\n destinationPath: string[],\n destinationRelatedNode?: NavTreeItemGraphNode,\n): 'transfer' | 'copy' | 'reject' => {\n const activeClass = activeNode.properties.persistenceClass;\n if (destinationRelatedNode && activeClass) {\n const persistenceParent = getPersistenceParent(graph, destinationRelatedNode, destinationPath, activeClass);\n if (persistenceParent) {\n const activeKey = activeNode.properties.persistenceKey;\n if (activeKey && persistenceParent?.properties.acceptPersistenceKey) {\n return persistenceParent.properties.acceptPersistenceKey.has(activeKey) &&\n persistenceParent.properties.onTransferStart\n ? 'transfer'\n : persistenceParent.properties.onCopy\n ? 'copy'\n : 'reject';\n } else {\n return 'reject';\n }\n } else {\n return 'reject';\n }\n } else {\n return 'reject';\n }\n};\n\n// TODO(wittjosiah): Move into node implementation?\nexport const sortActions = (actions: Action[]): Action[] =>\n actions.sort((a, b) => {\n if (a.properties.disposition === b.properties.disposition) {\n return 0;\n }\n\n if (a.properties.disposition === 'toolbar') {\n return -1;\n }\n\n return 1;\n });\n\nexport const getChildren = (\n graph: Graph,\n node: NavTreeItemGraphNode,\n filter?: NodeFilter,\n path: readonly string[] = [],\n): NavTreeItemGraphNode[] => {\n return graph\n .nodes(node, { relation: 'outbound', filter })\n .map((n) => {\n // Break cycles.\n const nextPath = [...path, node.id];\n return nextPath.includes(n.id) ? undefined : (n as NavTreeItemGraphNode);\n })\n .filter(isNonNullable) as NavTreeItemGraphNode[];\n};\n\nexport const getActions = (graph: Graph, node: Node): FlattenedActions => {\n return graph.actions(node).reduce(\n (acc: FlattenedActions, arg) => {\n if (arg.properties.disposition === 'item') {\n return acc;\n }\n\n acc.actions.push(arg);\n if (!isAction(arg)) {\n const actionGroup = graph.actions(arg);\n acc.groupedActions[arg.id] = actionGroup;\n }\n return acc;\n },\n { actions: [], groupedActions: {} },\n );\n};\n\nexport const expandChildrenAndActions = (graph: Graph, node: Node) => {\n return Promise.all([expandChildren(graph, node), expandActions(graph, node)]);\n};\n\nexport const expandChildren = (graph: Graph, node: Node) => {\n return graph.expand(node, 'outbound');\n};\n\nexport const expandActions = (graph: Graph, node: Node) => {\n return Promise.all([graph.expand(node, 'outbound', ACTION_TYPE), graph.expand(node, 'outbound', ACTION_GROUP_TYPE)]);\n};\n\nexport const l0ItemType = (item: Node<any>) => {\n if (item.properties.disposition === 'collection') {\n return 'collection';\n } else if (isActionLike(item)) {\n return 'action';\n } else if (item.properties.disposition === 'navigation') {\n return 'link';\n } else {\n return 'tab';\n }\n};\n\n// Regular expression to match renderable characters\n// Excludes control characters, combining marks, and other non-renderable characters\nconst renderableCharRegex =\n /^(?![\\p{Control}\\p{Mark}\\p{Separator}\\p{Surrogate}\\p{Unassigned}])[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Emoji}]$/u;\n\n/**\n * Returns the first two renderable characters from a string that are separated by non-word characters.\n * Handles Unicode characters correctly.\n *\n * @param {string} label - The input string to process\n * @returns {[string, string]} Array containing the two characters, or empty strings if not found\n */\nexport const getFirstTwoRenderableChars = (label: string) => {\n // Convert string to array of Unicode characters\n const characters = Array.from(label);\n\n // Keep track of found renderable characters\n const result = ['', ''];\n let foundFirst = false;\n\n for (let i = 0; i < characters.length; i++) {\n const char = characters[i];\n\n if (renderableCharRegex.test(char)) {\n if (!foundFirst) {\n result[0] = char;\n foundFirst = true;\n } else {\n // Check if there's at least one non-word character between the first and current char\n const textBetween = characters.slice(result[0].length, i).join('');\n if (/[^\\p{L}\\p{N}_]/u.test(textBetween)) {\n result[1] = char;\n break;\n }\n }\n }\n }\n\n return result;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';\nimport { extractInstruction, type Instruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item';\nimport { untracked } from '@preact/signals-core';\nimport React, { memo, useCallback, useEffect, useMemo } from 'react';\n\nimport {\n createIntent,\n LayoutAction,\n Surface,\n useAppGraph,\n useCapability,\n useIntentDispatcher,\n useLayout,\n} from '@dxos/app-framework';\nimport { isAction, isActionLike, type Node } from '@dxos/app-graph';\nimport { isEchoObject, isSpace } from '@dxos/react-client/echo';\nimport { useMediaQuery } from '@dxos/react-ui';\nimport { isTreeData, type TreeData, type PropsFromTreeItem } from '@dxos/react-ui-list';\nimport { mx } from '@dxos/react-ui-theme';\nimport { arrayMove } from '@dxos/util';\n\nimport { NAV_TREE_ITEM, NavTree } from './NavTree';\nimport { NavTreeContext } from './NavTreeContext';\nimport { type NavTreeContextValue } from './types';\nimport { NavTreeCapabilities } from '../capabilities';\nimport { type NavTreeItemGraphNode } from '../types';\nimport {\n expandActions,\n expandChildren,\n getActions as naturalGetActions,\n getChildren,\n getParent,\n resolveMigrationOperation,\n expandChildrenAndActions,\n} from '../util';\n\n// TODO(thure): Is NavTree truly authoritative in this regard?\nexport const NODE_TYPE = 'dxos/app-graph/node';\n\nconst renderItemEnd = ({ node, open }: { node: Node; open: boolean }) => (\n <Surface role='navtree-item-end' data={{ id: node.id, subject: node.data, open }} limit={1} />\n);\n\nexport type NavTreeContainerProps = {\n popoverAnchorId?: string;\n topbar?: boolean;\n} & Pick<NavTreeContextValue, 'tab'>;\n\nexport const NavTreeContainer = memo(({ tab, popoverAnchorId, topbar }: NavTreeContainerProps) => {\n const [isLg] = useMediaQuery('lg', { ssr: false });\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const { graph } = useAppGraph();\n const layout = useLayout();\n const { isOpen, isCurrent, setItem } = useCapability(NavTreeCapabilities.State);\n\n const getActions = useCallback((node: Node) => naturalGetActions(graph, node), [graph]);\n\n const getItems = useCallback(\n (node?: Node, disposition?: string) => {\n return graph.nodes(node ?? graph.root, {\n filter: (node): node is Node => {\n return untracked(() => {\n const action = isAction(node);\n if (!disposition) {\n return !action || node.properties.disposition === 'item';\n }\n\n return node.properties.disposition === disposition;\n });\n },\n });\n },\n [graph],\n );\n\n const getProps = useCallback(\n (node: Node, path: string[]): PropsFromTreeItem => {\n const children = getChildren(graph, node, undefined, path);\n const parentOf =\n children.length > 0 ? children.map(({ id }) => id) : node.properties.role === 'branch' ? [] : undefined;\n return {\n id: node.id,\n label: node.properties.label ?? node.id,\n parentOf,\n icon: node.properties.icon,\n disabled: node.properties.disabled,\n className: mx(node.properties.modified && 'italic', node.properties.className),\n headingClassName: node.properties.headingClassName,\n testId: node.properties.testId,\n };\n },\n [graph],\n );\n\n const loadDescendents = useCallback(\n (node: Node) => {\n void expandActions(graph, node);\n if (!isActionLike(node)) {\n void expandChildren(graph, node).then(() =>\n // Load one level deeper, which resolves some juddering observed on open/close.\n Promise.all(\n getChildren(graph, node).flatMap((child) => [expandActions(graph, child), expandChildren(graph, child)]),\n ),\n );\n }\n },\n [graph],\n );\n\n const onOpenChange = useCallback(\n ({ item: { id }, path, open }: { item: Node; path: string[]; open: boolean }) => {\n // TODO(thure): This might become a localstorage leak; openItemIds that no longer exist should be removed from this map.\n setItem(path, 'open', open);\n\n if (graph) {\n const node = graph.findNode(id);\n return node && expandChildrenAndActions(graph, node as NavTreeItemGraphNode);\n }\n },\n [graph],\n );\n\n const onTabChange = useCallback(\n async (node: NavTreeItemGraphNode) => {\n await dispatch(createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: node.id }));\n // Open the first item if the workspace is empty.\n if (layout.active.length === 0) {\n const [item] = getItems(node).filter((node) => !isActionLike(node));\n if (item && item.data) {\n await dispatch(createIntent(LayoutAction.Open, { part: 'main', subject: [item.id] }));\n }\n }\n },\n [dispatch, layout],\n );\n\n const canDrop = useCallback((source: TreeData, target: TreeData) => {\n const sourceNode = source.item as Node;\n const targetNode = target.item as Node;\n if (isSpace(targetNode.data)) {\n // TODO(wittjosiah): Find a way to only allow space as source for rearranging.\n return isEchoObject(sourceNode.data) || isSpace(sourceNode.data);\n } else if (isEchoObject(targetNode.data)) {\n return isEchoObject(sourceNode.data);\n } else {\n return false;\n }\n }, []);\n\n const handleSelect = useCallback(\n ({ item: node, path, option }: { item: Node; path: string[]; option: boolean }) => {\n if (!node.data) {\n return;\n }\n\n if (isAction(node)) {\n const [parent] = graph.nodes(node, { relation: 'inbound' });\n void (parent && node.data({ node: parent, caller: NAV_TREE_ITEM }));\n return;\n }\n\n const current = isCurrent(path, node);\n if (!current) {\n void dispatch(\n createIntent(LayoutAction.Open, {\n part: 'main',\n subject: [node.id],\n options: { key: node.properties.key },\n }),\n );\n } else if (option) {\n void dispatch(\n createIntent(LayoutAction.Close, { part: 'main', subject: [node.id], options: { state: false } }),\n );\n } else {\n void dispatch(createIntent(LayoutAction.ScrollIntoView, { part: 'current', subject: node.id }));\n }\n\n const defaultAction = graph.actions(node).find((action) => action.properties?.disposition === 'default');\n if (isAction(defaultAction)) {\n void (defaultAction.data as () => void)();\n }\n\n if (!isLg) {\n void dispatch(createIntent(LayoutAction.UpdateSidebar, { part: 'sidebar', options: { state: 'closed' } }));\n }\n },\n [graph, dispatch, isCurrent, isLg],\n );\n\n const onBack = useCallback(\n () => dispatch(createIntent(LayoutAction.RevertWorkspace, { part: 'workspace', options: { revert: true } })),\n [dispatch],\n );\n\n // TODO(wittjosiah): Factor out hook.\n useEffect(() => {\n return monitorForElements({\n canMonitor: ({ source }) => isTreeData(source.data),\n onDrop: ({ location, source }) => {\n // Didn't drop on anything.\n if (!location.current.dropTargets.length) {\n return;\n }\n const target = location.current.dropTargets[0];\n const instruction: Instruction | null = extractInstruction(target.data);\n if (instruction !== null && instruction.type !== 'instruction-blocked') {\n const sourceNode = source.data.item as NavTreeItemGraphNode;\n const targetNode = target.data.item as NavTreeItemGraphNode;\n const sourcePath = source.data.path as string[];\n const targetPath = target.data.path as string[];\n const operation =\n sourcePath.slice(0, -1).join() === targetPath.slice(0, -1).join() && instruction.type !== 'make-child'\n ? 'rearrange'\n : resolveMigrationOperation(graph, sourceNode, targetPath, targetNode);\n const sourceParent = getParent(graph, sourceNode, sourcePath);\n const targetParent = getParent(graph, targetNode, targetPath);\n const sourceItems = getItems(sourceParent);\n const targetItems = getItems(targetParent);\n const sourceIndex = sourceItems.findIndex(({ id }) => id === sourceNode.id);\n const targetIndex = targetItems.findIndex(({ id }) => id === targetNode.id);\n const migrationIndex =\n instruction.type === 'make-child'\n ? undefined\n : instruction.type === 'reorder-below'\n ? targetIndex + 1\n : targetIndex;\n switch (operation) {\n case 'rearrange': {\n const nextItems = sourceItems.map(({ data }) => data);\n arrayMove(nextItems, sourceIndex, targetIndex);\n void sourceParent?.properties.onRearrangeChildren?.(nextItems);\n break;\n }\n case 'copy': {\n const target = instruction.type === 'make-child' ? targetNode : targetParent;\n void target?.properties.onCopy?.(sourceNode, migrationIndex);\n break;\n }\n case 'transfer': {\n const target = instruction.type === 'make-child' ? targetNode : targetParent;\n if (!target?.properties.onTransferStart || !sourceParent?.properties.onTransferEnd) {\n break;\n }\n void target?.properties.onTransferStart(sourceNode, migrationIndex);\n void sourceParent?.properties.onTransferEnd?.(sourceNode, target);\n break;\n }\n }\n }\n },\n });\n }, [graph]);\n\n const navTreeContextValue = useMemo(\n () => ({\n tab,\n onTabChange,\n onBack,\n getActions,\n loadDescendents,\n renderItemEnd,\n popoverAnchorId,\n topbar,\n getItems,\n getProps,\n isCurrent,\n isOpen,\n onOpenChange,\n canDrop,\n onSelect: handleSelect,\n }),\n [\n tab,\n onTabChange,\n onBack,\n getActions,\n loadDescendents,\n renderItemEnd,\n popoverAnchorId,\n topbar,\n getItems,\n getProps,\n isCurrent,\n isOpen,\n onOpenChange,\n canDrop,\n handleSelect,\n ],\n );\n\n return (\n <NavTreeContext.Provider value={navTreeContextValue}>\n <NavTree root={graph.root} id={graph.root.id} />\n </NavTreeContext.Provider>\n );\n});\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useMemo } from 'react';\n\nimport { Tabs } from '@dxos/react-ui-tabs';\nimport { byPosition } from '@dxos/util';\n\nimport { L0Menu } from './L0Menu';\nimport { L1Panels } from './L1Panels';\nimport { useNavTreeContext } from './NavTreeContext';\nimport { type NavTreeProps } from './types';\nimport { useLoadDescendents } from '../hooks';\n\nexport const NAV_TREE_ITEM = 'NavTreeItem';\n\nexport const NavTree = ({ id, root }: NavTreeProps) => {\n const { tab, getItems, onBack } = useNavTreeContext();\n const topLevelActions = getItems(root, 'item').toSorted((a, b) => byPosition(a.properties, b.properties));\n const topLevelCollections = getItems(root, 'collection');\n const topLevelWorkspaces = getItems(root, 'workspace');\n const topLevelNavigation = getItems(root, 'navigation');\n const l0Items = useMemo(\n () => [...topLevelActions, ...topLevelCollections, ...topLevelWorkspaces, ...topLevelNavigation],\n [topLevelActions, topLevelCollections, topLevelWorkspaces, topLevelNavigation],\n );\n const pinnedItems = getItems(root, 'pin-end').toSorted((a, b) => byPosition(a.properties, b.properties));\n const topLevelItems = useMemo(() => [...l0Items, ...pinnedItems], [l0Items, pinnedItems]);\n\n useLoadDescendents(root);\n const path = useMemo(() => [id], [id]);\n\n return (\n // NOTE(thure): 74px (rather than rem) is intentional in order to match the size of macOS windowing controls\n <Tabs.Root value={tab} orientation='vertical' verticalVariant='stateless' classNames='relative'>\n <L0Menu topLevelItems={l0Items} pinnedItems={pinnedItems} path={path} parent={root} />\n <L1Panels topLevelItems={topLevelItems} path={path} currentItemId={tab} onBack={onBack} />\n </Tabs.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { type MouseEvent, useCallback, useMemo } from 'react';\n\nimport { createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\nimport { type Node } from '@dxos/app-graph';\nimport {\n Icon,\n Popover,\n ScrollArea,\n toLocalizedString,\n Tooltip,\n useMediaQuery,\n useSidebars,\n useTranslation,\n} from '@dxos/react-ui';\nimport { Tabs } from '@dxos/react-ui-tabs';\nimport { mx } from '@dxos/react-ui-theme';\n\nimport { useNavTreeContext } from './NavTreeContext';\nimport { NotchStart } from './NotchStart';\nimport { useLoadDescendents } from '../hooks';\nimport { NAVTREE_PLUGIN } from '../meta';\nimport { getFirstTwoRenderableChars, l0ItemType } from '../util';\n\ntype L0ItemProps = {\n item: Node<any>;\n parent?: Node<any>;\n path: string[];\n pinned?: boolean;\n};\n\nconst useL0ItemClick = ({ item, parent, path }: L0ItemProps, type: string) => {\n const { tab, onTabChange, onSelect, isCurrent } = useNavTreeContext();\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const { navigationSidebarState } = useSidebars(NAVTREE_PLUGIN);\n const [isLg] = useMediaQuery('lg', { ssr: false });\n\n return useCallback(\n (event: MouseEvent) => {\n switch (type) {\n case 'tab':\n // TODO(thure): This dispatch should rightly be in `onTabChange`, but that callback wasn’t reacting to changes\n // to its dependencies.\n void dispatch(\n createIntent(LayoutAction.UpdateSidebar, {\n part: 'sidebar',\n options: {\n state:\n item.id === tab\n ? navigationSidebarState === 'expanded'\n ? isLg\n ? 'collapsed'\n : 'closed'\n : 'expanded'\n : 'expanded',\n },\n }),\n );\n return onTabChange?.(item);\n case 'link':\n return onSelect?.({ item, path, current: !isCurrent(path, item), option: event.altKey });\n case 'action': {\n const {\n data: invoke,\n properties: { caller },\n } = item;\n return invoke?.(caller ? { node: parent, caller } : { node: parent });\n }\n }\n },\n [item, type, onSelect, isCurrent, parent, tab, navigationSidebarState, isLg, dispatch],\n );\n};\n\nconst l0Breakpoints: Record<string, string> = {\n lg: 'hidden lg:grid',\n};\n\nconst L0Item = ({ item, parent, path, pinned }: L0ItemProps) => {\n const { t } = useTranslation(NAVTREE_PLUGIN);\n const type = l0ItemType(item);\n const itemPath = useMemo(() => [...path, item.id], [item.id, path]);\n const { getProps, popoverAnchorId } = useNavTreeContext();\n const { id, testId } = getProps?.(item, path) ?? {};\n const Root = type === 'collection' ? 'h2' : type === 'tab' ? Tabs.TabPrimitive : 'button';\n const handleClick = useL0ItemClick({ item, path: itemPath, parent }, type);\n const rootProps =\n type === 'tab'\n ? { value: item.id, tabIndex: 0, onClick: handleClick, 'data-testid': testId, 'data-itemid': id }\n : type !== 'collection'\n ? { onClick: handleClick, 'data-testid': testId, 'data-itemid': id }\n : { onClick: handleClick };\n const localizedString = toLocalizedString(item.properties.label, t);\n const hue = item.properties.hue ?? null;\n const avatarValue = useMemo(\n () => (type === 'tab' ? getFirstTwoRenderableChars(localizedString).join('').toUpperCase() : []),\n [type, item.properties.label, t],\n );\n const hueFgStyle = hue && { style: { color: `var(--dx-${hue}SurfaceText)` } };\n\n const l0ItemTrigger = (\n <Root\n {...(rootProps as any)}\n data-type={type}\n className={mx(\n 'group/l0i dx-focus-ring-group grid overflow-hidden relative data[type!=\"collection\"]:cursor-pointer app-no-drag',\n l0Breakpoints[item.properties.l0Breakpoint],\n )}\n >\n {type !== 'collection' && (\n <div\n role='none'\n className={mx(\n 'absolute -z-[1] dx-focus-ring-group-indicator transition-colors',\n type === 'tab' || pinned ? 'rounded' : 'rounded-full',\n pinned\n ? 'bg-transparent group-hover/l0i:bg-groupSurface inset-inline-3 inset-block-0.5'\n : 'bg-groupSurface inset-inline-3 inset-block-2',\n )}\n {...(hue && { style: { background: `var(--dx-${hue}Surface)` } })}\n />\n )}\n <div\n role='none'\n className='hidden group-aria-selected/l0i:block absolute inline-start-0 inset-block-4 is-1 bg-accentSurface rounded-ie'\n />\n {(item.properties.icon && (\n <Icon icon={item.properties.icon} size={pinned ? 5 : 7} classNames='place-self-center' {...hueFgStyle} />\n )) ||\n (type === 'tab' && item.properties.disposition !== 'pin-end' ? (\n <span role='img' className='place-self-center text-3xl font-light' {...hueFgStyle}>\n {avatarValue}\n </span>\n ) : (\n item.properties.icon && (\n <Icon icon='ph--planet--regular' size={pinned ? 5 : 7} classNames='place-self-center' {...hueFgStyle} />\n )\n ))}\n <span id={`${item.id}__label`} className='sr-only'>\n {localizedString}\n </span>\n </Root>\n );\n\n return popoverAnchorId === id ? (\n <Popover.Anchor asChild>{l0ItemTrigger}</Popover.Anchor>\n ) : (\n <Tooltip.Root delayDuration={0}>\n <Tooltip.Trigger asChild>{l0ItemTrigger}</Tooltip.Trigger>\n <Tooltip.Portal>\n <Tooltip.Content side='right'>\n {localizedString}\n <Tooltip.Arrow />\n </Tooltip.Content>\n </Tooltip.Portal>\n </Tooltip.Root>\n );\n};\n\nconst L0Collection = ({ item, path, parent }: L0ItemProps) => {\n const navTreeContext = useNavTreeContext();\n useLoadDescendents(item);\n const collectionItems = navTreeContext.getItems(item);\n const groupPath = useMemo(() => [...path, item.id], [item.id, path]);\n const { id, testId } = navTreeContext.getProps?.(item, path) ?? {};\n return (\n <div\n role='group'\n className='contents group/l0c'\n aria-labelledby={`${item.id}__label`}\n data-itemid={id}\n data-testid={testId}\n >\n {/* TODO(burdon): Option. */}\n {/* <L0Item item={item} parent={parent} path={groupPath} /> */}\n {collectionItems.map((collectionItem) => (\n <L0Item key={collectionItem.id} item={collectionItem} parent={item} path={groupPath} />\n ))}\n </div>\n );\n};\n\nexport const L0Menu = ({\n topLevelItems,\n pinnedItems,\n parent,\n path,\n}: {\n topLevelItems: Node<any>[];\n pinnedItems: Node<any>[];\n parent?: Node<any>;\n path: string[];\n}) => {\n return (\n <Tabs.Tablist classNames='group/l0 absolute z-[1] inset-block-0 inline-start-0 rounded-is-lg grid grid-cols-[var(--l0-size)] grid-rows-[1fr_min-content_var(--l0-size)] contain-layout !is-[--l0-size] bg-baseSurface border-ie border-separator app-drag pbe-[env(safe-area-inset-bottom)]'>\n <ScrollArea.Root>\n <ScrollArea.Viewport>\n <div\n role='none'\n className='grid auto-rows-[calc(var(--l0-size)-.5rem)] plb-1 [body[data-platform=\"darwin\"]_&]:pbs-[calc(30px+0.25rem)] [body[data-platform=\"ios\"]_&]:pbs-[max(env(safe-area-inset-top),0.25rem)]'\n >\n {topLevelItems.map((item) => {\n if (l0ItemType(item) === 'collection') {\n return <L0Collection key={item.id} item={item} parent={parent} path={path} />;\n } else {\n return <L0Item key={item.id} item={item} parent={parent} path={path} />;\n }\n })}\n </div>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Thumb />\n </ScrollArea.Scrollbar>\n </ScrollArea.Viewport>\n </ScrollArea.Root>\n <div role='none' className='grid grid-cols-1 auto-rows-[--rail-action] pbs-2'>\n {pinnedItems\n .filter((item) => l0ItemType(item) !== 'collection')\n .map((item) => (\n <L0Item key={item.id} item={item} parent={parent} path={path} pinned />\n ))}\n </div>\n <div role='none' className='grid p-2 app-no-drag'>\n <NotchStart />\n </div>\n <div\n role='none'\n className='hidden [body[data-platform=\"darwin\"]_&]:block absolute block-start-0 is-[calc(var(--l0-size)-1px)] bs-[calc(40px+0.25rem)]'\n style={{\n background:\n 'linear-gradient(to bottom, var(--dx-baseSurface) 0%, var(--dx-baseSurface) 70%, transparent 100%)',\n }}\n />\n </Tabs.Tablist>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { createContext, useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { type NavTreeContextValue } from './types';\n\nexport const NavTreeContext = createContext<NavTreeContextValue | null>(null);\n\nexport const useNavTreeContext = () => useContext(NavTreeContext) ?? raise(new Error('NavTreeContext not found'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { useEffect } from 'react';\n\nimport { type Node } from '@dxos/app-graph';\n\nimport { useNavTreeContext } from './components';\n\nexport const useLoadDescendents = (root?: Node) => {\n const { loadDescendents } = useNavTreeContext();\n useEffect(() => {\n const frame = requestAnimationFrame(() => {\n if (root) {\n void loadDescendents?.(root);\n }\n });\n return () => cancelAnimationFrame(frame);\n }, [root]);\n};\n", "//\n// Copyright 2023 DXOS.org\n//\nimport { useEffect } from 'react';\n\nimport { type Node } from '@dxos/app-graph';\nimport { toLocalizedString, useTranslation } from '@dxos/react-ui';\n\nimport { NAVTREE_PLUGIN } from '../meta';\n\nexport const NavTreeDocumentTitle = ({ node }: { node?: Node }) => {\n const { t } = useTranslation(NAVTREE_PLUGIN);\n useEffect(() => {\n document.title = node ? toLocalizedString(node.properties.label, t) : t('current app name', { ns: 'appkit' });\n }, [node?.properties?.label]);\n return null;\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useMemo } from 'react';\n\nimport { useLayout } from '@dxos/app-framework';\nimport { type Node } from '@dxos/app-graph';\nimport { IconButton, toLocalizedString, useTranslation } from '@dxos/react-ui';\nimport { Tree } from '@dxos/react-ui-list';\nimport { Tabs } from '@dxos/react-ui-tabs';\nimport { hoverableControlItem, hoverableOpenControlItem, mx } from '@dxos/react-ui-theme';\n\nimport { useNavTreeContext } from './NavTreeContext';\nimport { NavTreeItemColumns } from './NavTreeItemColumns';\nimport { useLoadDescendents } from '../hooks';\nimport { NAVTREE_PLUGIN } from '../meta';\nimport { l0ItemType } from '../util';\n\nexport type L1PanelProps = { item: Node<any>; path: string[]; currentItemId: string; onBack?: () => void };\n\nconst L1Panel = ({ item, path, currentItemId, onBack }: L1PanelProps) => {\n const layout = useLayout();\n const navTreeContext = useNavTreeContext();\n const { t } = useTranslation(NAVTREE_PLUGIN);\n return (\n <Tabs.Tabpanel\n key={item.id}\n value={item.id}\n classNames={[\n 'absolute inset-block-0 inline-end-0 is-[calc(100%-var(--l0-size))] lg:is-[--l1-size] grid-cols-1 grid-rows-[var(--rail-size)_1fr] pbs-[env(safe-area-inset-top)]',\n item.id === currentItemId && 'grid',\n ]}\n tabIndex={-1}\n {...(!layout.sidebarOpen && { inert: 'true' })}\n >\n {item.id === currentItemId && (\n <>\n <h2 className='flex items-center border-be border-separator pis-4 app-drag'>\n {item.properties.disposition === 'pin-end' && (\n <IconButton\n label={t('back label')}\n iconOnly\n icon='ph--caret-left--regular'\n size={5}\n density='fine'\n variant='ghost'\n classNames={mx(\n 'shrink-0 mie-2',\n 'pli-2 pointer-fine:pli-1',\n hoverableControlItem,\n hoverableOpenControlItem,\n )}\n onClick={onBack}\n />\n )}\n <span className='flex-1 truncate cursor-default'>{toLocalizedString(item.properties.label, t)}</span>\n <NavTreeItemColumns path={path} item={item} open />\n </h2>\n <div role='none' className='overflow-y-auto'>\n <Tree\n {...navTreeContext}\n id={item.id}\n root={item}\n path={path}\n levelOffset={5}\n draggable\n gridTemplateColumns='[tree-row-start] 1fr min-content min-content min-content [tree-row-end]'\n renderColumns={NavTreeItemColumns}\n />\n </div>\n </>\n )}\n </Tabs.Tabpanel>\n );\n};\n\nconst L1PanelCollection = ({ item, path, currentItemId }: L1PanelProps) => {\n const { getItems } = useNavTreeContext();\n useLoadDescendents(item);\n const collectionItems = getItems(item);\n const groupPath = useMemo(() => [...path, item.id], [item.id, path]);\n return (\n <>\n {collectionItems\n .filter((item) => l0ItemType(item) === 'tab')\n .map((item) => (\n <L1Panel key={item.id} item={item} path={groupPath} currentItemId={currentItemId} />\n ))}\n </>\n );\n};\n\nexport const L1Panels = ({\n topLevelItems,\n path,\n currentItemId,\n onBack,\n}: Pick<L1PanelProps, 'onBack'> & {\n topLevelItems: Node<any>[];\n path: string[];\n currentItemId: string;\n}) => {\n return (\n <>\n {topLevelItems.map((item) => {\n const type = l0ItemType(item);\n switch (type) {\n case 'collection':\n return <L1PanelCollection key={item.id} item={item} path={path} currentItemId={currentItemId} />;\n case 'tab':\n return <L1Panel key={item.id} item={item} path={path} currentItemId={currentItemId} onBack={onBack} />;\n default:\n return null;\n }\n })}\n </>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { Fragment, memo } from 'react';\n\nimport { isAction } from '@dxos/app-graph';\nimport { Popover, toLocalizedString, Treegrid, useTranslation } from '@dxos/react-ui';\n\nimport { NAV_TREE_ITEM } from './NavTree';\nimport { useNavTreeContext } from './NavTreeContext';\nimport { NavTreeItemAction } from './NavTreeItemAction';\nimport type { NavTreeItemColumnsProps } from './types';\nimport { useLoadDescendents } from '../hooks';\nimport { NAVTREE_PLUGIN } from '../meta';\n\nexport const NavTreeItemColumns = memo(({ path, item, open }: NavTreeItemColumnsProps) => {\n const { t } = useTranslation(NAVTREE_PLUGIN);\n const { getActions, renderItemEnd: ItemEnd, popoverAnchorId } = useNavTreeContext();\n\n const level = path.length - 2;\n\n const { actions: _actions, groupedActions } = getActions(item);\n const [primaryAction, ...secondaryActions] = _actions.toSorted((a, b) =>\n a.properties?.disposition === 'toolbar' ? -1 : 1,\n );\n\n const actions = (primaryAction?.properties?.disposition === 'toolbar' ? secondaryActions : _actions)\n .flatMap((action) => (isAction(action) ? [action] : []))\n .filter((action) => !action.properties?.hidden);\n\n const ActionRoot = popoverAnchorId === `dxos.org/ui/${NAV_TREE_ITEM}/${item.id}` ? Popover.Anchor : Fragment;\n\n useLoadDescendents(item);\n useLoadDescendents(primaryAction && !isAction(primaryAction) ? primaryAction : undefined);\n\n return (\n <div role='none' className='contents app-no-drag'>\n {primaryAction?.properties?.disposition === 'toolbar' && !primaryAction?.properties?.disabled ? (\n <NavTreeItemAction\n testId={primaryAction.properties?.testId}\n label={toLocalizedString(primaryAction.properties?.label, t)}\n icon={primaryAction.properties?.icon ?? 'ph--placeholder--regular'}\n parent={item}\n monolithic={isAction(primaryAction)}\n menuActions={isAction(primaryAction) ? [primaryAction] : groupedActions[primaryAction.id]}\n menuType={primaryAction.properties?.menuType}\n caller={NAV_TREE_ITEM}\n />\n ) : (\n <Treegrid.Cell />\n )}\n <ActionRoot>\n {actions.length > 0 ? (\n <NavTreeItemAction\n testId={`navtree.treeItem.actionsLevel${level}`}\n label={t('tree item actions label')}\n icon='ph--dots-three-vertical--regular'\n parent={item}\n menuActions={actions}\n menuType='dropdown'\n caller={NAV_TREE_ITEM}\n />\n ) : (\n <Treegrid.Cell />\n )}\n </ActionRoot>\n {ItemEnd && <ItemEnd node={item} open={open} />}\n </div>\n );\n});\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type MutableRefObject, useRef } from 'react';\n\nimport { type Action, type Node } from '@dxos/app-graph';\nimport { useTranslation, toLocalizedString, IconButton } from '@dxos/react-ui';\nimport { DropdownMenu, MenuProvider, type MenuItem } from '@dxos/react-ui-menu';\nimport { hoverableControlItem, hoverableOpenControlItem, mx } from '@dxos/react-ui-theme';\n\nimport { NAVTREE_PLUGIN } from '../meta';\nimport { type ActionProperties } from '../types';\n\nexport type NavTreeItemActionMenuProps = ActionProperties & {\n parent: Node;\n caller?: string;\n monolithic?: boolean;\n menuActions?: Action[];\n suppressNextTooltip?: MutableRefObject<boolean>;\n onAction?: (action: Action) => void;\n};\n\nconst fallbackIcon = 'ph--placeholder--regular';\n\nconst actionButtonProps = {\n size: 4 as const,\n density: 'fine' as const,\n};\n\nexport const NavTreeItemActionDropdownMenu = ({\n label,\n icon,\n testId,\n menuActions,\n onAction,\n}: NavTreeItemActionMenuProps) => {\n const { t } = useTranslation(NAVTREE_PLUGIN);\n const suppressNextTooltip = useRef<boolean>(false);\n return (\n <MenuProvider onAction={onAction}>\n <DropdownMenu.Root items={menuActions as MenuItem[]} suppressNextTooltip={suppressNextTooltip}>\n <DropdownMenu.Trigger asChild>\n <IconButton\n {...actionButtonProps}\n classNames={mx('shrink-0 pli-2 pointer-fine:pli-1', hoverableControlItem, hoverableOpenControlItem)}\n variant='ghost'\n icon={icon ?? fallbackIcon}\n iconOnly\n label={toLocalizedString(label, t)}\n data-testid={testId}\n suppressNextTooltip={suppressNextTooltip}\n />\n </DropdownMenu.Trigger>\n </DropdownMenu.Root>\n </MenuProvider>\n );\n};\n\nexport const NavTreeItemMonolithicAction = ({\n parent,\n properties: { disabled, caller, testId, icon, variant = 'ghost', iconOnly = true } = { label: 'never' },\n data: invoke,\n baseLabel,\n}: Action & { parent: Node; onAction?: (action: Action) => void; baseLabel: string }) => {\n return (\n <IconButton\n {...actionButtonProps}\n variant={variant}\n classNames={mx(\n 'shrink-0',\n hoverableControlItem,\n hoverableOpenControlItem,\n iconOnly ? 'pli-2 pointer-fine:pli-1' : 'p-2 pointer-fine:p-2 mie-1',\n )}\n icon={icon ?? fallbackIcon}\n iconOnly={iconOnly}\n label={baseLabel}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n return;\n }\n event.stopPropagation();\n void invoke?.(caller ? { node: parent, caller } : { node: parent });\n }}\n data-testid={testId}\n />\n );\n};\n\nexport const NavTreeItemAction = ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => {\n const { t } = useTranslation(NAVTREE_PLUGIN);\n\n const monolithicAction = menuActions?.length === 1 && menuActions[0];\n const baseLabel = toLocalizedString(monolithicAction ? monolithicAction.properties!.label : props.label, t);\n\n return monolithic && menuActions?.length === 1 ? (\n <NavTreeItemMonolithicAction baseLabel={baseLabel} parent={node} {...menuActions[0]} />\n ) : (\n <NavTreeItemActionDropdownMenu\n {...props}\n label={baseLabel}\n parent={node}\n menuActions={menuActions}\n onAction={(action) => action.data?.(props.caller ? { node, caller: props.caller } : { node })}\n />\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const Keyboard = lazy(() => import('./keyboard'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\nexport const State = lazy(() => import('./state'));\n\nexport * from './capabilities';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,OAAOA,SAASC,SAASC,gBAAgB;AAEzC,SAASC,cAAcC,cAAcC,aAAaC,2BAA2B;AAC7E,SAA0BC,eAAeC,gBAAgB;AACzD,SAASC,UAAUC,kBAAkB;AACrC,SAASC,QAAQC,QAAQC,MAAMC,gBAAgBC,yBAAyB;AACxE,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,UAAU;AACpC,SAASC,uBAAuB;AAKzB,IAAMC,wBAAwB,CAAC,EAAEC,UAAUC,QAAO,MAAyB;AAChF,QAAM,EAAEC,EAAC,IAAKC,eAAeC,cAAAA;AAC7B,QAAM,CAACJ,UAAUK,WAAAA,IAAeC,SAA6BL,OAAAA;AAC7D,QAAM,EAAEM,iBAAiBC,SAAQ,IAAKC,oBAAAA;AACtC,QAAM,EAAEC,MAAK,IAAKC,YAAAA;AAIlB,QAAMC,aAAaC,QAAQ,MAAA;AAEzB,UAAMC,UAAUC,SAASC,UAAUC,kBAAiB;AACpD,UAAMC,YAAY,oBAAIC,IAAAA;AACtB,UAAMC,WAAwB,CAAA;AAC9BV,WAAOW,SAAS;MACdC,SAAS,CAACC,MAAMC,SAAAA;AACd,aACGC,SA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,CAAA;",
|
|
6
|
+
"names": ["React", "useMemo", "useState", "createIntent", "LayoutAction", "useAppGraph", "useIntentDispatcher", "isActionGroup", "isAction", "Keyboard", "keySymbols", "Button", "Dialog", "Icon", "useTranslation", "toLocalizedString", "SearchList", "descriptionText", "mx", "getHostPlatform", "CommandsDialogContent", "selected", "initial", "t", "useTranslation", "NAVTREE_PLUGIN", "setSelected", "useState", "dispatchPromise", "dispatch", "useIntentDispatcher", "graph", "useAppGraph", "allActions", "useMemo", "current", "Keyboard", "singleton", "getCurrentContext", "actionMap", "Set", "actions", "traverse", "visitor", "node", "path", "isAction", "isActionGroup", "has", "id", "startsWith", "slice", "join", "add", "push", "sort", "a", "b", "toLocalizedString", "properties", "label", "toLowerCase", "localeCompare", "group", "find", "Dialog", "Content", "classNames", "Title", "ns", "SearchList", "Root", "Input", "placeholder", "map", "action", "shortcut", "keyBinding", "getHostPlatform", "Item", "value", "key", "onSelect", "disabled", "createIntent", "LayoutAction", "UpdateDialog", "part", "options", "state", "setTimeout", "nodes", "relation", "data", "caller", "KEY_BINDING", "testId", "Icon", "icon", "size", "span", "className", "mx", "descriptionText", "keySymbols", "Close", "asChild", "Button", "variant", "MagnifyingGlass", "React", "createIntent", "LayoutAction", "useIntentDispatcher", "Button", "useTranslation", "getSize", "CommandsTrigger", "dispatchPromise", "dispatch", "useIntentDispatcher", "t", "useTranslation", "NAVTREE_PLUGIN", "React", "Button", "classNames", "onClick", "createIntent", "LayoutAction", "UpdateDialog", "part", "subject", "COMMANDS_DIALOG", "options", "blockAlign", "span", "className", "MagnifyingGlass", "getSize", "React", "createIntent", "useCapabilities", "useIntentDispatcher", "ClientAction", "ObservabilityCapabilities", "useIdentity", "React", "ConnectionState", "useNetworkStatus", "Avatar", "focusRing", "mx", "hexToFallback", "INTERNAL", "HaloButton", "props", "onClick", "identityKey", "internal", "size", "fallbackValue", "hexToFallback", "swarm", "connectionState", "useNetworkStatus", "React", "button", "className", "mx", "focusRing", "Avatar", "Root", "variant", "status", "ConnectionState", "OFFLINE", "hue", "Frame", "data-testid", "data-joyride", "Image", "href", "Fallback", "text", "emoji", "NotchStart", "identity", "useIdentity", "observability", "useCapabilities", "ObservabilityCapabilities", "Observability", "dispatchPromise", "dispatch", "useIntentDispatcher", "React", "HaloButton", "size", "identityKey", "toHex", "hue", "profile", "data", "emoji", "internal", "group", "onClick", "createIntent", "ClientAction", "ShareIdentity", "ACTION_TYPE", "ACTION_GROUP_TYPE", "isAction", "isActionLike", "isNonNullable", "getParent", "graph", "node", "path", "parentId", "length", "nodes", "relation", "find", "n", "id", "getPersistenceParent", "persistenceClass", "properties", "acceptPersistenceClass", "has", "parent", "slice", "resolveMigrationOperation", "activeNode", "destinationPath", "destinationRelatedNode", "activeClass", "persistenceParent", "activeKey", "persistenceKey", "acceptPersistenceKey", "onTransferStart", "onCopy", "sortActions", "actions", "sort", "a", "b", "disposition", "getChildren", "filter", "map", "nextPath", "includes", "undefined", "isNonNullable", "getActions", "reduce", "acc", "arg", "push", "isAction", "actionGroup", "groupedActions", "expandChildrenAndActions", "Promise", "all", "expandChildren", "expandActions", "expand", "ACTION_TYPE", "ACTION_GROUP_TYPE", "l0ItemType", "item", "isActionLike", "renderableCharRegex", "getFirstTwoRenderableChars", "label", "characters", "Array", "from", "result", "foundFirst", "i", "char", "test", "textBetween", "join", "monitorForElements", "extractInstruction", "untracked", "React", "memo", "useCallback", "useEffect", "useMemo", "createIntent", "LayoutAction", "Surface", "useAppGraph", "useCapability", "useIntentDispatcher", "useLayout", "isAction", "isActionLike", "isEchoObject", "isSpace", "useMediaQuery", "isTreeData", "mx", "arrayMove", "React", "useMemo", "Tabs", "byPosition", "React", "useCallback", "useMemo", "createIntent", "LayoutAction", "useIntentDispatcher", "Icon", "Popover", "ScrollArea", "toLocalizedString", "Tooltip", "useMediaQuery", "useSidebars", "useTranslation", "Tabs", "mx", "createContext", "useContext", "raise", "NavTreeContext", "createContext", "useNavTreeContext", "useContext", "raise", "Error", "useEffect", "useEffect", "toLocalizedString", "useTranslation", "NavTreeDocumentTitle", "node", "t", "useTranslation", "NAVTREE_PLUGIN", "useEffect", "document", "title", "toLocalizedString", "properties", "label", "ns", "useLoadDescendents", "root", "loadDescendents", "useNavTreeContext", "useEffect", "frame", "requestAnimationFrame", "cancelAnimationFrame", "useL0ItemClick", "item", "parent", "path", "type", "tab", "onTabChange", "onSelect", "isCurrent", "useNavTreeContext", "dispatchPromise", "dispatch", "useIntentDispatcher", "navigationSidebarState", "useSidebars", "NAVTREE_PLUGIN", "isLg", "useMediaQuery", "ssr", "useCallback", "event", "createIntent", "LayoutAction", "UpdateSidebar", "part", "options", "state", "id", "current", "option", "altKey", "data", "invoke", "properties", "caller", "node", "l0Breakpoints", "lg", "L0Item", "pinned", "t", "useTranslation", "l0ItemType", "itemPath", "useMemo", "getProps", "popoverAnchorId", "testId", "Root", "Tabs", "TabPrimitive", "handleClick", "rootProps", "value", "tabIndex", "onClick", "localizedString", "toLocalizedString", "label", "hue", "avatarValue", "getFirstTwoRenderableChars", "join", "toUpperCase", "hueFgStyle", "style", "color", "l0ItemTrigger", "React", "data-type", "className", "mx", "l0Breakpoint", "div", "role", "background", "icon", "Icon", "size", "classNames", "disposition", "span", "Popover", "Anchor", "asChild", "Tooltip", "delayDuration", "Trigger", "Portal", "Content", "side", "Arrow", "L0Collection", "navTreeContext", "useLoadDescendents", "collectionItems", "getItems", "groupPath", "aria-labelledby", "data-itemid", "data-testid", "map", "collectionItem", "key", "L0Menu", "topLevelItems", "pinnedItems", "Tablist", "ScrollArea", "Viewport", "Scrollbar", "orientation", "Thumb", "filter", "NotchStart", "React", "useMemo", "useLayout", "IconButton", "toLocalizedString", "useTranslation", "Tree", "Tabs", "hoverableControlItem", "hoverableOpenControlItem", "mx", "React", "Fragment", "memo", "isAction", "Popover", "toLocalizedString", "Treegrid", "useTranslation", "React", "useRef", "useTranslation", "toLocalizedString", "IconButton", "DropdownMenu", "MenuProvider", "hoverableControlItem", "hoverableOpenControlItem", "mx", "fallbackIcon", "actionButtonProps", "size", "density", "NavTreeItemActionDropdownMenu", "label", "icon", "testId", "menuActions", "onAction", "t", "useTranslation", "NAVTREE_PLUGIN", "suppressNextTooltip", "useRef", "React", "MenuProvider", "DropdownMenu", "Root", "items", "Trigger", "asChild", "IconButton", "classNames", "mx", "hoverableControlItem", "hoverableOpenControlItem", "variant", "iconOnly", "toLocalizedString", "data-testid", "NavTreeItemMonolithicAction", "parent", "properties", "disabled", "caller", "data", "invoke", "baseLabel", "onClick", "event", "stopPropagation", "node", "NavTreeItemAction", "monolithic", "props", "monolithicAction", "length", "action", "NavTreeItemColumns", "memo", "path", "item", "open", "t", "useTranslation", "NAVTREE_PLUGIN", "getActions", "renderItemEnd", "ItemEnd", "popoverAnchorId", "useNavTreeContext", "level", "length", "actions", "_actions", "groupedActions", "primaryAction", "secondaryActions", "toSorted", "a", "b", "properties", "disposition", "flatMap", "action", "isAction", "filter", "hidden", "ActionRoot", "NAV_TREE_ITEM", "id", "Popover", "Anchor", "Fragment", "useLoadDescendents", "undefined", "React", "div", "role", "className", "disabled", "NavTreeItemAction", "testId", "label", "toLocalizedString", "icon", "parent", "monolithic", "menuActions", "menuType", "caller", "Treegrid", "Cell", "node", "L1Panel", "item", "path", "currentItemId", "onBack", "layout", "useLayout", "navTreeContext", "useNavTreeContext", "t", "useTranslation", "NAVTREE_PLUGIN", "React", "Tabs", "Tabpanel", "key", "id", "value", "classNames", "tabIndex", "sidebarOpen", "inert", "h2", "className", "properties", "disposition", "IconButton", "label", "iconOnly", "icon", "size", "density", "variant", "mx", "hoverableControlItem", "hoverableOpenControlItem", "onClick", "span", "toLocalizedString", "NavTreeItemColumns", "open", "div", "role", "Tree", "root", "levelOffset", "draggable", "gridTemplateColumns", "renderColumns", "L1PanelCollection", "getItems", "useLoadDescendents", "collectionItems", "groupPath", "useMemo", "filter", "l0ItemType", "map", "L1Panels", "topLevelItems", "type", "NAV_TREE_ITEM", "NavTree", "id", "root", "tab", "getItems", "onBack", "useNavTreeContext", "topLevelActions", "toSorted", "a", "b", "byPosition", "properties", "topLevelCollections", "topLevelWorkspaces", "topLevelNavigation", "l0Items", "useMemo", "pinnedItems", "topLevelItems", "useLoadDescendents", "path", "React", "Tabs", "Root", "value", "orientation", "verticalVariant", "classNames", "L0Menu", "parent", "L1Panels", "currentItemId", "lazy", "AppGraphBuilder", "lazy", "IntentResolver", "Keyboard", "ReactSurface", "State", "NODE_TYPE", "renderItemEnd", "node", "open", "React", "Surface", "role", "data", "id", "subject", "limit", "NavTreeContainer", "memo", "tab", "popoverAnchorId", "topbar", "isLg", "useMediaQuery", "ssr", "dispatchPromise", "dispatch", "useIntentDispatcher", "graph", "useAppGraph", "layout", "useLayout", "isOpen", "isCurrent", "setItem", "useCapability", "NavTreeCapabilities", "State", "getActions", "useCallback", "naturalGetActions", "getItems", "disposition", "nodes", "root", "filter", "untracked", "action", "isAction", "properties", "getProps", "path", "children", "getChildren", "undefined", "parentOf", "length", "map", "label", "icon", "disabled", "className", "mx", "modified", "headingClassName", "testId", "loadDescendents", "expandActions", "isActionLike", "expandChildren", "then", "Promise", "all", "flatMap", "child", "onOpenChange", "item", "findNode", "expandChildrenAndActions", "onTabChange", "createIntent", "LayoutAction", "SwitchWorkspace", "part", "active", "Open", "canDrop", "source", "target", "sourceNode", "targetNode", "isSpace", "isEchoObject", "handleSelect", "option", "parent", "relation", "caller", "NAV_TREE_ITEM", "current", "options", "key", "Close", "state", "ScrollIntoView", "defaultAction", "actions", "find", "UpdateSidebar", "onBack", "RevertWorkspace", "revert", "useEffect", "monitorForElements", "canMonitor", "isTreeData", "onDrop", "location", "dropTargets", "instruction", "extractInstruction", "type", "sourcePath", "targetPath", "operation", "slice", "join", "resolveMigrationOperation", "sourceParent", "getParent", "targetParent", "sourceItems", "targetItems", "sourceIndex", "findIndex", "targetIndex", "migrationIndex", "nextItems", "arrayMove", "onRearrangeChildren", "onCopy", "onTransferStart", "onTransferEnd", "navTreeContextValue", "useMemo", "onSelect", "NavTreeContext", "Provider", "value", "NavTree"]
|
|
7
|
+
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
l0ItemType,
|
|
17
17
|
resolveMigrationOperation,
|
|
18
18
|
sortActions
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7OKF4GP3.mjs";
|
|
20
20
|
import {
|
|
21
21
|
NavTreeCapabilities
|
|
22
22
|
} from "./chunk-AOAGODQB.mjs";
|
|
@@ -113,12 +113,12 @@ var NavTreePlugin = () => definePlugin(meta, [
|
|
|
113
113
|
}),
|
|
114
114
|
defineModule({
|
|
115
115
|
id: `${meta.id}/module/react-surface`,
|
|
116
|
-
activatesOn: Events2.
|
|
116
|
+
activatesOn: Events2.SetupReactSurface,
|
|
117
117
|
activate: ReactSurface
|
|
118
118
|
}),
|
|
119
119
|
defineModule({
|
|
120
120
|
id: `${meta.id}/module/intent-resolver`,
|
|
121
|
-
activatesOn: Events2.
|
|
121
|
+
activatesOn: Events2.SetupIntentResolver,
|
|
122
122
|
activate: IntentResolver
|
|
123
123
|
}),
|
|
124
124
|
defineModule({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/events.ts", "../../../src/NavTreePlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events } from '@dxos/app-framework';\n\nimport { NAVTREE_PLUGIN } from './meta';\n\nexport namespace NavTreeEvents {\n export const StateReady = Events.createStateEvent(NAVTREE_PLUGIN);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n definePlugin,\n defineModule,\n Events,\n contributes,\n Capabilities,\n allOf,\n createIntent,\n LayoutAction,\n} from '@dxos/app-framework';\nimport { type TreeData } from '@dxos/react-ui-list';\n\nimport { AppGraphBuilder, IntentResolver, Keyboard, ReactSurface, State } from './capabilities';\nimport { NODE_TYPE } from './components';\nimport { NavTreeEvents } from './events';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const NavTreePlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/state`,\n activatesOn: Events.LayoutReady,\n activatesAfter: [NavTreeEvents.StateReady],\n activate: State,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: NODE_TYPE,\n metadata: {\n parse: ({ item }: TreeData, type: string) => {\n switch (type) {\n case 'node':\n return item;\n case 'object':\n return item.data;\n case 'view-object':\n return { id: `${item.id}-view`, object: item.data };\n }\n },\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/expose`,\n activatesOn: allOf(Events.DispatcherReady, Events.LayoutReady, NavTreeEvents.StateReady),\n activate: async (context) => {\n const layout = context.requestCapability(Capabilities.Layout);\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n\n if (dispatch && layout.active.length === 1) {\n await dispatch(createIntent(LayoutAction.Expose, { part: 'navigation', subject: layout.active[0] }));\n }\n\n return [];\n },\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: Events.AppGraphReady,\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Events } from '@dxos/app-framework';\n\nimport { NAVTREE_PLUGIN } from './meta';\n\nexport namespace NavTreeEvents {\n export const StateReady = Events.createStateEvent(NAVTREE_PLUGIN);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n definePlugin,\n defineModule,\n Events,\n contributes,\n Capabilities,\n allOf,\n createIntent,\n LayoutAction,\n} from '@dxos/app-framework';\nimport { type TreeData } from '@dxos/react-ui-list';\n\nimport { AppGraphBuilder, IntentResolver, Keyboard, ReactSurface, State } from './capabilities';\nimport { NODE_TYPE } from './components';\nimport { NavTreeEvents } from './events';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const NavTreePlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/state`,\n activatesOn: Events.LayoutReady,\n activatesAfter: [NavTreeEvents.StateReady],\n activate: State,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: NODE_TYPE,\n metadata: {\n parse: ({ item }: TreeData, type: string) => {\n switch (type) {\n case 'node':\n return item;\n case 'object':\n return item.data;\n case 'view-object':\n return { id: `${item.id}-view`, object: item.data };\n }\n },\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/expose`,\n activatesOn: allOf(Events.DispatcherReady, Events.LayoutReady, NavTreeEvents.StateReady),\n activate: async (context) => {\n const layout = context.requestCapability(Capabilities.Layout);\n const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);\n\n if (dispatch && layout.active.length === 1) {\n await dispatch(createIntent(LayoutAction.Expose, { part: 'navigation', subject: layout.active[0] }));\n }\n\n return [];\n },\n }),\n defineModule({\n id: `${meta.id}/module/keyboard`,\n activatesOn: Events.AppGraphReady,\n activate: Keyboard,\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { NAVTREE_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [NAVTREE_PLUGIN]: {\n 'open settings label': 'Settings',\n 'open commands label': 'Search commands',\n 'commands dialog title': 'Commands',\n 'command list input placeholder': 'Search for commands…',\n 'node actions menu invoker label': 'More options',\n 'tree item actions label': 'More actions',\n 'empty branch message': ' ',\n },\n },\n },\n];\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,cAAc;;UAINC,gBAAAA;iBACFC,aAAaC,OAAOC,iBAAiBC,cAAAA;AACpD,GAFiBJ,kBAAAA,gBAAAA,CAAAA,EAAAA;;;ACJjB,SACEK,cACAC,cACAC,UAAAA,SACAC,aACAC,cACAC,OACAC,cACAC,oBACK;;;ACPP,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,cAAAA,GAAiB;QAChB,uBAAuB;QACvB,uBAAuB;QACvB,yBAAyB;QACzB,kCAAkC;QAClC,mCAAmC;QACnC,2BAA2B;QAC3B,wBAAwB;MAC1B;IACF;EACF;;;;ADGK,IAAMC,gBAAgB,MAC3BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAOC;IACpBC,gBAAgB;MAACC,cAAcC;;IAC/BC,UAAUC;EACZ,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAOO;IACpBF,UAAU,MAAMG,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAd,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAOY;IACpBP,UAAU,MACRG,YAAYC,aAAaI,UAAU;MACjCf,IAAIgB;MACJC,UAAU;QACRC,OAAO,CAAC,EAAEC,KAAI,GAAcC,SAAAA;AAC1B,kBAAQA,MAAAA;YACN,KAAK;AACH,qBAAOD;YACT,KAAK;AACH,qBAAOA,KAAKE;YACd,KAAK;AACH,qBAAO;gBAAErB,IAAI,GAAGmB,KAAKnB,EAAE;gBAASsB,QAAQH,KAAKE;cAAK;UACtD;QACF;MACF;IACF,CAAA;EACJ,CAAA;EACAtB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAasB,MAAMrB,QAAOsB,iBAAiBtB,QAAOC,aAAaE,cAAcC,UAAU;IACvFC,UAAU,OAAOkB,YAAAA;AACf,YAAMC,SAASD,QAAQE,kBAAkBhB,aAAaiB,MAAM;AAC5D,YAAM,EAAEC,iBAAiBC,SAAQ,IAAKL,QAAQE,kBAAkBhB,aAAaoB,gBAAgB;AAE7F,UAAID,YAAYJ,OAAOM,OAAOC,WAAW,GAAG;AAC1C,cAAMH,SAASI,aAAaC,aAAaC,QAAQ;UAAEC,MAAM;UAAcC,SAASZ,OAAOM,OAAO,CAAA;QAAG,CAAA,CAAA;MACnG;AAEA,aAAO,CAAA;IACT;EACF,CAAA;EACAjC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAOqC;IACpBhC,UAAUiC;EACZ,CAAA;EACAzC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAOuC;IACpBlC,UAAUmC;EACZ,CAAA;EACA3C,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAOyC;IACpBpC,UAAUqC;EACZ,CAAA;EACA7C,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,QAAO2C;IACpBtC,UAAUuC;EACZ,CAAA;CACD;",
|
|
6
|
-
"names": ["Events", "NavTreeEvents", "StateReady", "Events", "createStateEvent", "NAVTREE_PLUGIN", "definePlugin", "defineModule", "Events", "contributes", "Capabilities", "allOf", "createIntent", "LayoutAction", "NAVTREE_PLUGIN", "NavTreePlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "LayoutReady", "activatesAfter", "NavTreeEvents", "StateReady", "activate", "State", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "NODE_TYPE", "metadata", "parse", "item", "type", "data", "object", "allOf", "DispatcherReady", "context", "layout", "requestCapability", "Layout", "dispatchPromise", "dispatch", "IntentDispatcher", "active", "length", "createIntent", "LayoutAction", "Expose", "part", "subject", "AppGraphReady", "Keyboard", "
|
|
6
|
+
"names": ["Events", "NavTreeEvents", "StateReady", "Events", "createStateEvent", "NAVTREE_PLUGIN", "definePlugin", "defineModule", "Events", "contributes", "Capabilities", "allOf", "createIntent", "LayoutAction", "NAVTREE_PLUGIN", "NavTreePlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "LayoutReady", "activatesAfter", "NavTreeEvents", "StateReady", "activate", "State", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "NODE_TYPE", "metadata", "parse", "item", "type", "data", "object", "allOf", "DispatcherReady", "context", "layout", "requestCapability", "Layout", "dispatchPromise", "dispatch", "IntentDispatcher", "active", "length", "createIntent", "LayoutAction", "Expose", "part", "subject", "AppGraphReady", "Keyboard", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver", "SetupAppGraph", "AppGraphBuilder"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytes":1521,"imports":[],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts":{"bytes":2005,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts":{"bytes":5007,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts":{"bytes":5294,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts":{"bytes":7323,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytes":16513,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytes":4234,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx":{"bytes":1514,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/HaloButton.tsx":{"bytes":4991,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NotchStart.tsx":{"bytes":4052,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/HaloButton.tsx","kind":"import-statement","original":"./HaloButton"}],"format":"esm"},"packages/plugins/plugin-navtree/src/hooks.ts":{"bytes":2031,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./components/NavTreeContext"}],"format":"esm"},"packages/plugins/plugin-navtree/src/util.ts":{"bytes":18367,"imports":[{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/L0Menu.tsx":{"bytes":26645,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NotchStart.tsx","kind":"import-statement","original":"./NotchStart"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx":{"bytes":11669,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeItemColumns.tsx":{"bytes":9922,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTree.tsx","kind":"import-statement","original":"./NavTree"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx","kind":"import-statement","original":"./NavTreeItemAction"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/L1Panels.tsx":{"bytes":11419,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeItemColumns.tsx","kind":"import-statement","original":"./NavTreeItemColumns"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTree.tsx":{"bytes":6573,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/L0Menu.tsx","kind":"import-statement","original":"./L0Menu"},{"path":"packages/plugins/plugin-navtree/src/components/L1Panels.tsx","kind":"import-statement","original":"./L1Panels"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx":{"bytes":36724,"imports":[{"path":"@atlaskit/pragmatic-drag-and-drop/element/adapter","kind":"import-statement","external":true},{"path":"@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTree.tsx","kind":"import-statement","original":"./NavTree"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/capabilities/index.ts","kind":"import-statement","original":"../capabilities"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx":{"bytes":2287,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/types.ts":{"bytes":1770,"imports":[],"format":"esm"},"packages/plugins/plugin-navtree/src/components/index.ts":{"bytes":1239,"imports":[{"path":"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx","kind":"import-statement","original":"./CommandsDialog"},{"path":"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx","kind":"import-statement","original":"./CommandsTrigger"},{"path":"packages/plugins/plugin-navtree/src/components/NavTree.tsx","kind":"import-statement","original":"./NavTree"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx","kind":"import-statement","original":"./NavTreeContainer"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx","kind":"import-statement","original":"./NavTreeDocumentTitle"},{"path":"packages/plugins/plugin-navtree/src/components/NotchStart.tsx","kind":"import-statement","original":"./NotchStart"},{"path":"packages/plugins/plugin-navtree/src/components/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx":{"bytes":6457,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/state.ts":{"bytes":12275,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/index.ts":{"bytes":1864,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-navtree/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"}],"format":"esm"},"packages/plugins/plugin-navtree/src/events.ts":{"bytes":1199,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/translations.ts":{"bytes":1959,"imports":[{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytes":10777,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-navtree/src/events.ts","kind":"import-statement","original":"./events"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-navtree/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-navtree/src/index.ts":{"bytes":1032,"imports":[{"path":"packages/plugins/plugin-navtree/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/events.ts","kind":"import-statement","original":"./events"},{"path":"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx","kind":"import-statement","original":"./NavTreePlugin"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-navtree/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6356},"packages/plugins/plugin-navtree/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-EO6JEADO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["COMMANDS_DIALOG","KEY_BINDING","NAVTREE_PLUGIN","NavTreeCapabilities","NavTreeEvents","NavTreePlugin","expandActions","expandChildren","expandChildrenAndActions","getActions","getChildren","getFirstTwoRenderableChars","getParent","getPersistenceParent","l0ItemType","meta","resolveMigrationOperation","sortActions"],"entryPoint":"packages/plugins/plugin-navtree/src/index.ts","inputs":{"packages/plugins/plugin-navtree/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-navtree/src/events.ts":{"bytesInOutput":207},"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytesInOutput":2231},"packages/plugins/plugin-navtree/src/translations.ts":{"bytesInOutput":453}},"bytes":3997},"packages/plugins/plugin-navtree/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2435},"packages/plugins/plugin-navtree/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1003}},"bytes":1260},"packages/plugins/plugin-navtree/dist/lib/browser/intent-resolver-U25VBFH3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2665},"packages/plugins/plugin-navtree/dist/lib/browser/intent-resolver-U25VBFH3.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts":{"bytesInOutput":1242}},"bytes":1510},"packages/plugins/plugin-navtree/dist/lib/browser/keyboard-MUBRTPI5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3671},"packages/plugins/plugin-navtree/dist/lib/browser/keyboard-MUBRTPI5.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts":{"bytesInOutput":1480}},"bytes":1688},"packages/plugins/plugin-navtree/dist/lib/browser/react-surface-6ZP5XUTS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3166},"packages/plugins/plugin-navtree/dist/lib/browser/react-surface-6ZP5XUTS.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-EO6JEADO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx":{"bytesInOutput":1411}},"bytes":1829},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-EO6JEADO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":80827},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-EO6JEADO.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@atlaskit/pragmatic-drag-and-drop/element/adapter","kind":"import-statement","external":true},{"path":"@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/intent-resolver-U25VBFH3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/keyboard-MUBRTPI5.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/react-surface-6ZP5XUTS.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/state-65TQKYX7.mjs","kind":"dynamic-import"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["AppGraphBuilder","CommandsDialogContent","CommandsTrigger","IntentResolver","Keyboard","NODE_TYPE","NavTreeContainer","NavTreeDocumentTitle","NotchStart","ReactSurface","State","expandActions","expandChildren","expandChildrenAndActions","getActions","getChildren","getFirstTwoRenderableChars","getParent","getPersistenceParent","l0ItemType","resolveMigrationOperation","sortActions"],"inputs":{"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytesInOutput":4002},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytesInOutput":1039},"packages/plugins/plugin-navtree/src/components/NotchStart.tsx":{"bytesInOutput":882},"packages/plugins/plugin-navtree/src/components/HaloButton.tsx":{"bytesInOutput":1237},"packages/plugins/plugin-navtree/src/util.ts":{"bytesInOutput":3760},"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx":{"bytesInOutput":8864},"packages/plugins/plugin-navtree/src/components/NavTree.tsx":{"bytesInOutput":1609},"packages/plugins/plugin-navtree/src/components/L0Menu.tsx":{"bytesInOutput":7158},"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx":{"bytesInOutput":252},"packages/plugins/plugin-navtree/src/hooks.ts":{"bytesInOutput":334},"packages/plugins/plugin-navtree/src/components/L1Panels.tsx":{"bytesInOutput":2924},"packages/plugins/plugin-navtree/src/components/NavTreeItemColumns.tsx":{"bytesInOutput":2423},"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx":{"bytesInOutput":2792},"packages/plugins/plugin-navtree/src/capabilities/index.ts":{"bytesInOutput":387},"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx":{"bytesInOutput":456},"packages/plugins/plugin-navtree/src/components/index.ts":{"bytesInOutput":0}},"bytes":40134},"packages/plugins/plugin-navtree/dist/lib/browser/state-65TQKYX7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6219},"packages/plugins/plugin-navtree/dist/lib/browser/state-65TQKYX7.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/state.ts":{"bytesInOutput":2489}},"bytes":2753},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1116},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["NavTreeCapabilities"],"inputs":{"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts":{"bytesInOutput":257}},"bytes":462},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":690},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs":{"imports":[],"exports":["COMMANDS_DIALOG","KEY_BINDING","NAVTREE_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytesInOutput":175}},"bytes":338}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytes":1521,"imports":[],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts":{"bytes":2005,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts":{"bytes":5007,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts":{"bytes":5294,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts":{"bytes":7323,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytes":16513,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytes":4234,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx":{"bytes":1514,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/HaloButton.tsx":{"bytes":4991,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NotchStart.tsx":{"bytes":4052,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/HaloButton.tsx","kind":"import-statement","original":"./HaloButton"}],"format":"esm"},"packages/plugins/plugin-navtree/src/hooks.ts":{"bytes":1992,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/index.ts","kind":"import-statement","original":"./components"}],"format":"esm"},"packages/plugins/plugin-navtree/src/util.ts":{"bytes":18379,"imports":[{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/L0Menu.tsx":{"bytes":29923,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NotchStart.tsx","kind":"import-statement","original":"./NotchStart"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx":{"bytes":11669,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeItemColumns.tsx":{"bytes":9922,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTree.tsx","kind":"import-statement","original":"./NavTree"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx","kind":"import-statement","original":"./NavTreeItemAction"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/L1Panels.tsx":{"bytes":13689,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeItemColumns.tsx","kind":"import-statement","original":"./NavTreeItemColumns"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTree.tsx":{"bytes":6906,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/L0Menu.tsx","kind":"import-statement","original":"./L0Menu"},{"path":"packages/plugins/plugin-navtree/src/components/L1Panels.tsx","kind":"import-statement","original":"./L1Panels"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/hooks.ts","kind":"import-statement","original":"../hooks"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx":{"bytes":37547,"imports":[{"path":"@atlaskit/pragmatic-drag-and-drop/element/adapter","kind":"import-statement","external":true},{"path":"@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTree.tsx","kind":"import-statement","original":"./NavTree"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/capabilities/index.ts","kind":"import-statement","original":"../capabilities"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"../util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx":{"bytes":2287,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/types.ts":{"bytes":1906,"imports":[],"format":"esm"},"packages/plugins/plugin-navtree/src/components/index.ts":{"bytes":1239,"imports":[{"path":"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx","kind":"import-statement","original":"./CommandsDialog"},{"path":"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx","kind":"import-statement","original":"./CommandsTrigger"},{"path":"packages/plugins/plugin-navtree/src/components/NavTree.tsx","kind":"import-statement","original":"./NavTree"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx","kind":"import-statement","original":"./NavTreeContainer"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx","kind":"import-statement","original":"./NavTreeContext"},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx","kind":"import-statement","original":"./NavTreeDocumentTitle"},{"path":"packages/plugins/plugin-navtree/src/components/NotchStart.tsx","kind":"import-statement","original":"./NotchStart"},{"path":"packages/plugins/plugin-navtree/src/components/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx":{"bytes":6457,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/state.ts":{"bytes":12273,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/capabilities/index.ts":{"bytes":1864,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts","kind":"dynamic-import","original":"./keyboard"},{"path":"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-navtree/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"}],"format":"esm"},"packages/plugins/plugin-navtree/src/events.ts":{"bytes":1199,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/translations.ts":{"bytes":1959,"imports":[{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytes":10820,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-navtree/src/events.ts","kind":"import-statement","original":"./events"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-navtree/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-navtree/src/index.ts":{"bytes":1032,"imports":[{"path":"packages/plugins/plugin-navtree/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-navtree/src/events.ts","kind":"import-statement","original":"./events"},{"path":"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx","kind":"import-statement","original":"./NavTreePlugin"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-navtree/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6378},"packages/plugins/plugin-navtree/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-7OKF4GP3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["COMMANDS_DIALOG","KEY_BINDING","NAVTREE_PLUGIN","NavTreeCapabilities","NavTreeEvents","NavTreePlugin","expandActions","expandChildren","expandChildrenAndActions","getActions","getChildren","getFirstTwoRenderableChars","getParent","getPersistenceParent","l0ItemType","meta","resolveMigrationOperation","sortActions"],"entryPoint":"packages/plugins/plugin-navtree/src/index.ts","inputs":{"packages/plugins/plugin-navtree/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-navtree/src/events.ts":{"bytesInOutput":207},"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytesInOutput":2242},"packages/plugins/plugin-navtree/src/translations.ts":{"bytesInOutput":453}},"bytes":4008},"packages/plugins/plugin-navtree/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2435},"packages/plugins/plugin-navtree/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1003}},"bytes":1260},"packages/plugins/plugin-navtree/dist/lib/browser/intent-resolver-U25VBFH3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2665},"packages/plugins/plugin-navtree/dist/lib/browser/intent-resolver-U25VBFH3.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/intent-resolver.ts":{"bytesInOutput":1242}},"bytes":1510},"packages/plugins/plugin-navtree/dist/lib/browser/keyboard-MUBRTPI5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3671},"packages/plugins/plugin-navtree/dist/lib/browser/keyboard-MUBRTPI5.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/keyboard.ts":{"bytesInOutput":1480}},"bytes":1688},"packages/plugins/plugin-navtree/dist/lib/browser/react-surface-SIEGT4YS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3166},"packages/plugins/plugin-navtree/dist/lib/browser/react-surface-SIEGT4YS.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-7OKF4GP3.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-navtree/src/capabilities/react-surface.tsx":{"bytesInOutput":1411}},"bytes":1829},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-7OKF4GP3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":84431},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-7OKF4GP3.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability","kind":"import-statement","external":true},{"path":"@dxos/react-client/halo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/mesh","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@atlaskit/pragmatic-drag-and-drop/element/adapter","kind":"import-statement","external":true},{"path":"@atlaskit/pragmatic-drag-and-drop-hitbox/tree-item","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-tabs","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/app-graph-builder-BL7LRXCM.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/intent-resolver-U25VBFH3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/keyboard-MUBRTPI5.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/react-surface-SIEGT4YS.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/state-IEFQTUPG.mjs","kind":"dynamic-import"}],"exports":["AppGraphBuilder","CommandsDialogContent","CommandsTrigger","IntentResolver","Keyboard","NODE_TYPE","NavTreeContainer","NavTreeDocumentTitle","NotchStart","ReactSurface","State","expandActions","expandChildren","expandChildrenAndActions","getActions","getChildren","getFirstTwoRenderableChars","getParent","getPersistenceParent","l0ItemType","resolveMigrationOperation","sortActions"],"inputs":{"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytesInOutput":4002},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytesInOutput":1039},"packages/plugins/plugin-navtree/src/components/NotchStart.tsx":{"bytesInOutput":882},"packages/plugins/plugin-navtree/src/components/HaloButton.tsx":{"bytesInOutput":1237},"packages/plugins/plugin-navtree/src/util.ts":{"bytesInOutput":3764},"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx":{"bytesInOutput":9080},"packages/plugins/plugin-navtree/src/components/NavTree.tsx":{"bytesInOutput":1690},"packages/plugins/plugin-navtree/src/components/L0Menu.tsx":{"bytesInOutput":8120},"packages/plugins/plugin-navtree/src/components/NavTreeContext.tsx":{"bytesInOutput":252},"packages/plugins/plugin-navtree/src/hooks.ts":{"bytesInOutput":349},"packages/plugins/plugin-navtree/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx":{"bytesInOutput":441},"packages/plugins/plugin-navtree/src/components/L1Panels.tsx":{"bytesInOutput":3549},"packages/plugins/plugin-navtree/src/components/NavTreeItemColumns.tsx":{"bytesInOutput":2436},"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx":{"bytesInOutput":2792},"packages/plugins/plugin-navtree/src/capabilities/index.ts":{"bytesInOutput":387}},"bytes":42084},"packages/plugins/plugin-navtree/dist/lib/browser/state-IEFQTUPG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6217},"packages/plugins/plugin-navtree/dist/lib/browser/state-IEFQTUPG.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-navtree/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-navtree/src/capabilities/state.ts":{"bytesInOutput":2487}},"bytes":2751},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1116},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-AOAGODQB.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["NavTreeCapabilities"],"inputs":{"packages/plugins/plugin-navtree/src/capabilities/capabilities.ts":{"bytesInOutput":257}},"bytes":462},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":690},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-KOXMEAOS.mjs":{"imports":[],"exports":["COMMANDS_DIALOG","KEY_BINDING","NAVTREE_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytesInOutput":175}},"bytes":338}}}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
NavTreeContainer,
|
|
5
5
|
NavTreeDocumentTitle,
|
|
6
6
|
NotchStart
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7OKF4GP3.mjs";
|
|
8
8
|
import "./chunk-AOAGODQB.mjs";
|
|
9
9
|
import {
|
|
10
10
|
COMMANDS_DIALOG,
|
|
@@ -54,4 +54,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
54
54
|
export {
|
|
55
55
|
react_surface_default as default
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=react-surface-
|
|
57
|
+
//# sourceMappingURL=react-surface-SIEGT4YS.mjs.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import { effect } from "@preact/signals-core";
|
|
10
10
|
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
11
11
|
import { create } from "@dxos/live-object";
|
|
12
|
-
import { Path } from "@dxos/react-ui-
|
|
12
|
+
import { Path } from "@dxos/react-ui-list";
|
|
13
13
|
var KEY = `${NAVTREE_PLUGIN}/state`;
|
|
14
14
|
var getInitialState = () => {
|
|
15
15
|
const stringified = localStorage.getItem(KEY);
|
|
@@ -105,4 +105,4 @@ var state_default = (context) => {
|
|
|
105
105
|
export {
|
|
106
106
|
state_default as default
|
|
107
107
|
};
|
|
108
|
-
//# sourceMappingURL=state-
|
|
108
|
+
//# sourceMappingURL=state-IEFQTUPG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/state.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { effect } from '@preact/signals-core';\n\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { type ReactiveObject, create } from '@dxos/live-object';\nimport { Path } from '@dxos/react-ui-list';\n\nimport { NavTreeCapabilities } from './capabilities';\nimport { NAVTREE_PLUGIN } from '../meta';\n\nconst KEY = `${NAVTREE_PLUGIN}/state`;\n\nconst getInitialState = () => {\n const stringified = localStorage.getItem(KEY);\n if (!stringified) {\n return;\n }\n\n try {\n const cached: [string, { open: boolean; current: boolean }][] = JSON.parse(stringified);\n return cached.map(\n ([key, value]): [\n string,\n ReactiveObject<{\n open: boolean;\n current: boolean;\n }>,\n ] => [key, create({ open: value.open, current: false })],\n );\n } catch {}\n};\n\nexport default (context: PluginsContext) => {\n const layout = context.requestCapability(Capabilities.Layout);\n\n // TODO(wittjosiah): This currently needs to be not a ReactiveObject at the root.\n // If it is a ReactiveObject then React errors when initializing new paths because of state change during render.\n // Ideally this could be a ReactiveObject but be able to access and update the root level without breaking render.\n // Wrapping accesses and updates in `untracked` didn't seem to work in all cases.\n const state = new Map<string, ReactiveObject<{ open: boolean; current: boolean }>>(\n getInitialState() ?? [\n // TODO(thure): Initialize these dynamically.\n ['root', create({ open: true, current: false })],\n ['root~dxos.org/plugin/space-spaces', create({ open: true, current: false })],\n ['root~dxos.org/plugin/files', create({ open: true, current: false })],\n ],\n );\n\n const getItem = (_path: string[]) => {\n const path = Path.create(..._path);\n const value = state.get(path) ?? create({ open: false, current: false });\n if (!state.has(path)) {\n state.set(path, value);\n }\n\n return value;\n };\n\n const setItem = (path: string[], key: 'open' | 'current', next: boolean) => {\n const value = getItem(path);\n value[key] = next;\n\n localStorage.setItem(KEY, JSON.stringify(Array.from(state.entries())));\n };\n\n const isOpen = (path: string[]) => getItem(path).open;\n const isCurrent = (path: string[]) => getItem(path).current;\n\n let previous: string[] = [];\n const unsubscribe = effect(() => {\n const removed = previous.filter((id) => !layout.active.includes(id));\n previous = layout.active;\n\n // TODO(wittjosiah): This is setTimeout because there's a race between the keys be initialized.\n // This could be avoided if the location was a path as well and not just an id.\n setTimeout(() => {\n removed.forEach((id) => {\n const keys = Array.from(state.keys()).filter((key) => Path.last(key) === id);\n keys.forEach((key) => {\n setItem(Path.parts(key), 'current', false);\n });\n });\n\n layout.active.forEach((id) => {\n const keys = Array.from(new Set([...state.keys(), id])).filter((key) => Path.last(key) === id);\n keys.forEach((key) => {\n setItem(Path.parts(key), 'current', true);\n });\n });\n });\n });\n\n return contributes(NavTreeCapabilities.State, { state, getItem, setItem, isOpen, isCurrent }, () => unsubscribe());\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,cAAcC,mBAAwC;AAC/D,SAA8BC,cAAc;AAC5C,SAASC,YAAY;AAKrB,IAAMC,MAAM,GAAGC,cAAAA;AAEf,IAAMC,kBAAkB,MAAA;AACtB,QAAMC,cAAcC,aAAaC,QAAQL,GAAAA;AACzC,MAAI,CAACG,aAAa;AAChB;EACF;AAEA,MAAI;AACF,U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UAAUH,SAASI,OAAO,CAACC,OAAO,CAACzB,OAAO0B,OAAOC,SAASF,EAAAA,CAAAA;AAChEL,eAAWpB,OAAO0B;AAIlBE,eAAW,MAAA;AACTL,cAAQM,QAAQ,CAACJ,OAAAA;AACf,cAAMK,OAAOf,MAAMC,KAAKZ,MAAM0B,KAAI,CAAA,EAAIN,OAAO,CAAC9B,QAAQc,KAAKuB,KAAKrC,GAAAA,MAAS+B,EAAAA;AACzEK,aAAKD,QAAQ,CAACnC,QAAAA;AACZkB,kBAAQJ,KAAKwB,MAAMtC,GAAAA,GAAM,WAAW,KAAA;QACtC,CAAA;MACF,CAAA;AAEAM,aAAO0B,OAAOG,QAAQ,CAACJ,OAAAA;AACrB,cAAMK,OAAOf,MAAMC,KAAK,oBAAIiB,IAAI;aAAI7B,MAAM0B,KAAI;UAAIL;SAAG,CAAA,EAAGD,OAAO,CAAC9B,QAAQc,KAAKuB,KAAKrC,GAAAA,MAAS+B,EAAAA;AAC3FK,aAAKD,QAAQ,CAACnC,QAAAA;AACZkB,kBAAQJ,KAAKwB,MAAMtC,GAAAA,GAAM,WAAW,IAAA;QACtC,CAAA;MACF,CAAA;IACF,CAAA;EACF,CAAA;AAEA,SAAOwC,YAAYC,oBAAoBC,OAAO;IAAEhC;IAAOf;IAASuB;IAASM;IAAQC;EAAU,GAAG,MAAME,YAAAA,CAAAA;AACtG;",
|
|
6
|
+
"names": ["effect", "Capabilities", "contributes", "create", "Path", "KEY", "NAVTREE_PLUGIN", "getInitialState", "stringified", "localStorage", "getItem", "cached", "JSON", "parse", "map", "key", "value", "create", "open", "current", "context", "layout", "requestCapability", "Capabilities", "Layout", "state", "Map", "_path", "path", "Path", "get", "has", "set", "setItem", "next", "stringify", "Array", "from", "entries", "isOpen", "isCurrent", "previous", "unsubscribe", "effect", "removed", "filter", "id", "active", "includes", "setTimeout", "forEach", "keys", "last", "parts", "Set", "contributes", "NavTreeCapabilities", "State"]
|
|
7
|
+
}
|