@dxos/plugin-sheet 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/index.mjs +23 -15
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +23 -15
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +23 -15
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +1 -2
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts +1 -2
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +1 -2
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +1 -2
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts +1 -2
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +1 -2
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +2 -3
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +2 -2
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +2 -2
- package/dist/types/src/components/SheetToolbar/SheetToolbar.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/extensions/compute.stories.d.ts +2 -3
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/package.json +45 -44
- package/src/SheetPlugin.tsx +22 -11
- package/src/extensions/compute.stories.tsx +2 -2
- package/dist/types/src/testing/playwright/playwright.config.d.ts +0 -3
- package/dist/types/src/testing/playwright/playwright.config.d.ts.map +0 -1
- /package/src/testing/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-sheet",
|
|
3
|
-
"version": "0.7.5-
|
|
3
|
+
"version": "0.7.5-staging.2ff1350",
|
|
4
4
|
"description": "Braneframe sketch 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",
|
|
@@ -54,38 +55,38 @@
|
|
|
54
55
|
"re-resizable": "^6.9.17",
|
|
55
56
|
"react-markdown": "^8.0.5",
|
|
56
57
|
"react-resize-detector": "^11.0.1",
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/compute": "0.7.5-
|
|
61
|
-
"@dxos/context": "0.7.5-
|
|
62
|
-
"@dxos/crypto": "0.7.5-
|
|
63
|
-
"@dxos/echo-schema": "0.7.5-
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/live-object": "0.7.5-
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/react-client": "0.7.5-
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/react-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-list": "0.7.5-
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/react-ui-
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/util": "0.7.5-
|
|
58
|
+
"@dxos/app-framework": "0.7.5-staging.2ff1350",
|
|
59
|
+
"@dxos/async": "0.7.5-staging.2ff1350",
|
|
60
|
+
"@dxos/client": "0.7.5-staging.2ff1350",
|
|
61
|
+
"@dxos/compute": "0.7.5-staging.2ff1350",
|
|
62
|
+
"@dxos/context": "0.7.5-staging.2ff1350",
|
|
63
|
+
"@dxos/crypto": "0.7.5-staging.2ff1350",
|
|
64
|
+
"@dxos/echo-schema": "0.7.5-staging.2ff1350",
|
|
65
|
+
"@dxos/debug": "0.7.5-staging.2ff1350",
|
|
66
|
+
"@dxos/functions": "0.7.5-staging.2ff1350",
|
|
67
|
+
"@dxos/keys": "0.7.5-staging.2ff1350",
|
|
68
|
+
"@dxos/invariant": "0.7.5-staging.2ff1350",
|
|
69
|
+
"@dxos/live-object": "0.7.5-staging.2ff1350",
|
|
70
|
+
"@dxos/plugin-attention": "0.7.5-staging.2ff1350",
|
|
71
|
+
"@dxos/plugin-client": "0.7.5-staging.2ff1350",
|
|
72
|
+
"@dxos/log": "0.7.5-staging.2ff1350",
|
|
73
|
+
"@dxos/plugin-markdown": "0.7.5-staging.2ff1350",
|
|
74
|
+
"@dxos/plugin-script": "0.7.5-staging.2ff1350",
|
|
75
|
+
"@dxos/plugin-space": "0.7.5-staging.2ff1350",
|
|
76
|
+
"@dxos/plugin-graph": "0.7.5-staging.2ff1350",
|
|
77
|
+
"@dxos/plugin-thread": "0.7.5-staging.2ff1350",
|
|
78
|
+
"@dxos/react-hooks": "0.7.5-staging.2ff1350",
|
|
79
|
+
"@dxos/react-client": "0.7.5-staging.2ff1350",
|
|
80
|
+
"@dxos/plugin-stack": "0.7.5-staging.2ff1350",
|
|
81
|
+
"@dxos/react-ui-attention": "0.7.5-staging.2ff1350",
|
|
82
|
+
"@dxos/react-ui-form": "0.7.5-staging.2ff1350",
|
|
83
|
+
"@dxos/react-ui-editor": "0.7.5-staging.2ff1350",
|
|
84
|
+
"@dxos/react-ui-list": "0.7.5-staging.2ff1350",
|
|
85
|
+
"@dxos/react-ui-menu": "0.7.5-staging.2ff1350",
|
|
86
|
+
"@dxos/react-ui-grid": "0.7.5-staging.2ff1350",
|
|
87
|
+
"@dxos/schema": "0.7.5-staging.2ff1350",
|
|
88
|
+
"@dxos/react-ui-stack": "0.7.5-staging.2ff1350",
|
|
89
|
+
"@dxos/util": "0.7.5-staging.2ff1350"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
91
92
|
"@lezer/generator": "^1.7.1",
|
|
@@ -97,21 +98,21 @@
|
|
|
97
98
|
"react": "~18.2.0",
|
|
98
99
|
"react-dom": "~18.2.0",
|
|
99
100
|
"vite": "5.4.7",
|
|
100
|
-
"@dxos/echo-generator": "0.7.5-
|
|
101
|
-
"@dxos/lit-grid": "0.7.5-
|
|
102
|
-
"@dxos/random": "0.7.5-
|
|
103
|
-
"@dxos/react-ui": "0.7.5-
|
|
104
|
-
"@dxos/react-ui-
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/react-ui-
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/
|
|
101
|
+
"@dxos/echo-generator": "0.7.5-staging.2ff1350",
|
|
102
|
+
"@dxos/lit-grid": "0.7.5-staging.2ff1350",
|
|
103
|
+
"@dxos/random": "0.7.5-staging.2ff1350",
|
|
104
|
+
"@dxos/react-ui": "0.7.5-staging.2ff1350",
|
|
105
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-staging.2ff1350",
|
|
106
|
+
"@dxos/react-ui-theme": "0.7.5-staging.2ff1350",
|
|
107
|
+
"@dxos/react-ui-types": "0.7.5-staging.2ff1350",
|
|
108
|
+
"@dxos/storybook-utils": "0.7.5-staging.2ff1350",
|
|
109
|
+
"@dxos/test-utils": "0.7.5-staging.2ff1350"
|
|
109
110
|
},
|
|
110
111
|
"peerDependencies": {
|
|
111
112
|
"react": "~18.2.0",
|
|
112
113
|
"react-dom": "~18.2.0",
|
|
113
|
-
"@dxos/react-ui": "0.7.5-
|
|
114
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
114
|
+
"@dxos/react-ui": "0.7.5-staging.2ff1350",
|
|
115
|
+
"@dxos/react-ui-theme": "0.7.5-staging.2ff1350"
|
|
115
116
|
},
|
|
116
117
|
"publishConfig": {
|
|
117
118
|
"access": "public"
|
package/src/SheetPlugin.tsx
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';
|
|
6
6
|
import { FunctionType } from '@dxos/functions';
|
|
7
7
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
8
|
+
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
9
|
+
import { SpaceCapabilities, ThreadEvents } from '@dxos/plugin-space';
|
|
10
|
+
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
8
11
|
|
|
9
12
|
import { Markdown, Thread, ReactSurface, IntentResolver, ComputeGraphRegistry } from './capabilities';
|
|
10
13
|
import { meta, SHEET_PLUGIN } from './meta';
|
|
@@ -31,7 +34,6 @@ export const SheetPlugin = () =>
|
|
|
31
34
|
contributes(Capabilities.Metadata, {
|
|
32
35
|
id: SheetType.typename,
|
|
33
36
|
metadata: {
|
|
34
|
-
createObject: (props: { name?: string }) => createIntent(SheetAction.Create, props),
|
|
35
37
|
label: (object: any) => (object instanceof SheetType ? object.name : undefined),
|
|
36
38
|
placeholder: ['sheet title placeholder', { ns: SHEET_PLUGIN }],
|
|
37
39
|
icon: 'ph--grid-nine--regular',
|
|
@@ -39,34 +41,43 @@ export const SheetPlugin = () =>
|
|
|
39
41
|
},
|
|
40
42
|
}),
|
|
41
43
|
}),
|
|
44
|
+
defineModule({
|
|
45
|
+
id: `${meta.id}/module/object-form`,
|
|
46
|
+
activatesOn: ClientEvents.SetupSchema,
|
|
47
|
+
activate: () =>
|
|
48
|
+
contributes(
|
|
49
|
+
SpaceCapabilities.ObjectForm,
|
|
50
|
+
defineObjectForm({
|
|
51
|
+
objectSchema: SheetType,
|
|
52
|
+
getIntent: (props, options) => createIntent(SheetAction.Create, { ...props, space: options.space }),
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
}),
|
|
56
|
+
// TODO(wittjosiah): Factor out to common package/plugin.
|
|
57
|
+
// FunctionType is currently registered here in case script plugin isn't enabled.
|
|
42
58
|
defineModule({
|
|
43
59
|
id: `${meta.id}/module/schema`,
|
|
44
60
|
activatesOn: ClientEvents.SetupSchema,
|
|
45
|
-
activate: () => [
|
|
46
|
-
contributes(ClientCapabilities.Schema, [SheetType]),
|
|
47
|
-
// TODO(wittjosiah): Factor out to common package/plugin.
|
|
48
|
-
// FunctionType is currently registered here in case script plugin isn't enabled.
|
|
49
|
-
contributes(ClientCapabilities.SystemSchema, [FunctionType]),
|
|
50
|
-
],
|
|
61
|
+
activate: () => contributes(ClientCapabilities.Schema, [FunctionType]),
|
|
51
62
|
}),
|
|
52
63
|
defineModule({
|
|
53
64
|
id: `${meta.id}/module/markdown`,
|
|
54
|
-
activatesOn:
|
|
65
|
+
activatesOn: MarkdownEvents.SetupExtensions,
|
|
55
66
|
activate: Markdown,
|
|
56
67
|
}),
|
|
57
68
|
defineModule({
|
|
58
69
|
id: `${meta.id}/module/thread`,
|
|
59
|
-
activatesOn:
|
|
70
|
+
activatesOn: ThreadEvents.SetupThread,
|
|
60
71
|
activate: Thread,
|
|
61
72
|
}),
|
|
62
73
|
defineModule({
|
|
63
74
|
id: `${meta.id}/module/react-surface`,
|
|
64
|
-
activatesOn: Events.
|
|
75
|
+
activatesOn: Events.SetupReactSurface,
|
|
65
76
|
activate: ReactSurface,
|
|
66
77
|
}),
|
|
67
78
|
defineModule({
|
|
68
79
|
id: `${meta.id}/module/intent-resolver`,
|
|
69
|
-
activatesOn: Events.
|
|
80
|
+
activatesOn: Events.SetupIntentResolver,
|
|
70
81
|
activate: IntentResolver,
|
|
71
82
|
}),
|
|
72
83
|
]);
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
useTextEditor,
|
|
21
21
|
} from '@dxos/react-ui-editor';
|
|
22
22
|
import { withTheme, withLayout } from '@dxos/storybook-utils';
|
|
23
|
-
import {
|
|
23
|
+
import { isNonNullable } from '@dxos/util';
|
|
24
24
|
|
|
25
25
|
import { compute, computeGraphFacet } from './compute';
|
|
26
26
|
import { GridSheet, SheetProvider, useComputeGraph } from '../components';
|
|
@@ -57,7 +57,7 @@ const EditorStory = ({ text }: EditorProps) => {
|
|
|
57
57
|
computeGraph && computeGraphFacet.of(computeGraph),
|
|
58
58
|
compute(),
|
|
59
59
|
decorateMarkdown(),
|
|
60
|
-
].filter(
|
|
60
|
+
].filter(isNonNullable),
|
|
61
61
|
}),
|
|
62
62
|
[computeGraph, themeMode],
|
|
63
63
|
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../../src/testing/playwright/playwright.config.ts"],"names":[],"mappings":";AASA,wBAQG"}
|
|
File without changes
|