@dxos/plugin-sheet 0.8.4-main.c1de068 → 0.8.4-main.c351d160a8
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/RangeList-YI6FSF3S.mjs +48 -0
- package/dist/lib/browser/RangeList-YI6FSF3S.mjs.map +7 -0
- package/dist/lib/browser/SheetContainer-O577SWMS.mjs +1808 -0
- package/dist/lib/browser/SheetContainer-O577SWMS.mjs.map +7 -0
- package/dist/lib/browser/anchor-sort-NV6MQFUH.mjs +24 -0
- package/dist/lib/browser/anchor-sort-NV6MQFUH.mjs.map +7 -0
- package/dist/lib/browser/chunk-GHS75KWH.mjs +380 -0
- package/dist/lib/browser/chunk-GHS75KWH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7HQX4NQP.mjs → chunk-NNWF7EKC.mjs} +14 -14
- package/dist/lib/browser/chunk-NNWF7EKC.mjs.map +7 -0
- package/dist/lib/browser/compute-graph-registry-HVVALVIE.mjs +21 -0
- package/dist/lib/browser/compute-graph-registry-HVVALVIE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +68 -82
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/markdown-I2REDYX5.mjs +29 -0
- package/dist/lib/browser/markdown-I2REDYX5.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-VGBMFSYG.mjs +65 -0
- package/dist/lib/browser/operation-resolver-VGBMFSYG.mjs.map +7 -0
- package/dist/lib/browser/react-surface-NSPYPZYP.mjs +52 -0
- package/dist/lib/browser/react-surface-NSPYPZYP.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +7 -12
- package/dist/lib/node-esm/RangeList-7EG3K4KG.mjs +49 -0
- package/dist/lib/node-esm/RangeList-7EG3K4KG.mjs.map +7 -0
- package/dist/lib/node-esm/SheetContainer-ICPEZUMD.mjs +1809 -0
- package/dist/lib/node-esm/SheetContainer-ICPEZUMD.mjs.map +7 -0
- package/dist/lib/node-esm/anchor-sort-7XYLH2AM.mjs +25 -0
- package/dist/lib/node-esm/anchor-sort-7XYLH2AM.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Q6UYC4G5.mjs → chunk-M52YLLWU.mjs} +14 -14
- package/dist/lib/node-esm/chunk-M52YLLWU.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-VGXC77GH.mjs +381 -0
- package/dist/lib/node-esm/chunk-VGXC77GH.mjs.map +7 -0
- package/dist/lib/node-esm/compute-graph-registry-IDU2KKQU.mjs +22 -0
- package/dist/lib/node-esm/compute-graph-registry-IDU2KKQU.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +68 -82
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/markdown-6KBH3MBO.mjs +30 -0
- package/dist/lib/node-esm/markdown-6KBH3MBO.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-E7FIHPCO.mjs +66 -0
- package/dist/lib/node-esm/operation-resolver-E7FIHPCO.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-LCMQBROP.mjs +53 -0
- package/dist/lib/node-esm/react-surface-LCMQBROP.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +7 -12
- package/dist/types/src/SheetPlugin.d.ts +2 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts +6 -0
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts.map +1 -0
- package/dist/types/src/capabilities/anchor-sort/index.d.ts +3 -0
- package/dist/types/src/capabilities/anchor-sort/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts +5 -0
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-graph-registry/index.d.ts +3 -0
- package/dist/types/src/capabilities/compute-graph-registry/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +5 -11
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
- package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts +9 -4
- package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/Sheet.d.ts +15 -0
- package/dist/types/src/components/Sheet/Sheet.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/SheetContent/SheetCellEditor.stories.d.ts +16 -0
- package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/SheetContent.d.ts +7 -0
- package/dist/types/src/components/SheetContent/SheetContent.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts +58 -0
- package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/index.d.ts +2 -0
- package/dist/types/src/components/SheetContent/index.d.ts.map +1 -0
- package/dist/types/src/components/{GridSheet → SheetContent}/util.d.ts +1 -1
- package/dist/types/src/components/SheetContent/util.d.ts.map +1 -0
- package/dist/types/src/components/{SheetContext/SheetContext.d.ts → SheetRoot/SheetRoot.d.ts} +9 -7
- package/dist/types/src/components/SheetRoot/SheetRoot.d.ts.map +1 -0
- package/dist/types/src/components/SheetRoot/index.d.ts +2 -0
- package/dist/types/src/components/SheetRoot/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts +7 -0
- package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts.map +1 -0
- package/dist/types/src/components/SheetStatusbar/index.d.ts +2 -0
- package/dist/types/src/components/SheetStatusbar/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +6 -4
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +90 -4
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/align.d.ts +13 -20
- package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/style.d.ts +12 -18
- package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts +14 -1
- package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components → containers}/RangeList/RangeList.d.ts +2 -2
- package/dist/types/src/containers/RangeList/RangeList.d.ts.map +1 -0
- package/dist/types/src/containers/RangeList/index.d.ts +3 -0
- package/dist/types/src/containers/RangeList/index.d.ts.map +1 -0
- package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts +12 -0
- package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts.map +1 -0
- package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts +57 -0
- package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SheetContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/extensions/compute.d.ts +1 -1
- package/dist/types/src/extensions/compute.d.ts.map +1 -1
- package/dist/types/src/extensions/compute.stories.d.ts +10 -13
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/index.d.ts +1 -1
- package/dist/types/src/extensions/editor/index.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/{extension.d.ts → sheet-extension.d.ts} +1 -1
- package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -0
- package/dist/types/src/extensions/editor/sheet-extension.test.d.ts +2 -0
- package/dist/types/src/extensions/editor/sheet-extension.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts +6 -6
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/model/testing.d.ts +2 -2
- package/dist/types/src/model/testing.d.ts.map +1 -1
- package/dist/types/src/model/useSheetModel.d.ts +2 -2
- package/dist/types/src/model/useSheetModel.d.ts.map +1 -1
- package/dist/types/src/playwright/sheet-manager.d.ts +1 -1
- package/dist/types/src/playwright/sheet-manager.d.ts.map +1 -1
- package/dist/types/src/serializer.d.ts +2 -2
- package/dist/types/src/serializer.d.ts.map +1 -1
- package/dist/types/src/testing/data.d.ts +2 -2
- package/dist/types/src/testing/data.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +27 -3
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +4 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Sheet.d.ts +76 -0
- package/dist/types/src/types/Sheet.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +6 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/sheet-range-types.d.ts +2 -2
- package/dist/types/src/types/sheet-range-types.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +71 -75
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/types/util.d.ts +10 -10
- package/dist/types/src/types/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +81 -72
- package/src/SheetPlugin.tsx +43 -65
- package/src/capabilities/anchor-sort/anchor-sort.ts +27 -0
- package/src/capabilities/anchor-sort/index.ts +7 -0
- package/src/capabilities/compute-graph-registry/compute-graph-registry.ts +27 -0
- package/src/capabilities/compute-graph-registry/index.ts +7 -0
- package/src/capabilities/index.ts +5 -9
- package/src/capabilities/markdown/index.ts +7 -0
- package/src/capabilities/markdown/markdown.ts +30 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +66 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +49 -0
- package/src/components/ComputeGraph/ComputeGraphContextProvider.tsx +1 -1
- package/src/components/ComputeGraph/compute-graph.stories.tsx +22 -21
- package/src/components/Sheet/Sheet.tsx +20 -0
- package/src/components/Sheet/index.ts +5 -0
- package/src/components/SheetContent/SheetCellEditor.stories.tsx +94 -0
- package/src/components/SheetContent/SheetContent.stories.tsx +60 -0
- package/src/components/{GridSheet/GridSheet.tsx → SheetContent/SheetContent.tsx} +75 -61
- package/src/components/{RangeList → SheetContent}/index.ts +1 -1
- package/src/components/{GridSheet → SheetContent}/util.ts +20 -14
- package/src/components/{SheetContext/SheetContext.tsx → SheetRoot/SheetRoot.tsx} +49 -41
- package/src/components/{GridSheet → SheetRoot}/index.ts +1 -1
- package/src/components/{FunctionEditor/FunctionEditor.tsx → SheetStatusbar/SheetStatusbar.tsx} +18 -7
- package/src/components/{FunctionEditor → SheetStatusbar}/index.ts +1 -1
- package/src/components/SheetToolbar/SheetToolbar.stories.tsx +20 -14
- package/src/components/SheetToolbar/SheetToolbar.tsx +57 -46
- package/src/components/SheetToolbar/align.ts +49 -23
- package/src/components/SheetToolbar/style.ts +51 -21
- package/src/components/SheetToolbar/useToolbarState.ts +22 -5
- package/src/components/index.ts +1 -7
- package/src/{components → containers}/RangeList/RangeList.tsx +21 -16
- package/src/containers/RangeList/index.ts +7 -0
- package/src/containers/SheetContainer/SheetContainer.stories.tsx +108 -0
- package/src/containers/SheetContainer/SheetContainer.tsx +57 -0
- package/src/{components → containers}/SheetContainer/index.ts +1 -1
- package/src/containers/index.ts +8 -0
- package/src/extensions/compute.stories.tsx +46 -32
- package/src/extensions/compute.ts +3 -4
- package/src/extensions/editor/index.ts +1 -1
- package/src/extensions/editor/{extension.test.ts → sheet-extension.test.ts} +1 -1
- package/src/extensions/editor/{extension.ts → sheet-extension.ts} +16 -13
- package/src/index.ts +1 -1
- package/src/integrations/thread-ranges.ts +38 -50
- package/src/meta.ts +9 -7
- package/src/model/sheet-model.test.ts +5 -4
- package/src/model/sheet-model.ts +85 -53
- package/src/model/testing.ts +4 -4
- package/src/model/useSheetModel.ts +2 -2
- package/src/playwright/playwright.config.ts +1 -1
- package/src/playwright/sheet-manager.ts +1 -1
- package/src/playwright/sheet.spec.ts +3 -2
- package/src/sanity.test.ts +4 -5
- package/src/serializer.ts +4 -4
- package/src/testing/data.ts +2 -2
- package/src/testing/testing.tsx +11 -5
- package/src/translations.ts +4 -2
- package/src/types/Sheet.ts +103 -0
- package/src/types/capabilities.ts +14 -0
- package/src/types/index.ts +2 -1
- package/src/types/sheet-range-types.ts +5 -5
- package/src/types/types.ts +68 -49
- package/src/types/util.ts +14 -41
- package/dist/lib/browser/SheetContainer-KDGD4AVG.mjs +0 -351
- package/dist/lib/browser/SheetContainer-KDGD4AVG.mjs.map +0 -7
- package/dist/lib/browser/anchor-sort-VHURGBOY.mjs +0 -24
- package/dist/lib/browser/anchor-sort-VHURGBOY.mjs.map +0 -7
- package/dist/lib/browser/chunk-6AKBCBL4.mjs +0 -18
- package/dist/lib/browser/chunk-6AKBCBL4.mjs.map +0 -7
- package/dist/lib/browser/chunk-7HQX4NQP.mjs.map +0 -7
- package/dist/lib/browser/chunk-JUOVL3LE.mjs +0 -847
- package/dist/lib/browser/chunk-JUOVL3LE.mjs.map +0 -7
- package/dist/lib/browser/chunk-KJWZUQVA.mjs +0 -15
- package/dist/lib/browser/chunk-KJWZUQVA.mjs.map +0 -7
- package/dist/lib/browser/chunk-SI4X5GUR.mjs +0 -892
- package/dist/lib/browser/chunk-SI4X5GUR.mjs.map +0 -7
- package/dist/lib/browser/compute-graph-registry-VG7VP7IV.mjs +0 -30
- package/dist/lib/browser/compute-graph-registry-VG7VP7IV.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-WOJGZMSV.mjs +0 -56
- package/dist/lib/browser/intent-resolver-WOJGZMSV.mjs.map +0 -7
- package/dist/lib/browser/markdown-VXMIPUQC.mjs +0 -26
- package/dist/lib/browser/markdown-VXMIPUQC.mjs.map +0 -7
- package/dist/lib/browser/react-surface-SE4HGAEH.mjs +0 -53
- package/dist/lib/browser/react-surface-SE4HGAEH.mjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-RMG24NZC.mjs +0 -352
- package/dist/lib/node-esm/SheetContainer-RMG24NZC.mjs.map +0 -7
- package/dist/lib/node-esm/anchor-sort-CTJGOPET.mjs +0 -25
- package/dist/lib/node-esm/anchor-sort-CTJGOPET.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3K5VNYOF.mjs +0 -20
- package/dist/lib/node-esm/chunk-3K5VNYOF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs +0 -16
- package/dist/lib/node-esm/chunk-6SK5LJ5S.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CADTJFAS.mjs +0 -893
- package/dist/lib/node-esm/chunk-CADTJFAS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IFMIRCZH.mjs +0 -848
- package/dist/lib/node-esm/chunk-IFMIRCZH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q6UYC4G5.mjs.map +0 -7
- package/dist/lib/node-esm/compute-graph-registry-3K3Q2A5T.mjs +0 -31
- package/dist/lib/node-esm/compute-graph-registry-3K3Q2A5T.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-PZRXBNIJ.mjs +0 -57
- package/dist/lib/node-esm/intent-resolver-PZRXBNIJ.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-4VPQJZNZ.mjs +0 -27
- package/dist/lib/node-esm/markdown-4VPQJZNZ.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-LAU23XBH.mjs +0 -54
- package/dist/lib/node-esm/react-surface-LAU23XBH.mjs.map +0 -7
- package/dist/types/src/capabilities/anchor-sort.d.ts +0 -6
- package/dist/types/src/capabilities/anchor-sort.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -5
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/compute-graph-registry.d.ts +0 -4
- package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown.d.ts +0 -6
- package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.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 -7
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +0 -25
- 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.map +0 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +0 -1
- package/dist/types/src/components/RangeList/index.d.ts +0 -2
- package/dist/types/src/components/RangeList/index.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +0 -11
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +0 -8
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
- 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/extensions/editor/extension.d.ts.map +0 -1
- package/dist/types/src/extensions/editor/extension.test.d.ts +0 -2
- package/dist/types/src/extensions/editor/extension.test.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -37
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/anchor-sort.ts +0 -22
- package/src/capabilities/capabilities.ts +0 -14
- package/src/capabilities/compute-graph-registry.ts +0 -28
- package/src/capabilities/intent-resolver.ts +0 -38
- package/src/capabilities/markdown.ts +0 -22
- package/src/capabilities/react-surface.tsx +0 -39
- package/src/components/GridSheet/GridSheet.stories.tsx +0 -53
- package/src/components/GridSheet/SheetCellEditor.stories.tsx +0 -93
- package/src/components/SheetContainer/SheetContainer.stories.tsx +0 -89
- package/src/components/SheetContainer/SheetContainer.tsx +0 -36
- package/src/components/SheetContext/index.ts +0 -5
- package/src/types/schema.ts +0 -61
- /package/dist/types/src/{components → containers}/SheetContainer/index.d.ts +0 -0
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ApiError,
|
|
4
|
-
CellValue,
|
|
5
4
|
DEFAULT_COLS,
|
|
6
5
|
DEFAULT_ROWS,
|
|
7
6
|
MAX_COLS,
|
|
8
7
|
MAX_ROWS,
|
|
9
|
-
Range,
|
|
10
8
|
RangeException,
|
|
11
9
|
ReadonlyException,
|
|
12
|
-
RowColumnMeta,
|
|
13
10
|
SheetAction,
|
|
14
|
-
|
|
11
|
+
SheetCapabilities,
|
|
12
|
+
SheetOperation,
|
|
13
|
+
Sheet_exports,
|
|
15
14
|
addressFromIndex,
|
|
16
15
|
addressToIndex,
|
|
17
16
|
alignKey,
|
|
@@ -20,7 +19,6 @@ import {
|
|
|
20
19
|
compareIndexPositions,
|
|
21
20
|
createIndex,
|
|
22
21
|
createIndices,
|
|
23
|
-
createSheet,
|
|
24
22
|
initialize,
|
|
25
23
|
insertIndices,
|
|
26
24
|
mapFormulaIndicesToRefs,
|
|
@@ -28,21 +26,19 @@ import {
|
|
|
28
26
|
rangeFromIndex,
|
|
29
27
|
rangeToIndex,
|
|
30
28
|
styleKey
|
|
31
|
-
} from "../chunk-
|
|
32
|
-
import "../chunk-3K5VNYOF.mjs";
|
|
29
|
+
} from "../chunk-VGXC77GH.mjs";
|
|
33
30
|
export {
|
|
34
31
|
ApiError,
|
|
35
|
-
CellValue,
|
|
36
32
|
DEFAULT_COLS,
|
|
37
33
|
DEFAULT_ROWS,
|
|
38
34
|
MAX_COLS,
|
|
39
35
|
MAX_ROWS,
|
|
40
|
-
Range,
|
|
41
36
|
RangeException,
|
|
42
37
|
ReadonlyException,
|
|
43
|
-
|
|
38
|
+
Sheet_exports as Sheet,
|
|
44
39
|
SheetAction,
|
|
45
|
-
|
|
40
|
+
SheetCapabilities,
|
|
41
|
+
SheetOperation,
|
|
46
42
|
addressFromIndex,
|
|
47
43
|
addressToIndex,
|
|
48
44
|
alignKey,
|
|
@@ -51,7 +47,6 @@ export {
|
|
|
51
47
|
compareIndexPositions,
|
|
52
48
|
createIndex,
|
|
53
49
|
createIndices,
|
|
54
|
-
createSheet,
|
|
55
50
|
initialize,
|
|
56
51
|
insertIndices,
|
|
57
52
|
mapFormulaIndicesToRefs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetPlugin.d.ts","sourceRoot":"","sources":["../../../src/SheetPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetPlugin.d.ts","sourceRoot":"","sources":["../../../src/SheetPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAmB,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAc9D,eAAO,MAAM,WAAW,4BAgCvB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<AppCapabilities.AnchorSort>>, never, never>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=anchor-sort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor-sort.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/anchor-sort/anchor-sort.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;;AAKpD,wBAcE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/anchor-sort/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,UAAU,gJAA+D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("@dxos/compute").ComputeGraphRegistry>>, Error, Capability.Service>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=compute-graph-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute-graph-registry.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/compute-graph-registry/compute-graph-registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAOjD,wBAaE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/compute-graph-registry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,oBAAoB,sIAAoF,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
7
|
-
export declare const Markdown: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<(({ document: doc }: {
|
|
8
|
-
document?: import("@dxos/plugin-markdown/types").DocumentType;
|
|
9
|
-
}) => import("@codemirror/state").Extension | undefined)[]> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
10
|
-
export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
11
|
-
export * from './capabilities';
|
|
1
|
+
export * from './anchor-sort';
|
|
2
|
+
export * from './compute-graph-registry';
|
|
3
|
+
export * from './markdown';
|
|
4
|
+
export * from './operation-resolver';
|
|
5
|
+
export * from './react-surface';
|
|
12
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/markdown/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,QAAQ,qJAA0D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("@dxos/plugin-markdown").MarkdownExtensionProvider[]>>, never, Capability.Service>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/markdown/markdown.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAOjD,wBAgBE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const OperationResolver: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").UndoMapping[]>>, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").OperationResolver[]>>], Error>;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,oQAA6E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<Capabilities.UndoMapping[]>>, Capability.Capability<Capability.InterfaceDef<Capabilities.OperationResolver[]>>], never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=operation-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAe,MAAM,qBAAqB,CAAC;;AAM5E,wBAqDE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAS/D,wBAgCE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComputeGraphContextProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/ComputeGraphContextProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ComputeGraphContextProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/ComputeGraphContextProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA6B,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGrD,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,oDAAgE,CAAC;AAEjG,eAAO,MAAM,2BAA2B,GAAI,wBAAwB,iBAAiB,CAAC,uBAAuB,CAAC,sBAE7G,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,QAAQ,KAAK,KAAG,YAAY,GAAG,SAW9D,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import
|
|
3
|
-
export declare const Default:
|
|
4
|
-
declare const meta:
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const Default: Story;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
render: () => React.JSX.Element;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
};
|
|
5
9
|
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
6
11
|
//# sourceMappingURL=compute-graph.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/compute-graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"compute-graph.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ComputeGraph/compute-graph.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAsC,MAAM,OAAO,CAAC;AA8E3D,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,QAAA,MAAM,IAAI;;;;CAQ2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { useSheetContext, type SheetContextValue, type SheetRootProps } from '../SheetRoot';
|
|
2
|
+
export { type SheetContentProps } from '../SheetContent';
|
|
3
|
+
export { type SheetToolbarProps } from '../SheetToolbar';
|
|
4
|
+
export { type SheetStatusbarProps } from '../SheetStatusbar';
|
|
5
|
+
export declare const Sheet: {
|
|
6
|
+
Root: ({ children, graph, sheet, attendableId, readonly, ignoreAttention, onInfo, }: import("react").PropsWithChildren<import("./Sheet").SheetRootProps>) => import("react").JSX.Element | null;
|
|
7
|
+
Toolbar: ({ id, ...props }: import("./Sheet").SheetToolbarProps) => import("react").JSX.Element;
|
|
8
|
+
Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
|
|
9
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
10
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Statusbar: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
|
|
12
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/Sheet.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,eAAO,MAAM,KAAK;;;;;;;;;CAKjB,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,16 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { type CellEditorProps } from '@dxos/react-ui-grid';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
|
+
component: ({ value, extensions, box, gridId, autoFocus, slots, onBlur }: CellEditorProps) => React.JSX.Element;
|
|
8
|
+
render: ({ value, ...props }: CellEditorProps) => React.JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Default: Story;
|
|
13
|
+
export declare const AutoComplete: Story;
|
|
14
|
+
export declare const Formatting: Story;
|
|
15
|
+
export declare const Automerge: Story;
|
|
16
|
+
//# sourceMappingURL=SheetCellEditor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetCellEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContent/SheetCellEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAgDvE,QAAA,MAAM,IAAI;;;;kCA1CiC,eAAe;CAgDrB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ComposableProps } from '@dxos/react-ui';
|
|
3
|
+
export type SheetContentProps = ComposableProps;
|
|
4
|
+
export declare const SheetContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
5
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
6
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
//# sourceMappingURL=SheetContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContent/SheetContent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAUN,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,eAAe,EAAsD,MAAM,gBAAgB,CAAC;AAqD1G,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,eAAO,MAAM,YAAY;;wCAyTvB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Sheet } from '../../types';
|
|
3
|
+
export declare const Basic: () => React.JSX.Element | null;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
7
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
decorators: import("@storybook/react").Decorator[];
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
translations: [{
|
|
13
|
+
readonly 'en-US': {
|
|
14
|
+
readonly [Sheet.Sheet.typename]: {
|
|
15
|
+
readonly 'typename label': "Sheet";
|
|
16
|
+
readonly 'typename label_zero': "Sheets";
|
|
17
|
+
readonly 'typename label_one': "Sheet";
|
|
18
|
+
readonly 'typename label_other': "Sheets";
|
|
19
|
+
readonly 'object name placeholder': "New sheet";
|
|
20
|
+
readonly 'add object label': "Add sheet";
|
|
21
|
+
readonly 'rename object label': "Rename sheet";
|
|
22
|
+
readonly 'delete object label': "Delete sheet";
|
|
23
|
+
readonly 'object deleted label': "Sheet deleted";
|
|
24
|
+
};
|
|
25
|
+
readonly [meta.id]: {
|
|
26
|
+
readonly 'plugin name': "Sheets";
|
|
27
|
+
readonly 'cell placeholder': "Cell value...";
|
|
28
|
+
readonly 'range key alignment label': "Align";
|
|
29
|
+
readonly 'range key style label': "Style";
|
|
30
|
+
readonly 'range value start label': "Align left";
|
|
31
|
+
readonly 'range value center label': "Align center";
|
|
32
|
+
readonly 'range value end label': "Align right";
|
|
33
|
+
readonly 'range value softwrap label': "Wrap text";
|
|
34
|
+
readonly 'range value highlight label': "Highlight";
|
|
35
|
+
readonly 'toolbar action label': "{{value}}";
|
|
36
|
+
readonly 'selection overlaps existing comment label': "Selected cell already has a comment";
|
|
37
|
+
readonly 'comment label': "Add comment";
|
|
38
|
+
readonly 'comment ranges not supported label': "Commenting on ranges is not yet supported";
|
|
39
|
+
readonly 'no cursor label': "Select a cell to comment";
|
|
40
|
+
readonly 'open comment for sheet cell': "View comments for cell";
|
|
41
|
+
readonly 'add col before label': "Add column before";
|
|
42
|
+
readonly 'add col after label': "Add column after";
|
|
43
|
+
readonly 'delete col label': "Delete column";
|
|
44
|
+
readonly 'add row before label': "Add row before";
|
|
45
|
+
readonly 'add row after label': "Add row after";
|
|
46
|
+
readonly 'delete row label': "Delete row";
|
|
47
|
+
readonly 'range list heading': "Ranges";
|
|
48
|
+
readonly 'no ranges message': "No ranges";
|
|
49
|
+
readonly 'range title': "{{position}} — {{value}}";
|
|
50
|
+
readonly 'col dropped label': "Deleted a column";
|
|
51
|
+
readonly 'row dropped label': "Deleted a row";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export default meta;
|
|
58
|
+
//# sourceMappingURL=SheetContent.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContent.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContent/SheetContent.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMpC,eAAO,MAAM,KAAK,gCAejB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;;;;yBA/BP,CAAQ,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;;;;;;;;;;;yBAOH,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCR,CAAC;AAEtC,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContent/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DxGridElement, type GridContentProps } from '@dxos/react-ui-grid';
|
|
2
2
|
import { type SheetModel } from '../../model';
|
|
3
3
|
export declare const rowLabelCell: (row: number) => {
|
|
4
4
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContent/util.ts"],"names":[],"mappings":"AASA,OAAO,EAGL,KAAK,aAAa,EAIlB,KAAK,gBAAgB,EAItB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAyE9C,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM;;;;CAItC,CAAC;AAEH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM;;;;CAItC,CAAC;AA+BH,eAAO,MAAM,wBAAwB,GACnC,QAAQ,aAAa,GAAG,IAAI,EAC5B,OAAO,UAAU,KAChB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,MAAM,CAsC3C,CAAC"}
|
package/dist/types/src/components/{SheetContext/SheetContext.d.ts → SheetRoot/SheetRoot.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CellAddress, type CellRange, type CompleteCellRange, type ComputeGraph } from '@dxos/compute';
|
|
3
3
|
import { type GridContentProps, type GridEditing } from '@dxos/react-ui-grid';
|
|
4
4
|
import { type SheetModel } from '../../model';
|
|
5
|
-
import { type
|
|
5
|
+
import { type Sheet } from '../../types';
|
|
6
6
|
export type SheetContextValue = {
|
|
7
7
|
id: string;
|
|
8
|
+
attendableId: string;
|
|
8
9
|
model: SheetModel;
|
|
9
10
|
cursor?: CellAddress;
|
|
10
11
|
setCursor: (cell: CellAddress | undefined) => void;
|
|
@@ -15,15 +16,16 @@ export type SheetContextValue = {
|
|
|
15
16
|
setEditing: (editing: GridEditing) => void;
|
|
16
17
|
activeRefs: GridContentProps['activeRefs'];
|
|
17
18
|
setActiveRefs: (activeRefs: GridContentProps['activeRefs']) => void;
|
|
18
|
-
onInfo?: () => void;
|
|
19
19
|
ignoreAttention?: boolean;
|
|
20
|
+
onInfo?: () => void;
|
|
20
21
|
};
|
|
21
22
|
export declare const useSheetContext: () => SheetContextValue;
|
|
22
|
-
export type
|
|
23
|
+
export type SheetRootProps = {
|
|
23
24
|
graph: ComputeGraph;
|
|
24
|
-
sheet:
|
|
25
|
+
sheet: Sheet.Sheet;
|
|
26
|
+
attendableId: string;
|
|
25
27
|
readonly?: boolean;
|
|
26
28
|
ignoreAttention?: boolean;
|
|
27
29
|
} & Pick<SheetContextValue, 'onInfo'>;
|
|
28
|
-
export declare const
|
|
29
|
-
//# sourceMappingURL=
|
|
30
|
+
export declare const SheetRoot: ({ children, graph, sheet, attendableId, readonly, ignoreAttention, onInfo, }: PropsWithChildren<SheetRootProps>) => React.JSX.Element | null;
|
|
31
|
+
//# sourceMappingURL=SheetRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetRoot.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetRoot/SheetRoot.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAExG,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5G,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAGjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IAErB,KAAK,EAAE,UAAU,CAAC;IAIlB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI,CAAC;IACjD,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IAGxC,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAG3C,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3C,aAAa,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAGpE,eAAe,CAAC,EAAE,OAAO,CAAC;IAI1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAKF,eAAO,MAAM,eAAe,QAAO,iBAElC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;AAEtC,eAAO,MAAM,SAAS,GAAI,8EAQvB,iBAAiB,CAAC,cAAc,CAAC,6BAanC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetRoot/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ComposableProps } from '@dxos/react-ui';
|
|
3
|
+
export type SheetStatusbarProps = ComposableProps;
|
|
4
|
+
export declare const SheetStatusbar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
5
|
+
classNames?: import("@dxos/ui-types").ClassNameValue;
|
|
6
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
//# sourceMappingURL=SheetStatusbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetStatusbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetStatusbar/SheetStatusbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,KAAK,eAAe,EAAQ,MAAM,gBAAgB,CAAC;AAM5D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;AAElD,eAAO,MAAM,cAAc;;wCAoCzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetStatusbar/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
export type SheetToolbarProps =
|
|
2
|
+
import { type MenuRootProps } from '@dxos/react-ui-menu';
|
|
3
|
+
export type SheetToolbarProps = {
|
|
4
4
|
id: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
5
|
+
} & Partial<MenuRootProps> & PropsWithChildren<{
|
|
6
|
+
id: string;
|
|
7
|
+
} & Partial<MenuRootProps>>;
|
|
8
|
+
export declare const SheetToolbar: ({ id, ...props }: SheetToolbarProps) => React.JSX.Element;
|
|
7
9
|
//# sourceMappingURL=SheetToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SheetToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAI3E,OAAO,EAGL,KAAK,aAAa,EAGnB,MAAM,qBAAqB,CAAC;AA8C7B,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,aAAa,CAAC,GACrE,iBAAiB,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAE7D,eAAO,MAAM,YAAY,GAAI,kBAAkB,iBAAiB,sBA8B/D,CAAC"}
|
|
@@ -1,6 +1,92 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: any;
|
|
6
|
+
render: () => React.JSX.Element;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
translations: [{
|
|
11
|
+
readonly 'en-US': {
|
|
12
|
+
readonly [x: string]: {
|
|
13
|
+
readonly 'typename label': "Sheet";
|
|
14
|
+
readonly 'typename label_zero': "Sheets";
|
|
15
|
+
readonly 'typename label_one': "Sheet";
|
|
16
|
+
readonly 'typename label_other': "Sheets";
|
|
17
|
+
readonly 'object name placeholder': "New sheet";
|
|
18
|
+
readonly 'add object label': "Add sheet";
|
|
19
|
+
readonly 'rename object label': "Rename sheet";
|
|
20
|
+
readonly 'delete object label': "Delete sheet";
|
|
21
|
+
readonly 'object deleted label': "Sheet deleted";
|
|
22
|
+
readonly 'plugin name'?: undefined;
|
|
23
|
+
readonly 'cell placeholder'?: undefined;
|
|
24
|
+
readonly 'range key alignment label'?: undefined;
|
|
25
|
+
readonly 'range key style label'?: undefined;
|
|
26
|
+
readonly 'range value start label'?: undefined;
|
|
27
|
+
readonly 'range value center label'?: undefined;
|
|
28
|
+
readonly 'range value end label'?: undefined;
|
|
29
|
+
readonly 'range value softwrap label'?: undefined;
|
|
30
|
+
readonly 'range value highlight label'?: undefined;
|
|
31
|
+
readonly 'toolbar action label'?: undefined;
|
|
32
|
+
readonly 'selection overlaps existing comment label'?: undefined;
|
|
33
|
+
readonly 'comment label'?: undefined;
|
|
34
|
+
readonly 'comment ranges not supported label'?: undefined;
|
|
35
|
+
readonly 'no cursor label'?: undefined;
|
|
36
|
+
readonly 'open comment for sheet cell'?: undefined;
|
|
37
|
+
readonly 'add col before label'?: undefined;
|
|
38
|
+
readonly 'add col after label'?: undefined;
|
|
39
|
+
readonly 'delete col label'?: undefined;
|
|
40
|
+
readonly 'add row before label'?: undefined;
|
|
41
|
+
readonly 'add row after label'?: undefined;
|
|
42
|
+
readonly 'delete row label'?: undefined;
|
|
43
|
+
readonly 'range list heading'?: undefined;
|
|
44
|
+
readonly 'no ranges message'?: undefined;
|
|
45
|
+
readonly 'range title'?: undefined;
|
|
46
|
+
readonly 'col dropped label'?: undefined;
|
|
47
|
+
readonly 'row dropped label'?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
readonly 'plugin name': "Sheets";
|
|
50
|
+
readonly 'cell placeholder': "Cell value...";
|
|
51
|
+
readonly 'range key alignment label': "Align";
|
|
52
|
+
readonly 'range key style label': "Style";
|
|
53
|
+
readonly 'range value start label': "Align left";
|
|
54
|
+
readonly 'range value center label': "Align center";
|
|
55
|
+
readonly 'range value end label': "Align right";
|
|
56
|
+
readonly 'range value softwrap label': "Wrap text";
|
|
57
|
+
readonly 'range value highlight label': "Highlight";
|
|
58
|
+
readonly 'toolbar action label': "{{value}}";
|
|
59
|
+
readonly 'selection overlaps existing comment label': "Selected cell already has a comment";
|
|
60
|
+
readonly 'comment label': "Add comment";
|
|
61
|
+
readonly 'comment ranges not supported label': "Commenting on ranges is not yet supported";
|
|
62
|
+
readonly 'no cursor label': "Select a cell to comment";
|
|
63
|
+
readonly 'open comment for sheet cell': "View comments for cell";
|
|
64
|
+
readonly 'add col before label': "Add column before";
|
|
65
|
+
readonly 'add col after label': "Add column after";
|
|
66
|
+
readonly 'delete col label': "Delete column";
|
|
67
|
+
readonly 'add row before label': "Add row before";
|
|
68
|
+
readonly 'add row after label': "Add row after";
|
|
69
|
+
readonly 'delete row label': "Delete row";
|
|
70
|
+
readonly 'range list heading': "Ranges";
|
|
71
|
+
readonly 'no ranges message': "No ranges";
|
|
72
|
+
readonly 'range title': "{{position}} — {{value}}";
|
|
73
|
+
readonly 'col dropped label': "Deleted a column";
|
|
74
|
+
readonly 'row dropped label': "Deleted a row";
|
|
75
|
+
readonly 'typename label'?: undefined;
|
|
76
|
+
readonly 'typename label_zero'?: undefined;
|
|
77
|
+
readonly 'typename label_one'?: undefined;
|
|
78
|
+
readonly 'typename label_other'?: undefined;
|
|
79
|
+
readonly 'object name placeholder'?: undefined;
|
|
80
|
+
readonly 'add object label'?: undefined;
|
|
81
|
+
readonly 'rename object label'?: undefined;
|
|
82
|
+
readonly 'delete object label'?: undefined;
|
|
83
|
+
readonly 'object deleted label'?: undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
5
89
|
export default meta;
|
|
90
|
+
type Story = StoryObj<typeof meta>;
|
|
91
|
+
export declare const Default: Story;
|
|
6
92
|
//# sourceMappingURL=SheetToolbar.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"SheetToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,IAAI;;eAEmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOK,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|