@dxos/plugin-explorer 0.8.4-main.67995b8 → 0.8.4-main.dedc0f3
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/{ExplorerContainer-OGHSHZD5.mjs → ExplorerContainer-7MTDS2TQ.mjs} +3 -3
- package/dist/lib/browser/{ExplorerContainer-OGHSHZD5.mjs.map → ExplorerContainer-7MTDS2TQ.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-OAOY7SHY.mjs → chunk-2MKBRIUT.mjs} +6 -5
- package/dist/lib/browser/chunk-2MKBRIUT.mjs.map +7 -0
- package/dist/lib/browser/{chunk-J2BBZOSF.mjs → chunk-3YITRGGW.mjs} +23 -7
- package/dist/lib/browser/{chunk-J2BBZOSF.mjs.map → chunk-3YITRGGW.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-EF4BFHTI.mjs → chunk-CZZ3DDR7.mjs} +1 -1
- package/dist/lib/browser/{chunk-EF4BFHTI.mjs.map → chunk-CZZ3DDR7.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-PVFZFKQ6.mjs → chunk-VNOGW2JS.mjs} +34 -22
- package/dist/lib/browser/{chunk-PVFZFKQ6.mjs.map → chunk-VNOGW2JS.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +7 -7
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-XH2UO2FM.mjs → intent-resolver-7MVEYNX7.mjs} +3 -3
- package/dist/lib/browser/{intent-resolver-XH2UO2FM.mjs.map → intent-resolver-7MVEYNX7.mjs.map} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-65VQ42HX.mjs → react-surface-VLGQKYBI.mjs} +4 -4
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{ExplorerContainer-6ON5NA2P.mjs → ExplorerContainer-OBSRVHZZ.mjs} +3 -3
- package/dist/lib/node-esm/{ExplorerContainer-6ON5NA2P.mjs.map → ExplorerContainer-OBSRVHZZ.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-PPBUWC7F.mjs → chunk-3ODK27PU.mjs} +6 -5
- package/dist/lib/node-esm/chunk-3ODK27PU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-VKCOKQRG.mjs → chunk-4GWDNZ4Z.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-VKCOKQRG.mjs.map → chunk-4GWDNZ4Z.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-4VMSNXYL.mjs → chunk-GFYXDQQV.mjs} +23 -7
- package/dist/lib/node-esm/{chunk-4VMSNXYL.mjs.map → chunk-GFYXDQQV.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-S5A2EUSJ.mjs → chunk-ODMJ7DPA.mjs} +34 -22
- package/dist/lib/node-esm/{chunk-S5A2EUSJ.mjs.map → chunk-ODMJ7DPA.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +7 -7
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-AGBBNA67.mjs → intent-resolver-NL3SR2XF.mjs} +3 -3
- package/dist/lib/node-esm/{intent-resolver-AGBBNA67.mjs.map → intent-resolver-NL3SR2XF.mjs.map} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-IJIMYAST.mjs → react-surface-BYJABDS5.mjs} +4 -4
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.stories.d.ts +5 -3
- package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
- package/dist/types/src/components/ExplorerContainer.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts +5 -3
- package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +17 -3
- package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/ForceGraph.stories.d.ts +10 -3
- package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/testing.d.ts +1 -1
- package/dist/types/src/components/Graph/testing.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.stories.d.ts +13 -15
- package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useGraphModel.d.ts +2 -2
- package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -35
- package/src/ExplorerPlugin.tsx +2 -2
- package/src/capabilities/intent-resolver.ts +1 -1
- package/src/components/Chart/Chart.stories.tsx +4 -3
- package/src/components/Chart/Chart.tsx +1 -1
- package/src/components/ExplorerContainer.tsx +2 -1
- package/src/components/Globe/Globe.stories.tsx +9 -8
- package/src/components/Globe/Globe.tsx +1 -1
- package/src/components/Graph/D3ForceGraph.stories.tsx +10 -7
- package/src/components/Graph/D3ForceGraph.tsx +1 -1
- package/src/components/Graph/ForceGraph.stories.tsx +10 -7
- package/src/components/Graph/ForceGraph.tsx +1 -1
- package/src/components/Graph/testing.ts +2 -2
- package/src/components/Tree/Tree.stories.tsx +27 -19
- package/src/components/Tree/Tree.tsx +1 -1
- package/src/components/Tree/types/tree.test.ts +2 -1
- package/src/hooks/useGraphModel.ts +5 -4
- package/src/types/types.ts +2 -1
- package/dist/lib/browser/chunk-OAOY7SHY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PPBUWC7F.mjs.map +0 -7
- /package/dist/lib/browser/{react-surface-65VQ42HX.mjs.map → react-surface-VLGQKYBI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-IJIMYAST.mjs.map → react-surface-BYJABDS5.mjs.map} +0 -0
|
@@ -10978,6 +10978,19 @@ var TidyTree_default = TidyTree;
|
|
|
10978
10978
|
import { Schema } from "effect";
|
|
10979
10979
|
import { Key, Obj, Type } from "@dxos/echo";
|
|
10980
10980
|
import { invariant } from "@dxos/invariant";
|
|
10981
|
+
function _define_property(obj, key, value) {
|
|
10982
|
+
if (key in obj) {
|
|
10983
|
+
Object.defineProperty(obj, key, {
|
|
10984
|
+
value,
|
|
10985
|
+
enumerable: true,
|
|
10986
|
+
configurable: true,
|
|
10987
|
+
writable: true
|
|
10988
|
+
});
|
|
10989
|
+
} else {
|
|
10990
|
+
obj[key] = value;
|
|
10991
|
+
}
|
|
10992
|
+
return obj;
|
|
10993
|
+
}
|
|
10981
10994
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-explorer/src/components/Tree/types/tree.ts";
|
|
10982
10995
|
var TreeNodeType = Schema.Struct({
|
|
10983
10996
|
id: Key.ObjectId,
|
|
@@ -10999,26 +11012,6 @@ var TreeType = Schema.Struct({
|
|
|
10999
11012
|
version: "0.1.0"
|
|
11000
11013
|
}));
|
|
11001
11014
|
var Tree = class _Tree {
|
|
11002
|
-
static {
|
|
11003
|
-
this.create = () => {
|
|
11004
|
-
const id = Key.ObjectId.random();
|
|
11005
|
-
return Obj.make(TreeType, {
|
|
11006
|
-
root: id,
|
|
11007
|
-
nodes: {
|
|
11008
|
-
[id]: {
|
|
11009
|
-
id,
|
|
11010
|
-
children: [],
|
|
11011
|
-
data: {
|
|
11012
|
-
text: ""
|
|
11013
|
-
}
|
|
11014
|
-
}
|
|
11015
|
-
}
|
|
11016
|
-
});
|
|
11017
|
-
};
|
|
11018
|
-
}
|
|
11019
|
-
constructor(tree3) {
|
|
11020
|
-
this._tree = tree3 ?? _Tree.create();
|
|
11021
|
-
}
|
|
11022
11015
|
get tree() {
|
|
11023
11016
|
return this._tree;
|
|
11024
11017
|
}
|
|
@@ -11236,7 +11229,26 @@ var Tree = class _Tree {
|
|
|
11236
11229
|
ancestor.children.splice(parentIdx + 1, 0, node.id);
|
|
11237
11230
|
node.children.push(...rest);
|
|
11238
11231
|
}
|
|
11232
|
+
constructor(tree3) {
|
|
11233
|
+
_define_property(this, "_tree", void 0);
|
|
11234
|
+
this._tree = tree3 ?? _Tree.create();
|
|
11235
|
+
}
|
|
11239
11236
|
};
|
|
11237
|
+
_define_property(Tree, "create", () => {
|
|
11238
|
+
const id = Key.ObjectId.random();
|
|
11239
|
+
return Obj.make(TreeType, {
|
|
11240
|
+
root: id,
|
|
11241
|
+
nodes: {
|
|
11242
|
+
[id]: {
|
|
11243
|
+
id,
|
|
11244
|
+
children: [],
|
|
11245
|
+
data: {
|
|
11246
|
+
text: ""
|
|
11247
|
+
}
|
|
11248
|
+
}
|
|
11249
|
+
}
|
|
11250
|
+
});
|
|
11251
|
+
});
|
|
11240
11252
|
|
|
11241
11253
|
// src/components/Tree/types/types.ts
|
|
11242
11254
|
var mapGraphToTreeData = (model, maxDepth = 8) => {
|
|
@@ -11319,7 +11331,7 @@ var Tree2 = ({ space, selected, variant = "tidy", onNodeClick }) => {
|
|
|
11319
11331
|
|
|
11320
11332
|
// src/components/index.ts
|
|
11321
11333
|
import { lazy } from "react";
|
|
11322
|
-
var ExplorerContainer = lazy(() => import("./ExplorerContainer-
|
|
11334
|
+
var ExplorerContainer = lazy(() => import("./ExplorerContainer-OBSRVHZZ.mjs"));
|
|
11323
11335
|
|
|
11324
11336
|
export {
|
|
11325
11337
|
Chart,
|
|
@@ -11328,4 +11340,4 @@ export {
|
|
|
11328
11340
|
Tree2 as Tree,
|
|
11329
11341
|
ExplorerContainer
|
|
11330
11342
|
};
|
|
11331
|
-
//# sourceMappingURL=chunk-
|
|
11343
|
+
//# sourceMappingURL=chunk-ODMJ7DPA.mjs.map
|