@dxos/plugin-sheet 0.6.8-main.046e6cf
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/LICENSE +8 -0
- package/README.md +14 -0
- package/dist/lib/browser/SheetContainer-H22IDJ43.mjs +3740 -0
- package/dist/lib/browser/SheetContainer-H22IDJ43.mjs.map +7 -0
- package/dist/lib/browser/chunk-6VPEAUG6.mjs +82 -0
- package/dist/lib/browser/chunk-6VPEAUG6.mjs.map +7 -0
- package/dist/lib/browser/chunk-AT2FJXQX.mjs +861 -0
- package/dist/lib/browser/chunk-AT2FJXQX.mjs.map +7 -0
- package/dist/lib/browser/chunk-JRL5LGCE.mjs +18 -0
- package/dist/lib/browser/chunk-JRL5LGCE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +213 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/browser/meta.mjs +9 -0
- package/dist/lib/browser/meta.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +22 -0
- package/dist/lib/browser/types.mjs.map +7 -0
- package/dist/lib/node/SheetContainer-S32KTNZ6.cjs +3731 -0
- package/dist/lib/node/SheetContainer-S32KTNZ6.cjs.map +7 -0
- package/dist/lib/node/chunk-4CE6FK5Z.cjs +108 -0
- package/dist/lib/node/chunk-4CE6FK5Z.cjs.map +7 -0
- package/dist/lib/node/chunk-BJ6ZD7MN.cjs +51 -0
- package/dist/lib/node/chunk-BJ6ZD7MN.cjs.map +7 -0
- package/dist/lib/node/chunk-FCKJ4QRM.cjs +881 -0
- package/dist/lib/node/chunk-FCKJ4QRM.cjs.map +7 -0
- package/dist/lib/node/index.cjs +226 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.cjs +30 -0
- package/dist/lib/node/meta.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node/types.cjs +44 -0
- package/dist/lib/node/types.cjs.map +7 -0
- package/dist/types/src/SheetPlugin.d.ts +4 -0
- package/dist/types/src/SheetPlugin.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/CellEditor.d.ts +14 -0
- package/dist/types/src/components/CellEditor/CellEditor.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts +29 -0
- package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/extension.d.ts +18 -0
- package/dist/types/src/components/CellEditor/extension.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/extension.test.d.ts +2 -0
- package/dist/types/src/components/CellEditor/extension.test.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/functions.d.ts +66 -0
- package/dist/types/src/components/CellEditor/functions.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/index.d.ts +3 -0
- package/dist/types/src/components/CellEditor/index.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/async-function.d.ts +52 -0
- package/dist/types/src/components/ComputeGraph/async-function.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/custom.d.ts +21 -0
- package/dist/types/src/components/ComputeGraph/custom.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/edge-function.d.ts +20 -0
- package/dist/types/src/components/ComputeGraph/edge-function.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/graph-context.d.ts +11 -0
- package/dist/types/src/components/ComputeGraph/graph-context.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts +2 -0
- package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/graph.d.ts +21 -0
- package/dist/types/src/components/ComputeGraph/graph.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/index.d.ts +4 -0
- package/dist/types/src/components/ComputeGraph/index.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/Sheet.d.ts +55 -0
- package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/Sheet.stories.d.ts +54 -0
- package/dist/types/src/components/Sheet/Sheet.stories.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/formatting.d.ts +14 -0
- package/dist/types/src/components/Sheet/formatting.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/grid.d.ts +52 -0
- package/dist/types/src/components/Sheet/grid.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/index.d.ts +2 -0
- package/dist/types/src/components/Sheet/index.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/nav.d.ts +29 -0
- package/dist/types/src/components/Sheet/nav.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/sheet-context.d.ts +24 -0
- package/dist/types/src/components/Sheet/sheet-context.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/util.d.ts +18 -0
- package/dist/types/src/components/Sheet/util.d.ts.map +1 -0
- package/dist/types/src/components/SheetContainer.d.ts +9 -0
- package/dist/types/src/components/SheetContainer.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +21 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +35 -0
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/common.d.ts +20 -0
- package/dist/types/src/components/Toolbar/common.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/index.d.ts +2 -0
- package/dist/types/src/components/Toolbar/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +7 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +15 -0
- package/dist/types/src/meta.d.ts.map +1 -0
- package/dist/types/src/model/index.d.ts +3 -0
- package/dist/types/src/model/index.d.ts.map +1 -0
- package/dist/types/src/model/model.browser.test.d.ts +2 -0
- package/dist/types/src/model/model.browser.test.d.ts.map +1 -0
- package/dist/types/src/model/model.d.ts +142 -0
- package/dist/types/src/model/model.d.ts.map +1 -0
- package/dist/types/src/model/types.d.ts +17 -0
- package/dist/types/src/model/types.d.ts.map +1 -0
- package/dist/types/src/model/types.test.d.ts +2 -0
- package/dist/types/src/model/types.test.d.ts.map +1 -0
- package/dist/types/src/model/util.d.ts +15 -0
- package/dist/types/src/model/util.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +16 -0
- package/dist/types/src/translations.d.ts.map +1 -0
- package/dist/types/src/types.d.ts +94 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/package.json +122 -0
- package/src/SheetPlugin.tsx +150 -0
- package/src/components/CellEditor/CellEditor.stories.tsx +88 -0
- package/src/components/CellEditor/CellEditor.tsx +113 -0
- package/src/components/CellEditor/extension.test.ts +42 -0
- package/src/components/CellEditor/extension.ts +286 -0
- package/src/components/CellEditor/functions.ts +2017 -0
- package/src/components/CellEditor/index.ts +6 -0
- package/src/components/ComputeGraph/async-function.ts +148 -0
- package/src/components/ComputeGraph/custom.ts +70 -0
- package/src/components/ComputeGraph/edge-function.ts +60 -0
- package/src/components/ComputeGraph/graph-context.tsx +37 -0
- package/src/components/ComputeGraph/graph.browser.test.ts +49 -0
- package/src/components/ComputeGraph/graph.ts +52 -0
- package/src/components/ComputeGraph/index.ts +7 -0
- package/src/components/Sheet/Sheet.stories.tsx +329 -0
- package/src/components/Sheet/Sheet.tsx +1164 -0
- package/src/components/Sheet/formatting.ts +106 -0
- package/src/components/Sheet/grid.ts +191 -0
- package/src/components/Sheet/index.ts +5 -0
- package/src/components/Sheet/nav.ts +157 -0
- package/src/components/Sheet/sheet-context.tsx +101 -0
- package/src/components/Sheet/util.ts +56 -0
- package/src/components/SheetContainer.tsx +30 -0
- package/src/components/Toolbar/Toolbar.stories.tsx +36 -0
- package/src/components/Toolbar/Toolbar.tsx +198 -0
- package/src/components/Toolbar/common.tsx +72 -0
- package/src/components/Toolbar/index.ts +5 -0
- package/src/components/index.ts +10 -0
- package/src/index.ts +9 -0
- package/src/meta.tsx +18 -0
- package/src/model/index.ts +6 -0
- package/src/model/model.browser.test.ts +100 -0
- package/src/model/model.ts +480 -0
- package/src/model/types.test.ts +92 -0
- package/src/model/types.ts +71 -0
- package/src/model/util.ts +36 -0
- package/src/translations.ts +22 -0
- package/src/types.ts +110 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
export type ToolbarActionType = 'clear' | 'highlight' | 'left' | 'center' | 'right' | 'date' | 'currency';
|
|
4
|
+
export type ToolbarAction = {
|
|
5
|
+
type: ToolbarActionType;
|
|
6
|
+
};
|
|
7
|
+
export type ToolbarActionHandler = ({ type }: ToolbarAction) => void;
|
|
8
|
+
export type ToolbarProps = ThemedClassName<PropsWithChildren<{
|
|
9
|
+
onAction?: ToolbarActionHandler;
|
|
10
|
+
}>>;
|
|
11
|
+
declare const useToolbarContext: (consumerName: string) => ToolbarProps;
|
|
12
|
+
export declare const Toolbar: {
|
|
13
|
+
Root: ({ children, onAction, classNames }: ToolbarProps) => React.JSX.Element;
|
|
14
|
+
Separator: () => React.JSX.Element;
|
|
15
|
+
Alignment: () => React.JSX.Element;
|
|
16
|
+
Format: () => React.JSX.Element;
|
|
17
|
+
Styles: () => React.JSX.Element;
|
|
18
|
+
Actions: () => React.JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export { useToolbarContext };
|
|
21
|
+
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,gBAAgB,CAAC;AAUxB,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AAE1G,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,aAAa,KAAK,IAAI,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG,eAAe,CACxC,iBAAiB,CAAC;IAChB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;CACjC,CAAC,CACH,CAAC;AAEF,QAAA,MAA+B,iBAAiB,wCAA0C,CAAC;AA4I3F,eAAO,MAAM,OAAO;+CA1IqC,YAAY;;;;;;CAiJpE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import '@dxosTheme';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: {
|
|
6
|
+
Root: ({ children, onAction, classNames }: import("./Toolbar").ToolbarProps) => React.JSX.Element;
|
|
7
|
+
Separator: () => React.JSX.Element;
|
|
8
|
+
Alignment: () => React.JSX.Element;
|
|
9
|
+
Format: () => React.JSX.Element;
|
|
10
|
+
Styles: () => React.JSX.Element;
|
|
11
|
+
Actions: () => React.JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
decorators: import("@storybook/react/*").Decorator[];
|
|
14
|
+
parameters: {
|
|
15
|
+
translations: {
|
|
16
|
+
'en-US': {
|
|
17
|
+
"dxos.org/plugin/sheet": {
|
|
18
|
+
'plugin name': string;
|
|
19
|
+
'sheet title placeholder': string;
|
|
20
|
+
'create sheet label': string;
|
|
21
|
+
'create sheet section label': string;
|
|
22
|
+
'cell placeholder': string;
|
|
23
|
+
'toolbar left label': string;
|
|
24
|
+
'toolbar left center': string;
|
|
25
|
+
'toolbar left right': string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}[];
|
|
29
|
+
layout: string;
|
|
30
|
+
};
|
|
31
|
+
render: (args: any) => React.JSX.Element;
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
34
|
+
export declare const Default: {};
|
|
35
|
+
//# sourceMappingURL=Toolbar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA0BT,GAAG;;AALpB,wBAME;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Icon } from '@phosphor-icons/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type ToolbarButtonProps as NaturalToolbarButtonProps, type ToolbarToggleGroupItemProps as NaturalToolbarToggleGroupItemProps } from '@dxos/react-ui';
|
|
4
|
+
export declare const iconStyles: string;
|
|
5
|
+
export declare const buttonStyles = "min-bs-0 p-2";
|
|
6
|
+
export declare const tooltipProps: {
|
|
7
|
+
side: "top";
|
|
8
|
+
classNames: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ToolbarSeparator: () => React.JSX.Element;
|
|
11
|
+
type ToolbarButtonProps = NaturalToolbarButtonProps & {
|
|
12
|
+
Icon: Icon;
|
|
13
|
+
};
|
|
14
|
+
export declare const ToolbarButton: ({ Icon, children, ...props }: ToolbarButtonProps) => React.JSX.Element;
|
|
15
|
+
export type ToolbarToggleButtonProps = NaturalToolbarToggleGroupItemProps & {
|
|
16
|
+
Icon: Icon;
|
|
17
|
+
};
|
|
18
|
+
export declare const ToolbarToggleButton: ({ Icon, children, ...props }: ToolbarToggleButtonProps) => React.JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/common.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAGL,KAAK,kBAAkB,IAAI,yBAAyB,EACpD,KAAK,2BAA2B,IAAI,kCAAkC,EACvE,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,UAAU,QAAa,CAAC;AACrC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,YAAY;;;CAA+C,CAAC;AAEzE,eAAO,MAAM,gBAAgB,yBAAkD,CAAC;AAMhF,KAAK,kBAAkB,GAAG,yBAAyB,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC;AAErE,eAAO,MAAM,aAAa,iCAAkC,kBAAkB,sBAiB7E,CAAC;AAMF,MAAM,MAAM,wBAAwB,GAAG,kCAAkC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC;AAE3F,eAAO,MAAM,mBAAmB,iCAAkC,wBAAwB,sBAiBzF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export * from './ComputeGraph';
|
|
3
|
+
export declare const SheetContainer: React.LazyExoticComponent<({ sheet, space, role, coordinate, }: import("./Sheet").SheetRootProps & {
|
|
4
|
+
role?: string;
|
|
5
|
+
coordinate?: import("packages/sdk/app-framework/dist/types/src").LayoutCoordinate;
|
|
6
|
+
}) => React.JSX.Element>;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,cAAc,gBAAgB,CAAC;AAG/B,eAAO,MAAM,cAAc;QACoG,CAAC;cAAoB,CAAC;wBAD3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAe,WAAW,CAAC;AAE3B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type IconProps } from '@phosphor-icons/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const SHEET_PLUGIN = "dxos.org/plugin/sheet";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
id: string;
|
|
6
|
+
shortId?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
homePage?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
iconComponent?: React.FC<IconProps>;
|
|
12
|
+
iconSymbol?: string;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,0BAA0B,CAAC;;;;;;;;;;;AAEpD,wBAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/model/model.browser.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { type SimpleDate, type SimpleDateTime } from 'hyperformula/typings/DateTimeHelper';
|
|
2
|
+
import { Event } from '@dxos/async';
|
|
3
|
+
import { type CellAddress, type CellRange } from './types';
|
|
4
|
+
import { type ComputeGraph } from '../components';
|
|
5
|
+
import { type CellScalarValue, type CellValue, type SheetType, ValueTypeEnum } from '../types';
|
|
6
|
+
export type CellIndex = string;
|
|
7
|
+
export type CellContentValue = number | string | boolean | null;
|
|
8
|
+
export type SheetModelOptions = {
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
rows: number;
|
|
11
|
+
columns: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const defaultOptions: SheetModelOptions;
|
|
14
|
+
/**
|
|
15
|
+
* Spreadsheet data model.
|
|
16
|
+
*
|
|
17
|
+
* [ComputeGraphContext] > [SheetContext]:[SheetModel] > [Sheet.Root]
|
|
18
|
+
*/
|
|
19
|
+
export declare class SheetModel {
|
|
20
|
+
private readonly _graph;
|
|
21
|
+
private readonly _sheet;
|
|
22
|
+
readonly id: string;
|
|
23
|
+
private _ctx?;
|
|
24
|
+
/**
|
|
25
|
+
* Formula engine.
|
|
26
|
+
* Acts as a write through cache for scalar and computed values.
|
|
27
|
+
*/
|
|
28
|
+
private readonly _sheetId;
|
|
29
|
+
private readonly _options;
|
|
30
|
+
readonly update: Event<void>;
|
|
31
|
+
constructor(_graph: ComputeGraph, _sheet: SheetType, options?: Partial<SheetModelOptions>);
|
|
32
|
+
get graph(): ComputeGraph;
|
|
33
|
+
get sheet(): SheetType;
|
|
34
|
+
get readonly(): boolean | undefined;
|
|
35
|
+
get bounds(): {
|
|
36
|
+
rows: number;
|
|
37
|
+
columns: number;
|
|
38
|
+
};
|
|
39
|
+
get functions(): string[];
|
|
40
|
+
get initialized(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Initialize sheet and engine.
|
|
43
|
+
*/
|
|
44
|
+
initialize(): Promise<this>;
|
|
45
|
+
destroy(): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Update engine.
|
|
48
|
+
* NOTE: This resets the undo history.
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
reset(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Recalculate formulas.
|
|
54
|
+
* NOTE: This resets the undo history.
|
|
55
|
+
* https://hyperformula.handsontable.com/guide/volatile-functions.html#volatile-actions
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
recalculate(): void;
|
|
59
|
+
insertRows(i: number, n?: number): void;
|
|
60
|
+
insertColumns(i: number, n?: number): void;
|
|
61
|
+
/**
|
|
62
|
+
* Clear range of values.
|
|
63
|
+
*/
|
|
64
|
+
clear(range: CellRange): void;
|
|
65
|
+
cut(range: CellRange): void;
|
|
66
|
+
copy(range: CellRange): void;
|
|
67
|
+
paste(cell: CellAddress): void;
|
|
68
|
+
undo(): void;
|
|
69
|
+
redo(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Get value from sheet.
|
|
72
|
+
*/
|
|
73
|
+
getCellValue(cell: CellAddress): CellScalarValue;
|
|
74
|
+
/**
|
|
75
|
+
* Get value as a string for editing.
|
|
76
|
+
*/
|
|
77
|
+
getCellText(cell: CellAddress): string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Get array of raw values from sheet.
|
|
80
|
+
*/
|
|
81
|
+
getCellValues(range: CellRange): CellScalarValue[][];
|
|
82
|
+
/**
|
|
83
|
+
* Gets the regular or computed value from the engine.
|
|
84
|
+
*/
|
|
85
|
+
getValue(cell: CellAddress): CellScalarValue;
|
|
86
|
+
/**
|
|
87
|
+
* Get value type.
|
|
88
|
+
*/
|
|
89
|
+
getValueType(cell: CellAddress): ValueTypeEnum;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the value, updating the sheet and engine.
|
|
92
|
+
*/
|
|
93
|
+
setValue(cell: CellAddress, value: CellScalarValue): void;
|
|
94
|
+
/**
|
|
95
|
+
* Sets values from a simple map.
|
|
96
|
+
*/
|
|
97
|
+
setValues(values: Record<string, CellValue>): void;
|
|
98
|
+
/**
|
|
99
|
+
* Iterate range.
|
|
100
|
+
*/
|
|
101
|
+
private _iterRange;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
private _insertIndices;
|
|
106
|
+
private _deleteIndices;
|
|
107
|
+
private _moveIndices;
|
|
108
|
+
/**
|
|
109
|
+
* E.g., "A1" => "x1@y1".
|
|
110
|
+
*/
|
|
111
|
+
addressToIndex(cell: CellAddress): CellIndex;
|
|
112
|
+
/**
|
|
113
|
+
* E.g., "x1@y1" => "A1".
|
|
114
|
+
*/
|
|
115
|
+
addressFromIndex(idx: CellIndex): CellAddress;
|
|
116
|
+
/**
|
|
117
|
+
* E.g., "A1:B2" => "x1@y1:x2@y2".
|
|
118
|
+
*/
|
|
119
|
+
rangeToIndex(range: CellRange): string;
|
|
120
|
+
/**
|
|
121
|
+
* E.g., "x1@y1:x2@y2" => "A1:B2".
|
|
122
|
+
*/
|
|
123
|
+
rangeFromIndex(idx: string): CellRange;
|
|
124
|
+
/**
|
|
125
|
+
* Map from A1 notation to indices.
|
|
126
|
+
*/
|
|
127
|
+
mapFormulaRefsToIndices(formula: string): string;
|
|
128
|
+
/**
|
|
129
|
+
* Map from indices to A1 notation.
|
|
130
|
+
*/
|
|
131
|
+
mapFormulaIndicesToRefs(formula: string): string;
|
|
132
|
+
/**
|
|
133
|
+
* https://hyperformula.handsontable.com/guide/date-and-time-handling.html#example
|
|
134
|
+
* https://hyperformula.handsontable.com/api/interfaces/configparams.html#nulldate
|
|
135
|
+
* NOTE: TODAY() is number of FULL days since nullDate. It will typically be -1 days from NOW().
|
|
136
|
+
*/
|
|
137
|
+
toLocalDate(num: number): Date;
|
|
138
|
+
toDateTime(num: number): SimpleDateTime;
|
|
139
|
+
toDate(num: number): SimpleDate;
|
|
140
|
+
toTime(num: number): SimpleDate;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../src/model/model.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const MAX_COLUMNS: number;
|
|
2
|
+
export type CellAddress = {
|
|
3
|
+
column: number;
|
|
4
|
+
row: number;
|
|
5
|
+
};
|
|
6
|
+
export type CellRange = {
|
|
7
|
+
from: CellAddress;
|
|
8
|
+
to?: CellAddress;
|
|
9
|
+
};
|
|
10
|
+
export declare const posEquals: (a: CellAddress | undefined, b: CellAddress | undefined) => boolean;
|
|
11
|
+
export declare const columnLetter: (column: number) => string;
|
|
12
|
+
export declare const addressToA1Notation: ({ column, row }: CellAddress) => string;
|
|
13
|
+
export declare const addressFromA1Notation: (ref: string) => CellAddress;
|
|
14
|
+
export declare const rangeToA1Notation: (range: CellRange) => string;
|
|
15
|
+
export declare const rangeFromA1Notation: (ref: string) => CellRange;
|
|
16
|
+
export declare const inRange: (range: CellRange | undefined, cell: CellAddress) => boolean;
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/model/types.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,QAAU,CAAC;AAEnC,MAAM,MAAM,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAEhE,eAAO,MAAM,SAAS,MAAO,WAAW,GAAG,SAAS,KAAK,WAAW,GAAG,SAAS,YAE/E,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MAM7C,CAAC;AAEF,eAAO,MAAM,mBAAmB,oBAAqB,WAAW,KAAG,MAElE,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,WAOnD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,SAAS,WAIjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,SAGjD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,SAAS,GAAG,SAAS,QAAQ,WAAW,KAAG,OAuBzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.test.d.ts","sourceRoot":"","sources":["../../../../src/model/types.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class ApiError extends Error {
|
|
2
|
+
}
|
|
3
|
+
export declare class ReadonlyException extends ApiError {
|
|
4
|
+
}
|
|
5
|
+
export declare class RangeException extends ApiError {
|
|
6
|
+
constructor(n: number);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* With a string length of 8, the chance of a collision is 0.02% for a sheet with 10,000 strings.
|
|
10
|
+
*/
|
|
11
|
+
export declare const createIndex: (length?: number) => string;
|
|
12
|
+
export declare const createIndices: (length: number) => string[];
|
|
13
|
+
export declare const pickOne: <T>(values: T[]) => T;
|
|
14
|
+
export declare const pickSome: <T>(values: T[], n?: number) => T[];
|
|
15
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/model/util.ts"],"names":[],"mappings":"AAOA,qBAAa,QAAS,SAAQ,KAAK;CAAG;AACtC,qBAAa,iBAAkB,SAAQ,QAAQ;CAAG;AAClD,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,CAAC,EAAE,MAAM;CAGtB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,uBAAiB,MAKxC,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,MAAM,EAAqD,CAAC;AAG3G,eAAO,MAAM,OAAO,GAAI,CAAC,UAAU,CAAC,EAAE,KAAG,CAAsD,CAAC;AAChG,eAAO,MAAM,QAAQ,GAAI,CAAC,UAAU,CAAC,EAAE,iBAAU,CAAC,EAMjD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'en-US': {
|
|
3
|
+
"dxos.org/plugin/sheet": {
|
|
4
|
+
'plugin name': string;
|
|
5
|
+
'sheet title placeholder': string;
|
|
6
|
+
'create sheet label': string;
|
|
7
|
+
'create sheet section label': string;
|
|
8
|
+
'cell placeholder': string;
|
|
9
|
+
'toolbar left label': string;
|
|
10
|
+
'toolbar left center': string;
|
|
11
|
+
'toolbar left right': string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}[];
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAMA,wBAeE"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { GraphBuilderProvides, IntentResolverProvides, MetadataRecordsProvides, SurfaceProvides, TranslationsProvides } from '@dxos/app-framework';
|
|
2
|
+
import { S } from '@dxos/echo-schema';
|
|
3
|
+
import { type SchemaProvides } from '@dxos/plugin-client';
|
|
4
|
+
import type { StackProvides } from '@dxos/plugin-stack';
|
|
5
|
+
export declare enum SheetAction {
|
|
6
|
+
CREATE = "dxos.org/plugin/sheet/action/create"
|
|
7
|
+
}
|
|
8
|
+
export type SheetPluginProvides = SurfaceProvides & IntentResolverProvides & GraphBuilderProvides & MetadataRecordsProvides & TranslationsProvides & SchemaProvides & StackProvides;
|
|
9
|
+
export type CellScalarValue = number | string | boolean | null;
|
|
10
|
+
export declare const CellValue: S.Struct<{
|
|
11
|
+
value: typeof S.Any;
|
|
12
|
+
}>;
|
|
13
|
+
export type CellValue = S.Schema.Type<typeof CellValue>;
|
|
14
|
+
/**
|
|
15
|
+
* https://www.tutorialsteacher.com/typescript/typescript-number
|
|
16
|
+
*/
|
|
17
|
+
export declare enum ValueTypeEnum {
|
|
18
|
+
Null = 0,
|
|
19
|
+
Number = 1,
|
|
20
|
+
Boolean = 2,
|
|
21
|
+
String = 3,
|
|
22
|
+
Percent = 10,
|
|
23
|
+
Currency = 11,
|
|
24
|
+
DateTime = 20,
|
|
25
|
+
Date = 21,
|
|
26
|
+
Time = 22,
|
|
27
|
+
URL = 30,
|
|
28
|
+
DID = 31
|
|
29
|
+
}
|
|
30
|
+
export declare const ValueType: S.Enums<typeof ValueTypeEnum>;
|
|
31
|
+
export declare const Formatting: S.Struct<{
|
|
32
|
+
type: S.optional<S.Enums<typeof ValueTypeEnum>>;
|
|
33
|
+
format: S.optional<typeof S.String>;
|
|
34
|
+
precision: S.optional<typeof S.Number>;
|
|
35
|
+
classNames: S.optional<S.Array$<typeof S.String>>;
|
|
36
|
+
}>;
|
|
37
|
+
export type Formatting = S.Schema.Type<typeof Formatting>;
|
|
38
|
+
export declare const RowColumnMeta: S.Struct<{
|
|
39
|
+
size: S.optional<typeof S.Number>;
|
|
40
|
+
}>;
|
|
41
|
+
declare const SheetType_base: import("@dxos/echo-schema").AbstractTypedObject<{
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
cells: {
|
|
44
|
+
[x: string]: {
|
|
45
|
+
value: any;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
rows: string[];
|
|
49
|
+
columns: string[];
|
|
50
|
+
rowMeta: {
|
|
51
|
+
[x: string]: {
|
|
52
|
+
size?: number | undefined;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
columnMeta: {
|
|
56
|
+
[x: string]: {
|
|
57
|
+
size?: number | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
formatting: {
|
|
61
|
+
[x: string]: {
|
|
62
|
+
type?: ValueTypeEnum | undefined;
|
|
63
|
+
format?: string | undefined;
|
|
64
|
+
precision?: number | undefined;
|
|
65
|
+
classNames?: readonly string[] | undefined;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
} & {
|
|
69
|
+
id: string;
|
|
70
|
+
}, S.Struct.Encoded<{
|
|
71
|
+
title: S.optional<typeof S.String>;
|
|
72
|
+
cells: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
73
|
+
value: typeof S.Any;
|
|
74
|
+
}>>>>;
|
|
75
|
+
rows: S.mutable<S.Array$<typeof S.String>>;
|
|
76
|
+
columns: S.mutable<S.Array$<typeof S.String>>;
|
|
77
|
+
rowMeta: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
78
|
+
size: S.optional<typeof S.Number>;
|
|
79
|
+
}>>>>;
|
|
80
|
+
columnMeta: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
81
|
+
size: S.optional<typeof S.Number>;
|
|
82
|
+
}>>>>;
|
|
83
|
+
formatting: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
84
|
+
type: S.optional<S.Enums<typeof ValueTypeEnum>>;
|
|
85
|
+
format: S.optional<typeof S.String>;
|
|
86
|
+
precision: S.optional<typeof S.Number>;
|
|
87
|
+
classNames: S.optional<S.Array$<typeof S.String>>;
|
|
88
|
+
}>>>>;
|
|
89
|
+
}>>;
|
|
90
|
+
export declare class SheetType extends SheetType_base {
|
|
91
|
+
}
|
|
92
|
+
export declare const createSheet: (title?: string) => SheetType;
|
|
93
|
+
export {};
|
|
94
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAU,CAAC,EAAe,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAMxD,oBAAY,WAAW;IACrB,MAAM,wCAA2B;CAClC;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAC/C,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,GACd,aAAa,CAAC;AAEhB,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAE/D,eAAO,MAAM,SAAS;;EAMpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD;;GAEG;AAEH,oBAAY,aAAa;IACvB,IAAI,IAAI;IACR,MAAM,IAAI;IACV,OAAO,IAAI;IACX,MAAM,IAAI;IAGV,OAAO,KAAK;IACZ,QAAQ,KAAK;IAGb,QAAQ,KAAK;IACb,IAAI,KAAK;IACT,IAAI,KAAK;IAIT,GAAG,KAAK;IACR,GAAG,KAAK;CACT;AAED,eAAO,MAAM,SAAS,+BAAyB,CAAC;AAEhD,eAAO,MAAM,UAAU;;;;;EAKrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAG1D,eAAO,MAAM,aAAa;;EAExB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,qBAAa,SAAU,SAAQ,cAoB7B;CAAG;AAGL,eAAO,MAAM,WAAW,WAAY,MAAM,KAAG,SACgE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dxos/plugin-sheet",
|
|
3
|
+
"version": "0.6.8-main.046e6cf",
|
|
4
|
+
"description": "Braneframe sketch plugin",
|
|
5
|
+
"homepage": "https://dxos.org",
|
|
6
|
+
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": "DXOS.org",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"browser": "./dist/lib/browser/index.mjs",
|
|
12
|
+
"node": {
|
|
13
|
+
"default": "./dist/lib/node/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"types": "./dist/types/src/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./meta": {
|
|
18
|
+
"browser": "./dist/lib/browser/meta.mjs",
|
|
19
|
+
"node": {
|
|
20
|
+
"default": "./dist/lib/node/meta.cjs"
|
|
21
|
+
},
|
|
22
|
+
"types": "./dist/types/src/meta.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./types": {
|
|
25
|
+
"browser": "./dist/lib/browser/types.mjs",
|
|
26
|
+
"node": {
|
|
27
|
+
"default": "./dist/lib/node/types.cjs"
|
|
28
|
+
},
|
|
29
|
+
"types": "./dist/types/src/types.d.ts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"types": "dist/types/src/index.d.ts",
|
|
33
|
+
"typesVersions": {
|
|
34
|
+
"*": {
|
|
35
|
+
"meta": [
|
|
36
|
+
"dist/types/src/meta.d.ts"
|
|
37
|
+
],
|
|
38
|
+
"types": [
|
|
39
|
+
"dist/types/src/types.d.ts"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"src"
|
|
46
|
+
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@codemirror/autocomplete": "^6.18.0",
|
|
49
|
+
"@codemirror/language": "^6.10.2",
|
|
50
|
+
"@codemirror/state": "^6.4.1",
|
|
51
|
+
"@codemirror/view": "^6.29.1",
|
|
52
|
+
"@dnd-kit/core": "^6.0.5",
|
|
53
|
+
"@dnd-kit/modifiers": "^6.0.0",
|
|
54
|
+
"@dnd-kit/sortable": "^7.0.1",
|
|
55
|
+
"@dnd-kit/utilities": "^3.2.0",
|
|
56
|
+
"@lezer/common": "^1.2.1",
|
|
57
|
+
"@lezer/highlight": "^1.2.0",
|
|
58
|
+
"@lezer/lezer": "^1.1.2",
|
|
59
|
+
"@lezer/lr": "^1.4.2",
|
|
60
|
+
"@preact/signals-core": "^1.6.0",
|
|
61
|
+
"@radix-ui/react-context": "^1.0.0",
|
|
62
|
+
"@tanstack/react-virtual": "^3.9.0",
|
|
63
|
+
"codemirror-lang-spreadsheet": "^1.3.0",
|
|
64
|
+
"hyperformula": "^2.7.1",
|
|
65
|
+
"lodash.defaultsdeep": "^4.6.1",
|
|
66
|
+
"lodash.get": "^4.4.2",
|
|
67
|
+
"re-resizable": "^6.9.17",
|
|
68
|
+
"react-markdown": "^8.0.5",
|
|
69
|
+
"react-resize-detector": "^11.0.1",
|
|
70
|
+
"@dxos/app-framework": "0.6.8-main.046e6cf",
|
|
71
|
+
"@dxos/async": "0.6.8-main.046e6cf",
|
|
72
|
+
"@dxos/client": "0.6.8-main.046e6cf",
|
|
73
|
+
"@dxos/context": "0.6.8-main.046e6cf",
|
|
74
|
+
"@dxos/crypto": "0.6.8-main.046e6cf",
|
|
75
|
+
"@dxos/debug": "0.6.8-main.046e6cf",
|
|
76
|
+
"@dxos/echo-schema": "0.6.8-main.046e6cf",
|
|
77
|
+
"@dxos/invariant": "0.6.8-main.046e6cf",
|
|
78
|
+
"@dxos/log": "0.6.8-main.046e6cf",
|
|
79
|
+
"@dxos/plugin-client": "0.6.8-main.046e6cf",
|
|
80
|
+
"@dxos/plugin-graph": "0.6.8-main.046e6cf",
|
|
81
|
+
"@dxos/plugin-script": "0.6.8-main.046e6cf",
|
|
82
|
+
"@dxos/keys": "0.6.8-main.046e6cf",
|
|
83
|
+
"@dxos/plugin-space": "0.6.8-main.046e6cf",
|
|
84
|
+
"@dxos/plugin-stack": "0.6.8-main.046e6cf",
|
|
85
|
+
"@dxos/react-client": "0.6.8-main.046e6cf",
|
|
86
|
+
"@dxos/react-ui-attention": "0.6.8-main.046e6cf",
|
|
87
|
+
"@dxos/react-ui-editor": "0.6.8-main.046e6cf",
|
|
88
|
+
"@dxos/util": "0.6.8-main.046e6cf"
|
|
89
|
+
},
|
|
90
|
+
"devDependencies": {
|
|
91
|
+
"@lezer/generator": "^1.7.1",
|
|
92
|
+
"@phosphor-icons/react": "^2.1.5",
|
|
93
|
+
"@tldraw/indices": "^2.0.0-alpha.14",
|
|
94
|
+
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
95
|
+
"@types/lodash.get": "^4.4.7",
|
|
96
|
+
"@types/react": "~18.2.0",
|
|
97
|
+
"@types/react-dom": "~18.2.0",
|
|
98
|
+
"@types/react-window": "^1.8.8",
|
|
99
|
+
"react": "~18.2.0",
|
|
100
|
+
"react-dom": "~18.2.0",
|
|
101
|
+
"vite": "^5.3.4",
|
|
102
|
+
"@dxos/echo-generator": "0.6.8-main.046e6cf",
|
|
103
|
+
"@dxos/react-ui": "0.6.8-main.046e6cf",
|
|
104
|
+
"@dxos/react-ui-theme": "0.6.8-main.046e6cf",
|
|
105
|
+
"@dxos/random": "0.6.8-main.046e6cf",
|
|
106
|
+
"@dxos/react-ui-types": "0.6.8-main.046e6cf",
|
|
107
|
+
"@dxos/storybook-utils": "0.6.8-main.046e6cf"
|
|
108
|
+
},
|
|
109
|
+
"optionalDependencies": {
|
|
110
|
+
"@phosphor-icons/react": "^2.1.5",
|
|
111
|
+
"react": "^18.0.0",
|
|
112
|
+
"react-dom": "^18.0.0",
|
|
113
|
+
"@dxos/react-ui": "0.6.8-main.046e6cf",
|
|
114
|
+
"@dxos/react-ui-theme": "0.6.8-main.046e6cf"
|
|
115
|
+
},
|
|
116
|
+
"publishConfig": {
|
|
117
|
+
"access": "public"
|
|
118
|
+
},
|
|
119
|
+
"scripts": {
|
|
120
|
+
"gen": "lezer-generator ./src/components/CellEditor/parser/formula.grammar --typeScript -o ./src/components/CellEditor/parser/formula.ts"
|
|
121
|
+
}
|
|
122
|
+
}
|