@dxos/plugin-navtree 0.6.13 → 0.6.14-main.2b6a0f3
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-U7MTKDFQ.mjs → chunk-PSVCPL4T.mjs} +1 -1
- package/dist/lib/browser/chunk-PSVCPL4T.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +57 -44
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +1 -1
- package/dist/types/src/NavTreePlugin.d.ts.map +1 -1
- package/dist/types/src/components/CommandsDialog.d.ts.map +1 -1
- package/dist/types/src/components/HaloButton.stories.d.ts +5 -9
- package/dist/types/src/components/HaloButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/NavBarStart.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/experimental/Tree.stories.d.ts +3 -7
- package/dist/types/src/experimental/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/stories/Graph.stories.d.ts +3 -6
- package/dist/types/src/stories/Graph.stories.d.ts.map +1 -1
- package/package.json +32 -30
- package/src/NavTreePlugin.tsx +2 -4
- package/src/components/CommandsDialog.tsx +2 -4
- package/src/components/HaloButton.stories.tsx +8 -6
- package/src/components/NavBarStart.tsx +2 -4
- package/src/components/NavTreeContainer.tsx +78 -64
- package/src/components/NavTreeFooter.tsx +1 -1
- package/src/experimental/Tree.stories.tsx +11 -8
- package/src/experimental/Tree.tsx +2 -2
- package/src/meta.ts +3 -1
- package/src/stories/Graph.stories.tsx +11 -8
- package/dist/lib/browser/chunk-U7MTKDFQ.mjs.map +0 -7
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
7
|
import { batch } from '@preact/signals-core';
|
|
8
|
+
import { type Meta } from '@storybook/react';
|
|
8
9
|
import React, { useMemo, useState } from 'react';
|
|
9
10
|
|
|
10
11
|
import { Graph } from '@dxos/app-graph';
|
|
11
|
-
import {
|
|
12
|
+
import { registerSignalsRuntime } from '@dxos/echo-signals/react';
|
|
12
13
|
import { faker } from '@dxos/random';
|
|
13
14
|
import { Treegrid } from '@dxos/react-ui';
|
|
14
15
|
import { Mosaic, Path, type MosaicDropEvent, type MosaicMoveEvent, type MosaicOperation } from '@dxos/react-ui-mosaic';
|
|
@@ -19,7 +20,7 @@ import { arrayMove } from '@dxos/util';
|
|
|
19
20
|
import { type NavTreeItemGraphNode, treeItemsFromRootNode } from '../util';
|
|
20
21
|
|
|
21
22
|
faker.seed(3);
|
|
22
|
-
|
|
23
|
+
registerSignalsRuntime();
|
|
23
24
|
|
|
24
25
|
const createGraph = () => {
|
|
25
26
|
const graph = new Graph();
|
|
@@ -132,12 +133,6 @@ const StorybookNavTree = ({ id = ROOT_ID }: { id?: string }) => {
|
|
|
132
133
|
);
|
|
133
134
|
};
|
|
134
135
|
|
|
135
|
-
export default {
|
|
136
|
-
title: 'react-ui-navtree/Graph',
|
|
137
|
-
component: NavTree,
|
|
138
|
-
decorators: [withTheme, withLayout({ fullscreen: true, tooltips: true })],
|
|
139
|
-
};
|
|
140
|
-
|
|
141
136
|
export const Default = {
|
|
142
137
|
render: ({ debug }: { debug?: boolean }) => (
|
|
143
138
|
<Mosaic.Root debug={debug}>
|
|
@@ -146,3 +141,11 @@ export const Default = {
|
|
|
146
141
|
</Mosaic.Root>
|
|
147
142
|
),
|
|
148
143
|
};
|
|
144
|
+
|
|
145
|
+
const meta: Meta = {
|
|
146
|
+
title: 'plugins/plugin-navtree/Graph',
|
|
147
|
+
component: NavTree,
|
|
148
|
+
decorators: [withTheme, withLayout({ fullscreen: true, tooltips: true })],
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\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};\n"],
|
|
5
|
-
"mappings": ";AAIO,IAAMA,iBAAiB;AAGvB,IAAMC,cAAc;AAE3B,IAAA,eAAe;EACbC,IAAIF;AACN;",
|
|
6
|
-
"names": ["NAVTREE_PLUGIN", "KEY_BINDING", "id"]
|
|
7
|
-
}
|