@dxos/plugin-explorer 0.7.5-main.ff8607b → 0.7.5-staging.2ff1350
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-GY4YC3IQ.mjs → chunk-PMHCTMKT.mjs} +2 -2
- package/dist/lib/browser/{chunk-GY4YC3IQ.mjs.map → chunk-PMHCTMKT.mjs.map} +1 -1
- package/dist/lib/browser/index.mjs +18 -6
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-OGYZ43EW.mjs → intent-resolver-UJNDAIDZ.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-HYZB4FAX.mjs → react-surface-EGSBRYNS.mjs} +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{chunk-6NIQMBZG.cjs → chunk-YUY7P7R2.cjs} +5 -5
- package/dist/lib/node/{chunk-6NIQMBZG.cjs.map → chunk-YUY7P7R2.cjs.map} +1 -1
- package/dist/lib/node/index.cjs +20 -8
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-CD7WUMFB.cjs → intent-resolver-XQV24IAA.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-C4UQSO4W.cjs → react-surface-6B67W6YP.cjs} +6 -6
- package/dist/lib/node/types/index.cjs +3 -3
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{chunk-5TIFUXPS.mjs → chunk-57K7ORAW.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-5TIFUXPS.mjs.map → chunk-57K7ORAW.mjs.map} +1 -1
- package/dist/lib/node-esm/index.mjs +18 -6
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-HJFRNGY6.mjs → intent-resolver-RZQ3EEOE.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-BYYIHKIN.mjs → react-surface-72EIBLSU.mjs} +2 -2
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/ExplorerPlugin.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.d.ts +1 -2
- package/dist/types/src/components/Chart/Chart.d.ts.map +1 -1
- package/dist/types/src/components/Chart/Chart.stories.d.ts +1 -2
- package/dist/types/src/components/Chart/Chart.stories.d.ts.map +1 -1
- package/dist/types/src/components/ExplorerContainer.d.ts +1 -2
- package/dist/types/src/components/ExplorerContainer.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.d.ts +1 -2
- package/dist/types/src/components/Globe/Globe.d.ts.map +1 -1
- package/dist/types/src/components/Globe/Globe.stories.d.ts +2 -3
- package/dist/types/src/components/Globe/Globe.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tree/Tree.d.ts +1 -2
- package/dist/types/src/components/Tree/Tree.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +13 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/package.json +25 -24
- package/src/ExplorerPlugin.tsx +16 -3
- package/src/translations.ts +4 -0
- package/src/types/schema.ts +1 -1
- /package/dist/lib/browser/{intent-resolver-OGYZ43EW.mjs.map → intent-resolver-UJNDAIDZ.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-HYZB4FAX.mjs.map → react-surface-EGSBRYNS.mjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-CD7WUMFB.cjs.map → intent-resolver-XQV24IAA.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-C4UQSO4W.cjs.map → react-surface-6B67W6YP.cjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-HJFRNGY6.mjs.map → intent-resolver-RZQ3EEOE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-BYYIHKIN.mjs.map → react-surface-72EIBLSU.mjs.map} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { type DotOptions } from '@observablehq/plot';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { type Accessor, type Point } from '../plot';
|
|
4
3
|
export type CharProps = {
|
|
5
4
|
items?: any[];
|
|
6
5
|
accessor?: Accessor<Point>;
|
|
7
6
|
options?: DotOptions;
|
|
8
7
|
};
|
|
9
|
-
export declare const Chart: ({ items, accessor, options }: CharProps) =>
|
|
8
|
+
export declare const Chart: ({ items, accessor, options }: CharProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
//# sourceMappingURL=Chart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chart.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/Chart.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Chart.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/Chart.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAIrD,OAAO,EAAE,KAAK,QAAQ,EAAiB,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AASnE,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,KAAK,iCAAwD,SAAS,4CA6BlF,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { Chart } from './Chart';
|
|
5
|
-
export declare const Default: () =>
|
|
4
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
declare const meta: Meta<typeof Chart>;
|
|
7
6
|
export default meta;
|
|
8
7
|
//# sourceMappingURL=Chart.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chart.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/Chart.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Chart.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chart/Chart.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAoBhC,eAAO,MAAM,OAAO,+CAA6C,CAAC;AAElE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAI5B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type ViewType } from '../types';
|
|
3
2
|
declare const ExplorerContainer: ({ view, role }: {
|
|
4
3
|
view: ViewType;
|
|
5
4
|
role: string;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
6
|
export default ExplorerContainer;
|
|
8
7
|
//# sourceMappingURL=ExplorerContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ExplorerContainer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExplorerContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ExplorerContainer.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,QAAA,MAAM,iBAAiB,mBAAoB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,mDAa1E,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { DotOptions } from '@observablehq/plot';
|
|
2
2
|
import * as Plot from '@observablehq/plot';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { type Accessor, type GeoLocation } from '../plot';
|
|
5
4
|
export type GlobeProps = {
|
|
6
5
|
items?: any[];
|
|
@@ -8,5 +7,5 @@ export type GlobeProps = {
|
|
|
8
7
|
projection?: Plot.ProjectionName;
|
|
9
8
|
options?: DotOptions;
|
|
10
9
|
};
|
|
11
|
-
export declare const Globe: ({ items, accessor, projection, options }: GlobeProps) =>
|
|
10
|
+
export declare const Globe: ({ items, accessor, projection, options }: GlobeProps) => import("react/jsx-runtime.js").JSX.Element;
|
|
12
11
|
//# sourceMappingURL=Globe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Globe.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAM3C,OAAO,EAAE,KAAK,QAAQ,EAAiB,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAOzE,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC;IACjC,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,KAAK,6CAAqF,UAAU,+CAsChH,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const Extended: () => React.JSX.Element;
|
|
3
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Extended: () => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
declare const meta: Meta;
|
|
7
6
|
export default meta;
|
|
8
7
|
//# sourceMappingURL=Globe.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Globe.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Globe/Globe.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA2E7C,eAAO,MAAM,OAAO,+CAAgE,CAAC;AAErF,eAAO,MAAM,QAAQ,+CAAiE,CAAC;AAEvF,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type Space } from '@dxos/client/echo';
|
|
3
2
|
export type LayoutVariant = 'tidy' | 'radial' | 'edge';
|
|
4
3
|
export type TreeLayoutSlots = {
|
|
@@ -23,5 +22,5 @@ export type TreeComponentProps<N = unknown> = {
|
|
|
23
22
|
variant?: LayoutVariant;
|
|
24
23
|
onNodeClick?: (node?: N) => void;
|
|
25
24
|
};
|
|
26
|
-
export declare const Tree: <N>({ space, selected, variant, onNodeClick }: TreeComponentProps<N>) =>
|
|
25
|
+
export declare const Tree: <N>({ space, selected, variant, onNodeClick }: TreeComponentProps<N>) => import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
//# sourceMappingURL=Tree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAY/C,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAGvD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;IAE1B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAIpC,CAAC;AAQF,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;CAClC,CAAC;AAGF,eAAO,MAAM,IAAI,GAAI,CAAC,6CAAuD,kBAAkB,CAAC,CAAC,CAAC,4CA6CjG,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const ExplorerContainer: import("react").LazyExoticComponent<({ view, role }: {
|
|
2
2
|
view: import("../types").ViewType;
|
|
3
3
|
role: string;
|
|
4
|
-
}) => import("react").JSX.Element | null>;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
5
5
|
export * from './Chart';
|
|
6
6
|
export * from './Globe';
|
|
7
7
|
export * from './Graph';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;;;qDAA4C,CAAC;AAE3E,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'en-US': {
|
|
3
|
+
[x: string]: {
|
|
4
|
+
'typename label': string;
|
|
5
|
+
'plugin name'?: undefined;
|
|
6
|
+
'object title label'?: undefined;
|
|
7
|
+
'object title placeholder'?: undefined;
|
|
8
|
+
'create object label'?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
'plugin name': string;
|
|
11
|
+
'object title label': string;
|
|
12
|
+
'object title placeholder': string;
|
|
13
|
+
'create object label': string;
|
|
14
|
+
'typename label'?: undefined;
|
|
15
|
+
};
|
|
3
16
|
"dxos.org/plugin/explorer": {
|
|
4
17
|
'plugin name': string;
|
|
5
18
|
'object title label': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAcE"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-explorer",
|
|
3
|
-
"version": "0.7.5-
|
|
3
|
+
"version": "0.7.5-staging.2ff1350",
|
|
4
4
|
"description": "Braneframe data visualization plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "DXOS.org",
|
|
9
9
|
"sideEffects": true,
|
|
10
|
+
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -40,21 +41,21 @@
|
|
|
40
41
|
"lodash.get": "^4.4.2",
|
|
41
42
|
"react-resize-detector": "^11.0.1",
|
|
42
43
|
"topojson-client": "^3.1.0",
|
|
43
|
-
"@dxos/app-framework": "0.7.5-
|
|
44
|
-
"@dxos/async": "0.7.5-
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/client": "0.7.5-
|
|
48
|
-
"@dxos/gem-spore": "0.7.5-
|
|
49
|
-
"@dxos/live-object": "0.7.5-
|
|
50
|
-
"@dxos/log": "0.7.5-
|
|
51
|
-
"@dxos/plugin-client": "0.7.5-
|
|
52
|
-
"@dxos/plugin-
|
|
53
|
-
"@dxos/plugin-graph": "0.7.5-
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/react-
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
44
|
+
"@dxos/app-framework": "0.7.5-staging.2ff1350",
|
|
45
|
+
"@dxos/async": "0.7.5-staging.2ff1350",
|
|
46
|
+
"@dxos/gem-core": "0.7.5-staging.2ff1350",
|
|
47
|
+
"@dxos/echo-schema": "0.7.5-staging.2ff1350",
|
|
48
|
+
"@dxos/client": "0.7.5-staging.2ff1350",
|
|
49
|
+
"@dxos/gem-spore": "0.7.5-staging.2ff1350",
|
|
50
|
+
"@dxos/live-object": "0.7.5-staging.2ff1350",
|
|
51
|
+
"@dxos/log": "0.7.5-staging.2ff1350",
|
|
52
|
+
"@dxos/plugin-client": "0.7.5-staging.2ff1350",
|
|
53
|
+
"@dxos/plugin-search": "0.7.5-staging.2ff1350",
|
|
54
|
+
"@dxos/plugin-graph": "0.7.5-staging.2ff1350",
|
|
55
|
+
"@dxos/react-client": "0.7.5-staging.2ff1350",
|
|
56
|
+
"@dxos/react-ui-stack": "0.7.5-staging.2ff1350",
|
|
57
|
+
"@dxos/util": "0.7.5-staging.2ff1350",
|
|
58
|
+
"@dxos/plugin-space": "0.7.5-staging.2ff1350"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
61
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -69,19 +70,19 @@
|
|
|
69
70
|
"react": "~18.2.0",
|
|
70
71
|
"react-dom": "~18.2.0",
|
|
71
72
|
"vite": "5.4.7",
|
|
72
|
-
"@dxos/echo-generator": "0.7.5-
|
|
73
|
-
"@dxos/plugin-outliner": "0.7.5-
|
|
74
|
-
"@dxos/random": "0.7.5-
|
|
75
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
76
|
-
"@dxos/react-ui": "0.7.5-
|
|
77
|
-
"@dxos/storybook-utils": "0.7.5-
|
|
73
|
+
"@dxos/echo-generator": "0.7.5-staging.2ff1350",
|
|
74
|
+
"@dxos/plugin-outliner": "0.7.5-staging.2ff1350",
|
|
75
|
+
"@dxos/random": "0.7.5-staging.2ff1350",
|
|
76
|
+
"@dxos/react-ui-theme": "0.7.5-staging.2ff1350",
|
|
77
|
+
"@dxos/react-ui": "0.7.5-staging.2ff1350",
|
|
78
|
+
"@dxos/storybook-utils": "0.7.5-staging.2ff1350"
|
|
78
79
|
},
|
|
79
80
|
"peerDependencies": {
|
|
80
81
|
"@phosphor-icons/react": "^2.1.5",
|
|
81
82
|
"react": "~18.2.0",
|
|
82
83
|
"react-dom": "~18.2.0",
|
|
83
|
-
"@dxos/react-ui": "0.7.5-
|
|
84
|
-
"@dxos/react-ui
|
|
84
|
+
"@dxos/react-ui-theme": "0.7.5-staging.2ff1350",
|
|
85
|
+
"@dxos/react-ui": "0.7.5-staging.2ff1350"
|
|
85
86
|
},
|
|
86
87
|
"publishConfig": {
|
|
87
88
|
"access": "public"
|
package/src/ExplorerPlugin.tsx
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';
|
|
6
6
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
7
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
8
|
+
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
7
9
|
|
|
8
10
|
import { IntentResolver, ReactSurface } from './capabilities';
|
|
9
11
|
import { EXPLORER_PLUGIN, meta } from './meta';
|
|
@@ -24,12 +26,23 @@ export const ExplorerPlugin = () =>
|
|
|
24
26
|
contributes(Capabilities.Metadata, {
|
|
25
27
|
id: ViewType.typename,
|
|
26
28
|
metadata: {
|
|
27
|
-
createObject: (props: { name?: string }) => createIntent(ExplorerAction.Create, props),
|
|
28
29
|
placeholder: ['object title placeholder', { ns: EXPLORER_PLUGIN }],
|
|
29
30
|
icon: 'ph--graph--regular',
|
|
30
31
|
},
|
|
31
32
|
}),
|
|
32
33
|
}),
|
|
34
|
+
defineModule({
|
|
35
|
+
id: `${meta.id}/module/object-form`,
|
|
36
|
+
activatesOn: ClientEvents.SetupSchema,
|
|
37
|
+
activate: () =>
|
|
38
|
+
contributes(
|
|
39
|
+
SpaceCapabilities.ObjectForm,
|
|
40
|
+
defineObjectForm({
|
|
41
|
+
objectSchema: ViewType,
|
|
42
|
+
getIntent: () => createIntent(ExplorerAction.Create),
|
|
43
|
+
}),
|
|
44
|
+
),
|
|
45
|
+
}),
|
|
33
46
|
defineModule({
|
|
34
47
|
id: `${meta.id}/module/schema`,
|
|
35
48
|
activatesOn: ClientEvents.SetupSchema,
|
|
@@ -37,12 +50,12 @@ export const ExplorerPlugin = () =>
|
|
|
37
50
|
}),
|
|
38
51
|
defineModule({
|
|
39
52
|
id: `${meta.id}/module/react-surface`,
|
|
40
|
-
activatesOn: Events.
|
|
53
|
+
activatesOn: Events.SetupReactSurface,
|
|
41
54
|
activate: ReactSurface,
|
|
42
55
|
}),
|
|
43
56
|
defineModule({
|
|
44
57
|
id: `${meta.id}/module/intent-resolver`,
|
|
45
|
-
activatesOn: Events.
|
|
58
|
+
activatesOn: Events.SetupIntentResolver,
|
|
46
59
|
activate: IntentResolver,
|
|
47
60
|
}),
|
|
48
61
|
]);
|
package/src/translations.ts
CHANGED
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { EXPLORER_PLUGIN } from './meta';
|
|
6
|
+
import { ViewType } from './types';
|
|
6
7
|
|
|
7
8
|
export default [
|
|
8
9
|
{
|
|
9
10
|
'en-US': {
|
|
11
|
+
[ViewType.typename]: {
|
|
12
|
+
'typename label': 'Explorer',
|
|
13
|
+
},
|
|
10
14
|
[EXPLORER_PLUGIN]: {
|
|
11
15
|
'plugin name': 'Explorer',
|
|
12
16
|
'object title label': 'Title',
|
package/src/types/schema.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { S, TypedObject } from '@dxos/echo-schema';
|
|
|
6
6
|
|
|
7
7
|
// TODO(burdon): Clashes with sdk/view.
|
|
8
8
|
export class ViewType extends TypedObject({
|
|
9
|
-
typename: 'dxos.org/type/
|
|
9
|
+
typename: 'dxos.org/type/ExplorerView',
|
|
10
10
|
version: '0.1.0',
|
|
11
11
|
})({
|
|
12
12
|
name: S.optional(S.String),
|
/package/dist/lib/browser/{intent-resolver-OGYZ43EW.mjs.map → intent-resolver-UJNDAIDZ.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/lib/node/{intent-resolver-CD7WUMFB.cjs.map → intent-resolver-XQV24IAA.cjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/lib/node-esm/{intent-resolver-HJFRNGY6.mjs.map → intent-resolver-RZQ3EEOE.mjs.map}
RENAMED
|
File without changes
|
/package/dist/lib/node-esm/{react-surface-BYYIHKIN.mjs.map → react-surface-72EIBLSU.mjs.map}
RENAMED
|
File without changes
|