@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.
- package/dist/lib/browser/{chunk-PSVCPL4T.mjs → chunk-VAXG4OAG.mjs} +3 -1
- package/dist/lib/browser/chunk-VAXG4OAG.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +165 -352
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +3 -1
- package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
- package/dist/types/src/components/CommandsTrigger.d.ts.map +1 -1
- package/dist/types/src/components/NavTree.d.ts +2 -2
- package/dist/types/src/components/NavTree.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeContainer.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeFooter.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeItemAction.d.ts +4 -8
- package/dist/types/src/components/NavTreeItemAction.d.ts.map +1 -1
- package/dist/types/src/components/NavTreeItemAction.stories.d.ts +0 -5
- package/dist/types/src/components/NavTreeItemAction.stories.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +1 -1
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +30 -29
- package/src/NavTreePlugin.tsx +67 -62
- package/src/components/CommandsDialog.tsx +3 -3
- package/src/components/CommandsTrigger.tsx +10 -7
- package/src/components/NavTree.tsx +6 -11
- package/src/components/NavTreeContainer.tsx +32 -54
- package/src/components/NavTreeFooter.tsx +3 -2
- package/src/components/NavTreeItemAction.stories.tsx +0 -2
- package/src/components/NavTreeItemAction.tsx +53 -316
- package/src/components/NotchStart.tsx +4 -4
- package/src/meta.ts +2 -0
- package/src/translations.ts +0 -1
- package/src/types.ts +1 -1
- 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/
|
|
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(
|
|
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,
|
package/src/translations.ts
CHANGED
|
@@ -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
|
@@ -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
|
-
}
|