@dxos/plugin-explorer 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51
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/index.mjs +11 -44
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +20 -3
- package/dist/lib/browser/meta.mjs.map +4 -4
- package/dist/lib/browser/translations.mjs +33 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +3 -1
- package/dist/lib/browser/types/index.mjs.map +3 -3
- package/dist/lib/node-esm/index.mjs +11 -44
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/meta.mjs +20 -3
- package/dist/lib/node-esm/meta.mjs.map +4 -4
- package/dist/lib/node-esm/translations.mjs +34 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +3 -1
- package/dist/lib/node-esm/types/index.mjs.map +3 -3
- package/dist/types/data/cities.d.ts +4 -4
- package/dist/types/data/cities.d.ts.map +1 -1
- package/dist/types/data/countries-110m.d.ts +19 -22
- package/dist/types/data/countries-110m.d.ts.map +1 -1
- package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.stories.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.map +1 -1
- package/dist/types/src/components/Graph/D3ForceGraph.d.ts +1 -1
- package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts +1 -1
- package/dist/types/src/components/Graph/D3ForceGraph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/ForceGraph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Graph/adapter.d.ts.map +1 -1
- package/dist/types/src/components/Graph/testing.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tree/layout/HierarchicalEdgeBundling.d.ts.map +1 -1
- package/dist/types/src/components/Tree/layout/RadialTree.d.ts.map +1 -1
- package/dist/types/src/components/Tree/layout/TidyTree.d.ts.map +1 -1
- package/dist/types/src/components/Tree/testing/generator.d.ts.map +1 -1
- package/dist/types/src/components/Tree/types/tree.d.ts +6 -6
- package/dist/types/src/components/Tree/types/tree.d.ts.map +1 -1
- package/dist/types/src/components/Tree/types/types.d.ts.map +1 -1
- package/dist/types/src/components/plot.d.ts.map +1 -1
- package/dist/types/src/containers/ExplorerContainer/ExplorerContainer.d.ts +1 -1
- package/dist/types/src/containers/ExplorerContainer/ExplorerContainer.d.ts.map +1 -1
- package/dist/types/src/hooks/useGraphModel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +17 -17
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Graph.d.ts +2 -2
- package/dist/types/src/types/Graph.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -32
- package/src/ExplorerPlugin.tsx +2 -3
- package/src/components/Tree/testing/generator.ts +1 -1
- package/src/components/Tree/types/tree.test.ts +1 -1
- package/src/components/Tree/types/tree.ts +9 -9
- package/src/containers/ExplorerContainer/ExplorerContainer.tsx +2 -2
- package/src/index.ts +0 -1
- package/src/translations.ts +1 -1
- package/src/types/Graph.ts +1 -1
- package/dist/lib/browser/chunk-LSUP47BZ.mjs +0 -24
- package/dist/lib/browser/chunk-LSUP47BZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-EN3JZNEY.mjs +0 -26
- package/dist/lib/node-esm/chunk-EN3JZNEY.mjs.map +0 -7
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
meta
|
|
3
|
-
} from "./chunk-LSUP47BZ.mjs";
|
|
4
1
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
2
|
|
|
6
3
|
// src/components/Chart/Chart.tsx
|
|
@@ -11287,49 +11284,20 @@ import * as Effect from "effect/Effect";
|
|
|
11287
11284
|
import * as Option from "effect/Option";
|
|
11288
11285
|
import { Plugin } from "@dxos/app-framework";
|
|
11289
11286
|
import { AppPlugin } from "@dxos/app-toolkit";
|
|
11290
|
-
import {
|
|
11291
|
-
import {
|
|
11287
|
+
import { Operation } from "@dxos/compute";
|
|
11288
|
+
import { Annotation, Type as Type2 } from "@dxos/echo";
|
|
11292
11289
|
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
11293
11290
|
import { ViewModel } from "@dxos/schema";
|
|
11294
11291
|
import { ReactSurface } from "#capabilities";
|
|
11295
|
-
import { meta
|
|
11296
|
-
import {
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
import { Type as Type2 } from "@dxos/echo";
|
|
11300
|
-
import { translations as componentsTranslations } from "@dxos/react-ui-components";
|
|
11301
|
-
import { meta as meta2 } from "#meta";
|
|
11302
|
-
import { Graph } from "#types";
|
|
11303
|
-
var translations = [
|
|
11304
|
-
{
|
|
11305
|
-
"en-US": {
|
|
11306
|
-
[Type2.getTypename(Graph.Graph)]: {
|
|
11307
|
-
"typename.label": "Explorer",
|
|
11308
|
-
"typename.label_zero": "Explorers",
|
|
11309
|
-
"typename.label_one": "Explorer",
|
|
11310
|
-
"typename.label_other": "Explorers",
|
|
11311
|
-
"object-name.placeholder": "New explorer",
|
|
11312
|
-
"add-object.label": "Add explorer",
|
|
11313
|
-
"rename-object.label": "Rename explorer",
|
|
11314
|
-
"delete-object.label": "Delete explorer",
|
|
11315
|
-
"object-deleted.label": "Explorer deleted"
|
|
11316
|
-
},
|
|
11317
|
-
[meta2.id]: {
|
|
11318
|
-
"plugin.name": "Explorer",
|
|
11319
|
-
"object-title.label": "Title"
|
|
11320
|
-
}
|
|
11321
|
-
}
|
|
11322
|
-
},
|
|
11323
|
-
...componentsTranslations
|
|
11324
|
-
];
|
|
11325
|
-
|
|
11326
|
-
// src/ExplorerPlugin.tsx
|
|
11327
|
-
var ExplorerPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
11292
|
+
import { meta } from "#meta";
|
|
11293
|
+
import { translations } from "#translations";
|
|
11294
|
+
import { ExplorerAction, Graph } from "#types";
|
|
11295
|
+
var ExplorerPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
|
|
11328
11296
|
metadata: {
|
|
11329
|
-
id:
|
|
11297
|
+
id: Type2.getTypename(Graph.Graph),
|
|
11330
11298
|
metadata: {
|
|
11331
|
-
icon: Annotation.IconAnnotation.get(
|
|
11332
|
-
iconHue: Annotation.IconAnnotation.get(
|
|
11299
|
+
icon: Annotation.IconAnnotation.get(Graph.Graph).pipe(Option.getOrThrow).icon,
|
|
11300
|
+
iconHue: Annotation.IconAnnotation.get(Graph.Graph).pipe(Option.getOrThrow).hue ?? "white",
|
|
11333
11301
|
inputSchema: ExplorerAction.GraphProps,
|
|
11334
11302
|
createObject: (props, options) => Effect.gen(function* () {
|
|
11335
11303
|
const object = yield* Effect.promise(async () => {
|
|
@@ -11337,7 +11305,7 @@ var ExplorerPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
|
11337
11305
|
db: options.db,
|
|
11338
11306
|
typename: props.typename
|
|
11339
11307
|
});
|
|
11340
|
-
return
|
|
11308
|
+
return Graph.make({
|
|
11341
11309
|
name: props.name,
|
|
11342
11310
|
view
|
|
11343
11311
|
});
|
|
@@ -11353,7 +11321,7 @@ var ExplorerPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
|
11353
11321
|
}
|
|
11354
11322
|
}), AppPlugin.addSchemaModule({
|
|
11355
11323
|
schema: [
|
|
11356
|
-
|
|
11324
|
+
Graph.Graph
|
|
11357
11325
|
]
|
|
11358
11326
|
}), AppPlugin.addSurfaceModule({
|
|
11359
11327
|
activate: ReactSurface
|
|
@@ -11368,7 +11336,6 @@ export {
|
|
|
11368
11336
|
Globe,
|
|
11369
11337
|
Tree,
|
|
11370
11338
|
defaultTreeLayoutSlots,
|
|
11371
|
-
meta,
|
|
11372
11339
|
useGraphModel
|
|
11373
11340
|
};
|
|
11374
11341
|
//# sourceMappingURL=index.mjs.map
|