@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
@@ -4,8 +4,8 @@
4
4
 
5
5
  import React from 'react';
6
6
 
7
- import { useIntentDispatcher, useResolvePlugin } from '@dxos/app-framework';
8
- import { ClientAction } from '@dxos/plugin-client/meta';
7
+ import { createIntent, useIntentDispatcher, useResolvePlugin } from '@dxos/app-framework';
8
+ import { ClientAction } from '@dxos/plugin-client/types';
9
9
  import { parseObservabilityPlugin } from '@dxos/plugin-observability';
10
10
  import { useIdentity } from '@dxos/react-client/halo';
11
11
 
@@ -15,7 +15,7 @@ import { HaloButton } from './HaloButton';
15
15
  export const NotchStart = () => {
16
16
  const identity = useIdentity();
17
17
  const observabilityPlugin = useResolvePlugin(parseObservabilityPlugin);
18
- const dispatch = useIntentDispatcher();
18
+ const { dispatchPromise: dispatch } = useIntentDispatcher();
19
19
  return (
20
20
  <HaloButton
21
21
  size={8}
@@ -23,7 +23,7 @@ export const NotchStart = () => {
23
23
  hue={identity?.profile?.data?.hue}
24
24
  emoji={identity?.profile?.data?.emoji}
25
25
  internal={observabilityPlugin?.provides?.observability?.group === 'dxos'}
26
- onClick={() => dispatch({ action: ClientAction.SHARE_IDENTITY })}
26
+ onClick={() => dispatch(createIntent(ClientAction.ShareIdentity))}
27
27
  />
28
28
  );
29
29
  };
package/src/meta.ts CHANGED
@@ -8,6 +8,8 @@ export const NAVTREE_PLUGIN = 'dxos.org/plugin/navtree';
8
8
 
9
9
  // TODO(wittjosiah): Factor out.
10
10
  export const KEY_BINDING = 'KeyBinding';
11
+ // TODO(wittjosiah): Factor out.
12
+ export const COMMANDS_DIALOG = `${NAVTREE_PLUGIN}/CommandsDialog`;
11
13
 
12
14
  export default {
13
15
  id: NAVTREE_PLUGIN,
@@ -20,7 +20,6 @@ export default [
20
20
  'see release label': 'See release on GitHub',
21
21
  'powered by dxos message': 'Powered by <dxos>DXOS</dxos>',
22
22
  'tree item actions label': 'More actions',
23
- 'tree item searchlist input placeholder': 'Search for actions…',
24
23
  'empty branch message': ' ',
25
24
  },
26
25
  },
package/src/types.ts CHANGED
@@ -47,7 +47,7 @@ export type ActionProperties = SharedProperties & {
47
47
  disposition?: string;
48
48
  hidden?: boolean;
49
49
  caller?: string;
50
- menuType?: 'searchList' | 'dropdown';
50
+ menuType?: 'dropdown';
51
51
  keyBinding?: string | KeyBinding;
52
52
  };
53
53
 
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const NAVTREE_PLUGIN = 'dxos.org/plugin/navtree';\n\n// TODO(wittjosiah): Factor out.\nexport const KEY_BINDING = 'KeyBinding';\n\nexport default {\n id: NAVTREE_PLUGIN,\n} satisfies PluginMeta;\n"],
5
- "mappings": ";AAMO,IAAMA,iBAAiB;AAGvB,IAAMC,cAAc;AAE3B,IAAA,eAAe;EACbC,IAAIF;AACN;",
6
- "names": ["NAVTREE_PLUGIN", "KEY_BINDING", "id"]
7
- }