@dxos/plugin-sheet 0.6.11 → 0.6.12-main.15a606f
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-V4GCCZTX.mjs +261 -0
- package/dist/lib/browser/SheetContainer-V4GCCZTX.mjs.map +7 -0
- package/dist/lib/browser/{chunk-D5AGLXJP.mjs → chunk-6ZMQVB4Z.mjs} +359 -671
- package/dist/lib/browser/chunk-6ZMQVB4Z.mjs.map +7 -0
- package/dist/lib/browser/{chunk-JRL5LGCE.mjs → chunk-QILRZNE5.mjs} +2 -5
- package/dist/lib/browser/chunk-QILRZNE5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FUAGSXA4.mjs → chunk-T3NJFTD4.mjs} +8 -15
- package/dist/lib/browser/chunk-T3NJFTD4.mjs.map +7 -0
- package/dist/lib/browser/{SheetContainer-U4H5D34A.mjs → chunk-U2JHW3L6.mjs} +1020 -240
- package/dist/lib/browser/chunk-U2JHW3L6.mjs.map +7 -0
- package/dist/lib/browser/graph-T27BOBOV.mjs +21 -0
- package/dist/lib/browser/graph-T27BOBOV.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +68 -56
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/meta.mjs +1 -1
- package/dist/lib/browser/types.mjs +4 -6
- package/dist/lib/node/SheetContainer-3ZY7MPWJ.cjs +279 -0
- package/dist/lib/node/SheetContainer-3ZY7MPWJ.cjs.map +7 -0
- package/dist/lib/node/{chunk-BJ6ZD7MN.cjs → chunk-BNARJ5GM.cjs} +5 -18
- package/dist/lib/node/chunk-BNARJ5GM.cjs.map +7 -0
- package/dist/lib/node/{chunk-5KKJ4NPP.cjs → chunk-DD6FIXWC.cjs} +360 -667
- package/dist/lib/node/chunk-DD6FIXWC.cjs.map +7 -0
- package/dist/lib/node/{SheetContainer-AXQV3ZT5.cjs → chunk-OTTD7FBK.cjs} +1050 -279
- package/dist/lib/node/chunk-OTTD7FBK.cjs.map +7 -0
- package/dist/lib/node/{chunk-DSYKOI4E.cjs → chunk-Q3HBHPRL.cjs} +12 -20
- package/dist/lib/node/chunk-Q3HBHPRL.cjs.map +7 -0
- package/dist/lib/node/graph-SPKGX7W4.cjs +43 -0
- package/dist/lib/node/graph-SPKGX7W4.cjs.map +7 -0
- package/dist/lib/node/index.cjs +83 -64
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.cjs +3 -3
- package/dist/lib/node/meta.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/types.cjs +10 -12
- package/dist/lib/node/types.cjs.map +2 -2
- package/dist/lib/node-esm/SheetContainer-PXSJX6XK.mjs +262 -0
- package/dist/lib/node-esm/SheetContainer-PXSJX6XK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7HVSOTGA.mjs +2553 -0
- package/dist/lib/node-esm/chunk-7HVSOTGA.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BMNA27EX.mjs +76 -0
- package/dist/lib/node-esm/chunk-BMNA27EX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-D6KU5MI7.mjs +2925 -0
- package/dist/lib/node-esm/chunk-D6KU5MI7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IU2L277A.mjs +17 -0
- package/dist/lib/node-esm/chunk-IU2L277A.mjs.map +7 -0
- package/dist/lib/node-esm/graph-U67IO4UC.mjs +22 -0
- package/dist/lib/node-esm/graph-U67IO4UC.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +261 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/meta.mjs +10 -0
- package/dist/lib/node-esm/meta.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +21 -0
- package/dist/lib/node-esm/types.mjs.map +7 -0
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/components/CellEditor/CellEditor.d.ts +23 -3
- package/dist/types/src/components/CellEditor/CellEditor.d.ts.map +1 -1
- package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts +2 -2
- package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/CellEditor/extension.d.ts +1 -1
- package/dist/types/src/components/CellEditor/extension.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +11 -0
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/index.d.ts +1 -3
- package/dist/types/src/components/ComputeGraph/index.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts +10 -0
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +9 -0
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/util.d.ts +6 -0
- package/dist/types/src/components/GridSheet/util.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/Sheet.d.ts +1 -1
- package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/Sheet.stories.d.ts +5 -6
- package/dist/types/src/components/Sheet/Sheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/decorations.d.ts +24 -0
- package/dist/types/src/components/Sheet/decorations.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/grid.d.ts +2 -2
- package/dist/types/src/components/Sheet/grid.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/nav.d.ts +3 -3
- package/dist/types/src/components/Sheet/nav.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/sheet-context.d.ts +6 -5
- package/dist/types/src/components/Sheet/sheet-context.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/threads.d.ts +2 -0
- package/dist/types/src/components/Sheet/threads.d.ts.map +1 -0
- package/dist/types/src/components/SheetContainer.d.ts +2 -3
- package/dist/types/src/components/SheetContainer.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +19 -3
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +18 -13
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/defs/index.d.ts +3 -0
- package/dist/types/src/defs/index.d.ts.map +1 -0
- package/dist/types/src/{model → defs}/types.d.ts +8 -3
- package/dist/types/src/defs/types.d.ts.map +1 -0
- package/dist/types/src/defs/types.test.d.ts.map +1 -0
- package/dist/types/src/defs/util.d.ts +43 -0
- package/dist/types/src/defs/util.d.ts.map +1 -0
- package/dist/types/src/extensions/compute.d.ts +5 -0
- package/dist/types/src/extensions/compute.d.ts.map +1 -0
- package/dist/types/src/extensions/compute.stories.d.ts +26 -0
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +2 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -0
- package/dist/types/src/{components/ComputeGraph → graph}/async-function.d.ts +1 -1
- package/dist/types/src/graph/async-function.d.ts.map +1 -0
- package/dist/types/src/graph/compute-graph.browser.test.d.ts +2 -0
- package/dist/types/src/graph/compute-graph.browser.test.d.ts.map +1 -0
- package/dist/types/src/graph/compute-graph.d.ts +81 -0
- package/dist/types/src/graph/compute-graph.d.ts.map +1 -0
- package/dist/types/src/graph/compute-graph.stories.d.ts +10 -0
- package/dist/types/src/graph/compute-graph.stories.d.ts.map +1 -0
- package/dist/types/src/graph/compute-node.d.ts +19 -0
- package/dist/types/src/graph/compute-node.d.ts.map +1 -0
- package/dist/types/src/{components/ComputeGraph/custom.d.ts → graph/custom-function.d.ts} +1 -1
- package/dist/types/src/graph/custom-function.d.ts.map +1 -0
- package/dist/types/src/graph/edge-function.d.ts.map +1 -0
- package/dist/types/src/{model/functions.d.ts → graph/function-defs.d.ts} +1 -1
- package/dist/types/src/graph/function-defs.d.ts.map +1 -0
- package/dist/types/src/graph/hyperformula.test.d.ts +2 -0
- package/dist/types/src/graph/hyperformula.test.d.ts.map +1 -0
- package/dist/types/src/graph/index.d.ts +4 -0
- package/dist/types/src/graph/index.d.ts.map +1 -0
- package/dist/types/src/graph/util.d.ts +2 -0
- package/dist/types/src/graph/util.d.ts.map +1 -0
- package/dist/types/src/hooks/hooks.stories.d.ts +11 -0
- package/dist/types/src/hooks/hooks.stories.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +4 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useComputeGraph.d.ts +7 -0
- package/dist/types/src/hooks/useComputeGraph.d.ts.map +1 -0
- package/dist/types/src/hooks/useFormattingModel.d.ts +3 -0
- package/dist/types/src/hooks/useFormattingModel.d.ts.map +1 -0
- package/dist/types/src/hooks/useSheetModel.d.ts +8 -0
- package/dist/types/src/hooks/useSheetModel.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +1 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/model/formatting-model.d.ts +16 -0
- package/dist/types/src/model/formatting-model.d.ts.map +1 -0
- package/dist/types/src/model/index.d.ts +2 -3
- package/dist/types/src/model/index.d.ts.map +1 -1
- package/dist/types/src/model/{model.d.ts → sheet-model.d.ts} +9 -64
- package/dist/types/src/model/sheet-model.d.ts.map +1 -0
- package/dist/types/src/sanity.test.d.ts +2 -0
- package/dist/types/src/sanity.test.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts +9 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +17 -12
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +83 -3
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/vendor/hyperformula.mjs +37145 -0
- package/package.json +48 -41
- package/src/SheetPlugin.tsx +43 -70
- package/src/components/CellEditor/CellEditor.stories.tsx +4 -3
- package/src/components/CellEditor/CellEditor.tsx +59 -9
- package/src/components/CellEditor/extension.test.ts +4 -5
- package/src/components/CellEditor/extension.ts +1 -3
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +20 -0
- package/src/components/ComputeGraph/index.ts +1 -3
- package/src/components/GridSheet/GridSheet.stories.tsx +35 -0
- package/src/components/GridSheet/GridSheet.tsx +153 -0
- package/src/components/GridSheet/util.ts +89 -0
- package/src/components/Sheet/Sheet.stories.tsx +45 -82
- package/src/components/Sheet/Sheet.tsx +57 -18
- package/src/components/Sheet/decorations.ts +62 -0
- package/src/components/Sheet/grid.ts +3 -3
- package/src/components/Sheet/nav.ts +19 -19
- package/src/components/Sheet/sheet-context.tsx +16 -78
- package/src/components/Sheet/threads.tsx +205 -0
- package/src/components/SheetContainer.tsx +73 -19
- package/src/components/Toolbar/Toolbar.tsx +53 -12
- package/src/components/index.ts +1 -0
- package/src/defs/index.ts +6 -0
- package/src/{model → defs}/types.test.ts +8 -9
- package/src/{model → defs}/types.ts +23 -14
- package/src/defs/util.ts +135 -0
- package/src/extensions/compute.stories.tsx +151 -0
- package/src/extensions/compute.ts +98 -0
- package/src/extensions/index.ts +5 -0
- package/src/{components/ComputeGraph → graph}/async-function.ts +3 -1
- package/src/graph/compute-graph.browser.test.ts +104 -0
- package/src/graph/compute-graph.stories.tsx +92 -0
- package/src/graph/compute-graph.ts +290 -0
- package/src/graph/compute-node.ts +51 -0
- package/src/{components/ComputeGraph/custom.ts → graph/custom-function.ts} +2 -6
- package/src/{components/ComputeGraph → graph}/edge-function.ts +2 -1
- package/src/graph/hyperformula.test.ts +15 -0
- package/src/graph/index.ts +7 -0
- package/src/graph/util.ts +8 -0
- package/src/hooks/hooks.stories.tsx +50 -0
- package/src/hooks/index.ts +7 -0
- package/src/hooks/useComputeGraph.ts +20 -0
- package/src/hooks/useFormattingModel.ts +11 -0
- package/src/hooks/useSheetModel.ts +43 -0
- package/src/meta.tsx +1 -5
- package/src/{components/Sheet/formatting.ts → model/formatting-model.ts} +20 -13
- package/src/model/index.ts +2 -3
- package/src/model/sheet-model.ts +399 -0
- package/src/sanity.test.ts +40 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/testing.tsx +66 -0
- package/src/translations.ts +6 -1
- package/src/types.ts +30 -5
- package/dist/lib/browser/SheetContainer-U4H5D34A.mjs.map +0 -7
- package/dist/lib/browser/chunk-APHOLYUB.mjs +0 -175
- package/dist/lib/browser/chunk-APHOLYUB.mjs.map +0 -7
- package/dist/lib/browser/chunk-D5AGLXJP.mjs.map +0 -7
- package/dist/lib/browser/chunk-FUAGSXA4.mjs.map +0 -7
- package/dist/lib/browser/chunk-JRL5LGCE.mjs.map +0 -7
- package/dist/lib/browser/chunk-NU4PBN33.mjs +0 -8
- package/dist/lib/browser/chunk-NU4PBN33.mjs.map +0 -7
- package/dist/lib/browser/testing.mjs +0 -92
- package/dist/lib/browser/testing.mjs.map +0 -7
- package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs.map +0 -7
- package/dist/lib/node/chunk-5KKJ4NPP.cjs.map +0 -7
- package/dist/lib/node/chunk-BJ6ZD7MN.cjs.map +0 -7
- package/dist/lib/node/chunk-CN3RPESU.cjs +0 -202
- package/dist/lib/node/chunk-CN3RPESU.cjs.map +0 -7
- package/dist/lib/node/chunk-DSYKOI4E.cjs.map +0 -7
- package/dist/lib/node/chunk-PYXHNAAK.cjs +0 -40
- package/dist/lib/node/chunk-PYXHNAAK.cjs.map +0 -7
- package/dist/lib/node/testing.cjs +0 -111
- package/dist/lib/node/testing.cjs.map +0 -7
- package/dist/types/src/components/ComputeGraph/async-function.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/custom.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/edge-function.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/graph-context.d.ts +0 -12
- package/dist/types/src/components/ComputeGraph/graph-context.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts +0 -2
- package/dist/types/src/components/ComputeGraph/graph.browser.test.d.ts.map +0 -1
- package/dist/types/src/components/ComputeGraph/graph.d.ts +0 -26
- package/dist/types/src/components/ComputeGraph/graph.d.ts.map +0 -1
- package/dist/types/src/components/Sheet/formatting.d.ts +0 -14
- package/dist/types/src/components/Sheet/formatting.d.ts.map +0 -1
- package/dist/types/src/model/functions.d.ts.map +0 -1
- package/dist/types/src/model/model.browser.test.d.ts +0 -2
- package/dist/types/src/model/model.browser.test.d.ts.map +0 -1
- package/dist/types/src/model/model.d.ts.map +0 -1
- package/dist/types/src/model/types.d.ts.map +0 -1
- package/dist/types/src/model/types.test.d.ts.map +0 -1
- package/dist/types/src/model/util.d.ts +0 -15
- package/dist/types/src/model/util.d.ts.map +0 -1
- package/dist/types/src/testing.d.ts +0 -9
- package/dist/types/src/testing.d.ts.map +0 -1
- package/src/components/ComputeGraph/graph-context.tsx +0 -50
- package/src/components/ComputeGraph/graph.browser.test.ts +0 -50
- package/src/components/ComputeGraph/graph.ts +0 -62
- package/src/model/model.browser.test.ts +0 -100
- package/src/model/model.ts +0 -550
- package/src/model/util.ts +0 -36
- package/src/testing.ts +0 -50
- /package/dist/types/src/{model → defs}/types.test.d.ts +0 -0
- /package/dist/types/src/{components/ComputeGraph → graph}/edge-function.d.ts +0 -0
- /package/src/{model/functions.ts → graph/function-defs.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Event } from '@dxos/async';
|
|
2
|
+
import { Resource } from '@dxos/context';
|
|
3
|
+
import { type ComputeGraph } from './compute-graph';
|
|
4
|
+
import { type CellAddress } from '../defs';
|
|
5
|
+
import { type CellScalarValue } from '../types';
|
|
6
|
+
/**
|
|
7
|
+
* Individual "sheet" (typically corresponds to an ECHO object).
|
|
8
|
+
*/
|
|
9
|
+
export declare class ComputeNode extends Resource {
|
|
10
|
+
private readonly _graph;
|
|
11
|
+
readonly sheetId: number;
|
|
12
|
+
readonly update: Event<void>;
|
|
13
|
+
constructor(_graph: ComputeGraph, sheetId: number);
|
|
14
|
+
get graph(): ComputeGraph;
|
|
15
|
+
get hf(): import("hyperformula").HyperFormula;
|
|
16
|
+
getValue(cell: CellAddress): CellScalarValue;
|
|
17
|
+
setValue(cell: CellAddress, value: CellScalarValue): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=compute-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-node.d.ts","sourceRoot":"","sources":["../../../../src/graph/compute-node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;GAEG;AAEH,qBAAa,WAAY,SAAQ,QAAQ;IAKrC,OAAO,CAAC,QAAQ,CAAC,MAAM;aACP,OAAO,EAAE,MAAM;IAJjC,SAAgB,MAAM,cAAe;gBAGlB,MAAM,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM;IAMjC,IAAI,KAAK,iBAER;IAED,IAAI,EAAE,wCAEL;IAED,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe;IAS5C,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe;CAKnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-function.d.ts","sourceRoot":"","sources":["../../../../src/graph/custom-function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAKhE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG3E;;GAEG;AACH,qBAAa,YAAa,SAAQ,mBAAmB;IACnD,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAQ/C,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CAelD;AAgBD,eAAO,MAAM,wBAAwB;;;;;;;;;CASpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-function.d.ts","sourceRoot":"","sources":["../../../../src/graph/edge-function.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAShE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAI3E;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,mBAAmB;IACzD,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;CA0ChD;AAwBD,eAAO,MAAM,8BAA8B;;;;;;;CAO1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-defs.d.ts","sourceRoot":"","sources":["../../../../src/graph/function-defs.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,kBAAkB,EA42EhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hyperformula.test.d.ts","sourceRoot":"","sources":["../../../../src/graph/hyperformula.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/graph/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/graph/util.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,MAE/C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ registry, children }: React.PropsWithChildren<import("../components").ComputeGraphContextType>) => React.JSX.Element;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
|
+
render: (args: any) => React.JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const Default: {};
|
|
11
|
+
//# sourceMappingURL=hooks.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.stories.d.ts","sourceRoot":"","sources":["../../../../src/hooks/hooks.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAA8B,MAAM,OAAO,CAAC;;;;;mBAwClC,GAAG;;AARpB,wBASE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
2
|
+
import { type ComputeGraph } from '../graph';
|
|
3
|
+
/**
|
|
4
|
+
* Get existing or create new compute graph for the given space.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useComputeGraph: (space?: Space) => ComputeGraph | undefined;
|
|
7
|
+
//# sourceMappingURL=useComputeGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useComputeGraph.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useComputeGraph.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,eAAe,WAAY,KAAK,KAAG,YAAY,GAAG,SAG9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormattingModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useFormattingModel.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5D,eAAO,MAAM,kBAAkB,UAAW,UAAU,GAAG,SAAS,KAAG,eAAe,GAAG,SAEpF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
2
|
+
import { SheetModel } from '../model';
|
|
3
|
+
import { type SheetType } from '../types';
|
|
4
|
+
export type UseSheetModelOptions = {
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const useSheetModel: (space?: Space, sheet?: SheetType, { readonly }?: UseSheetModelOptions) => SheetModel | undefined;
|
|
8
|
+
//# sourceMappingURL=useSheetModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSheetModel.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useSheetModel.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,WAChB,KAAK,UACL,SAAS,iBACH,oBAAoB,KACjC,UAAU,GAAG,SAsBf,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { type IconProps } from '@phosphor-icons/react';
|
|
2
|
-
import React from 'react';
|
|
3
1
|
export declare const SHEET_PLUGIN = "dxos.org/plugin/sheet";
|
|
4
2
|
declare const _default: {
|
|
5
3
|
id: string;
|
|
@@ -8,8 +6,7 @@ declare const _default: {
|
|
|
8
6
|
description?: string;
|
|
9
7
|
homePage?: string;
|
|
10
8
|
tags?: string[];
|
|
11
|
-
|
|
12
|
-
iconSymbol?: string;
|
|
9
|
+
icon?: string;
|
|
13
10
|
};
|
|
14
11
|
export default _default;
|
|
15
12
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,0BAA0B,CAAC;;;;;;;;;;AAEpD,wBAKG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ClassNameValue } from '@dxos/react-ui-types';
|
|
2
|
+
import { type SheetModel } from './sheet-model';
|
|
3
|
+
import { type CellAddress } from '../defs';
|
|
4
|
+
export type CellFormat = {
|
|
5
|
+
value?: string;
|
|
6
|
+
classNames?: ClassNameValue;
|
|
7
|
+
};
|
|
8
|
+
export declare class FormattingModel {
|
|
9
|
+
private readonly _model;
|
|
10
|
+
constructor(_model: SheetModel);
|
|
11
|
+
/**
|
|
12
|
+
* Get formatted string value and className for cell.
|
|
13
|
+
*/
|
|
14
|
+
getFormatting(cell: CellAddress): CellFormat;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=formatting-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting-model.d.ts","sourceRoot":"","sources":["../../../../src/model/formatting-model.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAW,MAAM,SAAS,CAAC;AAIpD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B,CAAC;AAEF,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C;;OAEG;IACH,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU;CA0F7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
@@ -1,41 +1,25 @@
|
|
|
1
1
|
import { type SimpleDate, type SimpleDateTime } from 'hyperformula/typings/DateTimeHelper';
|
|
2
2
|
import { Event } from '@dxos/async';
|
|
3
|
-
import {
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import { type CellAddress, type CellRange } from './types';
|
|
7
|
-
import { type ComputeGraph } from '../components';
|
|
3
|
+
import { Resource } from '@dxos/context';
|
|
4
|
+
import { type CellAddress, type CellRange } from '../defs';
|
|
5
|
+
import { type ComputeGraph } from '../graph';
|
|
8
6
|
import { type CellScalarValue, type CellValue, type SheetType, ValueTypeEnum } from '../types';
|
|
9
|
-
export type CellIndex = string;
|
|
10
|
-
export type CellContentValue = number | string | boolean | null;
|
|
11
7
|
export type SheetModelOptions = {
|
|
12
8
|
readonly?: boolean;
|
|
13
|
-
rows: number;
|
|
14
|
-
columns: number;
|
|
15
|
-
mapFormulaBindingToId: (functions: FunctionType[]) => (formula: string) => string;
|
|
16
|
-
mapFormulaBindingFromId: (functions: FunctionType[]) => (formula: string) => string;
|
|
17
9
|
};
|
|
18
|
-
export declare const defaultOptions: SheetModelOptions;
|
|
19
10
|
/**
|
|
20
11
|
* Spreadsheet data model.
|
|
21
12
|
*
|
|
22
13
|
* [ComputeGraphContext] > [SheetContext]:[SheetModel] > [Sheet.Root]
|
|
23
14
|
*/
|
|
24
|
-
export declare class SheetModel {
|
|
15
|
+
export declare class SheetModel extends Resource {
|
|
25
16
|
private readonly _graph;
|
|
26
17
|
private readonly _sheet;
|
|
27
|
-
private readonly _space?;
|
|
28
|
-
readonly id: string;
|
|
29
|
-
private _ctx?;
|
|
30
|
-
/**
|
|
31
|
-
* Formula engine.
|
|
32
|
-
* Acts as a write through cache for scalar and computed values.
|
|
33
|
-
*/
|
|
34
|
-
private readonly _sheetId;
|
|
35
18
|
private readonly _options;
|
|
36
|
-
|
|
19
|
+
readonly id: string;
|
|
37
20
|
readonly update: Event<void>;
|
|
38
|
-
|
|
21
|
+
private readonly _node;
|
|
22
|
+
constructor(_graph: ComputeGraph, _sheet: SheetType, _options?: SheetModelOptions);
|
|
39
23
|
get graph(): ComputeGraph;
|
|
40
24
|
get sheet(): SheetType;
|
|
41
25
|
get readonly(): boolean | undefined;
|
|
@@ -43,13 +27,10 @@ export declare class SheetModel {
|
|
|
43
27
|
rows: number;
|
|
44
28
|
columns: number;
|
|
45
29
|
};
|
|
46
|
-
get functions(): FunctionDefinition[];
|
|
47
|
-
get initialized(): boolean;
|
|
48
30
|
/**
|
|
49
31
|
* Initialize sheet and engine.
|
|
50
32
|
*/
|
|
51
|
-
|
|
52
|
-
destroy(): Promise<void>;
|
|
33
|
+
protected _open(): Promise<void>;
|
|
53
34
|
/**
|
|
54
35
|
* Update engine.
|
|
55
36
|
* NOTE: This resets the undo history.
|
|
@@ -106,44 +87,8 @@ export declare class SheetModel {
|
|
|
106
87
|
* Iterate range.
|
|
107
88
|
*/
|
|
108
89
|
private _iterRange;
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
*/
|
|
112
|
-
private _insertIndices;
|
|
113
90
|
private _deleteIndices;
|
|
114
91
|
private _moveIndices;
|
|
115
|
-
/**
|
|
116
|
-
* E.g., "A1" => "x1@y1".
|
|
117
|
-
*/
|
|
118
|
-
addressToIndex(cell: CellAddress): CellIndex;
|
|
119
|
-
/**
|
|
120
|
-
* E.g., "x1@y1" => "A1".
|
|
121
|
-
*/
|
|
122
|
-
addressFromIndex(idx: CellIndex): CellAddress;
|
|
123
|
-
/**
|
|
124
|
-
* E.g., "A1:B2" => "x1@y1:x2@y2".
|
|
125
|
-
*/
|
|
126
|
-
rangeToIndex(range: CellRange): string;
|
|
127
|
-
/**
|
|
128
|
-
* E.g., "x1@y1:x2@y2" => "A1:B2".
|
|
129
|
-
*/
|
|
130
|
-
rangeFromIndex(idx: string): CellRange;
|
|
131
|
-
/**
|
|
132
|
-
* E.g., "HELLO()" => "EDGE("HELLO")".
|
|
133
|
-
*/
|
|
134
|
-
mapFormulaBindingToFormula(formula: string): string;
|
|
135
|
-
/**
|
|
136
|
-
* E.g., "EDGE("HELLO")" => "HELLO()".
|
|
137
|
-
*/
|
|
138
|
-
mapFormulaBindingFromFormula(formula: string): string;
|
|
139
|
-
/**
|
|
140
|
-
* Map from binding to fully qualified ECHO ID.
|
|
141
|
-
*/
|
|
142
|
-
mapFormulaBindingToId(formula: string): string;
|
|
143
|
-
/**
|
|
144
|
-
* Map from fully qualified ECHO ID to binding.
|
|
145
|
-
*/
|
|
146
|
-
mapFormulaBindingFromId(formula: string): string;
|
|
147
92
|
/**
|
|
148
93
|
* Map from A1 notation to indices.
|
|
149
94
|
*/
|
|
@@ -162,4 +107,4 @@ export declare class SheetModel {
|
|
|
162
107
|
toDate(num: number): SimpleDate;
|
|
163
108
|
toTime(num: number): SimpleDate;
|
|
164
109
|
}
|
|
165
|
-
//# sourceMappingURL=model.d.ts.map
|
|
110
|
+
//# sourceMappingURL=sheet-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-model.d.ts","sourceRoot":"","sources":["../../../../src/model/sheet-model.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE3F,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAMzC,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,SAAS,EAGf,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAoB,KAAK,YAAY,EAAmB,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA4B/F,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;GAIG;AAEH,qBAAa,UAAW,SAAQ,QAAQ;IAQpC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAT3B,SAAgB,EAAE,SAA4C;IAE9D,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AE,MAAM,GAAG,MAAM;IAOhD;;OAEG;IACH,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAWhD;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK9B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc;IAIvC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;CAGhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanity.test.d.ts","sourceRoot":"","sources":["../../../src/sanity.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Decorator } from '@storybook/react';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
import { type ComputeGraph } from '../graph';
|
|
4
|
+
import { type CellValue, type CreateSheetOptions } from '../types';
|
|
5
|
+
export declare const testSheetName = "test";
|
|
6
|
+
export declare const createCells: () => Record<string, CellValue>;
|
|
7
|
+
export declare const useTestSheet: (space?: Space, graph?: ComputeGraph, options?: CreateSheetOptions) => import("../types").SheetType | undefined;
|
|
8
|
+
export declare const withGraphDecorator: Decorator;
|
|
9
|
+
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/testing/testing.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAKrD,OAAO,EAAE,KAAK,YAAY,EAAwB,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnE,eAAO,MAAM,aAAa,SAAS,CAAC;AAGpC,eAAO,MAAM,WAAW,QAAO,MAAM,CAAC,MAAM,EAAE,SAAS,CA0BrD,CAAC;AAEH,eAAO,MAAM,YAAY,WAAY,KAAK,UAAU,YAAY,YAAY,kBAAkB,6CAU7F,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAOhC,CAAC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'en-US': {
|
|
3
|
-
"dxos.org/plugin/sheet": {
|
|
4
|
-
'plugin name':
|
|
5
|
-
'sheet title placeholder':
|
|
6
|
-
'create sheet label':
|
|
7
|
-
'create sheet section label':
|
|
8
|
-
'cell placeholder':
|
|
9
|
-
'toolbar left label':
|
|
10
|
-
'toolbar left center':
|
|
11
|
-
'toolbar left right':
|
|
1
|
+
declare const _default: readonly [{
|
|
2
|
+
readonly 'en-US': {
|
|
3
|
+
readonly "dxos.org/plugin/sheet": {
|
|
4
|
+
readonly 'plugin name': "Sheets";
|
|
5
|
+
readonly 'sheet title placeholder': "New sheet";
|
|
6
|
+
readonly 'create sheet label': "Create sheet";
|
|
7
|
+
readonly 'create sheet section label': "Create sheet";
|
|
8
|
+
readonly 'cell placeholder': "Cell value...";
|
|
9
|
+
readonly 'toolbar left label': "Align left";
|
|
10
|
+
readonly 'toolbar left center': "Align center";
|
|
11
|
+
readonly 'toolbar left right': "Align right";
|
|
12
|
+
readonly 'selection overlaps existing comment label': "Selected cell already has a comment";
|
|
13
|
+
readonly 'comment label': "Add comment";
|
|
14
|
+
readonly 'comment ranges not supported label': "Commenting on ranges is not yet supported";
|
|
15
|
+
readonly 'no cursor label': "Select a cell to comment";
|
|
16
|
+
readonly 'open comment for sheet cell': "View comments for cell";
|
|
12
17
|
};
|
|
13
18
|
};
|
|
14
|
-
}
|
|
19
|
+
}];
|
|
15
20
|
export default _default;
|
|
16
21
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;AAMA,wBAoBW"}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import type { GraphBuilderProvides, IntentResolverProvides, MetadataRecordsProvides, SurfaceProvides, TranslationsProvides } from '@dxos/app-framework';
|
|
2
|
-
import { S } from '@dxos/echo-schema';
|
|
2
|
+
import { ref, S } from '@dxos/echo-schema';
|
|
3
3
|
import { type SchemaProvides } from '@dxos/plugin-client';
|
|
4
|
+
import { type MarkdownExtensionProvides } from '@dxos/plugin-markdown';
|
|
5
|
+
import { type SpaceInitProvides } from '@dxos/plugin-space';
|
|
4
6
|
import { type StackProvides } from '@dxos/plugin-stack';
|
|
5
7
|
export declare enum SheetAction {
|
|
6
8
|
CREATE = "dxos.org/plugin/sheet/action/create"
|
|
7
9
|
}
|
|
8
|
-
|
|
10
|
+
type ThreadProvides<T> = {
|
|
11
|
+
thread: {
|
|
12
|
+
predicate: (obj: any) => obj is T;
|
|
13
|
+
createSort: (obj: T) => (anchorA: string | undefined, anchorB: string | undefined) => number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type SheetPluginProvides = SurfaceProvides & IntentResolverProvides & GraphBuilderProvides & MarkdownExtensionProvides & MetadataRecordsProvides & TranslationsProvides & SchemaProvides & SpaceInitProvides & StackProvides & ThreadProvides<SheetType>;
|
|
9
17
|
export type CellScalarValue = number | string | boolean | null;
|
|
10
18
|
export declare const CellValue: S.Struct<{
|
|
11
19
|
value: typeof S.Any;
|
|
@@ -65,6 +73,39 @@ declare const SheetType_base: import("@dxos/echo-schema").AbstractTypedObject<{
|
|
|
65
73
|
classNames?: readonly string[] | undefined;
|
|
66
74
|
};
|
|
67
75
|
};
|
|
76
|
+
threads?: import("@dxos/echo-schema").Ref<{
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
anchor?: string | undefined;
|
|
79
|
+
status?: "active" | "staged" | "resolved" | undefined;
|
|
80
|
+
messages: import("@dxos/echo-schema").Ref<{
|
|
81
|
+
text: string;
|
|
82
|
+
timestamp: string;
|
|
83
|
+
state?: import("@dxos/plugin-space").MessageState | undefined;
|
|
84
|
+
sender: {
|
|
85
|
+
name?: string | undefined;
|
|
86
|
+
contact?: import("@dxos/echo-schema").Ref<{
|
|
87
|
+
name?: string | undefined;
|
|
88
|
+
identifiers: {
|
|
89
|
+
readonly value: string;
|
|
90
|
+
readonly type: string;
|
|
91
|
+
}[];
|
|
92
|
+
} & {
|
|
93
|
+
id: string;
|
|
94
|
+
}>;
|
|
95
|
+
identityKey?: string | undefined;
|
|
96
|
+
email?: string | undefined;
|
|
97
|
+
};
|
|
98
|
+
parts?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>[] | undefined;
|
|
99
|
+
properties?: {
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
} | undefined;
|
|
102
|
+
context?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
|
|
103
|
+
} & {
|
|
104
|
+
id: string;
|
|
105
|
+
}>[];
|
|
106
|
+
} & {
|
|
107
|
+
id: string;
|
|
108
|
+
}>[] | undefined;
|
|
68
109
|
} & {
|
|
69
110
|
id: string;
|
|
70
111
|
}, S.Struct.Encoded<{
|
|
@@ -86,9 +127,48 @@ declare const SheetType_base: import("@dxos/echo-schema").AbstractTypedObject<{
|
|
|
86
127
|
precision: S.optional<typeof S.Number>;
|
|
87
128
|
classNames: S.optional<S.Array$<typeof S.String>>;
|
|
88
129
|
}>>>>;
|
|
130
|
+
threads: S.optional<S.mutable<S.Array$<ref<{
|
|
131
|
+
name?: string | undefined;
|
|
132
|
+
anchor?: string | undefined;
|
|
133
|
+
status?: "active" | "staged" | "resolved" | undefined;
|
|
134
|
+
messages: import("@dxos/echo-schema").Ref<{
|
|
135
|
+
text: string;
|
|
136
|
+
timestamp: string;
|
|
137
|
+
state?: import("@dxos/plugin-space").MessageState | undefined;
|
|
138
|
+
sender: {
|
|
139
|
+
name?: string | undefined;
|
|
140
|
+
contact?: import("@dxos/echo-schema").Ref<{
|
|
141
|
+
name?: string | undefined;
|
|
142
|
+
identifiers: {
|
|
143
|
+
readonly value: string;
|
|
144
|
+
readonly type: string;
|
|
145
|
+
}[];
|
|
146
|
+
} & {
|
|
147
|
+
id: string;
|
|
148
|
+
}>;
|
|
149
|
+
identityKey?: string | undefined;
|
|
150
|
+
email?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
parts?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>[] | undefined;
|
|
153
|
+
properties?: {
|
|
154
|
+
[x: string]: any;
|
|
155
|
+
} | undefined;
|
|
156
|
+
context?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
|
|
157
|
+
} & {
|
|
158
|
+
id: string;
|
|
159
|
+
}>[];
|
|
160
|
+
} & {
|
|
161
|
+
id: string;
|
|
162
|
+
}>>>>;
|
|
89
163
|
}>>;
|
|
90
164
|
export declare class SheetType extends SheetType_base {
|
|
91
165
|
}
|
|
92
|
-
export
|
|
166
|
+
export type SheetSize = {
|
|
167
|
+
rows: number;
|
|
168
|
+
columns: number;
|
|
169
|
+
};
|
|
170
|
+
export type CreateSheetOptions = {
|
|
171
|
+
title?: string;
|
|
172
|
+
} & Partial<SheetSize>;
|
|
93
173
|
export {};
|
|
94
174
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +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,C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