@dxos/plugin-sheet 0.7.5-main.e9bb01b → 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/{SheetContainer-QE32GHSA.mjs → SheetContainer-IMHGS7Z4.mjs} +4 -4
- package/dist/lib/browser/{chunk-EEN6LQ77.mjs → chunk-AT7F2WDW.mjs} +4 -4
- package/dist/lib/browser/{chunk-5IP6N25X.mjs → chunk-GAFHJBCU.mjs} +2 -2
- package/dist/lib/browser/chunk-GAFHJBCU.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NA2WJTDQ.mjs → chunk-LXHRT3CC.mjs} +2 -2
- package/dist/lib/browser/{chunk-MW7L2R23.mjs → chunk-OOSRC36N.mjs} +2 -2
- package/dist/lib/browser/{compute-graph-registry-5PSCPAJC.mjs → compute-graph-registry-EGPD4HEX.mjs} +3 -3
- package/dist/lib/browser/index.mjs +31 -23
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-BIOB22P2.mjs → intent-resolver-6S2RMLQF.mjs} +3 -3
- package/dist/lib/browser/{markdown-ZXHPFU4B.mjs → markdown-CFJIWHZX.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-DUNHY5TJ.mjs → react-surface-PHKJZYFB.mjs} +5 -5
- package/dist/lib/browser/{thread-RSI66HGQ.mjs → thread-7ZWW5EA7.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{SheetContainer-63QTAGQQ.cjs → SheetContainer-NNIZN4AK.cjs} +36 -36
- package/dist/lib/node/{chunk-K4VMHOR2.cjs → chunk-2KCZUH72.cjs} +19 -19
- package/dist/lib/node/{chunk-6BZ2TACG.cjs → chunk-4LSYTNS4.cjs} +6 -6
- package/dist/lib/node/{chunk-AUC5XQEN.cjs → chunk-MLU6KRQN.cjs} +5 -5
- package/dist/lib/node/chunk-MLU6KRQN.cjs.map +7 -0
- package/dist/lib/node/{chunk-6G6HHJOM.cjs → chunk-ZV2RS3QH.cjs} +6 -6
- package/dist/lib/node/{compute-graph-registry-IKYGA5ZC.cjs → compute-graph-registry-GJK5H264.cjs} +7 -7
- package/dist/lib/node/index.cjs +49 -41
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-EN5ZMUUF.cjs → intent-resolver-I25V7SBT.cjs} +11 -11
- package/dist/lib/node/{markdown-7NVPUDWI.cjs → markdown-YTCSW66K.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-YGALRCRL.cjs → react-surface-HLE6CRA6.cjs} +16 -16
- package/dist/lib/node/{thread-7KJVRDUE.cjs → thread-DRNYTR6M.cjs} +8 -8
- package/dist/lib/node/types/index.cjs +30 -30
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{SheetContainer-EUR47CP5.mjs → SheetContainer-PGDJKGTZ.mjs} +4 -4
- package/dist/lib/node-esm/{chunk-LGQMXD6K.mjs → chunk-HPAMZ6SP.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-JFUKD7N4.mjs → chunk-RTZXXOS2.mjs} +2 -2
- package/dist/lib/node-esm/chunk-RTZXXOS2.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6C53G45G.mjs → chunk-SX3S7UKU.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-RFGJUSHF.mjs → chunk-ZM7XLUGL.mjs} +4 -4
- package/dist/lib/node-esm/{compute-graph-registry-ZSLEFSS5.mjs → compute-graph-registry-3F5JCYEN.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +31 -23
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-6BCKQA5A.mjs → intent-resolver-IPRSINII.mjs} +3 -3
- package/dist/lib/node-esm/{markdown-LRZEUBKN.mjs → markdown-CGSK44XJ.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-AAT56ZBA.mjs → react-surface-PFRJ7V5N.mjs} +5 -5
- package/dist/lib/node-esm/{thread-U3RIKVMB.mjs → thread-6T5VXPAF.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +2 -2
- 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/dist/types/src/meta.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/src/meta.ts +2 -1
- package/dist/lib/browser/chunk-5IP6N25X.mjs.map +0 -7
- package/dist/lib/node/chunk-AUC5XQEN.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-JFUKD7N4.mjs.map +0 -7
- 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/dist/lib/browser/{SheetContainer-QE32GHSA.mjs.map → SheetContainer-IMHGS7Z4.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-EEN6LQ77.mjs.map → chunk-AT7F2WDW.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-NA2WJTDQ.mjs.map → chunk-LXHRT3CC.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-MW7L2R23.mjs.map → chunk-OOSRC36N.mjs.map} +0 -0
- /package/dist/lib/browser/{compute-graph-registry-5PSCPAJC.mjs.map → compute-graph-registry-EGPD4HEX.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-BIOB22P2.mjs.map → intent-resolver-6S2RMLQF.mjs.map} +0 -0
- /package/dist/lib/browser/{markdown-ZXHPFU4B.mjs.map → markdown-CFJIWHZX.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-DUNHY5TJ.mjs.map → react-surface-PHKJZYFB.mjs.map} +0 -0
- /package/dist/lib/browser/{thread-RSI66HGQ.mjs.map → thread-7ZWW5EA7.mjs.map} +0 -0
- /package/dist/lib/node/{SheetContainer-63QTAGQQ.cjs.map → SheetContainer-NNIZN4AK.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-K4VMHOR2.cjs.map → chunk-2KCZUH72.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-6BZ2TACG.cjs.map → chunk-4LSYTNS4.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-6G6HHJOM.cjs.map → chunk-ZV2RS3QH.cjs.map} +0 -0
- /package/dist/lib/node/{compute-graph-registry-IKYGA5ZC.cjs.map → compute-graph-registry-GJK5H264.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-EN5ZMUUF.cjs.map → intent-resolver-I25V7SBT.cjs.map} +0 -0
- /package/dist/lib/node/{markdown-7NVPUDWI.cjs.map → markdown-YTCSW66K.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-YGALRCRL.cjs.map → react-surface-HLE6CRA6.cjs.map} +0 -0
- /package/dist/lib/node/{thread-7KJVRDUE.cjs.map → thread-DRNYTR6M.cjs.map} +0 -0
- /package/dist/lib/node-esm/{SheetContainer-EUR47CP5.mjs.map → SheetContainer-PGDJKGTZ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-LGQMXD6K.mjs.map → chunk-HPAMZ6SP.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-6C53G45G.mjs.map → chunk-SX3S7UKU.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-RFGJUSHF.mjs.map → chunk-ZM7XLUGL.mjs.map} +0 -0
- /package/dist/lib/node-esm/{compute-graph-registry-ZSLEFSS5.mjs.map → compute-graph-registry-3F5JCYEN.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-6BCKQA5A.mjs.map → intent-resolver-IPRSINII.mjs.map} +0 -0
- /package/dist/lib/node-esm/{markdown-LRZEUBKN.mjs.map → markdown-CGSK44XJ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-AAT56ZBA.mjs.map → react-surface-PFRJ7V5N.mjs.map} +0 -0
- /package/dist/lib/node-esm/{thread-U3RIKVMB.mjs.map → thread-6T5VXPAF.mjs.map} +0 -0
- /package/src/testing/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SheetCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SX3S7UKU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ComputeGraphContextProvider,
|
|
7
7
|
RangeList,
|
|
8
8
|
SheetContainer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZM7XLUGL.mjs";
|
|
10
10
|
import "./chunk-PTOI45NK.mjs";
|
|
11
11
|
import {
|
|
12
12
|
SheetType
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HPAMZ6SP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SHEET_PLUGIN
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RTZXXOS2.mjs";
|
|
17
17
|
|
|
18
18
|
// packages/plugins/plugin-sheet/src/capabilities/react-surface.tsx
|
|
19
19
|
import React from "react";
|
|
@@ -50,4 +50,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
50
50
|
export {
|
|
51
51
|
react_surface_default as default
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=react-surface-
|
|
53
|
+
//# sourceMappingURL=react-surface-PFRJ7V5N.mjs.map
|
|
@@ -2,8 +2,8 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
SheetType,
|
|
4
4
|
compareIndexPositions
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HPAMZ6SP.mjs";
|
|
6
|
+
import "./chunk-RTZXXOS2.mjs";
|
|
7
7
|
|
|
8
8
|
// packages/plugins/plugin-sheet/src/capabilities/thread.ts
|
|
9
9
|
import { contributes } from "@dxos/app-framework";
|
|
@@ -15,4 +15,4 @@ var thread_default = () => contributes(ThreadCapabilities.Thread, {
|
|
|
15
15
|
export {
|
|
16
16
|
thread_default as default
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=thread-
|
|
18
|
+
//# sourceMappingURL=thread-6T5VXPAF.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetPlugin.d.ts","sourceRoot":"","sources":["../../../src/SheetPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetPlugin.d.ts","sourceRoot":"","sources":["../../../src/SheetPlugin.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,WAAW,4CAiEpB,CAAC"}
|
|
@@ -8,6 +8,6 @@ export type ComputeGraphContextType = {
|
|
|
8
8
|
* The compute graph context manages a ComputeGraph for each space.
|
|
9
9
|
*/
|
|
10
10
|
export declare const ComputeGraphContext: React.Context<ComputeGraphContextType | undefined>;
|
|
11
|
-
export declare const ComputeGraphContextProvider: ({ registry, children }: PropsWithChildren<ComputeGraphContextType>) =>
|
|
11
|
+
export declare const ComputeGraphContextProvider: ({ registry, children }: PropsWithChildren<ComputeGraphContextType>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare const useComputeGraph: (space?: Space) => ComputeGraph | undefined;
|
|
13
13
|
//# sourceMappingURL=ComputeGraphContextProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComputeGraphContextProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/ComputeGraphContextProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,oDAAgE,CAAC;AAEjG,eAAO,MAAM,2BAA2B,2BAA4B,iBAAiB,CAAC,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"ComputeGraphContextProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/ComputeGraphContextProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,oDAAgE,CAAC;AAEjG,eAAO,MAAM,2BAA2B,2BAA4B,iBAAiB,CAAC,uBAAuB,CAAC,4CAE7G,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,KAAK,KAAG,YAAY,GAAG,SAW9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/FunctionEditor/FunctionEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FunctionEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/FunctionEditor/FunctionEditor.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,cAAc,+CA4B1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/GridSheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/GridSheet.tsx"],"names":[],"mappings":"AAkEA,eAAO,MAAM,SAAS,+CA8SrB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
export declare const Basic: () => React.JSX.Element | null;
|
|
3
|
+
export declare const Basic: () => import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
declare const meta: Meta;
|
|
6
5
|
export default meta;
|
|
7
6
|
//# sourceMappingURL=GridSheet.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridSheet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/GridSheet.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"GridSheet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/GridSheet.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAe7C,eAAO,MAAM,KAAK,sDAajB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAWX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { type CellEditorProps } from '@dxos/react-ui-grid';
|
|
5
4
|
type StoryProps = CellEditorProps;
|
|
6
5
|
export declare const Default: {};
|
|
@@ -15,7 +14,7 @@ export declare const Formatting: {
|
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
16
|
export declare const Automerge: {
|
|
18
|
-
render: (args: StoryProps) =>
|
|
17
|
+
render: (args: StoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
args: {
|
|
20
19
|
value: string;
|
|
21
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/SheetCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"SheetCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/GridSheet/SheetCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAQ7C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMvE,KAAK,UAAU,GAAG,eAAe,CAAC;AA4ClC,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;CAItB,CAAC;AAEF,eAAO,MAAM,SAAS;mBACL,UAAU;;;;CAI1B,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAKX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type SheetType } from '../../types';
|
|
3
2
|
export type RangeListProps = {
|
|
4
3
|
sheet: SheetType;
|
|
5
4
|
};
|
|
6
|
-
export declare const RangeList: ({ sheet }: RangeListProps) =>
|
|
5
|
+
export declare const RangeList: ({ sheet }: RangeListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
//# sourceMappingURL=RangeList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeList.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeList/RangeList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RangeList.d.ts","sourceRoot":"","sources":["../../../../../src/components/RangeList/RangeList.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,SAAS,cAAe,cAAc,4CAiClD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type Space } from '@dxos/react-client/echo';
|
|
3
2
|
import { type SheetType } from '../../types';
|
|
4
3
|
export declare const SheetContainer: ({ space, sheet, role, ignoreAttention, }: {
|
|
@@ -6,5 +5,5 @@ export declare const SheetContainer: ({ space, sheet, role, ignoreAttention, }:
|
|
|
6
5
|
sheet: SheetType;
|
|
7
6
|
role?: string;
|
|
8
7
|
ignoreAttention?: boolean;
|
|
9
|
-
}) =>
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
9
|
//# sourceMappingURL=SheetContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAoB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGvE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,eAAO,MAAM,cAAc,6CAKxB;IACD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,mDAYA,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 Spec: () => React.JSX.Element | null;
|
|
3
|
+
export declare const Basic: () => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export declare const Spec: () => import("react/jsx-runtime").JSX.Element | null;
|
|
6
5
|
declare const meta: Meta;
|
|
7
6
|
export default meta;
|
|
8
7
|
//# sourceMappingURL=SheetContainer.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"SheetContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAkB7C,eAAO,MAAM,KAAK,sDAajB,CAAC;AAEF,eAAO,MAAM,IAAI,sDAkBhB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IA8BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ComputeGraph, type CellAddress, type CellRange, type CompleteCellRange } from '@dxos/compute';
|
|
3
3
|
import { type GridContentProps, type GridEditing } from '@dxos/react-ui-grid';
|
|
4
4
|
import { type SheetModel } from '../../model';
|
|
@@ -25,5 +25,5 @@ export type SheetProviderProps = {
|
|
|
25
25
|
readonly?: boolean;
|
|
26
26
|
ignoreAttention?: boolean;
|
|
27
27
|
} & Pick<SheetContextValue, 'onInfo'>;
|
|
28
|
-
export declare const SheetProvider: ({ children, graph, sheet, readonly, ignoreAttention, onInfo, }: PropsWithChildren<SheetProviderProps>) =>
|
|
28
|
+
export declare const SheetProvider: ({ children, graph, sheet, readonly, ignoreAttention, onInfo, }: PropsWithChildren<SheetProviderProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
29
29
|
//# sourceMappingURL=SheetContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContext/SheetContext.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContext/SheetContext.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAExG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAG5G,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAGjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,UAAU,CAAC;IAIlB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IACjD,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IAGxC,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAG3C,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAIpE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAGpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAIF,eAAO,MAAM,eAAe,QAAO,iBAIlC,CAAC;AA2DF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;AAEtC,eAAO,MAAM,aAAa,mEAOvB,iBAAiB,CAAC,kBAAkB,CAAC,mDAUvC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
export type SheetToolbarProps = ThemedClassName<PropsWithChildren<{
|
|
4
4
|
attendableId?: string;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare const SheetToolbar: ({ attendableId, classNames }: SheetToolbarProps) =>
|
|
6
|
+
export declare const SheetToolbar: ({ attendableId, classNames }: SheetToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=SheetToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"SheetToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,iBAAiB,EAAe,MAAM,OAAO,CAAC;AAEnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAatD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC;AAa9F,eAAO,MAAM,YAAY,iCAAkC,iBAAiB,4CAe3E,CAAC"}
|
|
@@ -7,5 +7,5 @@ export declare const SheetContainer: import("react").LazyExoticComponent<({ spac
|
|
|
7
7
|
sheet: import("../types").SheetType;
|
|
8
8
|
role?: string;
|
|
9
9
|
ignoreAttention?: boolean;
|
|
10
|
-
}) => import("react").JSX.Element | null>;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element | null>;
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC0T,CAAC;mBAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC0T,CAAC;mBAA2B,CAAC;qDAD9S,CAAC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
type EditorProps = {
|
|
5
4
|
text?: string;
|
|
6
5
|
};
|
|
7
6
|
export declare const Default: {
|
|
8
|
-
render: ({ text }: EditorProps) =>
|
|
7
|
+
render: ({ text }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
args: {
|
|
10
9
|
text: string;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
12
|
export declare const Graph: {
|
|
14
|
-
render: (props: EditorProps) =>
|
|
13
|
+
render: (props: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
args: {
|
|
16
15
|
text: string;
|
|
17
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA0B7C,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAmEF,eAAO,MAAM,OAAO;uBA1DW,WAAW;;;;CAgFzC,CAAC;AAEF,eAAO,MAAM,KAAK;oBAlCS,WAAW;;;;CAkDrC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD,eAAO,MAAM,IAAI;;;;;;;
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD,eAAO,MAAM,IAAI;;;;;;;CAQK,CAAC"}
|
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/app-framework": "0.7.5-
|
|
58
|
-
"@dxos/async": "0.7.5-
|
|
59
|
-
"@dxos/client": "0.7.5-
|
|
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/debug": "0.7.5-
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/live-object": "0.7.5-
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/plugin-markdown": "0.7.5-
|
|
73
|
-
"@dxos/plugin-script": "0.7.5-
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/react-
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/react-ui-attention": "0.7.5-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-editor": "0.7.5-
|
|
83
|
-
"@dxos/react-ui-list": "0.7.5-
|
|
84
|
-
"@dxos/react-ui-menu": "0.7.5-
|
|
85
|
-
"@dxos/react-ui-
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
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/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/react-ui-syntax-highlighter": "0.7.5-
|
|
105
|
-
"@dxos/react-ui-theme": "0.7.5-
|
|
106
|
-
"@dxos/
|
|
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
|
);
|
package/src/meta.ts
CHANGED
|
@@ -9,7 +9,8 @@ export const SHEET_PLUGIN = 'dxos.org/plugin/sheet';
|
|
|
9
9
|
export const meta = {
|
|
10
10
|
id: SHEET_PLUGIN,
|
|
11
11
|
name: 'Sheet',
|
|
12
|
-
description:
|
|
12
|
+
description:
|
|
13
|
+
'Sheets in Composer are simple spreadsheets which allow you to leverage custom functions inside of cell grids. Leverage more than 400 pre-built formulas like Sum, Average, Count, Max, Min along with many others. You can also deploy your own custom functions using the Scripts plugin. ',
|
|
13
14
|
icon: 'ph--grid-nine--regular',
|
|
14
15
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',
|
|
15
16
|
screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],
|
|
@@ -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 SHEET_PLUGIN = 'dxos.org/plugin/sheet';\n\nexport const meta = {\n id: SHEET_PLUGIN,\n name: 'Sheet',\n description: `Sheets in Composer are simple spreadsheets which allow you to leverage custom functions inside of cell grids. Leverage more than 400 pre-built formulas like Sum, Average, Count, Max, Min along with many others. You can also deploy your own custom functions using the Scripts plugin. `,\n icon: 'ph--grid-nine--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',\n screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";AAMO,IAAMA,eAAe;AAErB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
|
|
6
|
-
"names": ["SHEET_PLUGIN", "meta", "id", "name", "description", "icon", "source", "screenshots"]
|
|
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 SHEET_PLUGIN = 'dxos.org/plugin/sheet';\n\nexport const meta = {\n id: SHEET_PLUGIN,\n name: 'Sheet',\n description: `Sheets in Composer are simple spreadsheets which allow you to leverage custom functions inside of cell grids. Leverage more than 400 pre-built formulas like Sum, Average, Count, Max, Min along with many others. You can also deploy your own custom functions using the Scripts plugin. `,\n icon: 'ph--grid-nine--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',\n screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,eAAe;AAErB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
|
|
6
|
-
"names": ["SHEET_PLUGIN", "meta", "id", "name", "description", "icon", "source", "screenshots"]
|
|
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 SHEET_PLUGIN = 'dxos.org/plugin/sheet';\n\nexport const meta = {\n id: SHEET_PLUGIN,\n name: 'Sheet',\n description: `Sheets in Composer are simple spreadsheets which allow you to leverage custom functions inside of cell grids. Leverage more than 400 pre-built formulas like Sum, Average, Count, Max, Min along with many others. You can also deploy your own custom functions using the Scripts plugin. `,\n icon: 'ph--grid-nine--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',\n screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
-
"mappings": ";;;AAMO,IAAMA,eAAe;AAErB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
|
|
6
|
-
"names": ["SHEET_PLUGIN", "meta", "id", "name", "description", "icon", "source", "screenshots"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.config.d.ts","sourceRoot":"","sources":["../../../../../src/testing/playwright/playwright.config.ts"],"names":[],"mappings":";AASA,wBAQG"}
|
/package/dist/lib/browser/{SheetContainer-QE32GHSA.mjs.map → SheetContainer-IMHGS7Z4.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/browser/{intent-resolver-BIOB22P2.mjs.map → intent-resolver-6S2RMLQF.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/node/{intent-resolver-EN5ZMUUF.cjs.map → intent-resolver-I25V7SBT.cjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/node-esm/{SheetContainer-EUR47CP5.mjs.map → SheetContainer-PGDJKGTZ.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|