@dxos/plugin-explorer 0.7.5-main.9cb18ac → 0.7.5-main.9d2a38b
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/{ExplorerArticle-4F2ZO5QW.mjs → ExplorerContainer-A7UBZ3QP.mjs} +9 -8
- package/dist/lib/browser/ExplorerContainer-A7UBZ3QP.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KG3BEHW5.mjs → chunk-D67EYME2.mjs} +3 -3
- package/dist/lib/browser/chunk-D67EYME2.mjs.map +7 -0
- package/dist/lib/browser/chunk-DTAFIUA7.mjs +10832 -0
- package/dist/lib/browser/chunk-DTAFIUA7.mjs.map +7 -0
- package/dist/lib/browser/{chunk-SW3H4TIK.mjs → chunk-Q4MVJ6YE.mjs} +2 -2
- package/dist/lib/browser/{chunk-SW3H4TIK.mjs.map → chunk-Q4MVJ6YE.mjs.map} +2 -2
- package/dist/lib/browser/index.mjs +60 -10889
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-DADUM6T5.mjs +21 -0
- package/dist/lib/browser/intent-resolver-DADUM6T5.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +3 -3
- package/dist/lib/browser/react-surface-FW4Q2UQM.mjs +30 -0
- package/dist/lib/browser/react-surface-FW4Q2UQM.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{ExplorerArticle-SRBBSKFY.cjs → ExplorerContainer-ZV2YKOUE.cjs} +11 -10
- package/dist/lib/node/ExplorerContainer-ZV2YKOUE.cjs.map +7 -0
- package/dist/lib/node/{chunk-N6DCTBDJ.cjs → chunk-34MGVWOY.cjs} +7 -7
- package/dist/lib/node/chunk-34MGVWOY.cjs.map +7 -0
- package/dist/lib/node/chunk-4H2Y5RER.cjs +10854 -0
- package/dist/lib/node/chunk-4H2Y5RER.cjs.map +7 -0
- package/dist/lib/node/{chunk-PYKEM3BW.cjs → chunk-SFG2GX7G.cjs} +6 -6
- package/dist/lib/node/chunk-SFG2GX7G.cjs.map +7 -0
- package/dist/lib/node/index.cjs +56 -10872
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-resolver-2V3P4L25.cjs +36 -0
- package/dist/lib/node/intent-resolver-2V3P4L25.cjs.map +7 -0
- package/dist/lib/node/meta.cjs +5 -4
- package/dist/lib/node/meta.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{ExplorerMain-OP7Y6MBK.cjs → react-surface-7J4K5DDX.cjs} +21 -28
- package/dist/lib/node/react-surface-7J4K5DDX.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +4 -4
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{ExplorerArticle-OSHCNX4V.mjs → ExplorerContainer-JXY6XN2D.mjs} +9 -8
- package/dist/lib/node-esm/ExplorerContainer-JXY6XN2D.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JWVKJ4I5.mjs → chunk-7NVKKFPI.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-JWVKJ4I5.mjs.map → chunk-7NVKKFPI.mjs.map} +2 -2
- package/dist/lib/node-esm/chunk-HIMBUOZ3.mjs +10834 -0
- package/dist/lib/node-esm/chunk-HIMBUOZ3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UTMD4Q5R.mjs → chunk-ZEM6ZU5V.mjs} +3 -3
- package/dist/lib/node-esm/chunk-ZEM6ZU5V.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +60 -10889
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-3BG74H5K.mjs +22 -0
- package/dist/lib/node-esm/intent-resolver-3BG74H5K.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/meta.mjs +3 -3
- package/dist/lib/node-esm/react-surface-7ZTSGXJO.mjs +31 -0
- package/dist/lib/node-esm/react-surface-7ZTSGXJO.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/ExplorerPlugin.d.ts +1 -3
- package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +3 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/ExplorerContainer.d.ts +8 -0
- package/dist/types/src/components/ExplorerContainer.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +0 -3
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -31
- package/src/ExplorerPlugin.tsx +45 -39
- package/src/capabilities/index.ts +8 -0
- package/src/capabilities/intent-resolver.ts +16 -0
- package/src/capabilities/react-surface.tsx +22 -0
- package/src/components/{ExplorerArticle.tsx → ExplorerContainer.tsx} +5 -4
- package/src/components/index.ts +1 -2
- package/src/index.ts +1 -4
- package/src/meta.ts +1 -1
- package/src/types/types.ts +0 -13
- package/dist/lib/browser/ExplorerArticle-4F2ZO5QW.mjs.map +0 -7
- package/dist/lib/browser/ExplorerMain-2X2GH7RE.mjs +0 -33
- package/dist/lib/browser/ExplorerMain-2X2GH7RE.mjs.map +0 -7
- package/dist/lib/browser/chunk-KG3BEHW5.mjs.map +0 -7
- package/dist/lib/node/ExplorerArticle-SRBBSKFY.cjs.map +0 -7
- package/dist/lib/node/ExplorerMain-OP7Y6MBK.cjs.map +0 -7
- package/dist/lib/node/chunk-N6DCTBDJ.cjs.map +0 -7
- package/dist/lib/node/chunk-PYKEM3BW.cjs.map +0 -7
- package/dist/lib/node-esm/ExplorerArticle-OSHCNX4V.mjs.map +0 -7
- package/dist/lib/node-esm/ExplorerMain-RQCVOCX7.mjs +0 -34
- package/dist/lib/node-esm/ExplorerMain-RQCVOCX7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UTMD4Q5R.mjs.map +0 -7
- package/dist/types/src/components/ExplorerArticle.d.ts +0 -7
- package/dist/types/src/components/ExplorerArticle.d.ts.map +0 -1
- package/dist/types/src/components/ExplorerMain.d.ts +0 -7
- package/dist/types/src/components/ExplorerMain.d.ts.map +0 -1
- package/src/components/ExplorerMain.tsx +0 -34
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import React from 'react';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
|
|
8
|
+
|
|
9
|
+
import { ExplorerContainer } from '../components';
|
|
10
|
+
import { EXPLORER_PLUGIN } from '../meta';
|
|
11
|
+
import { ViewType } from '../types';
|
|
12
|
+
|
|
13
|
+
export default () =>
|
|
14
|
+
contributes(
|
|
15
|
+
Capabilities.ReactSurface,
|
|
16
|
+
createSurface({
|
|
17
|
+
id: `${EXPLORER_PLUGIN}/article`,
|
|
18
|
+
role: ['article', 'section'],
|
|
19
|
+
filter: (data): data is { subject: ViewType } => data.subject instanceof ViewType,
|
|
20
|
+
component: ({ data, role }) => <ExplorerContainer view={data.subject} role={role} />,
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
@@ -6,11 +6,12 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
import { useGlobalSearch } from '@dxos/plugin-search';
|
|
8
8
|
import { getSpace } from '@dxos/react-client/echo';
|
|
9
|
+
import { StackItem } from '@dxos/react-ui-stack';
|
|
9
10
|
|
|
10
11
|
import { Graph } from './Graph';
|
|
11
12
|
import { type ViewType } from '../types';
|
|
12
13
|
|
|
13
|
-
const
|
|
14
|
+
const ExplorerContainer = ({ view, role }: { view: ViewType; role: string }) => {
|
|
14
15
|
const space = getSpace(view);
|
|
15
16
|
const { match } = useGlobalSearch();
|
|
16
17
|
|
|
@@ -19,10 +20,10 @@ const ExplorerArticle = ({ view }: { view: ViewType }) => {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
|
-
<
|
|
23
|
+
<StackItem.Content toolbar={false} size={role === 'section' ? 'square' : 'intrinsic'}>
|
|
23
24
|
<Graph space={space} match={match} />
|
|
24
|
-
</
|
|
25
|
+
</StackItem.Content>
|
|
25
26
|
);
|
|
26
27
|
};
|
|
27
28
|
|
|
28
|
-
export default
|
|
29
|
+
export default ExplorerContainer;
|
package/src/components/index.ts
CHANGED
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { lazy } from 'react';
|
|
6
6
|
|
|
7
|
-
export const
|
|
8
|
-
export const ExplorerArticle = lazy(() => import('./ExplorerArticle'));
|
|
7
|
+
export const ExplorerContainer = lazy(() => import('./ExplorerContainer'));
|
|
9
8
|
|
|
10
9
|
export * from './Chart';
|
|
11
10
|
export * from './Globe';
|
package/src/index.ts
CHANGED
package/src/meta.ts
CHANGED
package/src/types/types.ts
CHANGED
|
@@ -2,14 +2,7 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import type {
|
|
6
|
-
IntentResolverProvides,
|
|
7
|
-
MetadataRecordsProvides,
|
|
8
|
-
SurfaceProvides,
|
|
9
|
-
TranslationsProvides,
|
|
10
|
-
} from '@dxos/app-framework';
|
|
11
5
|
import { S } from '@dxos/echo-schema';
|
|
12
|
-
import { type SchemaProvides } from '@dxos/plugin-space';
|
|
13
6
|
|
|
14
7
|
import { ViewType } from './schema';
|
|
15
8
|
import { EXPLORER_PLUGIN } from '../meta';
|
|
@@ -26,9 +19,3 @@ export namespace ExplorerAction {
|
|
|
26
19
|
}),
|
|
27
20
|
}) {}
|
|
28
21
|
}
|
|
29
|
-
|
|
30
|
-
export type ExplorerPluginProvides = SurfaceProvides &
|
|
31
|
-
IntentResolverProvides &
|
|
32
|
-
MetadataRecordsProvides &
|
|
33
|
-
TranslationsProvides &
|
|
34
|
-
SchemaProvides;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/ExplorerArticle.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useGlobalSearch } from '@dxos/plugin-search';\nimport { getSpace } from '@dxos/react-client/echo';\n\nimport { Graph } from './Graph';\nimport { type ViewType } from '../types';\n\nconst ExplorerArticle = ({ view }: { view: ViewType }) => {\n const space = getSpace(view);\n const { match } = useGlobalSearch();\n\n if (!space) {\n return null;\n }\n\n return (\n <div role='none' className='row-span-2 overflow-auto'>\n <Graph space={space} match={match} />\n </div>\n );\n};\n\nexport default ExplorerArticle;\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,uBAAuB;AAChC,SAASC,gBAAgB;AAKzB,IAAMC,kBAAkB,CAAC,EAAEC,KAAI,MAAsB;AACnD,QAAMC,QAAQC,SAASF,IAAAA;AACvB,QAAM,EAAEG,MAAK,IAAKC,gBAAAA;AAElB,MAAI,CAACH,OAAO;AACV,WAAO;EACT;AAEA,SACE,sBAAA,cAACI,OAAAA;IAAIC,MAAK;IAAOC,WAAU;KACzB,sBAAA,cAACC,OAAAA;IAAMP;IAAcE;;AAG3B;AAEA,IAAA,0BAAeJ;",
|
|
6
|
-
"names": ["React", "useGlobalSearch", "getSpace", "ExplorerArticle", "view", "space", "getSpace", "match", "useGlobalSearch", "div", "role", "className", "Graph"]
|
|
7
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Graph
|
|
3
|
-
} from "./chunk-5GTLMW4Q.mjs";
|
|
4
|
-
|
|
5
|
-
// packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx
|
|
6
|
-
import React from "react";
|
|
7
|
-
import { useGlobalSearch } from "@dxos/plugin-search";
|
|
8
|
-
import { getSpace } from "@dxos/react-client/echo";
|
|
9
|
-
import { Main } from "@dxos/react-ui";
|
|
10
|
-
import { baseSurface, topbarBlockPaddingStart, fixedInsetFlexLayout, bottombarBlockPaddingEnd } from "@dxos/react-ui-theme";
|
|
11
|
-
var ExplorerMain = ({ view }) => {
|
|
12
|
-
const space = getSpace(view);
|
|
13
|
-
const { match } = useGlobalSearch();
|
|
14
|
-
if (!space) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return /* @__PURE__ */ React.createElement(Main.Content, {
|
|
18
|
-
classNames: [
|
|
19
|
-
baseSurface,
|
|
20
|
-
fixedInsetFlexLayout,
|
|
21
|
-
topbarBlockPaddingStart,
|
|
22
|
-
bottombarBlockPaddingEnd
|
|
23
|
-
]
|
|
24
|
-
}, /* @__PURE__ */ React.createElement(Graph, {
|
|
25
|
-
space,
|
|
26
|
-
match
|
|
27
|
-
}));
|
|
28
|
-
};
|
|
29
|
-
var ExplorerMain_default = ExplorerMain;
|
|
30
|
-
export {
|
|
31
|
-
ExplorerMain_default as default
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=ExplorerMain-2X2GH7RE.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/ExplorerMain.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useGlobalSearch } from '@dxos/plugin-search';\nimport { getSpace } from '@dxos/react-client/echo';\nimport { Main } from '@dxos/react-ui';\nimport {\n baseSurface,\n topbarBlockPaddingStart,\n fixedInsetFlexLayout,\n bottombarBlockPaddingEnd,\n} from '@dxos/react-ui-theme';\n\nimport { Graph } from './Graph';\nimport { type ViewType } from '../types';\n\nconst ExplorerMain = ({ view }: { view: ViewType }) => {\n const space = getSpace(view);\n const { match } = useGlobalSearch();\n if (!space) {\n return null;\n }\n\n return (\n <Main.Content classNames={[baseSurface, fixedInsetFlexLayout, topbarBlockPaddingStart, bottombarBlockPaddingEnd]}>\n <Graph space={space} match={match} />\n </Main.Content>\n );\n};\n\nexport default ExplorerMain;\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,uBAAuB;AAChC,SAASC,gBAAgB;AACzB,SAASC,YAAY;AACrB,SACEC,aACAC,yBACAC,sBACAC,gCACK;AAKP,IAAMC,eAAe,CAAC,EAAEC,KAAI,MAAsB;AAChD,QAAMC,QAAQC,SAASF,IAAAA;AACvB,QAAM,EAAEG,MAAK,IAAKC,gBAAAA;AAClB,MAAI,CAACH,OAAO;AACV,WAAO;EACT;AAEA,SACE,sBAAA,cAACI,KAAKC,SAAO;IAACC,YAAY;MAACC;MAAaC;MAAsBC;MAAyBC;;KACrF,sBAAA,cAACC,OAAAA;IAAMX;IAAcE;;AAG3B;AAEA,IAAA,uBAAeJ;",
|
|
6
|
-
"names": ["React", "useGlobalSearch", "getSpace", "Main", "baseSurface", "topbarBlockPaddingStart", "fixedInsetFlexLayout", "bottombarBlockPaddingEnd", "ExplorerMain", "view", "space", "getSpace", "match", "useGlobalSearch", "Main", "Content", "classNames", "baseSurface", "fixedInsetFlexLayout", "topbarBlockPaddingStart", "bottombarBlockPaddingEnd", "Graph"]
|
|
7
|
-
}
|
|
@@ -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 EXPLORER_PLUGIN = 'dxos.org/plugin/explorer';\n\nexport default {\n id: EXPLORER_PLUGIN,\n name: 'Explorer',\n description: 'Explore the ECHO hypergraph.',\n icon: 'ph--graph--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-explorer',\n tags: ['experimental'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";AAMO,IAAMA,kBAAkB;AAE/B,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;",
|
|
6
|
-
"names": ["EXPLORER_PLUGIN", "id", "name", "description", "icon", "source", "tags"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/ExplorerArticle.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useGlobalSearch } from '@dxos/plugin-search';\nimport { getSpace } from '@dxos/react-client/echo';\n\nimport { Graph } from './Graph';\nimport { type ViewType } from '../types';\n\nconst ExplorerArticle = ({ view }: { view: ViewType }) => {\n const space = getSpace(view);\n const { match } = useGlobalSearch();\n\n if (!space) {\n return null;\n }\n\n return (\n <div role='none' className='row-span-2 overflow-auto'>\n <Graph space={space} match={match} />\n </div>\n );\n};\n\nexport default ExplorerArticle;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAgC;AAChC,kBAAyB;AAKzB,IAAMA,kBAAkB,CAAC,EAAEC,KAAI,MAAsB;AACnD,QAAMC,YAAQC,sBAASF,IAAAA;AACvB,QAAM,EAAEG,MAAK,QAAKC,sCAAAA;AAElB,MAAI,CAACH,OAAO;AACV,WAAO;EACT;AAEA,SACE,6BAAAI,QAAA,cAACC,OAAAA;IAAIC,MAAK;IAAOC,WAAU;KACzB,6BAAAH,QAAA,cAACI,6BAAAA;IAAMR;IAAcE;;AAG3B;AAEA,IAAA,0BAAeJ;",
|
|
6
|
-
"names": ["ExplorerArticle", "view", "space", "getSpace", "match", "useGlobalSearch", "React", "div", "role", "className", "Graph"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/ExplorerMain.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useGlobalSearch } from '@dxos/plugin-search';\nimport { getSpace } from '@dxos/react-client/echo';\nimport { Main } from '@dxos/react-ui';\nimport {\n baseSurface,\n topbarBlockPaddingStart,\n fixedInsetFlexLayout,\n bottombarBlockPaddingEnd,\n} from '@dxos/react-ui-theme';\n\nimport { Graph } from './Graph';\nimport { type ViewType } from '../types';\n\nconst ExplorerMain = ({ view }: { view: ViewType }) => {\n const space = getSpace(view);\n const { match } = useGlobalSearch();\n if (!space) {\n return null;\n }\n\n return (\n <Main.Content classNames={[baseSurface, fixedInsetFlexLayout, topbarBlockPaddingStart, bottombarBlockPaddingEnd]}>\n <Graph space={space} match={match} />\n </Main.Content>\n );\n};\n\nexport default ExplorerMain;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAgC;AAChC,kBAAyB;AACzB,sBAAqB;AACrB,4BAKO;AAKP,IAAMA,eAAe,CAAC,EAAEC,KAAI,MAAsB;AAChD,QAAMC,YAAQC,sBAASF,IAAAA;AACvB,QAAM,EAAEG,MAAK,QAAKC,sCAAAA;AAClB,MAAI,CAACH,OAAO;AACV,WAAO;EACT;AAEA,SACE,6BAAAI,QAAA,cAACC,qBAAKC,SAAO;IAACC,YAAY;MAACC;MAAaC;MAAsBC;MAAyBC;;KACrF,6BAAAP,QAAA,cAACQ,6BAAAA;IAAMZ;IAAcE;;AAG3B;AAEA,IAAA,uBAAeJ;",
|
|
6
|
-
"names": ["ExplorerMain", "view", "space", "getSpace", "match", "useGlobalSearch", "React", "Main", "Content", "classNames", "baseSurface", "fixedInsetFlexLayout", "topbarBlockPaddingStart", "bottombarBlockPaddingEnd", "Graph"]
|
|
7
|
-
}
|
|
@@ -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 EXPLORER_PLUGIN = 'dxos.org/plugin/explorer';\n\nexport default {\n id: EXPLORER_PLUGIN,\n name: 'Explorer',\n description: 'Explore the ECHO hypergraph.',\n icon: 'ph--graph--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-explorer',\n tags: ['experimental'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,kBAAkB;AAE/B,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;",
|
|
6
|
-
"names": ["EXPLORER_PLUGIN", "id", "name", "description", "icon", "source", "tags"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/schema.ts", "../../../src/types/types.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { S, TypedObject } from '@dxos/echo-schema';\n\n// TODO(burdon): Clashes with sdk/view.\nexport class ViewType extends TypedObject({\n typename: 'dxos.org/type/View',\n version: '0.1.0',\n})({\n name: S.optional(S.String),\n type: S.String,\n}) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type {\n IntentResolverProvides,\n MetadataRecordsProvides,\n SurfaceProvides,\n TranslationsProvides,\n} from '@dxos/app-framework';\nimport { S } from '@dxos/echo-schema';\nimport { type SchemaProvides } from '@dxos/plugin-space';\n\nimport { ViewType } from './schema';\nimport { EXPLORER_PLUGIN } from '../meta';\n\nexport namespace ExplorerAction {\n const EXPLORER_ACTION = `${EXPLORER_PLUGIN}/action`;\n\n export class Create extends S.TaggedClass<Create>()(`${EXPLORER_ACTION}/create`, {\n input: S.Struct({\n name: S.optional(S.String),\n }),\n output: S.Struct({\n object: ViewType,\n }),\n }) {}\n}\n\nexport type ExplorerPluginProvides = SurfaceProvides &\n IntentResolverProvides &\n MetadataRecordsProvides &\n TranslationsProvides &\n SchemaProvides;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAA+B;ACM/B,IAAAA,sBAAkB;ADHX,IAAMC,WAAN,kBAAuBC,gCAAY;EACxCC,UAAU;EACVC,SAAS;AACX,CAAA,EAAG;EACDC,MAAMC,qBAAEC,SAASD,qBAAEE,MAAM;EACzBC,MAAMH,qBAAEE;AACV,CAAA,EAAA;AAAI;;UCGaE,iBAAAA;AACf,QAAMC,kBAAkB,GAAGC,qCAAAA;EAEpB,MAAMC,eAAeP,oBAAAA,EAAEQ,YAAW,EAAW,GAAGH,eAAAA,WAA0B;IAC/EI,OAAOT,oBAAAA,EAAEU,OAAO;MACdX,MAAMC,oBAAAA,EAAEC,SAASD,oBAAAA,EAAEE,MAAM;IAC3B,CAAA;IACAS,QAAQX,oBAAAA,EAAEU,OAAO;MACfE,QAAQjB;IACV,CAAA;EACF,CAAA,EAAA;EAAI;kBAPSY,SAAAA;AAQf,GAXiBH,mBAAAA,iBAAAA,CAAAA,EAAAA;",
|
|
6
|
-
"names": ["import_echo_schema", "ViewType", "TypedObject", "typename", "version", "name", "S", "optional", "String", "type", "ExplorerAction", "EXPLORER_ACTION", "EXPLORER_PLUGIN", "Create", "TaggedClass", "input", "Struct", "output", "object"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/ExplorerArticle.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useGlobalSearch } from '@dxos/plugin-search';\nimport { getSpace } from '@dxos/react-client/echo';\n\nimport { Graph } from './Graph';\nimport { type ViewType } from '../types';\n\nconst ExplorerArticle = ({ view }: { view: ViewType }) => {\n const space = getSpace(view);\n const { match } = useGlobalSearch();\n\n if (!space) {\n return null;\n }\n\n return (\n <div role='none' className='row-span-2 overflow-auto'>\n <Graph space={space} match={match} />\n </div>\n );\n};\n\nexport default ExplorerArticle;\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,uBAAuB;AAChC,SAASC,gBAAgB;AAKzB,IAAMC,kBAAkB,CAAC,EAAEC,KAAI,MAAsB;AACnD,QAAMC,QAAQC,SAASF,IAAAA;AACvB,QAAM,EAAEG,MAAK,IAAKC,gBAAAA;AAElB,MAAI,CAACH,OAAO;AACV,WAAO;EACT;AAEA,SACE,sBAAA,cAACI,OAAAA;IAAIC,MAAK;IAAOC,WAAU;KACzB,sBAAA,cAACC,OAAAA;IAAMP;IAAcE;;AAG3B;AAEA,IAAA,0BAAeJ;",
|
|
6
|
-
"names": ["React", "useGlobalSearch", "getSpace", "ExplorerArticle", "view", "space", "getSpace", "match", "useGlobalSearch", "div", "role", "className", "Graph"]
|
|
7
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
Graph
|
|
4
|
-
} from "./chunk-WTGQFG6L.mjs";
|
|
5
|
-
|
|
6
|
-
// packages/plugins/experimental/plugin-explorer/src/components/ExplorerMain.tsx
|
|
7
|
-
import React from "react";
|
|
8
|
-
import { useGlobalSearch } from "@dxos/plugin-search";
|
|
9
|
-
import { getSpace } from "@dxos/react-client/echo";
|
|
10
|
-
import { Main } from "@dxos/react-ui";
|
|
11
|
-
import { baseSurface, topbarBlockPaddingStart, fixedInsetFlexLayout, bottombarBlockPaddingEnd } from "@dxos/react-ui-theme";
|
|
12
|
-
var ExplorerMain = ({ view }) => {
|
|
13
|
-
const space = getSpace(view);
|
|
14
|
-
const { match } = useGlobalSearch();
|
|
15
|
-
if (!space) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return /* @__PURE__ */ React.createElement(Main.Content, {
|
|
19
|
-
classNames: [
|
|
20
|
-
baseSurface,
|
|
21
|
-
fixedInsetFlexLayout,
|
|
22
|
-
topbarBlockPaddingStart,
|
|
23
|
-
bottombarBlockPaddingEnd
|
|
24
|
-
]
|
|
25
|
-
}, /* @__PURE__ */ React.createElement(Graph, {
|
|
26
|
-
space,
|
|
27
|
-
match
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
var ExplorerMain_default = ExplorerMain;
|
|
31
|
-
export {
|
|
32
|
-
ExplorerMain_default as default
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=ExplorerMain-RQCVOCX7.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/ExplorerMain.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useGlobalSearch } from '@dxos/plugin-search';\nimport { getSpace } from '@dxos/react-client/echo';\nimport { Main } from '@dxos/react-ui';\nimport {\n baseSurface,\n topbarBlockPaddingStart,\n fixedInsetFlexLayout,\n bottombarBlockPaddingEnd,\n} from '@dxos/react-ui-theme';\n\nimport { Graph } from './Graph';\nimport { type ViewType } from '../types';\n\nconst ExplorerMain = ({ view }: { view: ViewType }) => {\n const space = getSpace(view);\n const { match } = useGlobalSearch();\n if (!space) {\n return null;\n }\n\n return (\n <Main.Content classNames={[baseSurface, fixedInsetFlexLayout, topbarBlockPaddingStart, bottombarBlockPaddingEnd]}>\n <Graph space={space} match={match} />\n </Main.Content>\n );\n};\n\nexport default ExplorerMain;\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,uBAAuB;AAChC,SAASC,gBAAgB;AACzB,SAASC,YAAY;AACrB,SACEC,aACAC,yBACAC,sBACAC,gCACK;AAKP,IAAMC,eAAe,CAAC,EAAEC,KAAI,MAAsB;AAChD,QAAMC,QAAQC,SAASF,IAAAA;AACvB,QAAM,EAAEG,MAAK,IAAKC,gBAAAA;AAClB,MAAI,CAACH,OAAO;AACV,WAAO;EACT;AAEA,SACE,sBAAA,cAACI,KAAKC,SAAO;IAACC,YAAY;MAACC;MAAaC;MAAsBC;MAAyBC;;KACrF,sBAAA,cAACC,OAAAA;IAAMX;IAAcE;;AAG3B;AAEA,IAAA,uBAAeJ;",
|
|
6
|
-
"names": ["React", "useGlobalSearch", "getSpace", "Main", "baseSurface", "topbarBlockPaddingStart", "fixedInsetFlexLayout", "bottombarBlockPaddingEnd", "ExplorerMain", "view", "space", "getSpace", "match", "useGlobalSearch", "Main", "Content", "classNames", "baseSurface", "fixedInsetFlexLayout", "topbarBlockPaddingStart", "bottombarBlockPaddingEnd", "Graph"]
|
|
7
|
-
}
|
|
@@ -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 EXPLORER_PLUGIN = 'dxos.org/plugin/explorer';\n\nexport default {\n id: EXPLORER_PLUGIN,\n name: 'Explorer',\n description: 'Explore the ECHO hypergraph.',\n icon: 'ph--graph--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-explorer',\n tags: ['experimental'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;AAMO,IAAMA,kBAAkB;AAE/B,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;",
|
|
6
|
-
"names": ["EXPLORER_PLUGIN", "id", "name", "description", "icon", "source", "tags"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerArticle.d.ts","sourceRoot":"","sources":["../../../../src/components/ExplorerArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,QAAA,MAAM,eAAe,aAAc;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,6BAapD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerMain.d.ts","sourceRoot":"","sources":["../../../../src/components/ExplorerMain.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,QAAA,MAAM,YAAY,aAAc;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,6BAYjD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { useGlobalSearch } from '@dxos/plugin-search';
|
|
8
|
-
import { getSpace } from '@dxos/react-client/echo';
|
|
9
|
-
import { Main } from '@dxos/react-ui';
|
|
10
|
-
import {
|
|
11
|
-
baseSurface,
|
|
12
|
-
topbarBlockPaddingStart,
|
|
13
|
-
fixedInsetFlexLayout,
|
|
14
|
-
bottombarBlockPaddingEnd,
|
|
15
|
-
} from '@dxos/react-ui-theme';
|
|
16
|
-
|
|
17
|
-
import { Graph } from './Graph';
|
|
18
|
-
import { type ViewType } from '../types';
|
|
19
|
-
|
|
20
|
-
const ExplorerMain = ({ view }: { view: ViewType }) => {
|
|
21
|
-
const space = getSpace(view);
|
|
22
|
-
const { match } = useGlobalSearch();
|
|
23
|
-
if (!space) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<Main.Content classNames={[baseSurface, fixedInsetFlexLayout, topbarBlockPaddingStart, bottombarBlockPaddingEnd]}>
|
|
29
|
-
<Graph space={space} match={match} />
|
|
30
|
-
</Main.Content>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export default ExplorerMain;
|