@dxos/plugin-navtree 0.7.4 → 0.7.5-main.937ce75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/lib/browser/{chunk-PSVCPL4T.mjs → chunk-VAXG4OAG.mjs} +3 -1
  2. package/dist/lib/browser/chunk-VAXG4OAG.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +165 -352
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/meta.mjs +3 -1
  7. package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
  8. package/dist/types/src/components/CommandsTrigger.d.ts.map +1 -1
  9. package/dist/types/src/components/NavTree.d.ts +2 -2
  10. package/dist/types/src/components/NavTree.d.ts.map +1 -1
  11. package/dist/types/src/components/NavTreeContainer.d.ts.map +1 -1
  12. package/dist/types/src/components/NavTreeFooter.d.ts.map +1 -1
  13. package/dist/types/src/components/NavTreeItemAction.d.ts +4 -8
  14. package/dist/types/src/components/NavTreeItemAction.d.ts.map +1 -1
  15. package/dist/types/src/components/NavTreeItemAction.stories.d.ts +0 -5
  16. package/dist/types/src/components/NavTreeItemAction.stories.d.ts.map +1 -1
  17. package/dist/types/src/meta.d.ts +1 -0
  18. package/dist/types/src/meta.d.ts.map +1 -1
  19. package/dist/types/src/translations.d.ts +0 -1
  20. package/dist/types/src/translations.d.ts.map +1 -1
  21. package/dist/types/src/types.d.ts +1 -1
  22. package/dist/types/src/types.d.ts.map +1 -1
  23. package/dist/types/tsconfig.tsbuildinfo +1 -0
  24. package/package.json +30 -29
  25. package/src/NavTreePlugin.tsx +67 -62
  26. package/src/components/CommandsDialog.tsx +3 -3
  27. package/src/components/CommandsTrigger.tsx +10 -7
  28. package/src/components/NavTree.tsx +6 -11
  29. package/src/components/NavTreeContainer.tsx +32 -54
  30. package/src/components/NavTreeFooter.tsx +3 -2
  31. package/src/components/NavTreeItemAction.stories.tsx +0 -2
  32. package/src/components/NavTreeItemAction.tsx +53 -316
  33. package/src/components/NotchStart.tsx +4 -4
  34. package/src/meta.ts +2 -0
  35. package/src/translations.ts +0 -1
  36. package/src/types.ts +1 -1
  37. package/dist/lib/browser/chunk-PSVCPL4T.mjs.map +0 -7
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytes":1128,"imports":[],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytes":16433,"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/plugin-graph","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/NavTreeItemAction.tsx":{"bytes":42901,"imports":[{"path":"@radix-ui/react-use-controllable-state","kind":"import-statement","external":true},{"path":"react","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/NavTree.tsx":{"bytes":14049,"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":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx","kind":"import-statement","original":"./NavTreeItemAction"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeFooter.tsx":{"bytes":18328,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"date-fns/formatDistance","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","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/util.ts":{"bytes":12786,"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/NavTreeContainer.tsx":{"bytes":32746,"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/plugin-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/NavTreeFooter.tsx","kind":"import-statement","original":"./NavTreeFooter"},{"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/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/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":3865,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client/meta","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/components/index.ts":{"bytes":941,"imports":[{"path":"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx","kind":"import-statement","original":"./CommandsDialog"},{"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/NavTreeDocumentTitle.tsx","kind":"import-statement","original":"./NavTreeDocumentTitle"},{"path":"packages/plugins/plugin-navtree/src/components/NotchStart.tsx","kind":"import-statement","original":"./NotchStart"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytes":3992,"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/translations.ts":{"bytes":3150,"imports":[{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytes":39351,"imports":[{"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/keyboard","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":"@dxos/util","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/components/CommandsTrigger.tsx","kind":"import-statement","original":"./components/CommandsTrigger"},{"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"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/index.ts":{"bytes":875,"imports":[{"path":"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx","kind":"import-statement","original":"./NavTreePlugin"},{"path":"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx","kind":"import-statement","original":"./NavTreePlugin"},{"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":99643},"packages/plugins/plugin-navtree/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-PSVCPL4T.mjs","kind":"import-statement"},{"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/keyboard","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":"@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/app-graph","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","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":"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":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@radix-ui/react-use-controllable-state","kind":"import-statement","external":true},{"path":"react","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":"@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/plugin-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":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"date-fns/formatDistance","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","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/plugin-client/meta","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":"@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}],"exports":["NavTreePlugin","default","expandActions","expandChildren","expandChildrenAndActions","getActions","getChildren","getParent","getPersistenceParent","resolveMigrationOperation","sortActions"],"entryPoint":"packages/plugins/plugin-navtree/src/index.ts","inputs":{"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytesInOutput":9013},"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytesInOutput":4002},"packages/plugins/plugin-navtree/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-navtree/src/components/NavTree.tsx":{"bytesInOutput":3368},"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx":{"bytesInOutput":9874},"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx":{"bytesInOutput":7993},"packages/plugins/plugin-navtree/src/components/NavTreeFooter.tsx":{"bytesInOutput":5311},"packages/plugins/plugin-navtree/src/util.ts":{"bytesInOutput":2751},"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx":{"bytesInOutput":456},"packages/plugins/plugin-navtree/src/components/NotchStart.tsx":{"bytesInOutput":879},"packages/plugins/plugin-navtree/src/components/HaloButton.tsx":{"bytesInOutput":1237},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytesInOutput":990},"packages/plugins/plugin-navtree/src/translations.ts":{"bytesInOutput":879},"packages/plugins/plugin-navtree/src/index.ts":{"bytesInOutput":33}},"bytes":48232},"packages/plugins/plugin-navtree/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-navtree/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-PSVCPL4T.mjs","kind":"import-statement"}],"exports":["KEY_BINDING","NAVTREE_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-navtree/src/meta.ts","inputs":{},"bytes":193},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-PSVCPL4T.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":523},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-PSVCPL4T.mjs":{"imports":[],"exports":["KEY_BINDING","NAVTREE_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytesInOutput":125}},"bytes":277}}}
1
+ {"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytes":1484,"imports":[],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytes":16495,"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/plugin-graph","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/NavTreeItemAction.tsx":{"bytes":10682,"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/NavTree.tsx":{"bytes":13566,"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":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx","kind":"import-statement","original":"./NavTreeItemAction"},{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/NavTreeFooter.tsx":{"bytes":18453,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"date-fns/formatDistance","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","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/util.ts":{"bytes":12786,"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/NavTreeContainer.tsx":{"bytes":32056,"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/plugin-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/NavTreeFooter.tsx","kind":"import-statement","original":"./NavTreeFooter"},{"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/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/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":3982,"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/components/index.ts":{"bytes":941,"imports":[{"path":"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx","kind":"import-statement","original":"./CommandsDialog"},{"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/NavTreeDocumentTitle.tsx","kind":"import-statement","original":"./NavTreeDocumentTitle"},{"path":"packages/plugins/plugin-navtree/src/components/NotchStart.tsx","kind":"import-statement","original":"./NotchStart"}],"format":"esm"},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytes":4142,"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/translations.ts":{"bytes":2947,"imports":[{"path":"packages/plugins/plugin-navtree/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytes":40037,"imports":[{"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/keyboard","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":"@dxos/util","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/components/CommandsTrigger.tsx","kind":"import-statement","original":"./components/CommandsTrigger"},{"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"},{"path":"packages/plugins/plugin-navtree/src/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-navtree/src/index.ts":{"bytes":875,"imports":[{"path":"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx","kind":"import-statement","original":"./NavTreePlugin"},{"path":"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx","kind":"import-statement","original":"./NavTreePlugin"},{"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":83500},"packages/plugins/plugin-navtree/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-VAXG4OAG.mjs","kind":"import-statement"},{"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/keyboard","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":"@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/app-graph","kind":"import-statement","external":true},{"path":"@dxos/keyboard","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","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":"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":"@dxos/react-ui-list","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":"@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/plugin-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":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"date-fns/formatDistance","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","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/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":"@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}],"exports":["NavTreePlugin","default","expandActions","expandChildren","expandChildrenAndActions","getActions","getChildren","getParent","getPersistenceParent","resolveMigrationOperation","sortActions"],"entryPoint":"packages/plugins/plugin-navtree/src/index.ts","inputs":{"packages/plugins/plugin-navtree/src/NavTreePlugin.tsx":{"bytesInOutput":9137},"packages/plugins/plugin-navtree/src/components/CommandsDialog.tsx":{"bytesInOutput":3998},"packages/plugins/plugin-navtree/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-navtree/src/components/NavTree.tsx":{"bytesInOutput":3272},"packages/plugins/plugin-navtree/src/components/NavTreeItemAction.tsx":{"bytesInOutput":2504},"packages/plugins/plugin-navtree/src/components/NavTreeContainer.tsx":{"bytesInOutput":7862},"packages/plugins/plugin-navtree/src/components/NavTreeFooter.tsx":{"bytesInOutput":5339},"packages/plugins/plugin-navtree/src/util.ts":{"bytesInOutput":2751},"packages/plugins/plugin-navtree/src/components/NavTreeDocumentTitle.tsx":{"bytesInOutput":456},"packages/plugins/plugin-navtree/src/components/NotchStart.tsx":{"bytesInOutput":924},"packages/plugins/plugin-navtree/src/components/HaloButton.tsx":{"bytesInOutput":1237},"packages/plugins/plugin-navtree/src/components/CommandsTrigger.tsx":{"bytesInOutput":1042},"packages/plugins/plugin-navtree/src/translations.ts":{"bytesInOutput":801},"packages/plugins/plugin-navtree/src/index.ts":{"bytesInOutput":33}},"bytes":40821},"packages/plugins/plugin-navtree/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-navtree/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-navtree/dist/lib/browser/chunk-VAXG4OAG.mjs","kind":"import-statement"}],"exports":["COMMANDS_DIALOG","KEY_BINDING","NAVTREE_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-navtree/src/meta.ts","inputs":{},"bytes":231},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-VAXG4OAG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":675},"packages/plugins/plugin-navtree/dist/lib/browser/chunk-VAXG4OAG.mjs":{"imports":[],"exports":["COMMANDS_DIALOG","KEY_BINDING","NAVTREE_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-navtree/src/meta.ts":{"bytesInOutput":183}},"bytes":354}}}
@@ -1,9 +1,11 @@
1
1
  import {
2
+ COMMANDS_DIALOG,
2
3
  KEY_BINDING,
3
4
  NAVTREE_PLUGIN,
4
5
  meta_default
5
- } from "./chunk-PSVCPL4T.mjs";
6
+ } from "./chunk-VAXG4OAG.mjs";
6
7
  export {
8
+ COMMANDS_DIALOG,
7
9
  KEY_BINDING,
8
10
  NAVTREE_PLUGIN,
9
11
  meta_default as default
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreePlugin.d.ts","sourceRoot":"","sources":["../../../src/NavTreePlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,sBAAsB,EAE3B,KAAK,uBAAuB,EAO5B,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAgB7B,MAAM,MAAM,qBAAqB,GAAG,eAAe,GACjD,uBAAuB,GACvB,oBAAoB,GACpB,oBAAoB,GACpB,sBAAsB,CAAC;AAuBzB,eAAO,MAAM,aAAa,QAAO,gBAAgB,CAAC,qBAAqB,CAkPtE,CAAC"}
1
+ {"version":3,"file":"NavTreePlugin.d.ts","sourceRoot":"","sources":["../../../src/NavTreePlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,oBAAoB,EAEzB,KAAK,sBAAsB,EAE3B,KAAK,uBAAuB,EAO5B,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAgB7B,MAAM,MAAM,qBAAqB,GAAG,eAAe,GACjD,uBAAuB,GACvB,oBAAoB,GACpB,oBAAoB,GACpB,sBAAsB,CAAC;AAuBzB,eAAO,MAAM,aAAa,QAAO,gBAAgB,CAAC,qBAAqB,CAoPtE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CommandsTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/CommandsTrigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,eAAe,yBAiB3B,CAAC"}
1
+ {"version":3,"file":"CommandsTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/CommandsTrigger.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,eAAe,yBAoB3B,CAAC"}
@@ -10,11 +10,11 @@ type NavTreeColumnsProps = {
10
10
  path: string[];
11
11
  node: Node;
12
12
  getActions: (node: Node) => FlattenedActions;
13
- menuOpen: boolean;
14
- setMenuOpen: (open: boolean) => void;
13
+ open: boolean;
15
14
  loadDescendents?: (node: Node) => MaybePromise<void>;
16
15
  renderItemEnd?: FC<{
17
16
  node: Node;
17
+ open: boolean;
18
18
  }>;
19
19
  popoverAnchorId?: string;
20
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NavTree.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTree.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAoC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE5E,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,SAAS,CAAC,oBAAoB,CAAC,EAC/B,WAAW,GAAG,qBAAqB,GAAG,eAAe,CACtD,GACC,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,CAAC,CA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AK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,gBAAgB,CAAC;IAC7C,IAAI,EAAE,OAAO,CAAC;IACd,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IACrD,aAAa,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAClD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeContainer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AActE,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAM/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB,uEAAmD,qBAAqB,uBAmNnG,CAAC"}
1
+ {"version":3,"file":"NavTreeContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeContainer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AActE,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAM/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB,uEAAmD,qBAAqB,uBA6LnG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeFooter.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,qBAAqB,CAAC;AAwB7B,eAAO,MAAM,aAAa,UAAW;IAAE,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,sBAuH/D,CAAC"}
1
+ {"version":3,"file":"NavTreeFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeFooter.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,KAAK,UAAU,EAMhB,MAAM,qBAAqB,CAAC;AAwB7B,eAAO,MAAM,aAAa,UAAW;IAAE,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,sBAuH/D,CAAC"}
@@ -1,4 +1,4 @@
1
- import React, { type MutableRefObject, type PropsWithChildren } from 'react';
1
+ import React, { type MutableRefObject } from 'react';
2
2
  import { type Action, type Node } from '@dxos/app-graph';
3
3
  import { type ActionProperties } from '../types';
4
4
  export type NavTreeItemActionMenuProps = ActionProperties & {
@@ -7,17 +7,13 @@ export type NavTreeItemActionMenuProps = ActionProperties & {
7
7
  monolithic?: boolean;
8
8
  menuActions?: Action[];
9
9
  suppressNextTooltip?: MutableRefObject<boolean>;
10
- menuOpen?: boolean;
11
- defaultMenuOpen?: boolean;
12
- onChangeMenuOpen?: (nextOpen: boolean) => void;
13
10
  onAction?: (action: Action) => void;
14
11
  };
15
- export declare const NavTreeItemActionDropdownMenu: ({ label, icon, testId, defaultMenuOpen, menuActions, menuOpen, suppressNextTooltip, onChangeMenuOpen, onAction, }: NavTreeItemActionMenuProps) => React.JSX.Element;
16
- export declare const NavTreeItemActionContextMenu: (props: PropsWithChildren<Pick<NavTreeItemActionMenuProps, "menuActions" | "onAction">>) => React.JSX.Element;
17
- export declare const NavTreeItemActionSearchList: ({ menuActions, icon, label, testId, suppressNextTooltip, onAction, }: Pick<NavTreeItemActionMenuProps, "icon" | "menuActions" | "testId" | "label" | "onAction" | "suppressNextTooltip">) => React.JSX.Element;
18
- export declare const NavTreeItemMonolithicAction: ({ parent, properties: { disabled, caller, testId, label, icon }, data: invoke, }: Action & {
12
+ export declare const NavTreeItemActionDropdownMenu: ({ label, icon, testId, menuActions, onAction, }: NavTreeItemActionMenuProps) => React.JSX.Element;
13
+ export declare const NavTreeItemMonolithicAction: ({ parent, properties: { disabled, caller, testId, icon }, data: invoke, baseLabel, }: Action & {
19
14
  parent: Node;
20
15
  onAction?: (action: Action) => void;
16
+ baseLabel: string;
21
17
  }) => React.JSX.Element;
22
18
  export declare const NavTreeItemAction: ({ monolithic, menuActions, parent: node, ...props }: NavTreeItemActionMenuProps) => React.JSX.Element;
23
19
  //# sourceMappingURL=NavTreeItemAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeItemAction.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAoB,MAAM,OAAO,CAAC;AAE/F,OAAO,EAAE,KAAK,MAAM,EAAmB,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAiB1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GAAG;IAC1D,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,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AAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAYF,eAAO,MAAM,6BAA6B,oDAMvC,0BAA0B,sBAqB5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,yFAKrC,MAAM,GAAG;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,sBAiBnF,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAAyD,0BAA0B,sBAiBhH,CAAC"}
@@ -38,9 +38,4 @@ declare const _default: {
38
38
  };
39
39
  export default _default;
40
40
  export declare const Default: {};
41
- export declare const SearchList: {
42
- args: {
43
- menuType: string;
44
- };
45
- };
46
41
  //# sourceMappingURL=NavTreeItemAction.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeItemAction.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BzF,wBAaE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,UAAU;;;;CAAuC,CAAC"}
1
+ {"version":3,"file":"NavTreeItemAction.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/NavTreeItemAction.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAMrB,OAAO,EAAqB,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BzF,wBAaE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const NAVTREE_PLUGIN = "dxos.org/plugin/navtree";
2
2
  export declare const KEY_BINDING = "KeyBinding";
3
+ export declare const COMMANDS_DIALOG = "dxos.org/plugin/navtree/CommandsDialog";
3
4
  declare const _default: {
4
5
  id: string;
5
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAGxD,eAAO,MAAM,WAAW,eAAe,CAAC;;;;AAExC,wBAEuB"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAGxD,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,eAAO,MAAM,eAAe,2CAAqC,CAAC;;;;AAElE,wBAEuB"}
@@ -13,7 +13,6 @@ declare const _default: {
13
13
  'see release label': string;
14
14
  'powered by dxos message': string;
15
15
  'tree item actions label': string;
16
- 'tree item searchlist input placeholder': string;
17
16
  'empty branch message': string;
18
17
  };
19
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA,wBAqBE"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,wBAoBE"}
@@ -33,7 +33,7 @@ export type ActionProperties = SharedProperties & {
33
33
  disposition?: string;
34
34
  hidden?: boolean;
35
35
  caller?: string;
36
- menuType?: 'searchList' | 'dropdown';
36
+ menuType?: 'dropdown';
37
37
  keyBinding?: string | KeyBinding;
38
38
  };
39
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AA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AM,CAAC;IAChB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IAGvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":"5.7.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-navtree",
3
- "version": "0.7.4",
3
+ "version": "0.7.5-main.937ce75",
4
4
  "description": "DXOS Surface plugin for a tree view visualization of the graph.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -35,27 +35,28 @@
35
35
  "@preact/signals-core": "^1.6.0",
36
36
  "@radix-ui/react-use-controllable-state": "^1.0.0",
37
37
  "date-fns": "^3.3.1",
38
- "@dxos/app-framework": "0.7.4",
39
- "@dxos/app-graph": "0.7.4",
40
- "@dxos/async": "0.7.4",
41
- "@dxos/echo-schema": "0.7.4",
42
- "@dxos/debug": "0.7.4",
43
- "@dxos/invariant": "0.7.4",
44
- "@dxos/keyboard": "0.7.4",
45
- "@dxos/live-object": "0.7.4",
46
- "@dxos/local-storage": "0.7.4",
47
- "@dxos/plugin-client": "0.7.4",
48
- "@dxos/log": "0.7.4",
49
- "@dxos/plugin-graph": "0.7.4",
50
- "@dxos/plugin-observability": "0.7.4",
51
- "@dxos/protocols": "0.7.4",
52
- "@dxos/plugin-theme": "0.7.4",
53
- "@dxos/react-client": "0.7.4",
54
- "@dxos/react-ui-list": "0.7.4",
55
- "@dxos/react-ui-mosaic": "0.7.4",
56
- "@dxos/react-ui-searchlist": "0.7.4",
57
- "@dxos/util": "0.7.4",
58
- "@dxos/react-ui-stack": "0.7.4"
38
+ "@dxos/async": "0.7.5-main.937ce75",
39
+ "@dxos/app-framework": "0.7.5-main.937ce75",
40
+ "@dxos/app-graph": "0.7.5-main.937ce75",
41
+ "@dxos/invariant": "0.7.5-main.937ce75",
42
+ "@dxos/echo-schema": "0.7.5-main.937ce75",
43
+ "@dxos/debug": "0.7.5-main.937ce75",
44
+ "@dxos/live-object": "0.7.5-main.937ce75",
45
+ "@dxos/local-storage": "0.7.5-main.937ce75",
46
+ "@dxos/keyboard": "0.7.5-main.937ce75",
47
+ "@dxos/log": "0.7.5-main.937ce75",
48
+ "@dxos/plugin-client": "0.7.5-main.937ce75",
49
+ "@dxos/plugin-graph": "0.7.5-main.937ce75",
50
+ "@dxos/plugin-observability": "0.7.5-main.937ce75",
51
+ "@dxos/plugin-theme": "0.7.5-main.937ce75",
52
+ "@dxos/protocols": "0.7.5-main.937ce75",
53
+ "@dxos/react-client": "0.7.5-main.937ce75",
54
+ "@dxos/react-ui-list": "0.7.5-main.937ce75",
55
+ "@dxos/react-ui-mosaic": "0.7.5-main.937ce75",
56
+ "@dxos/react-ui-searchlist": "0.7.5-main.937ce75",
57
+ "@dxos/react-ui-menu": "0.7.5-main.937ce75",
58
+ "@dxos/react-ui-stack": "0.7.5-main.937ce75",
59
+ "@dxos/util": "0.7.5-main.937ce75"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@phosphor-icons/react": "^2.1.5",
@@ -64,18 +65,18 @@
64
65
  "react": "~18.2.0",
65
66
  "react-dom": "~18.2.0",
66
67
  "vite": "5.4.7",
67
- "@dxos/echo-signals": "0.7.4",
68
- "@dxos/random": "0.7.4",
69
- "@dxos/react-ui": "0.7.4",
70
- "@dxos/storybook-utils": "0.7.4",
71
- "@dxos/react-ui-theme": "0.7.4"
68
+ "@dxos/echo-signals": "0.7.5-main.937ce75",
69
+ "@dxos/react-ui": "0.7.5-main.937ce75",
70
+ "@dxos/random": "0.7.5-main.937ce75",
71
+ "@dxos/react-ui-theme": "0.7.5-main.937ce75",
72
+ "@dxos/storybook-utils": "0.7.5-main.937ce75"
72
73
  },
73
74
  "peerDependencies": {
74
75
  "@phosphor-icons/react": "^2.1.5",
75
76
  "react": "~18.2.0",
76
77
  "react-dom": "~18.2.0",
77
- "@dxos/react-ui": "0.7.4",
78
- "@dxos/react-ui-theme": "0.7.4"
78
+ "@dxos/react-ui": "0.7.5-main.937ce75",
79
+ "@dxos/react-ui-theme": "0.7.5-main.937ce75"
79
80
  },
80
81
  "publishConfig": {
81
82
  "access": "public"
@@ -6,6 +6,9 @@ import { effect } from '@preact/signals-core';
6
6
  import React from 'react';
7
7
 
8
8
  import {
9
+ createIntent,
10
+ createResolver,
11
+ createSurface,
9
12
  type GraphBuilderProvides,
10
13
  type GraphProvides,
11
14
  type IntentResolverProvides,
@@ -32,7 +35,7 @@ import { getHostPlatform } from '@dxos/util';
32
35
 
33
36
  import { CommandsDialogContent, NavTreeContainer, NavTreeDocumentTitle, NODE_TYPE, NotchStart } from './components';
34
37
  import { CommandsTrigger } from './components/CommandsTrigger';
35
- import meta, { KEY_BINDING, NAVTREE_PLUGIN } from './meta';
38
+ import meta, { COMMANDS_DIALOG, KEY_BINDING, NAVTREE_PLUGIN } from './meta';
36
39
  import translations from './translations';
37
40
  import { type NavTreeItemGraphNode } from './types';
38
41
  import { expandChildrenAndActions } from './util';
@@ -114,7 +117,7 @@ export const NavTreePlugin = (): PluginDefinition<NavTreePluginProvides> => {
114
117
 
115
118
  return {
116
119
  meta,
117
- ready: async (plugins) => {
120
+ ready: async ({ plugins }) => {
118
121
  const layout = resolvePlugin(plugins, parseLayoutPlugin)?.provides.layout;
119
122
  const location = resolvePlugin(plugins, parseNavigationPlugin)?.provides.location;
120
123
  graphPlugin = resolvePlugin(plugins, parseGraphPlugin);
@@ -124,9 +127,9 @@ export const NavTreePlugin = (): PluginDefinition<NavTreePluginProvides> => {
124
127
  }
125
128
 
126
129
  const soloPart = location?.active.solo?.[0];
127
- const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatch;
130
+ const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatchPromise;
128
131
  if (dispatch && soloPart) {
129
- void dispatch({ plugin: NAVTREE_PLUGIN, action: NavigationAction.EXPOSE, data: { id: soloPart.id } });
132
+ void dispatch(createIntent(NavigationAction.Expose, { id: soloPart.id }));
130
133
  }
131
134
 
132
135
  let previous: string[] = [];
@@ -212,65 +215,68 @@ export const NavTreePlugin = (): PluginDefinition<NavTreePluginProvides> => {
212
215
  },
213
216
  },
214
217
  surface: {
215
- component: ({ data, role }) => {
216
- switch (data.component) {
217
- case `${NAVTREE_PLUGIN}/Commands`: {
218
- const selected = typeof data.subject === 'string' ? data.subject : undefined;
219
- return <CommandsDialogContent selected={selected} />;
220
- }
221
- }
222
-
223
- switch (role) {
224
- case 'navigation':
225
- return (
226
- <NavTreeContainer
227
- isOpen={isOpen}
228
- isCurrent={isCurrent}
229
- onOpenChange={handleOpenChange}
230
- popoverAnchorId={data.popoverAnchorId as string}
231
- />
232
- );
233
-
234
- case 'document-title': {
235
- return <NavTreeDocumentTitle node={isGraphNode(data.activeNode) ? data.activeNode : undefined} />;
236
- }
237
-
238
- case 'notch-start':
239
- return <NotchStart />;
240
-
241
- case 'search-input':
242
- return {
243
- node: <CommandsTrigger />,
244
- disposition: 'fallback',
245
- };
246
- }
247
-
248
- return null;
249
- },
218
+ definitions: () => [
219
+ createSurface({
220
+ id: COMMANDS_DIALOG,
221
+ role: 'dialog',
222
+ filter: (data): data is { subject?: string } => data.component === COMMANDS_DIALOG,
223
+ component: ({ data }) => <CommandsDialogContent selected={data.subject} />,
224
+ }),
225
+ createSurface({
226
+ id: `${NAVTREE_PLUGIN}/navigation`,
227
+ role: 'navigation',
228
+ component: ({ data }) => (
229
+ <NavTreeContainer
230
+ isOpen={isOpen}
231
+ isCurrent={isCurrent}
232
+ onOpenChange={handleOpenChange}
233
+ popoverAnchorId={data.popoverAnchorId as string | undefined}
234
+ />
235
+ ),
236
+ }),
237
+ createSurface({
238
+ id: `${NAVTREE_PLUGIN}/document-title`,
239
+ role: 'document-title',
240
+ component: ({ data }) => (
241
+ <NavTreeDocumentTitle node={isGraphNode(data.subject) ? data.subject : undefined} />
242
+ ),
243
+ }),
244
+ createSurface({
245
+ id: `${NAVTREE_PLUGIN}/notch-start`,
246
+ role: 'notch-start',
247
+ component: () => <NotchStart />,
248
+ }),
249
+ createSurface({
250
+ id: `${NAVTREE_PLUGIN}/search-input`,
251
+ role: 'search-input',
252
+ disposition: 'fallback',
253
+ component: () => <CommandsTrigger />,
254
+ }),
255
+ ],
250
256
  },
251
257
  intent: {
252
- resolver: async (intent) => {
253
- switch (intent.action) {
254
- case NavigationAction.EXPOSE: {
255
- if (graph && intent.data?.id) {
256
- const path = await graph.waitForPath({ target: intent.data.id });
257
- [...Array(path.length)].forEach((_, index) => {
258
- const subpath = path.slice(0, index);
259
- const value = getItem(subpath);
260
- if (!value.open) {
261
- setItem(subpath, 'open', true);
262
- }
263
- });
264
- }
265
- break;
266
- }
258
+ resolvers: ({ plugins }) => {
259
+ const graph = resolvePlugin(plugins, parseGraphPlugin)?.provides.graph;
260
+ if (!graph) {
261
+ return [];
267
262
  }
263
+
264
+ return createResolver(NavigationAction.Expose, async ({ id }) => {
265
+ const path = await graph.waitForPath({ target: id });
266
+ [...Array(path.length)].forEach((_, index) => {
267
+ const subpath = path.slice(0, index);
268
+ const value = getItem(subpath);
269
+ if (!value.open) {
270
+ setItem(subpath, 'open', true);
271
+ }
272
+ });
273
+ });
268
274
  },
269
275
  },
270
276
  graph: {
271
277
  builder: (plugins) => {
272
278
  // TODO(burdon): Move to separate plugin (for keys and command k). Move bindings from LayoutPlugin.
273
- const intentPlugin = resolvePlugin(plugins, parseIntentPlugin);
279
+ const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatchPromise;
274
280
 
275
281
  return [
276
282
  createExtension({
@@ -278,16 +284,15 @@ export const NavTreePlugin = (): PluginDefinition<NavTreePluginProvides> => {
278
284
  filter: (node): node is Node<null> => node.id === 'root',
279
285
  actions: () => [
280
286
  {
281
- id: 'dxos.org/plugin/navtree/open-commands',
287
+ id: COMMANDS_DIALOG,
282
288
  data: async () => {
283
- await intentPlugin?.provides.intent.dispatch({
284
- action: LayoutAction.SET_LAYOUT,
285
- data: {
289
+ await dispatch?.(
290
+ createIntent(LayoutAction.SetLayout, {
286
291
  element: 'dialog',
287
- component: `${NAVTREE_PLUGIN}/Commands`,
292
+ component: COMMANDS_DIALOG,
288
293
  dialogBlockAlign: 'start',
289
- },
290
- });
294
+ }),
295
+ );
291
296
  },
292
297
  properties: {
293
298
  label: ['open commands label', { ns: NAVTREE_PLUGIN }],
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React, { useMemo, useState } from 'react';
6
6
 
7
- import { useIntentDispatcher, LayoutAction } from '@dxos/app-framework';
7
+ import { useIntentDispatcher, LayoutAction, createIntent } from '@dxos/app-framework';
8
8
  import { type ActionLike, isActionGroup, isAction } from '@dxos/app-graph';
9
9
  import { Keyboard, keySymbols } from '@dxos/keyboard';
10
10
  import { useGraph } from '@dxos/plugin-graph';
@@ -19,7 +19,7 @@ import { KEY_BINDING, NAVTREE_PLUGIN } from '../meta';
19
19
  export const CommandsDialogContent = ({ selected: initial }: { selected?: string }) => {
20
20
  const { t } = useTranslation(NAVTREE_PLUGIN);
21
21
  const [selected, setSelected] = useState<string | undefined>(initial);
22
- const dispatch = useIntentDispatcher();
22
+ const { dispatchPromise: dispatch } = useIntentDispatcher();
23
23
  const { graph } = useGraph();
24
24
 
25
25
  // Traverse graph.
@@ -83,7 +83,7 @@ export const CommandsDialogContent = ({ selected: initial }: { selected?: string
83
83
  return;
84
84
  }
85
85
 
86
- void dispatch({ action: LayoutAction.SET_LAYOUT, data: { element: 'dialog', state: false } });
86
+ void dispatch(createIntent(LayoutAction.SetLayout, { element: 'dialog', state: false }));
87
87
  setTimeout(() => {
88
88
  const node = graph.nodes(group ?? action, { relation: 'inbound' })[0];
89
89
  void (node && isAction(action) && action.data({ node, caller: KEY_BINDING }));