@dxos/plugin-sheet 0.6.13-main.ed424a1 → 0.6.13
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-U4H5D34A.mjs +1772 -0
- package/dist/lib/browser/SheetContainer-U4H5D34A.mjs.map +7 -0
- package/dist/lib/browser/chunk-APHOLYUB.mjs +175 -0
- package/dist/lib/browser/chunk-APHOLYUB.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-5WPZCXNS.mjs → browser/chunk-D5AGLXJP.mjs} +678 -411
- package/dist/lib/browser/chunk-D5AGLXJP.mjs.map +7 -0
- package/dist/lib/browser/chunk-FUAGSXA4.mjs +82 -0
- package/dist/lib/browser/chunk-FUAGSXA4.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/chunk-NU4PBN33.mjs +8 -0
- package/dist/lib/browser/chunk-NU4PBN33.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +62 -93
- 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/testing.mjs +92 -0
- package/dist/lib/browser/testing.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +12 -6
- package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs +1765 -0
- package/dist/lib/node/SheetContainer-AXQV3ZT5.cjs.map +7 -0
- package/dist/lib/node/{chunk-5XPK2V4A.cjs → chunk-5KKJ4NPP.cjs} +678 -418
- package/dist/lib/node/chunk-5KKJ4NPP.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-CN3RPESU.cjs +202 -0
- package/dist/lib/node/chunk-CN3RPESU.cjs.map +7 -0
- package/dist/lib/node/{chunk-NZARD7UP.cjs → chunk-DSYKOI4E.cjs} +51 -40
- package/dist/lib/node/chunk-DSYKOI4E.cjs.map +7 -0
- package/dist/lib/node/chunk-PYXHNAAK.cjs +40 -0
- package/dist/lib/node/chunk-PYXHNAAK.cjs.map +7 -0
- package/dist/lib/node/index.cjs +69 -105
- 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/testing.cjs +111 -0
- package/dist/lib/node/testing.cjs.map +7 -0
- package/dist/lib/node/types.cjs +15 -9
- package/dist/lib/node/types.cjs.map +2 -2
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- 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/{GridSheet/SheetCellEditor.stories.d.ts → CellEditor/CellEditor.stories.d.ts} +4 -4
- package/dist/types/src/components/CellEditor/CellEditor.stories.d.ts.map +1 -0
- package/dist/types/src/{extensions/editor → components/CellEditor}/extension.d.ts +1 -1
- package/dist/types/src/components/CellEditor/extension.d.ts.map +1 -0
- package/dist/types/src/components/CellEditor/extension.test.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/{graph/functions → components/ComputeGraph}/async-function.d.ts +5 -14
- 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 +12 -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 +26 -0
- package/dist/types/src/components/ComputeGraph/graph.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/index.d.ts +3 -1
- package/dist/types/src/components/ComputeGraph/index.d.ts.map +1 -1
- 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 +25 -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 +9 -33
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +15 -19
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- 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/index.d.ts +2 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +9 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/{graph/functions/function-defs.d.ts → model/functions.d.ts} +1 -1
- package/dist/types/src/model/functions.d.ts.map +1 -0
- package/dist/types/src/model/index.d.ts +3 -2
- package/dist/types/src/model/index.d.ts.map +1 -1
- 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/{sheet-model.d.ts → model.d.ts} +67 -13
- package/dist/types/src/model/model.d.ts.map +1 -0
- package/dist/types/src/{defs → model}/types.d.ts +3 -8
- package/dist/types/src/model/types.d.ts.map +1 -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/testing.d.ts +9 -0
- package/dist/types/src/testing.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +12 -17
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +40 -125
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +52 -58
- package/src/SheetPlugin.tsx +74 -52
- package/src/components/{GridSheet/SheetCellEditor.stories.tsx → CellEditor/CellEditor.stories.tsx} +8 -8
- package/src/components/CellEditor/CellEditor.tsx +113 -0
- package/src/{extensions/editor → components/CellEditor}/extension.test.ts +6 -4
- package/src/{extensions/editor → components/CellEditor}/extension.ts +6 -5
- package/src/{extensions/editor → components/CellEditor}/index.ts +1 -0
- package/src/{graph/functions → components/ComputeGraph}/async-function.ts +15 -25
- package/src/{graph/testing/test-plugin.ts → components/ComputeGraph/custom.ts} +14 -44
- package/src/{graph/functions → components/ComputeGraph}/edge-function.ts +14 -16
- package/src/components/ComputeGraph/graph-context.tsx +50 -0
- package/src/components/ComputeGraph/graph.browser.test.ts +50 -0
- package/src/components/ComputeGraph/graph.ts +62 -0
- package/src/components/ComputeGraph/index.ts +3 -1
- package/src/components/Sheet/Sheet.stories.tsx +287 -0
- package/src/components/Sheet/Sheet.tsx +1160 -0
- package/src/components/Sheet/formatting.ts +106 -0
- package/src/components/Sheet/grid.ts +191 -0
- package/src/{testing → components/Sheet}/index.ts +1 -1
- package/src/components/Sheet/nav.ts +157 -0
- package/src/components/Sheet/sheet-context.tsx +150 -0
- package/src/components/Sheet/util.ts +56 -0
- package/src/components/SheetContainer.tsx +34 -0
- package/src/components/Toolbar/Toolbar.tsx +112 -242
- package/src/components/Toolbar/common.tsx +72 -0
- package/src/components/index.ts +0 -2
- package/src/meta.tsx +18 -0
- package/src/model/index.ts +3 -2
- package/src/model/model.browser.test.ts +100 -0
- package/src/model/model.ts +550 -0
- package/src/{defs → model}/types.test.ts +9 -8
- package/src/{defs → model}/types.ts +14 -24
- package/src/model/util.ts +36 -0
- package/src/testing.ts +50 -0
- package/src/translations.ts +1 -6
- package/src/types.ts +47 -40
- package/dist/lib/browser/SheetContainer-RVRACGCZ.mjs +0 -290
- package/dist/lib/browser/SheetContainer-RVRACGCZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-BWN5DZWZ.mjs +0 -74
- package/dist/lib/browser/chunk-BWN5DZWZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-D3QTX46O.mjs +0 -14
- package/dist/lib/browser/chunk-D3QTX46O.mjs.map +0 -7
- package/dist/lib/browser/chunk-GSV5QNLD.mjs +0 -2966
- package/dist/lib/browser/chunk-GSV5QNLD.mjs.map +0 -7
- package/dist/lib/browser/chunk-HOG37RYS.mjs +0 -1528
- package/dist/lib/browser/chunk-HOG37RYS.mjs.map +0 -7
- package/dist/lib/browser/graph-M4IQ76QX.mjs +0 -33
- package/dist/lib/browser/graph-M4IQ76QX.mjs.map +0 -7
- package/dist/lib/node/SheetContainer-J7XROAMN.cjs +0 -300
- package/dist/lib/node/SheetContainer-J7XROAMN.cjs.map +0 -7
- package/dist/lib/node/chunk-5XPK2V4A.cjs.map +0 -7
- package/dist/lib/node/chunk-AXQZA2YS.cjs +0 -1527
- package/dist/lib/node/chunk-AXQZA2YS.cjs.map +0 -7
- package/dist/lib/node/chunk-NZARD7UP.cjs.map +0 -7
- package/dist/lib/node/chunk-QIFIGEKV.cjs +0 -37
- package/dist/lib/node/chunk-QIFIGEKV.cjs.map +0 -7
- package/dist/lib/node/graph-Q3N2X26H.cjs +0 -55
- package/dist/lib/node/graph-Q3N2X26H.cjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-YWQVKHQB.mjs +0 -291
- package/dist/lib/node-esm/SheetContainer-YWQVKHQB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5WPZCXNS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BPXXIAOQ.mjs +0 -1529
- package/dist/lib/node-esm/chunk-BPXXIAOQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VCYJWE3O.mjs +0 -16
- package/dist/lib/node-esm/chunk-VCYJWE3O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WFDTY3IC.mjs +0 -75
- package/dist/lib/node-esm/chunk-WFDTY3IC.mjs.map +0 -7
- package/dist/lib/node-esm/graph-SMPUMOV2.mjs +0 -34
- package/dist/lib/node-esm/graph-SMPUMOV2.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -280
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/lib/node-esm/meta.mjs.map +0 -7
- package/dist/lib/node-esm/types.mjs +0 -17
- package/dist/lib/node-esm/types.mjs.map +0 -7
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +0 -11
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +0 -1
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +0 -3
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +0 -1
- package/dist/types/src/components/FunctionEditor/index.d.ts +0 -2
- package/dist/types/src/components/FunctionEditor/index.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts +0 -3
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +0 -9
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/index.d.ts +0 -2
- package/dist/types/src/components/GridSheet/index.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/util.d.ts +0 -16
- package/dist/types/src/components/GridSheet/util.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +0 -6
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +0 -11
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/index.d.ts +0 -3
- package/dist/types/src/components/SheetContainer/index.d.ts.map +0 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +0 -26
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +0 -1
- package/dist/types/src/components/SheetContext/index.d.ts +0 -2
- package/dist/types/src/components/SheetContext/index.d.ts.map +0 -1
- package/dist/types/src/defs/index.d.ts +0 -4
- package/dist/types/src/defs/index.d.ts.map +0 -1
- package/dist/types/src/defs/sheet-range-types.d.ts +0 -13
- package/dist/types/src/defs/sheet-range-types.d.ts.map +0 -1
- package/dist/types/src/defs/types.d.ts.map +0 -1
- package/dist/types/src/defs/types.test.d.ts.map +0 -1
- package/dist/types/src/defs/util.d.ts +0 -43
- package/dist/types/src/defs/util.d.ts.map +0 -1
- package/dist/types/src/extensions/compute.d.ts +0 -6
- package/dist/types/src/extensions/compute.d.ts.map +0 -1
- package/dist/types/src/extensions/compute.stories.d.ts +0 -26
- package/dist/types/src/extensions/compute.stories.d.ts.map +0 -1
- package/dist/types/src/extensions/editor/extension.d.ts.map +0 -1
- package/dist/types/src/extensions/editor/extension.test.d.ts.map +0 -1
- package/dist/types/src/extensions/editor/index.d.ts +0 -2
- package/dist/types/src/extensions/editor/index.d.ts.map +0 -1
- package/dist/types/src/extensions/index.d.ts +0 -3
- package/dist/types/src/extensions/index.d.ts.map +0 -1
- package/dist/types/src/graph/compute-graph-registry.d.ts +0 -34
- package/dist/types/src/graph/compute-graph-registry.d.ts.map +0 -1
- package/dist/types/src/graph/compute-graph.d.ts +0 -64
- package/dist/types/src/graph/compute-graph.d.ts.map +0 -1
- package/dist/types/src/graph/compute-graph.stories.d.ts +0 -10
- package/dist/types/src/graph/compute-graph.stories.d.ts.map +0 -1
- package/dist/types/src/graph/compute-graph.test.d.ts +0 -2
- package/dist/types/src/graph/compute-graph.test.d.ts.map +0 -1
- package/dist/types/src/graph/compute-node.d.ts +0 -26
- package/dist/types/src/graph/compute-node.d.ts.map +0 -1
- package/dist/types/src/graph/functions/async-function.d.ts.map +0 -1
- package/dist/types/src/graph/functions/edge-function.d.ts +0 -21
- package/dist/types/src/graph/functions/edge-function.d.ts.map +0 -1
- package/dist/types/src/graph/functions/function-defs.d.ts.map +0 -1
- package/dist/types/src/graph/functions/index.d.ts +0 -4
- package/dist/types/src/graph/functions/index.d.ts.map +0 -1
- package/dist/types/src/graph/hyperformula.test.d.ts +0 -2
- package/dist/types/src/graph/hyperformula.test.d.ts.map +0 -1
- package/dist/types/src/graph/index.d.ts +0 -5
- package/dist/types/src/graph/index.d.ts.map +0 -1
- package/dist/types/src/graph/testing/index.d.ts +0 -3
- package/dist/types/src/graph/testing/index.d.ts.map +0 -1
- package/dist/types/src/graph/testing/test-builder.d.ts +0 -15
- package/dist/types/src/graph/testing/test-builder.d.ts.map +0 -1
- package/dist/types/src/graph/testing/test-plugin.d.ts +0 -36
- package/dist/types/src/graph/testing/test-plugin.d.ts.map +0 -1
- package/dist/types/src/graph/util.d.ts +0 -2
- package/dist/types/src/graph/util.d.ts.map +0 -1
- package/dist/types/src/hooks/hooks.stories.d.ts +0 -11
- package/dist/types/src/hooks/hooks.stories.d.ts.map +0 -1
- package/dist/types/src/hooks/index.d.ts +0 -4
- package/dist/types/src/hooks/index.d.ts.map +0 -1
- package/dist/types/src/hooks/threads.d.ts +0 -8
- package/dist/types/src/hooks/threads.d.ts.map +0 -1
- package/dist/types/src/hooks/useComputeGraph.d.ts +0 -7
- package/dist/types/src/hooks/useComputeGraph.d.ts.map +0 -1
- package/dist/types/src/hooks/useSheetModel.d.ts +0 -8
- package/dist/types/src/hooks/useSheetModel.d.ts.map +0 -1
- package/dist/types/src/model/decorations.d.ts +0 -25
- package/dist/types/src/model/decorations.d.ts.map +0 -1
- package/dist/types/src/model/sheet-model.d.ts.map +0 -1
- package/dist/types/src/model/sheet-model.test.d.ts +0 -2
- package/dist/types/src/model/sheet-model.test.d.ts.map +0 -1
- package/dist/types/src/sanity.test.d.ts +0 -2
- package/dist/types/src/sanity.test.d.ts.map +0 -1
- package/dist/types/src/testing/index.d.ts +0 -2
- package/dist/types/src/testing/index.d.ts.map +0 -1
- package/dist/types/src/testing/testing.d.ts +0 -8
- package/dist/types/src/testing/testing.d.ts.map +0 -1
- package/dist/vendor/hyperformula.mjs +0 -37145
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +0 -20
- package/src/components/FunctionEditor/FunctionEditor.tsx +0 -45
- package/src/components/FunctionEditor/index.ts +0 -5
- package/src/components/GridSheet/GridSheet.stories.tsx +0 -41
- package/src/components/GridSheet/GridSheet.tsx +0 -163
- package/src/components/GridSheet/index.ts +0 -5
- package/src/components/GridSheet/util.ts +0 -158
- package/src/components/SheetContainer/SheetContainer.stories.tsx +0 -40
- package/src/components/SheetContainer/SheetContainer.tsx +0 -27
- package/src/components/SheetContainer/index.ts +0 -7
- package/src/components/SheetContext/SheetContext.tsx +0 -104
- package/src/components/SheetContext/index.ts +0 -5
- package/src/defs/index.ts +0 -7
- package/src/defs/sheet-range-types.ts +0 -46
- package/src/defs/util.ts +0 -151
- package/src/extensions/compute.stories.tsx +0 -151
- package/src/extensions/compute.ts +0 -147
- package/src/extensions/index.ts +0 -6
- package/src/graph/compute-graph-registry.ts +0 -90
- package/src/graph/compute-graph.stories.tsx +0 -93
- package/src/graph/compute-graph.test.ts +0 -87
- package/src/graph/compute-graph.ts +0 -242
- package/src/graph/compute-node.ts +0 -63
- package/src/graph/functions/index.ts +0 -7
- package/src/graph/hyperformula.test.ts +0 -14
- package/src/graph/index.ts +0 -8
- package/src/graph/testing/index.ts +0 -6
- package/src/graph/testing/test-builder.ts +0 -54
- package/src/graph/util.ts +0 -8
- package/src/hooks/hooks.stories.tsx +0 -50
- package/src/hooks/index.ts +0 -7
- package/src/hooks/threads.ts +0 -147
- package/src/hooks/useComputeGraph.ts +0 -28
- package/src/hooks/useSheetModel.ts +0 -40
- package/src/meta.ts +0 -14
- package/src/model/decorations.ts +0 -64
- package/src/model/sheet-model.test.ts +0 -57
- package/src/model/sheet-model.ts +0 -418
- package/src/sanity.test.ts +0 -40
- package/src/testing/testing.tsx +0 -68
- /package/dist/types/src/{extensions/editor → components/CellEditor}/extension.test.d.ts +0 -0
- /package/dist/types/src/{defs → model}/types.test.d.ts +0 -0
- /package/src/{graph/functions/function-defs.ts → model/functions.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
import { type FunctionContextOptions } from './async-function';
|
|
4
|
+
import { type ComputeGraph } from './graph';
|
|
5
|
+
export type ComputeGraphContextType = {
|
|
6
|
+
graphs: Record<string, ComputeGraph>;
|
|
7
|
+
setGraph: (key: string, graph: ComputeGraph) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const ComputeGraphContext: React.Context<ComputeGraphContextType>;
|
|
10
|
+
export declare const ComputeGraphContextProvider: ({ children, graphs, setGraph, }: PropsWithChildren<ComputeGraphContextType>) => React.JSX.Element;
|
|
11
|
+
export declare const useComputeGraph: (space: Space, options?: Partial<FunctionContextOptions>) => ComputeGraph;
|
|
12
|
+
//# sourceMappingURL=graph-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-context.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/graph-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAiB,KAAK,iBAAiB,EAAyB,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhE,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACrC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,mBAAmB,wCAA6E,CAAC;AAE9G,eAAO,MAAM,2BAA2B,oCAIrC,iBAAiB,CAAC,uBAAuB,CAAC,sBAE5C,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,YAAY,OAAO,CAAC,sBAAsB,CAAC,KAAG,YAqBzF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.browser.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/graph.browser.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type FunctionPluginDefinition, HyperFormula } from 'hyperformula';
|
|
2
|
+
import { type FunctionTranslationsPackage } from 'hyperformula/typings/interpreter';
|
|
3
|
+
import { Event } from '@dxos/async';
|
|
4
|
+
import { type Space } from '@dxos/client/echo';
|
|
5
|
+
import { FunctionContext, type FunctionContextOptions } from './async-function';
|
|
6
|
+
/**
|
|
7
|
+
* Create root graph for space.
|
|
8
|
+
*/
|
|
9
|
+
export declare const createComputeGraph: (functionPlugins?: {
|
|
10
|
+
plugin: FunctionPluginDefinition;
|
|
11
|
+
translations: FunctionTranslationsPackage;
|
|
12
|
+
}[], space?: Space, options?: Partial<FunctionContextOptions>) => ComputeGraph;
|
|
13
|
+
/**
|
|
14
|
+
* Per-space compute and dependency graph.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ComputeGraph {
|
|
17
|
+
readonly hf: HyperFormula;
|
|
18
|
+
private readonly _space?;
|
|
19
|
+
private readonly _options?;
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly update: Event<void>;
|
|
22
|
+
readonly context: FunctionContext;
|
|
23
|
+
constructor(hf: HyperFormula, _space?: Space | undefined, _options?: Partial<FunctionContextOptions> | undefined);
|
|
24
|
+
refresh(): void;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/graph.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,wBAAwB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI/C,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,kBAAkB,qBAEZ;IAAE,MAAM,EAAE,wBAAwB,CAAC;IAAC,YAAY,EAAE,2BAA2B,CAAA;CAAE,EAAE,UAC1F,KAAK,YACH,OAAO,CAAC,sBAAsB,CAAC,KACxC,YAOF,CAAC;AAEF;;GAEG;AAEH,qBAAa,YAAY;aAeL,EAAE,EAAE,YAAY;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAhB5B,SAAgB,EAAE,SAA4C;IAC9D,SAAgB,MAAM,cAAe;IAGrC,SAAgB,OAAO,kBAOrB;gBAGgB,EAAE,EAAE,YAAY,EACf,MAAM,CAAC,EAAE,KAAK,YAAA,EACd,QAAQ,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,YAAA;IAK7D,OAAO;CAIR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/index.ts"],"names":[],"mappings":"AAIA,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React, { type CSSProperties, type PropsWithChildren } from 'react';
|
|
2
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
import { type GridLayoutProps, type SizeMap } from './grid';
|
|
4
|
+
import { type GridSize } from './nav';
|
|
5
|
+
import { type SheetContextProps } from './sheet-context';
|
|
6
|
+
import { type CellIndex, type CellAddress } from '../../model';
|
|
7
|
+
type SheetRootProps = SheetContextProps;
|
|
8
|
+
type SheetMainProps = ThemedClassName<Partial<GridSize>>;
|
|
9
|
+
type ResizeProps = {
|
|
10
|
+
sizes?: SizeMap;
|
|
11
|
+
onResize?: (idx: CellIndex, size: number, save?: boolean) => void;
|
|
12
|
+
};
|
|
13
|
+
type MoveProps = {
|
|
14
|
+
onMove?: (from: number, to: number) => void;
|
|
15
|
+
};
|
|
16
|
+
type RowColumnSelection = {
|
|
17
|
+
selected?: number;
|
|
18
|
+
onSelect?: (selected: number) => void;
|
|
19
|
+
};
|
|
20
|
+
type SheetRowsProps = {
|
|
21
|
+
rows: CellIndex[];
|
|
22
|
+
} & RowColumnSelection & ResizeProps & MoveProps;
|
|
23
|
+
type SheetColumnsProps = {
|
|
24
|
+
columns: CellIndex[];
|
|
25
|
+
} & RowColumnSelection & ResizeProps & MoveProps;
|
|
26
|
+
type SheetGridProps = GridLayoutProps & {
|
|
27
|
+
size: GridSize;
|
|
28
|
+
};
|
|
29
|
+
type SheetCellProps = {
|
|
30
|
+
id: string;
|
|
31
|
+
cell: CellAddress;
|
|
32
|
+
style: CSSProperties;
|
|
33
|
+
active: boolean;
|
|
34
|
+
onSelect?: (selected: CellAddress, edit: boolean) => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const Sheet: {
|
|
37
|
+
Root: ({ children, ...props }: PropsWithChildren<SheetContextProps>) => React.JSX.Element;
|
|
38
|
+
Main: React.ForwardRefExoticComponent<Omit<Partial<GridSize>, "className"> & {
|
|
39
|
+
classNames?: import("@dxos/react-ui").ClassNameValue;
|
|
40
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Rows: React.ForwardRefExoticComponent<{
|
|
42
|
+
rows: CellIndex[];
|
|
43
|
+
} & RowColumnSelection & ResizeProps & MoveProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
Columns: React.ForwardRefExoticComponent<{
|
|
45
|
+
columns: CellIndex[];
|
|
46
|
+
} & RowColumnSelection & ResizeProps & MoveProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
Grid: React.ForwardRefExoticComponent<GridLayoutProps & {
|
|
48
|
+
size: GridSize;
|
|
49
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
Cell: ({ id, cell, style, active, onSelect }: SheetCellProps) => React.JSX.Element;
|
|
51
|
+
StatusBar: () => React.JSX.Element;
|
|
52
|
+
Debug: () => React.JSX.Element;
|
|
53
|
+
};
|
|
54
|
+
export type { SheetRootProps, SheetMainProps, SheetRowsProps, SheetColumnsProps, SheetGridProps, SheetCellProps };
|
|
55
|
+
//# sourceMappingURL=Sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EACZ,KAAK,aAAa,EAElB,KAAK,iBAAiB,EAOvB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,OAAO,EAYb,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,QAAQ,EAA6C,MAAM,OAAO,CAAC;AACjF,OAAO,EAAE,KAAK,iBAAiB,EAAyC,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EACL,KAAK,SAAS,EACd,KAAK,WAAW,EAKjB,MAAM,aAAa,CAAC;AAuDrB,KAAK,cAAc,GAAG,iBAAiB,CAAC;AAUxC,KAAK,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AA2NzD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnE,CAAC;AAEF,KAAK,SAAS,GAAG;IACf,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAgBF,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,SAAS,EAAE,CAAA;CAAE,GAAG,kBAAkB,GAAG,WAAW,GAAG,SAAS,CAAC;AAkK3F,KAAK,iBAAiB,GAAG;IAAE,OAAO,EAAE,SAAS,EAAE,CAAA;CAAE,GAAG,kBAAkB,GAAG,WAAW,GAAG,SAAS,CAAC;AAmKjG,KAAK,cAAc,GAAG,eAAe,GAAG;IACtC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AA+RF,KAAK,cAAc,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3D,CAAC;AAkJF,eAAO,MAAM,KAAK;mCA7/ByB,iBAAiB,CAAC,iBAAiB,CAAC;;;;;cA+PjD,SAAS,EAAE;;;iBAkKL,SAAS,EAAE;;;cAoKvC,QAAQ;;kDAwS0C,cAAc;;;CAyJvE,CAAC;AAEF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type Decorator } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { type SizeMap } from './grid';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
component: {
|
|
8
|
+
Root: ({ children, ...props }: React.PropsWithChildren<import("./sheet-context").SheetContextProps>) => React.JSX.Element;
|
|
9
|
+
Main: React.ForwardRefExoticComponent<Omit<Partial<import("./nav").GridSize>, "className"> & {
|
|
10
|
+
classNames?: import("@dxos/react-ui").ClassNameValue;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Rows: React.ForwardRefExoticComponent<{
|
|
13
|
+
rows: import("../../model").CellIndex[];
|
|
14
|
+
} & {
|
|
15
|
+
selected?: number;
|
|
16
|
+
onSelect?: (selected: number) => void;
|
|
17
|
+
} & {
|
|
18
|
+
sizes?: SizeMap;
|
|
19
|
+
onResize?: (idx: import("../../model").CellIndex, size: number, save?: boolean) => void;
|
|
20
|
+
} & {
|
|
21
|
+
onMove?: (from: number, to: number) => void;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
Columns: React.ForwardRefExoticComponent<{
|
|
24
|
+
columns: import("../../model").CellIndex[];
|
|
25
|
+
} & {
|
|
26
|
+
selected?: number;
|
|
27
|
+
onSelect?: (selected: number) => void;
|
|
28
|
+
} & {
|
|
29
|
+
sizes?: SizeMap;
|
|
30
|
+
onResize?: (idx: import("../../model").CellIndex, size: number, save?: boolean) => void;
|
|
31
|
+
} & {
|
|
32
|
+
onMove?: (from: number, to: number) => void;
|
|
33
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
Grid: React.ForwardRefExoticComponent<import("./grid").GridLayoutProps & {
|
|
35
|
+
size: import("./nav").GridSize;
|
|
36
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
Cell: ({ id, cell, style, active, onSelect }: import("./Sheet").SheetCellProps) => React.JSX.Element;
|
|
38
|
+
StatusBar: () => React.JSX.Element;
|
|
39
|
+
Debug: () => React.JSX.Element;
|
|
40
|
+
};
|
|
41
|
+
decorators: Decorator[];
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
44
|
+
export declare const Default: () => React.JSX.Element | null;
|
|
45
|
+
export declare const Debug: () => React.JSX.Element | null;
|
|
46
|
+
export declare const Rows: () => React.JSX.Element | null;
|
|
47
|
+
export declare const Columns: () => React.JSX.Element | null;
|
|
48
|
+
export declare const Main: () => React.JSX.Element | null;
|
|
49
|
+
/**
|
|
50
|
+
* Scrolling container with fixed border that overlaps the border of inner elements.
|
|
51
|
+
*/
|
|
52
|
+
export declare const ScrollLayout: () => React.JSX.Element;
|
|
53
|
+
export declare const GridLayout: () => React.JSX.Element;
|
|
54
|
+
//# sourceMappingURL=Sheet.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/Sheet.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAA0C,MAAM,OAAO,CAAC;AAW/D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;gFA6Q0nF,CAAC;;;;;;;;;;;gFAAD,CAAC;;;;;;;;;;;;;AAtKjqF,wBAIE;AAEF,eAAO,MAAM,OAAO,gCAanB,CAAC;AAEF,eAAO,MAAM,KAAK,gCAajB,CAAC;AAEF,eAAO,MAAM,IAAI,gCAiBhB,CAAC;AAEF,eAAO,MAAM,OAAO,gCAiBnB,CAAC;AAEF,eAAO,MAAM,IAAI,gCAqBhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,yBAkBxB,CAAC;AAEF,eAAO,MAAM,UAAU,yBActB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ClassNameValue } from '@dxos/react-ui-types';
|
|
2
|
+
import { type SheetModel, type CellAddress } from '../../model';
|
|
3
|
+
export declare class FormattingModel {
|
|
4
|
+
private readonly model;
|
|
5
|
+
constructor(model: SheetModel);
|
|
6
|
+
/**
|
|
7
|
+
* Get formatted string value and className for cell.
|
|
8
|
+
*/
|
|
9
|
+
getFormatting(cell: CellAddress): {
|
|
10
|
+
value?: string;
|
|
11
|
+
classNames?: ClassNameValue;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=formatting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/formatting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAW,MAAM,aAAa,CAAC;AAGzE,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,UAAU;IAE9C;;OAEG;IACH,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,cAAc,CAAA;KAAE;CA0FlF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type MouseEvent } from 'react';
|
|
2
|
+
import { type CellAddress, type CellIndex } from '../../model';
|
|
3
|
+
export type SizeMap = Record<string, number>;
|
|
4
|
+
export type RowPosition = {
|
|
5
|
+
row: number;
|
|
6
|
+
} & Pick<DOMRect, 'top' | 'height'>;
|
|
7
|
+
export type ColumnPosition = {
|
|
8
|
+
column: number;
|
|
9
|
+
} & Pick<DOMRect, 'left' | 'width'>;
|
|
10
|
+
export declare const axisWidth = "calc(var(--rail-size)-2px)";
|
|
11
|
+
export declare const axisHeight = 34;
|
|
12
|
+
export declare const minWidth = 40;
|
|
13
|
+
export declare const maxWidth = 800;
|
|
14
|
+
export declare const minHeight = 34;
|
|
15
|
+
export declare const maxHeight = 400;
|
|
16
|
+
export declare const defaultWidth = 200;
|
|
17
|
+
export declare const defaultHeight = 34;
|
|
18
|
+
/**
|
|
19
|
+
* Cell nodes are identified by their A1 notation.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CELL_DATA_KEY = "cell";
|
|
22
|
+
export type GridLayoutProps = {
|
|
23
|
+
rows: CellIndex[];
|
|
24
|
+
columns: CellIndex[];
|
|
25
|
+
rowSizes?: SizeMap;
|
|
26
|
+
columnSizes?: SizeMap;
|
|
27
|
+
};
|
|
28
|
+
export type GridLayout = {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
rowRange: RowPosition[];
|
|
32
|
+
columnRange: ColumnPosition[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Calculates the grid geometry for the current viewport.
|
|
36
|
+
*/
|
|
37
|
+
export declare const useGridLayout: ({ scroller, size, rows, columns, rowSizes, columnSizes, }: GridLayoutProps & {
|
|
38
|
+
scroller: HTMLDivElement | null;
|
|
39
|
+
size: {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
};
|
|
43
|
+
}) => GridLayout;
|
|
44
|
+
/**
|
|
45
|
+
* Find child node at mouse pointer.
|
|
46
|
+
*/
|
|
47
|
+
export declare const getCellAtPointer: (event: MouseEvent) => CellAddress | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Get element.
|
|
50
|
+
*/
|
|
51
|
+
export declare const getCellElement: (root: HTMLElement, cell: CellAddress) => HTMLElement | null;
|
|
52
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/grid.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAA8C,MAAM,aAAa,CAAC;AAK3G,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,GAAG,QAAQ,CAAC,CAAC;AAC5E,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAElF,eAAO,MAAM,SAAS,+BAA+B,CAAC;AACtD,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,QAAQ,MAAM,CAAC;AAE5B,eAAO,MAAM,SAAS,KAAa,CAAC;AACpC,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,aAAa,KAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,aAAa,SAAS,CAAC;AAEpC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,8DAOvB,eAAe,GAAG;IACnB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC,KAAG,UA4GH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAAW,UAAU,KAAG,WAAW,GAAG,SASlE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,SAAU,WAAW,QAAQ,WAAW,KAAG,WAAW,GAAG,IAGnF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type KeyboardEvent, type MouseEventHandler } from 'react';
|
|
2
|
+
import { type CellAddress, type CellRange } from '../../model';
|
|
3
|
+
export type GridSize = {
|
|
4
|
+
numRows: number;
|
|
5
|
+
numColumns: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Calculate next range based on arrow keys.
|
|
9
|
+
*/
|
|
10
|
+
export declare const handleNav: (ev: KeyboardEvent<HTMLInputElement>, cursor: CellAddress | undefined, range: CellRange | undefined, size: GridSize) => {
|
|
11
|
+
cursor?: CellAddress;
|
|
12
|
+
range?: CellRange;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Calculate next cell based on arrow keys.
|
|
16
|
+
*/
|
|
17
|
+
export declare const handleArrowNav: (ev: Pick<KeyboardEvent<HTMLInputElement>, "key" | "metaKey">, cursor: CellAddress | undefined, { numRows, numColumns }: GridSize) => CellAddress | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Hook to manage range drag handlers.
|
|
20
|
+
*/
|
|
21
|
+
export declare const useRangeSelect: (cb: (event: "start" | "move" | "end", range: CellRange | undefined) => void) => {
|
|
22
|
+
range: CellRange | undefined;
|
|
23
|
+
handlers: {
|
|
24
|
+
onMouseDown: MouseEventHandler<HTMLDivElement>;
|
|
25
|
+
onMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
26
|
+
onMouseUp: MouseEventHandler<HTMLDivElement>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=nav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/nav.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAa,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,OAChB,aAAa,CAAC,gBAAgB,CAAC,UAC3B,WAAW,GAAG,SAAS,SACxB,SAAS,GAAG,SAAS,QACtB,QAAQ,KACb;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAoC3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,OACrB,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC,UACpD,WAAW,GAAG,SAAS,2BACN,QAAQ,KAChC,WAAW,GAAG,SAmChB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,cAAc,OACrB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,KAC1E;IACD,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE;QACR,WAAW,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;QAC/C,WAAW,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;QAC/C,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;KAC9C,CAAC;CAwCH,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
import { FormattingModel } from './formatting';
|
|
4
|
+
import { type CellAddress, type CellRange, SheetModel } from '../../model';
|
|
5
|
+
import { type SheetType } from '../../types';
|
|
6
|
+
import { type FunctionContextOptions } from '../ComputeGraph';
|
|
7
|
+
export type SheetContextType = {
|
|
8
|
+
model: SheetModel;
|
|
9
|
+
formatting: FormattingModel;
|
|
10
|
+
cursor?: CellAddress;
|
|
11
|
+
setCursor: (cell: CellAddress | undefined) => void;
|
|
12
|
+
range?: CellRange;
|
|
13
|
+
setRange: (range: CellRange | undefined) => void;
|
|
14
|
+
editing: boolean;
|
|
15
|
+
setEditing: (editing: boolean) => void;
|
|
16
|
+
onInfo?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const useSheetContext: () => SheetContextType;
|
|
19
|
+
export type SheetContextProps = {
|
|
20
|
+
sheet: SheetType;
|
|
21
|
+
space: Space;
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
} & Pick<SheetContextType, 'onInfo'> & Partial<FunctionContextOptions>;
|
|
24
|
+
export declare const SheetContextProvider: ({ children, sheet, space, readonly, onInfo, ...options }: PropsWithChildren<SheetContextProps>) => React.JSX.Element | null;
|
|
25
|
+
//# sourceMappingURL=sheet-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-context.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/sheet-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAkD,MAAM,OAAO,CAAC;AAItG,OAAO,EAAoB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAoB,UAAU,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAO9D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,EAAE,eAAe,CAAC;IAI5B,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;IAGjD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAIvC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAIF,eAAO,MAAM,eAAe,QAAO,gBAIlC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAClC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AA2ClC,eAAO,MAAM,oBAAoB,6DAO9B,iBAAiB,CAAC,iBAAiB,CAAC,6BA8CtC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets the relative client rect of an element within a parent container.
|
|
3
|
+
* NOTE: This is stable even when the parent is scrolling.
|
|
4
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
|
|
5
|
+
* @param root Parent container (e.g., scrollable container).
|
|
6
|
+
* @param element
|
|
7
|
+
*/
|
|
8
|
+
export declare const getRelativeClientRect: (root: HTMLElement, element: HTMLElement) => DOMRect;
|
|
9
|
+
/**
|
|
10
|
+
* Union of two rectangles.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getRectUnion: (b1: DOMRect, b2: DOMRect) => Pick<DOMRect, "left" | "top" | "width" | "height">;
|
|
13
|
+
/**
|
|
14
|
+
* Scroll to cell.
|
|
15
|
+
* We need to correct for the DOM `scrollIntoView` function which doesn't show the border.
|
|
16
|
+
*/
|
|
17
|
+
export declare const scrollIntoView: (scrollContainer: HTMLElement, el: HTMLElement) => void;
|
|
18
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/util.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,SAAU,WAAW,WAAW,WAAW,KAAG,OAS/E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,OAAQ,OAAO,MAAM,OAAO,KAAG,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAOxG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,oBAAqB,WAAW,MAAM,WAAW,SAiB3E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type LayoutCoordinate } from '@dxos/app-framework';
|
|
3
|
+
import { type SheetRootProps } from './Sheet';
|
|
4
|
+
declare const SheetContainer: ({ sheet, space, role, remoteFunctionUrl, }: SheetRootProps & {
|
|
5
|
+
role?: string;
|
|
6
|
+
coordinate?: LayoutCoordinate;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default SheetContainer;
|
|
9
|
+
//# sourceMappingURL=SheetContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/SheetContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAS,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,cAAc,+CAKjB,cAAc,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAAE,sBAenE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,43 +1,19 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
icon: string;
|
|
7
|
-
}) | (NaturalToolbarToggleGroupItemProps & {
|
|
8
|
-
itemType: 'toggleGroupItem';
|
|
9
|
-
icon: string;
|
|
10
|
-
}) | (NaturalToolbarToggleProps & {
|
|
11
|
-
itemType: 'toggle';
|
|
12
|
-
icon: string;
|
|
13
|
-
});
|
|
14
|
-
export declare const ToolbarItem: ({ itemType, icon, children, ...props }: ToolbarItemProps) => React.JSX.Element;
|
|
15
|
-
type AlignAction = {
|
|
16
|
-
key: AlignKey;
|
|
17
|
-
value: AlignValue;
|
|
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;
|
|
18
6
|
};
|
|
19
|
-
type
|
|
20
|
-
key: CommentKey;
|
|
21
|
-
value: CommentValue;
|
|
22
|
-
cellContent?: string;
|
|
23
|
-
};
|
|
24
|
-
type StyleAction = {
|
|
25
|
-
key: StyleKey;
|
|
26
|
-
value: StyleValue;
|
|
27
|
-
};
|
|
28
|
-
export type ToolbarAction = StyleAction | AlignAction | CommentAction;
|
|
29
|
-
export type ToolbarActionType = ToolbarAction['key'];
|
|
30
|
-
export type ToolbarActionHandler = (action: ToolbarAction) => void;
|
|
7
|
+
export type ToolbarActionHandler = ({ type }: ToolbarAction) => void;
|
|
31
8
|
export type ToolbarProps = ThemedClassName<PropsWithChildren<{
|
|
32
|
-
|
|
9
|
+
onAction?: ToolbarActionHandler;
|
|
33
10
|
}>>;
|
|
34
|
-
declare const useToolbarContext: (consumerName: string) =>
|
|
35
|
-
onAction: (action: ToolbarAction) => void;
|
|
36
|
-
};
|
|
11
|
+
declare const useToolbarContext: (consumerName: string) => ToolbarProps;
|
|
37
12
|
export declare const Toolbar: {
|
|
38
|
-
Root: ({ children,
|
|
13
|
+
Root: ({ children, onAction, classNames }: ToolbarProps) => React.JSX.Element;
|
|
39
14
|
Separator: () => React.JSX.Element;
|
|
40
15
|
Alignment: () => React.JSX.Element;
|
|
16
|
+
Format: () => React.JSX.Element;
|
|
41
17
|
Styles: () => React.JSX.Element;
|
|
42
18
|
Actions: () => React.JSX.Element;
|
|
43
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -3,33 +3,29 @@ import React from 'react';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: {
|
|
6
|
-
Root: ({ children,
|
|
6
|
+
Root: ({ children, onAction, classNames }: import("./Toolbar").ToolbarProps) => React.JSX.Element;
|
|
7
7
|
Separator: () => React.JSX.Element;
|
|
8
8
|
Alignment: () => React.JSX.Element;
|
|
9
|
+
Format: () => React.JSX.Element;
|
|
9
10
|
Styles: () => React.JSX.Element;
|
|
10
11
|
Actions: () => React.JSX.Element;
|
|
11
12
|
};
|
|
12
|
-
decorators: import("@storybook/react").Decorator[];
|
|
13
|
+
decorators: import("@storybook/react/*").Decorator[];
|
|
13
14
|
parameters: {
|
|
14
|
-
translations:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly 'selection overlaps existing comment label': "Selected cell already has a comment";
|
|
26
|
-
readonly 'comment label': "Add comment";
|
|
27
|
-
readonly 'comment ranges not supported label': "Commenting on ranges is not yet supported";
|
|
28
|
-
readonly 'no cursor label': "Select a cell to comment";
|
|
29
|
-
readonly 'open comment for sheet cell': "View comments for cell";
|
|
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;
|
|
30
26
|
};
|
|
31
27
|
};
|
|
32
|
-
}];
|
|
28
|
+
}[];
|
|
33
29
|
layout: string;
|
|
34
30
|
};
|
|
35
31
|
render: (args: any) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAqBT,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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export * from './ComputeGraph';
|
|
3
|
-
export
|
|
4
|
-
export * from './SheetContext';
|
|
5
|
-
export declare const SheetContainer: React.LazyExoticComponent<({ graph, sheet, role }: import("./SheetContext").SheetProviderProps & {
|
|
3
|
+
export declare const SheetContainer: React.LazyExoticComponent<({ sheet, space, role, remoteFunctionUrl, }: import("./Sheet").SheetRootProps & {
|
|
6
4
|
role?: string;
|
|
5
|
+
coordinate?: import("packages/sdk/app-framework/dist/types/src").LayoutCoordinate;
|
|
7
6
|
}) => React.JSX.Element>;
|
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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;
|
|
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;QAC2E,CAAC;cAAoB,CAAC;wBADlD,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { type IconProps } from '@phosphor-icons/react';
|
|
2
|
+
import React from 'react';
|
|
1
3
|
export declare const SHEET_PLUGIN = "dxos.org/plugin/sheet";
|
|
2
4
|
declare const _default: {
|
|
3
5
|
id: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
shortId?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
homePage?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
iconComponent?: React.FC<IconProps>;
|
|
12
|
+
iconSymbol?: string;
|
|
7
13
|
};
|
|
8
14
|
export default _default;
|
|
9
15
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.
|
|
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":"functions.d.ts","sourceRoot":"","sources":["../../../../src/model/functions.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"}
|
|
@@ -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,aAAa,CAAC;AAC5B,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":""}
|