@dxos/plugin-sheet 0.8.4-main.3fbcb4aa9b → 0.8.4-main.43cb759274

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.
Files changed (124) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +359 -0
  3. package/dist/lib/neutral/{SheetContainer-ZOVKGHLT.mjs → SheetArticle-5AJRM3V3.mjs} +6 -6
  4. package/dist/lib/neutral/SheetArticle-5AJRM3V3.mjs.map +7 -0
  5. package/dist/lib/neutral/SheetPlugin.mjs +14 -3
  6. package/dist/lib/neutral/SheetPlugin.mjs.map +4 -4
  7. package/dist/lib/neutral/SheetPlugin.workerd.mjs +21 -0
  8. package/dist/lib/neutral/SheetPlugin.workerd.mjs.map +7 -0
  9. package/dist/lib/neutral/{anchor-sort-TTCKGX7V.mjs → anchor-sort-2POWTKTD.mjs} +3 -3
  10. package/dist/lib/neutral/anchor-sort-2POWTKTD.mjs.map +7 -0
  11. package/dist/lib/neutral/capabilities/index.mjs +6 -6
  12. package/dist/lib/neutral/{chunk-4GWJDLTH.mjs → chunk-3AIMSE7U.mjs} +4 -4
  13. package/dist/lib/neutral/{chunk-4GWJDLTH.mjs.map → chunk-3AIMSE7U.mjs.map} +3 -3
  14. package/dist/lib/neutral/chunk-7ZUM64KO.mjs +8 -0
  15. package/dist/lib/neutral/{chunk-4SBAIU6F.mjs → chunk-ERHMBRSU.mjs} +2 -2
  16. package/dist/lib/neutral/{chunk-4SBAIU6F.mjs.map → chunk-ERHMBRSU.mjs.map} +2 -2
  17. package/dist/lib/neutral/{chunk-KC2SMDNF.mjs → chunk-EUM3RVML.mjs} +21 -20
  18. package/dist/lib/neutral/chunk-EUM3RVML.mjs.map +7 -0
  19. package/dist/lib/neutral/chunk-FQHTXKMF.mjs +34 -0
  20. package/dist/lib/neutral/chunk-FQHTXKMF.mjs.map +7 -0
  21. package/dist/lib/neutral/{comment-config-ZBWNCJMZ.mjs → comment-config-6JAROASH.mjs} +3 -2
  22. package/dist/lib/neutral/comment-config-6JAROASH.mjs.map +7 -0
  23. package/dist/lib/neutral/components/index.mjs +10 -9
  24. package/dist/lib/neutral/components/index.mjs.map +3 -3
  25. package/dist/lib/neutral/{compute-graph-registry-IEQBF5XZ.mjs → compute-graph-registry-YYINTFC2.mjs} +11 -5
  26. package/dist/lib/neutral/compute-graph-registry-YYINTFC2.mjs.map +7 -0
  27. package/dist/lib/neutral/containers/index.mjs +2 -2
  28. package/dist/lib/neutral/containers/index.mjs.map +3 -3
  29. package/dist/lib/neutral/{create-object-OKQAXJCW.mjs → create-object-6FZSSROF.mjs} +3 -2
  30. package/dist/lib/neutral/create-object-6FZSSROF.mjs.map +7 -0
  31. package/dist/lib/neutral/{drop-axis-G6UOXG54.mjs → drop-axis-MO3KUU4C.mjs} +2 -2
  32. package/dist/lib/neutral/index.mjs +5 -5
  33. package/dist/lib/neutral/{insert-axis-ZFFNG22G.mjs → insert-axis-V7E5PTMG.mjs} +2 -2
  34. package/dist/lib/neutral/{markdown-I2AKJYPF.mjs → markdown-O37EE3ER.mjs} +2 -2
  35. package/dist/lib/neutral/meta.json +1 -1
  36. package/dist/lib/neutral/meta.mjs +1 -1
  37. package/dist/lib/neutral/operations/index.mjs +1 -1
  38. package/dist/lib/neutral/plugin.mjs +4 -4
  39. package/dist/lib/neutral/{react-surface-ID4JCAFR.mjs → react-surface-4H3PC4WG.mjs} +5 -5
  40. package/dist/lib/neutral/react-surface-4H3PC4WG.mjs.map +7 -0
  41. package/dist/lib/neutral/{restore-axis-44DM6N54.mjs → restore-axis-BAM44OPG.mjs} +2 -2
  42. package/dist/lib/neutral/{scroll-to-anchor-WHX3HJC7.mjs → scroll-to-anchor-TBE2FTTT.mjs} +3 -3
  43. package/dist/lib/neutral/translations.mjs +2 -1
  44. package/dist/lib/neutral/translations.mjs.map +3 -3
  45. package/dist/lib/neutral/types/index.mjs +1 -1
  46. package/dist/types/src/SheetPlugin.d.ts.map +1 -1
  47. package/dist/types/src/SheetPlugin.workerd.d.ts +4 -0
  48. package/dist/types/src/SheetPlugin.workerd.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/compute-graph-registry.d.ts +6 -0
  50. package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
  51. package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
  52. package/dist/types/src/components/ComputeGraph/compute-graph.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts.map +1 -1
  54. package/dist/types/src/containers/{SheetContainer/SheetContainer.d.ts → SheetArticle/SheetArticle.d.ts} +3 -3
  55. package/dist/types/src/containers/SheetArticle/SheetArticle.d.ts.map +1 -0
  56. package/dist/types/src/containers/{SheetContainer/SheetContainer.stories.d.ts → SheetArticle/SheetArticle.stories.d.ts} +2 -2
  57. package/dist/types/src/containers/SheetArticle/SheetArticle.stories.d.ts.map +1 -0
  58. package/dist/types/src/containers/SheetArticle/index.d.ts +2 -0
  59. package/dist/types/src/containers/SheetArticle/index.d.ts.map +1 -0
  60. package/dist/types/src/containers/index.d.ts +1 -1
  61. package/dist/types/src/containers/index.d.ts.map +1 -1
  62. package/dist/types/src/meta.d.ts +1 -1
  63. package/dist/types/src/meta.d.ts.map +1 -1
  64. package/dist/types/src/model/sheet-model.d.ts +25 -1
  65. package/dist/types/src/model/sheet-model.d.ts.map +1 -1
  66. package/dist/types/src/testing/testing.d.ts +2 -2
  67. package/dist/types/src/testing/testing.d.ts.map +1 -1
  68. package/dist/types/src/translations.d.ts.map +1 -1
  69. package/dist/types/src/types/Sheet.d.ts +3 -4
  70. package/dist/types/src/types/Sheet.d.ts.map +1 -1
  71. package/dist/types/src/types/SheetOperation.d.ts.map +1 -1
  72. package/dist/types/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +62 -79
  74. package/src/SheetPlugin.test.ts +1 -1
  75. package/src/SheetPlugin.tsx +8 -3
  76. package/src/SheetPlugin.workerd.ts +18 -0
  77. package/src/capabilities/anchor-sort.ts +2 -2
  78. package/src/capabilities/comment-config.ts +2 -1
  79. package/src/capabilities/compute-graph-registry.ts +20 -7
  80. package/src/capabilities/create-object.ts +2 -1
  81. package/src/capabilities/react-surface.tsx +4 -4
  82. package/src/components/ComputeGraph/compute-graph.stories.tsx +8 -3
  83. package/src/components/SheetContent/SheetContent.stories.tsx +2 -2
  84. package/src/components/SheetContent/SheetContent.tsx +1 -1
  85. package/src/components/SheetContent/util.ts +1 -1
  86. package/src/components/SheetStatusbar/SheetStatusbar.tsx +2 -1
  87. package/src/components/SheetToolbar/SheetToolbar.tsx +1 -1
  88. package/src/containers/{SheetContainer/SheetContainer.stories.tsx → SheetArticle/SheetArticle.stories.tsx} +8 -8
  89. package/src/containers/{SheetContainer/SheetContainer.tsx → SheetArticle/SheetArticle.tsx} +5 -5
  90. package/src/containers/SheetArticle/index.ts +5 -0
  91. package/src/containers/index.ts +1 -1
  92. package/src/extensions/compute.stories.tsx +2 -2
  93. package/src/extensions/editor/sheet-extension.ts +1 -1
  94. package/src/integrations/thread-ranges.ts +3 -3
  95. package/src/meta.ts +18 -6
  96. package/src/model/sheet-model.ts +2 -2
  97. package/src/playwright/sheet.spec.ts +1 -1
  98. package/src/sanity.test.ts +5 -1
  99. package/src/translations.ts +2 -1
  100. package/src/types/Sheet.ts +4 -10
  101. package/src/types/SheetOperation.ts +14 -5
  102. package/src/types/util.ts +3 -3
  103. package/src/vite-env.d.ts +10 -0
  104. package/dist/lib/neutral/SheetContainer-ZOVKGHLT.mjs.map +0 -7
  105. package/dist/lib/neutral/anchor-sort-TTCKGX7V.mjs.map +0 -7
  106. package/dist/lib/neutral/chunk-KC2SMDNF.mjs.map +0 -7
  107. package/dist/lib/neutral/chunk-YFHTB6MX.mjs +0 -8
  108. package/dist/lib/neutral/chunk-ZWOQCLH7.mjs +0 -21
  109. package/dist/lib/neutral/chunk-ZWOQCLH7.mjs.map +0 -7
  110. package/dist/lib/neutral/comment-config-ZBWNCJMZ.mjs.map +0 -7
  111. package/dist/lib/neutral/compute-graph-registry-IEQBF5XZ.mjs.map +0 -7
  112. package/dist/lib/neutral/create-object-OKQAXJCW.mjs.map +0 -7
  113. package/dist/lib/neutral/react-surface-ID4JCAFR.mjs.map +0 -7
  114. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts.map +0 -1
  115. package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
  116. package/dist/types/src/containers/SheetContainer/index.d.ts +0 -2
  117. package/dist/types/src/containers/SheetContainer/index.d.ts.map +0 -1
  118. package/src/containers/SheetContainer/index.ts +0 -5
  119. /package/dist/lib/neutral/{chunk-YFHTB6MX.mjs.map → chunk-7ZUM64KO.mjs.map} +0 -0
  120. /package/dist/lib/neutral/{drop-axis-G6UOXG54.mjs.map → drop-axis-MO3KUU4C.mjs.map} +0 -0
  121. /package/dist/lib/neutral/{insert-axis-ZFFNG22G.mjs.map → insert-axis-V7E5PTMG.mjs.map} +0 -0
  122. /package/dist/lib/neutral/{markdown-I2AKJYPF.mjs.map → markdown-O37EE3ER.mjs.map} +0 -0
  123. /package/dist/lib/neutral/{restore-axis-44DM6N54.mjs.map → restore-axis-BAM44OPG.mjs.map} +0 -0
  124. /package/dist/lib/neutral/{scroll-to-anchor-WHX3HJC7.mjs.map → scroll-to-anchor-TBE2FTTT.mjs.map} +0 -0
package/src/meta.ts CHANGED
@@ -2,18 +2,30 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { type Plugin } from '@dxos/app-framework';
5
+ import { Plugin } from '@dxos/app-framework';
6
+ import { DXN } from '@dxos/keys';
6
7
  import { trim } from '@dxos/util';
7
8
 
8
- export const meta: Plugin.Meta = {
9
- id: 'org.dxos.plugin.sheet',
9
+ export const meta = Plugin.makeMeta({
10
+ key: DXN.make('org.dxos.plugin.sheet'),
10
11
  name: 'Sheet',
12
+ author: 'DXOS',
11
13
  description: trim`
12
- Full-featured spreadsheet application with over 400 built-in formulas for calculations and data analysis.
13
- Create custom JavaScript functions and integrate with AI agents for advanced automation.
14
+ Full-featured spreadsheet for DXOS Composer backed by ECHO for local-first, real-time collaborative editing.
15
+ Cells, row/column metadata, and range-based formatting are all stored as ECHO objects and replicated to peers instantly.
16
+
17
+ Formula evaluation is powered by HyperFormula, providing over 400 built-in functions covering arithmetic, statistics,
18
+ text manipulation, date/time, financial, and logical operations. Formulas are stored with internal cell indices and
19
+ translated to A1-notation on display, keeping references stable across row and column insertions.
20
+
21
+ The plugin integrates with plugin-markdown to expose formula results inside document fenced code blocks, and
22
+ contributes anchor-navigation support so other plugins can scroll and highlight specific cell ranges by DXN reference.
23
+ AI agents can invoke sheet operations — insert/drop axes, scroll to anchor, and read or write cell values — through
24
+ the standard operations framework.
14
25
  `,
15
26
  icon: 'ph--grid-nine--regular',
16
27
  iconHue: 'indigo',
17
28
  source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',
29
+ spec: 'PLUGIN.mdl',
18
30
  screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],
19
- };
31
+ });
@@ -24,7 +24,7 @@ import {
24
24
  import { Resource } from '@dxos/context';
25
25
  import { Obj } from '@dxos/echo';
26
26
  import { Format, TypeEnum } from '@dxos/echo/internal';
27
- import { invariant } from '@dxos/invariant';
27
+ import { assertArgument, invariant } from '@dxos/invariant';
28
28
  import { PublicKey } from '@dxos/keys';
29
29
  import { log } from '@dxos/log';
30
30
 
@@ -489,7 +489,7 @@ export class SheetModel extends Resource {
489
489
  * Map from indices to A1 notation.
490
490
  */
491
491
  mapFormulaIndicesToRefs(formula: string): string {
492
- invariant(isFormula(formula));
492
+ assertArgument(isFormula(formula), 'formula');
493
493
  return formula.replace(/([a-zA-Z0-9]+)@([a-zA-Z0-9]+)/g, (idx) => {
494
494
  return addressToA1Notation(addressFromIndex(this._sheet, idx));
495
495
  });
@@ -15,7 +15,7 @@ test.describe('plugin-sheet', () => {
15
15
 
16
16
  test.beforeEach(async ({ browser }) => {
17
17
  const setup = await setupPage(browser, {
18
- url: storybookUrl('plugins-plugin-sheet-containers-sheetcontainer--spec', 9005),
18
+ url: storybookUrl('plugins-plugin-sheet-containers-sheetarticle--spec', 9005),
19
19
  viewportSize: { width: 1280, height: 720 },
20
20
  });
21
21
  page = setup.page;
@@ -35,7 +35,11 @@ describe('test', () => {
35
35
  // - ERROR "Identifier 'Buffer' has already been declared" if { nodeExternal: true }
36
36
  const space = await client.spaces.create();
37
37
  const fn = space.db.add(
38
- Obj.make(Operation.PersistentOperation, { name: 'test', version: '0.0.1', binding: 'HELLO' }),
38
+ Obj.make(Operation.PersistentOperation, {
39
+ [Obj.Meta]: { key: 'com.example.function.test', version: '0.0.1' },
40
+ name: 'test',
41
+ binding: 'HELLO',
42
+ }),
39
43
  );
40
44
  expect(fn).to.exist;
41
45
  });
@@ -2,6 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { Type } from '@dxos/echo';
5
6
  import { type Resource } from '@dxos/react-ui';
6
7
 
7
8
  import { meta } from '#meta';
@@ -10,7 +11,7 @@ import { Sheet } from '#types';
10
11
  export const translations = [
11
12
  {
12
13
  'en-US': {
13
- [Sheet.Sheet.typename]: {
14
+ [Type.getTypename(Sheet.Sheet)]: {
14
15
  'typename.label': 'Sheet',
15
16
  'typename.label_zero': 'Sheets',
16
17
  'typename.label_one': 'Sheet',
@@ -7,7 +7,7 @@
7
7
  import * as Schema from 'effect/Schema';
8
8
 
9
9
  import { addressFromA1Notation, isFormula } from '@dxos/compute-hyperformula';
10
- import { Annotation, Obj, Type } from '@dxos/echo';
10
+ import { DXN, Annotation, Obj, Type } from '@dxos/echo';
11
11
  import { FormInputAnnotation } from '@dxos/echo/internal';
12
12
 
13
13
  import { addressToIndex, initialize, mapFormulaRefsToIndices } from './util';
@@ -63,17 +63,11 @@ export const Sheet = Schema.Struct({
63
63
  // Cell formatting referenced by indexed range.
64
64
  ranges: Schema.Array(Range).pipe(FormInputAnnotation.set(false)),
65
65
  }).pipe(
66
- Type.object({
67
- typename: 'org.dxos.type.sheet',
68
- version: '0.1.0',
69
- }),
70
- Annotation.IconAnnotation.set({
71
- icon: 'ph--grid-nine--regular',
72
- hue: 'indigo',
73
- }),
66
+ Annotation.IconAnnotation.set({ icon: 'ph--grid-nine--regular', hue: 'indigo' }),
67
+ Type.makeObject(DXN.make('org.dxos.type.sheet', '0.1.0')),
74
68
  );
75
69
 
76
- export interface Sheet extends Schema.Schema.Type<typeof Sheet> {}
70
+ export type Sheet = Type.InstanceType<typeof Sheet>;
77
71
 
78
72
  export type SheetProps = {
79
73
  name?: string;
@@ -8,16 +8,17 @@ import * as Schema from 'effect/Schema';
8
8
 
9
9
  import { Capability } from '@dxos/app-framework';
10
10
  import { Operation } from '@dxos/compute';
11
+ import { DXN } from '@dxos/keys';
11
12
 
12
13
  import { meta } from '#meta';
13
14
 
14
- const SHEET_OPERATION = `${meta.id}.operation`;
15
+ const makeKey = (name: string) => DXN.make(`${meta.id}.operation.${name}`);
15
16
 
16
17
  // TODO(wittjosiah): Factor out. This is `DxGridAxis` from `@dxos/react-ui-grid`.
17
18
  const Axis = Schema.Union(Schema.Literal('row'), Schema.Literal('col'));
18
19
 
19
20
  export const InsertAxis = Operation.make({
20
- meta: { key: `${SHEET_OPERATION}.axis-insert`, name: 'Insert Axis' },
21
+ meta: { key: makeKey('axisInsert'), name: 'Insert Axis', icon: 'ph--plus--regular' },
21
22
  input: Schema.Struct({
22
23
  model: Schema.Any,
23
24
  axis: Axis,
@@ -38,7 +39,7 @@ export const DropAxisOutput = Schema.Struct({
38
39
  export type DropAxisOutput = Schema.Schema.Type<typeof DropAxisOutput>;
39
40
 
40
41
  export const DropAxis = Operation.make({
41
- meta: { key: `${SHEET_OPERATION}.axis-drop`, name: 'Drop Axis' },
42
+ meta: { key: makeKey('axisDrop'), name: 'Drop Axis', icon: 'ph--trash--regular' },
42
43
  input: Schema.Struct({
43
44
  model: Schema.Any,
44
45
  axis: Axis,
@@ -48,7 +49,11 @@ export const DropAxis = Operation.make({
48
49
  });
49
50
 
50
51
  export const ScrollToAnchor = Operation.make({
51
- meta: { key: `${SHEET_OPERATION}.scroll-to-anchor`, name: 'Scroll To Anchor' },
52
+ meta: {
53
+ key: makeKey('scrollToAnchor'),
54
+ name: 'Scroll To Anchor',
55
+ icon: 'ph--anchor-simple--regular',
56
+ },
52
57
  services: [Capability.Service],
53
58
  input: Schema.Struct({
54
59
  subject: Schema.String.annotations({ description: 'Attendable ID of the sheet.' }),
@@ -62,7 +67,11 @@ export const ScrollToAnchor = Operation.make({
62
67
  * Restore a dropped axis (inverse of DropAxis).
63
68
  */
64
69
  export const RestoreAxis = Operation.make({
65
- meta: { key: `${SHEET_OPERATION}.restore-axis`, name: 'Restore Axis' },
70
+ meta: {
71
+ key: makeKey('restoreAxis'),
72
+ name: 'Restore Axis',
73
+ icon: 'ph--clock-counter-clockwise--regular',
74
+ },
66
75
  input: Schema.Struct({
67
76
  model: Schema.Any.annotations({ description: 'The sheet model.' }),
68
77
  axis: Axis.annotations({ description: 'The axis type (row or col).' }),
package/src/types/util.ts CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from '@dxos/compute-hyperformula';
13
13
  import { randomBytes } from '@dxos/crypto';
14
14
  import { type Obj } from '@dxos/echo';
15
- import { invariant } from '@dxos/invariant';
15
+ import { assertArgument } from '@dxos/invariant';
16
16
 
17
17
  import { type Sheet } from '../types';
18
18
 
@@ -122,7 +122,7 @@ export const compareIndexPositions = (sheet: Sheet.Sheet, indexA: string, indexB
122
122
  * Map from A1 notation to indices.
123
123
  */
124
124
  export const mapFormulaRefsToIndices = (sheet: Sheet.Sheet, formula: string): string => {
125
- invariant(isFormula(formula));
125
+ assertArgument(isFormula(formula), 'formula');
126
126
  return formula.replace(/([a-zA-Z]+)([0-9]+)/g, (match) => {
127
127
  return addressToIndex(sheet, addressFromA1Notation(match));
128
128
  });
@@ -132,7 +132,7 @@ export const mapFormulaRefsToIndices = (sheet: Sheet.Sheet, formula: string): st
132
132
  * Map from indices to A1 notation.
133
133
  */
134
134
  export const mapFormulaIndicesToRefs = (sheet: Sheet.Sheet, formula: string): string => {
135
- invariant(isFormula(formula));
135
+ assertArgument(isFormula(formula), 'formula');
136
136
  return formula.replace(/([a-zA-Z0-9]+)@([a-zA-Z0-9]+)/g, (idx) => {
137
137
  return addressToA1Notation(addressFromIndex(sheet, idx));
138
138
  });
@@ -0,0 +1,10 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ //
4
+ // Copyright 2026 DXOS.org
5
+ //
6
+
7
+ declare module '*.mdl?raw' {
8
+ const content: string;
9
+ export default content;
10
+ }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/containers/SheetContainer/SheetContainer.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type AppSurface } from '@dxos/app-toolkit/ui';\nimport { type ComputeGraphRegistry } from '@dxos/compute-hyperformula';\nimport { type Space } from '@dxos/react-client/echo';\nimport { Panel } from '@dxos/react-ui';\n\nimport { ComputeGraphContextProvider, Sheet, useComputeGraph } from '#components';\nimport { type Sheet as SheetType } from '#types';\n\nexport type SheetContainerProps = AppSurface.ObjectArticleProps<\n SheetType.Sheet,\n {\n space: Space;\n registry: ComputeGraphRegistry;\n ignoreAttention?: boolean;\n }\n>;\n\nexport const SheetContainer = ({ registry, ...props }: SheetContainerProps) => (\n <ComputeGraphContextProvider registry={registry}>\n <SheetContainerInner {...props} />\n </ComputeGraphContextProvider>\n);\n\nconst SheetContainerInner = ({\n role,\n subject: sheet,\n attendableId,\n space,\n ignoreAttention,\n}: Omit<SheetContainerProps, 'registry'>) => {\n const graph = useComputeGraph(space);\n if (!graph) {\n return null;\n }\n\n return (\n <Sheet.Root graph={graph} sheet={sheet} attendableId={attendableId!} ignoreAttention={ignoreAttention}>\n <Panel.Root classNames={role === 'section' && 'aspect-aquare'}>\n <Panel.Toolbar asChild>\n <Sheet.Toolbar />\n </Panel.Toolbar>\n <Panel.Content asChild>\n <Sheet.Content />\n </Panel.Content>\n <Panel.Statusbar asChild>\n <Sheet.Statusbar />\n </Panel.Statusbar>\n </Panel.Root>\n </Sheet.Root>\n );\n};\n"],
5
- "mappings": ";;;AAIA,OAAOA,WAAW;AAKlB,SAASC,aAAa;AAEtB,SAASC,6BAA6BC,OAAOC,uBAAuB;AAY7D,IAAMC,iBAAiB,CAAC,EAAEC,UAAU,GAAGC,MAAAA,MAC5C,sBAAA,cAACL,6BAAAA;EAA4BI;GAC3B,sBAAA,cAACE,qBAAwBD,KAAAA,CAAAA;AAI7B,IAAMC,sBAAsB,CAAC,EAC3BC,MACAC,SAASC,OACTC,cACAC,OACAC,gBAAe,MACuB;AACtC,QAAMC,QAAQX,gBAAgBS,KAAAA;AAC9B,MAAI,CAACE,OAAO;AACV,WAAO;EACT;AAEA,SACE,sBAAA,cAACZ,MAAMa,MAAI;IAACD;IAAcJ;IAAcC;IAA6BE;KACnE,sBAAA,cAACb,MAAMe,MAAI;IAACC,YAAYR,SAAS,aAAa;KAC5C,sBAAA,cAACR,MAAMiB,SAAO;IAACC,SAAAA;KACb,sBAAA,cAAChB,MAAMe,SAAO,IAAA,CAAA,GAEhB,sBAAA,cAACjB,MAAMmB,SAAO;IAACD,SAAAA;KACb,sBAAA,cAAChB,MAAMiB,SAAO,IAAA,CAAA,GAEhB,sBAAA,cAACnB,MAAMoB,WAAS;IAACF,SAAAA;KACf,sBAAA,cAAChB,MAAMkB,WAAS,IAAA,CAAA,CAAA,CAAA;AAK1B;",
6
- "names": ["React", "Panel", "ComputeGraphContextProvider", "Sheet", "useComputeGraph", "SheetContainer", "registry", "props", "SheetContainerInner", "role", "subject", "sheet", "attendableId", "space", "ignoreAttention", "graph", "Root", "classNames", "Toolbar", "asChild", "Content", "Statusbar"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/anchor-sort.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Relation } from '@dxos/echo';\n\nimport { Sheet, compareIndexPositions } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(AppCapabilities.AnchorSort, {\n key: Sheet.Sheet.typename,\n sort: (anchorA, anchorB) => {\n const sheet = Relation.getTarget(anchorA) as Sheet.Sheet;\n if (sheet !== Relation.getTarget(anchorB)) {\n return 0;\n }\n\n return !anchorA.anchor || !anchorB.anchor ? 0 : compareIndexPositions(sheet, anchorA.anchor, anchorB.anchor);\n },\n }),\n ),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,gBAAgB;AAEzB,SAASC,OAAOC,6BAA6B;AAE7C,IAAA,sBAAeJ,WAAWK,WAAW,MAC5BC,eACLN,WAAWO,YAAYN,gBAAgBO,YAAY;EACjDC,KAAKN,MAAMA,MAAMO;EACjBC,MAAM,CAACC,SAASC,YAAAA;AACd,UAAMC,QAAQZ,SAASa,UAAUH,OAAAA;AACjC,QAAIE,UAAUZ,SAASa,UAAUF,OAAAA,GAAU;AACzC,aAAO;IACT;AAEA,WAAO,CAACD,QAAQI,UAAU,CAACH,QAAQG,SAAS,IAAIZ,sBAAsBU,OAAOF,QAAQI,QAAQH,QAAQG,MAAM;EAC7G;AACF,CAAA,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "AppCapabilities", "Relation", "Sheet", "compareIndexPositions", "makeModule", "succeed", "contributes", "AnchorSort", "key", "typename", "sort", "anchorA", "anchorB", "sheet", "getTarget", "anchor"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/sheet-range-types.ts", "../../../src/types/types.ts", "../../../src/types/Sheet.ts", "../../../src/types/util.ts", "../../../src/types/SheetCapabilities.ts", "../../../src/types/SheetOperation.ts"],
4
- "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { type ClassNameValue } from '@dxos/react-ui';\n\nimport { type Sheet } from '../types';\n\nexport const alignKey = 'alignment';\nexport type AlignKey = typeof alignKey;\nexport type AlignValue = 'start' | 'center' | 'end';\n\nexport const commentKey = 'comment';\nexport type CommentKey = typeof commentKey;\nexport type CommentValue = string;\n\nexport const styleKey = 'style';\nexport type StyleKey = typeof styleKey;\nexport type StyleValue = 'highlight' | 'softwrap';\n\n// TODO(burdon): Reconcile with plugin-table.\nexport const cellClassNameForRange = ({ key, value }: Sheet.Sheet['ranges'][number]): ClassNameValue => {\n switch (key) {\n case alignKey:\n switch (value) {\n case 'start':\n return 'text-start';\n case 'center':\n return 'text-center';\n case 'end':\n return 'text-end';\n default:\n return undefined;\n }\n\n case commentKey:\n return 'bg-grid-comment';\n\n case styleKey:\n switch (value) {\n case 'highlight':\n return 'bg-grid-highlight!';\n case 'softwrap':\n return 'whitespace-normal!';\n default:\n return undefined;\n }\n\n default:\n return undefined;\n }\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport * as Sheet from './Sheet';\n\n// TODO(wittjosiah): Factor out. This is `DxGridAxis` from `@dxos/react-ui-grid`.\nconst ActionAxis = Schema.Union(Schema.Literal('row'), Schema.Literal('col'));\n\nexport namespace SheetAction {\n export const RestoreAxis = Schema.Struct({\n axis: ActionAxis,\n axisIndex: Schema.String,\n index: Schema.Number,\n axisMeta: Sheet.RowColumnMeta,\n values: Schema.Array(Schema.Any),\n });\n\n export type RestoreAxis = Schema.Schema.Type<typeof RestoreAxis>;\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { addressFromA1Notation, isFormula } from '@dxos/compute-hyperformula';\nimport { Annotation, Obj, Type } from '@dxos/echo';\nimport { FormInputAnnotation } from '@dxos/echo/internal';\n\nimport { addressToIndex, initialize, mapFormulaRefsToIndices } from './util';\n\nexport type SheetSize = {\n rows: number;\n columns: number;\n};\n\nexport const CellValue = Schema.Struct({\n // TODO(burdon): How to store dates (datetime, date, time), percentages, etc.\n // Consider import/export; natural access for other plugins. Special handling for currency (precision).\n // TODO(burdon): Automerge (long string) or short string or number.\n value: Schema.Any,\n});\n\nexport type CellValue = Schema.Schema.Type<typeof CellValue>;\n\n// TODO(burdon): IMPORTANT: Reconcile with Field definition.\nexport const Range = Schema.Struct({\n range: Schema.String,\n key: Schema.String,\n value: Schema.String,\n});\n\nexport type Range = Schema.Schema.Type<typeof Range>;\n\n// TODO(burdon): Visibility, locked, frozen, etc.\nexport const RowColumnMeta = Schema.Struct({\n size: Schema.optional(Schema.Number),\n});\n\n// TODO(burdon): Reconcile col/column (across packages).\n// TODO(burdon): Index to all updates when rows/columns are inserted/deleted.\nexport const Sheet = Schema.Struct({\n name: Schema.optional(Schema.String),\n\n // Sparse map of cells referenced by index.\n cells: Schema.Record({ key: Schema.String, value: CellValue }).pipe(FormInputAnnotation.set(false)),\n\n // Ordered row indices.\n rows: Schema.Array(Schema.String).pipe(FormInputAnnotation.set(false)),\n\n // Ordered column indices.\n columns: Schema.Array(Schema.String).pipe(FormInputAnnotation.set(false)),\n\n // Row metadata referenced by index.\n rowMeta: Schema.Record({ key: Schema.String, value: RowColumnMeta }).pipe(FormInputAnnotation.set(false)),\n\n // Column metadata referenced by index.\n columnMeta: Schema.Record({ key: Schema.String, value: RowColumnMeta }).pipe(FormInputAnnotation.set(false)),\n\n // Cell formatting referenced by indexed range.\n ranges: Schema.Array(Range).pipe(FormInputAnnotation.set(false)),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.sheet',\n version: '0.1.0',\n }),\n Annotation.IconAnnotation.set({\n icon: 'ph--grid-nine--regular',\n hue: 'indigo',\n }),\n);\n\nexport interface Sheet extends Schema.Schema.Type<typeof Sheet> {}\n\nexport type SheetProps = {\n name?: string;\n cells?: Record<string, CellValue>;\n} & Partial<SheetSize>;\n\nexport const make = ({ name, cells = {}, ...size }: SheetProps = {}) => {\n const sheet = Obj.make(Sheet, { name, cells: {}, rows: [], columns: [], rowMeta: {}, columnMeta: {}, ranges: [] });\n\n // Initialize and set cells within Obj.update to satisfy change context requirements.\n Obj.update(sheet, (sheet) => {\n initialize(sheet, size);\n\n if (cells) {\n Object.entries(cells).forEach(([key, { value }]) => {\n const idx = addressToIndex(sheet, addressFromA1Notation(key));\n if (isFormula(value)) {\n value = mapFormulaRefsToIndices(sheet, value);\n }\n\n sheet.cells[idx] = { value };\n });\n }\n });\n\n return sheet;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport {\n type CellAddress,\n type CellRange,\n type CompleteCellRange,\n addressFromA1Notation,\n addressToA1Notation,\n isFormula,\n} from '@dxos/compute-hyperformula';\nimport { randomBytes } from '@dxos/crypto';\nimport { type Obj } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\n\nimport { type Sheet } from '../types';\n\nexport const MAX_ROWS = 500;\nexport const MAX_COLS = 676; // 26^2;\n\nexport const DEFAULT_ROWS = 50;\nexport const DEFAULT_COLS = 26;\n\n// TODO(burdon): Factor out from dxos/protocols to new common package.\nexport class ApiError extends Error {}\n\nexport class ReadonlyException extends ApiError {}\n\nexport class RangeException extends ApiError {\n constructor(n: number) {\n super();\n }\n}\n\n/**\n * With a string length of 8, the chance of a collision is 0.02% for a sheet with 10,000 strings.\n */\nexport const createIndex = (length = 8): string => {\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n const charactersLength = characters.length;\n const randomBuffer = randomBytes(length);\n return Array.from(randomBuffer, (byte) => characters[byte % charactersLength]).join('');\n};\n\nexport const createIndices = (length: number): string[] => Array.from({ length }).map(() => createIndex());\n\nexport const insertIndices = (indices: string[], i: number, n: number, max: number) => {\n if (i + n > max) {\n throw new RangeException(i + n);\n }\n\n const idx = createIndices(n);\n indices.splice(i, 0, ...idx);\n return idx;\n};\n\nexport const initialize = (\n sheet: Obj.Mutable<Sheet.Sheet>,\n { rows = DEFAULT_ROWS, columns = DEFAULT_COLS }: Partial<Sheet.SheetSize> = {},\n) => {\n if (!sheet.rows.length) {\n insertIndices(sheet.rows, 0, rows, MAX_ROWS);\n }\n if (!sheet.columns.length) {\n insertIndices(sheet.columns, 0, columns, MAX_COLS);\n }\n};\n\n/**\n * E.g., \"A1\" => \"CA2@CB3\".\n */\nexport const addressToIndex = (sheet: Sheet.Sheet, cell: CellAddress): string => {\n return `${sheet.columns[cell.col]}@${sheet.rows[cell.row]}`;\n};\n\n/**\n * E.g., \"CA2@CB3\" => \"A1\".\n */\nexport const addressFromIndex = (sheet: Sheet.Sheet, idx: string): CellAddress => {\n const [column, row] = idx.split('@');\n return {\n col: sheet.columns.indexOf(column),\n row: sheet.rows.indexOf(row),\n };\n};\n\n/**\n * E.g., \"A1:B2\" => \"CA2@CB3:CC4@CD5\".\n */\nexport const rangeToIndex = (sheet: Sheet.Sheet, range: CellRange): string => {\n return [range.from, range.to ?? range.from].map((cell) => addressToIndex(sheet, cell)).join(':');\n};\n\n/**\n * E.g., \"CA2@CB3:CC4@CD5\" => \"A1:B2\".\n */\nexport const rangeFromIndex = (sheet: Sheet.Sheet, idx: string): CompleteCellRange => {\n const [from, to] = idx.split(':').map((index) => addressFromIndex(sheet, index));\n return { from, to };\n};\n\n/**\n * Compares the positions of two cell indexes in a sheet.\n * Sorts primarily by row, then by column if rows are equal.\n */\nexport const compareIndexPositions = (sheet: Sheet.Sheet, indexA: string, indexB: string): number => {\n const { row: rowA, col: columnA } = addressFromIndex(sheet, indexA);\n const { row: rowB, col: columnB } = addressFromIndex(sheet, indexB);\n\n // Sort by row first, then by column.\n if (rowA !== rowB) {\n return rowA - rowB;\n } else {\n return columnA - columnB;\n }\n};\n\n// TODO(burdon): Tests.\n\n/**\n * Map from A1 notation to indices.\n */\nexport const mapFormulaRefsToIndices = (sheet: Sheet.Sheet, formula: string): string => {\n invariant(isFormula(formula));\n return formula.replace(/([a-zA-Z]+)([0-9]+)/g, (match) => {\n return addressToIndex(sheet, addressFromA1Notation(match));\n });\n};\n\n/**\n * Map from indices to A1 notation.\n */\nexport const mapFormulaIndicesToRefs = (sheet: Sheet.Sheet, formula: string): string => {\n invariant(isFormula(formula));\n return formula.replace(/([a-zA-Z0-9]+)@([a-zA-Z0-9]+)/g, (idx) => {\n return addressToA1Notation(addressFromIndex(sheet, idx));\n });\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport { Capability } from '@dxos/app-framework';\nimport { type ComputeGraphRegistry as ComputeGraphRegistryType } from '@dxos/compute-hyperformula';\nimport { type DxGridElement, type GridContentProps } from '@dxos/react-ui-grid';\n\nimport { meta } from '#meta';\n\nexport type GridEntry = { grid: DxGridElement; setActiveRefs: (refs: GridContentProps['activeRefs']) => void };\n\nexport type GridRegistry = {\n register: (attendableId: string, grid: DxGridElement, setActiveRefs: GridEntry['setActiveRefs']) => void;\n unregister: (attendableId: string) => void;\n get: (attendableId: string) => GridEntry | undefined;\n};\n\nexport const ComputeGraphRegistry = Capability.make<ComputeGraphRegistryType>(\n `${meta.id}.capability.compute-graph-registry`,\n);\n\n/** Registry of active grid instances keyed by attendable ID. */\nexport const GridInstances = Capability.make<GridRegistry>(`${meta.id}.capability.grid-instances`);\n", "//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nconst SHEET_OPERATION = `${meta.id}.operation`;\n\n// TODO(wittjosiah): Factor out. This is `DxGridAxis` from `@dxos/react-ui-grid`.\nconst Axis = Schema.Union(Schema.Literal('row'), Schema.Literal('col'));\n\nexport const InsertAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}.axis-insert`, name: 'Insert Axis' },\n input: Schema.Struct({\n model: Schema.Any,\n axis: Axis,\n index: Schema.Number,\n count: Schema.optional(Schema.Number),\n }),\n output: Schema.Void,\n});\n\nexport const DropAxisOutput = Schema.Struct({\n axis: Axis.annotations({ description: 'The axis type (row or col).' }),\n axisIndex: Schema.String.annotations({ description: 'The dropped axis index.' }),\n index: Schema.Number.annotations({ description: 'The position the axis was at.' }),\n axisMeta: Schema.Any.annotations({ description: 'The row/column metadata.' }),\n values: Schema.Array(Schema.Any).annotations({ description: 'The cell values that were dropped.' }),\n});\n\nexport type DropAxisOutput = Schema.Schema.Type<typeof DropAxisOutput>;\n\nexport const DropAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}.axis-drop`, name: 'Drop Axis' },\n input: Schema.Struct({\n model: Schema.Any,\n axis: Axis,\n axisIndex: Schema.String,\n }),\n output: DropAxisOutput,\n});\n\nexport const ScrollToAnchor = Operation.make({\n meta: { key: `${SHEET_OPERATION}.scroll-to-anchor`, name: 'Scroll To Anchor' },\n services: [Capability.Service],\n input: Schema.Struct({\n subject: Schema.String.annotations({ description: 'Attendable ID of the sheet.' }),\n cursor: Schema.String.annotations({ description: 'Cell range coordinates.' }),\n ref: Schema.optional(Schema.Any.annotations({ description: 'Active refs for highlighting.' })),\n }),\n output: Schema.Void,\n});\n\n/**\n * Restore a dropped axis (inverse of DropAxis).\n */\nexport const RestoreAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}.restore-axis`, name: 'Restore Axis' },\n input: Schema.Struct({\n model: Schema.Any.annotations({ description: 'The sheet model.' }),\n axis: Axis.annotations({ description: 'The axis type (row or col).' }),\n axisIndex: Schema.String.annotations({ description: 'The axis index to restore.' }),\n index: Schema.Number.annotations({ description: 'The position to restore at.' }),\n axisMeta: Schema.Any.annotations({ description: 'The row/column metadata.' }),\n values: Schema.Array(Schema.Any).annotations({ description: 'The cell values to restore.' }),\n }),\n output: Schema.Void,\n});\n"],
5
- "mappings": ";;;;;AAQO,IAAMA,WAAW;AAIjB,IAAMC,aAAa;AAInB,IAAMC,WAAW;AAKjB,IAAMC,wBAAwB,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ACV,CAAA;AAEO,IAAMS,iBAAiB/B,UAAUQ,KAAK;EAC3CP,MAAM;IAAEQ,KAAK,GAAGP,eAAAA;IAAoCQ,MAAM;EAAmB;EAC7EsB,UAAU;IAACjC,YAAWkC;;EACtBtB,OAAcC,eAAO;IACnBsB,SAAgBR,eAAOH,YAAY;MAAEC,aAAa;IAA8B,CAAA;IAChFW,QAAeT,eAAOH,YAAY;MAAEC,aAAa;IAA0B,CAAA;IAC3EY,KAAYjB,iBAAgBL,YAAIS,YAAY;MAAEC,aAAa;IAAgC,CAAA,CAAA;EAC7F,CAAA;EACAJ,QAAeC;AACjB,CAAA;AAKO,IAAMgB,cAAcrC,UAAUQ,KAAK;EACxCP,MAAM;IAAEQ,KAAK,GAAGP,eAAAA;IAAgCQ,MAAM;EAAe;EACrEC,OAAcC,eAAO;IACnBC,OAAcC,YAAIS,YAAY;MAAEC,aAAa;IAAmB,CAAA;IAChET,MAAMX,KAAKmB,YAAY;MAAEC,aAAa;IAA8B,CAAA;IACpEC,WAAkBC,eAAOH,YAAY;MAAEC,aAAa;IAA6B,CAAA;IACjFR,OAAcC,eAAOM,YAAY;MAAEC,aAAa;IAA8B,CAAA;IAC9EG,UAAiBb,YAAIS,YAAY;MAAEC,aAAa;IAA2B,CAAA;IAC3EI,QAAeC,cAAaf,WAAG,EAAES,YAAY;MAAEC,aAAa;IAA8B,CAAA;EAC5F,CAAA;EACAJ,QAAeC;AACjB,CAAA;",
6
- "names": ["alignKey", "commentKey", "styleKey", "cellClassNameForRange", "key", "value", "undefined", "Schema", "Schema", "addressFromA1Notation", "isFormula", "Annotation", "Obj", "Type", "FormInputAnnotation", "addressFromA1Notation", "addressToA1Notation", "isFormula", "randomBytes", "invariant", "MAX_ROWS", "DEFAULT_ROWS", "DEFAULT_COLS", "ApiError", "ReadonlyException", "RangeException", "charactersLength", "characters", "length", "randomBuffer", "byte", "createIndices", "Array", "map", "createIndex", "i", "n", "idx", "indices", "insertIndices", "sheet", "col", "columns", "indexOf", "column", "row", "range", "from", "cell", "to", "rowB", "addressFromIndex", "indexB", "rowA", "columnA", "formula", "match", "addressToIndex", "CellValue", "Struct", "value", "Any", "Range", "range", "String", "key", "RowColumnMeta", "size", "optional", "Number", "Sheet", "name", "cells", "Record", "pipe", "FormInputAnnotation", "set", "rows", "Array", "columns", "rowMeta", "columnMeta", "ranges", "Type", "object", "typename", "version", "Annotation", "IconAnnotation", "icon", "hue", "make", "sheet", "Obj", "update", "initialize", "Object", "entries", "forEach", "idx", "addressToIndex", "addressFromA1Notation", "isFormula", "mapFormulaRefsToIndices", "ActionAxis", "Union", "Literal", "SheetAction", "RestoreAxis", "Struct", "axis", "axisIndex", "String", "index", "Number", "axisMeta", "RowColumnMeta", "values", "Array", "Any", "Capability", "meta", "ComputeGraphRegistry", "make", "id", "GridInstances", "Schema", "Capability", "Operation", "meta", "SHEET_OPERATION", "id", "Axis", "Union", "Literal", "InsertAxis", "make", "key", "name", "input", "Struct", "model", "Any", "axis", "index", "Number", "count", "optional", "output", "Void", "DropAxisOutput", "annotations", "description", "axisIndex", "String", "axisMeta", "values", "Array", "DropAxis", "ScrollToAnchor", "services", "Service", "subject", "cursor", "ref", "RestoreAxis"]
7
- }
@@ -1,8 +0,0 @@
1
- // src/operations/index.ts
2
- import { OperationHandlerSet } from "@dxos/compute";
3
- var SheetOperationHandlerSet = OperationHandlerSet.lazy(() => import("./drop-axis-G6UOXG54.mjs"), () => import("./insert-axis-ZFFNG22G.mjs"), () => import("./restore-axis-44DM6N54.mjs"), () => import("./scroll-to-anchor-WHX3HJC7.mjs"));
4
-
5
- export {
6
- SheetOperationHandlerSet
7
- };
8
- //# sourceMappingURL=chunk-YFHTB6MX.mjs.map
@@ -1,21 +0,0 @@
1
- // src/meta.ts
2
- import { trim } from "@dxos/util";
3
- var meta = {
4
- id: "org.dxos.plugin.sheet",
5
- name: "Sheet",
6
- description: trim`
7
- Full-featured spreadsheet application with over 400 built-in formulas for calculations and data analysis.
8
- Create custom JavaScript functions and integrate with AI agents for advanced automation.
9
- `,
10
- icon: "ph--grid-nine--regular",
11
- iconHue: "indigo",
12
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet",
13
- screenshots: [
14
- "https://dxos.network/plugin-details-sheet-dark.png"
15
- ]
16
- };
17
-
18
- export {
19
- meta
20
- };
21
- //# sourceMappingURL=chunk-ZWOQCLH7.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.sheet',\n name: 'Sheet',\n description: trim`\n Full-featured spreadsheet application with over 400 built-in formulas for calculations and data analysis.\n Create custom JavaScript functions and integrate with AI agents for advanced automation.\n `,\n icon: 'ph--grid-nine--regular',\n iconHue: 'indigo',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',\n screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],\n};\n"],
5
- "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
6
- "names": ["trim", "meta", "id", "name", "description", "icon", "iconHue", "source", "screenshots"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/comment-config.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\n// eslint-disable-next-line unused-imports/no-unused-imports\nimport type { Operation } from '@dxos/compute';\n\nimport { SheetOperation } from '#types';\nimport { Sheet } from '#types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const config: AppCapabilities.CommentConfig = {\n id: Sheet.Sheet.typename,\n comments: 'anchored',\n scrollToAnchor: SheetOperation.ScrollToAnchor,\n };\n return Capability.contributes(AppCapabilities.CommentConfig, config);\n }),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAIhC,SAASC,sBAAsB;AAC/B,SAASC,aAAa;AAEtB,IAAA,yBAAeH,WAAWI,WACjBC,kBAAW,aAAA;AAChB,QAAMC,SAAwC;IAC5CC,IAAIJ,MAAMA,MAAMK;IAChBC,UAAU;IACVC,gBAAgBR,eAAeS;EACjC;AACA,SAAOX,WAAWY,YAAYX,gBAAgBY,eAAeP,MAAAA;AAC/D,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "AppCapabilities", "SheetOperation", "Sheet", "makeModule", "fnUntraced", "config", "id", "typename", "comments", "scrollToAnchor", "ScrollToAnchor", "contributes", "CommentConfig"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/compute-graph-registry.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AutomationCapabilities } from '@dxos/plugin-automation';\n\nimport { SheetCapabilities } from '#types';\n\n// Locally declare the Automation ComputeRuntime capability by ID to avoid direct import dependency.\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const computeRuntimeResolver = yield* Capability.get(AutomationCapabilities.ComputeRuntime);\n // TODO(wittjosiah): This can probably be a module level import now due to lazy capability loading.\n // Async import removes direct dependency on hyperformula.\n const { defaultPlugins, ComputeGraphRegistry } = yield* Effect.tryPromise(\n () => import('@dxos/compute-hyperformula'),\n );\n const computeGraphRegistry = new ComputeGraphRegistry({\n plugins: defaultPlugins,\n computeRuntime: computeRuntimeResolver,\n });\n\n return Capability.contributes(SheetCapabilities.ComputeGraphRegistry, computeGraphRegistry);\n }),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,8BAA8B;AAEvC,SAASC,yBAAyB;AAIlC,IAAA,iCAAeF,WAAWG,WACjBC,kBAAW,aAAA;AAChB,QAAMC,yBAAyB,OAAOL,WAAWM,IAAIL,uBAAuBM,cAAc;AAG1F,QAAM,EAAEC,gBAAgBC,qBAAoB,IAAK,OAAcC,kBAC7D,MAAM,OAAO,4BAAA,CAAA;AAEf,QAAMC,uBAAuB,IAAIF,qBAAqB;IACpDG,SAASJ;IACTK,gBAAgBR;EAClB,CAAA;AAEA,SAAOL,WAAWc,YAAYZ,kBAAkBO,sBAAsBE,oBAAAA;AACxE,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "AutomationCapabilities", "SheetCapabilities", "makeModule", "fnUntraced", "computeRuntimeResolver", "get", "ComputeRuntime", "defaultPlugins", "ComputeGraphRegistry", "tryPromise", "computeGraphRegistry", "plugins", "computeRuntime", "contributes"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/create-object.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { SpaceOperation } from '@dxos/plugin-space';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\n\nimport { Sheet } from '#types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {\n id: Sheet.Sheet.typename,\n createObject: (props, options) =>\n Effect.gen(function* () {\n const object = Sheet.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n }),\n });\n }),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,sBAAsB;AAC/B,SAASC,yBAAyB;AAElC,SAASC,aAAa;AAEtB,IAAA,wBAAeJ,WAAWK,WACjBC,kBAAW,aAAA;AAChB,SAAON,WAAWO,YAAYJ,kBAAkBK,mBAAmB;IACjEC,IAAIL,MAAMA,MAAMM;IAChBC,cAAc,CAACC,OAAOC,YACbC,WAAI,aAAA;AACT,YAAMC,SAASX,MAAMY,KAAKJ,KAAAA;AAC1B,aAAO,OAAOX,UAAUgB,OAAOf,eAAegB,WAAW;QACvDH;QACAI,QAAQN,QAAQM;QAChBC,QAAQ;QACRC,cAAcR,QAAQQ;MACxB,CAAA;IACF,CAAA;EACJ,CAAA;AACF,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "Operation", "SpaceOperation", "SpaceCapabilities", "Sheet", "makeModule", "fnUntraced", "contributes", "CreateObjectEntry", "id", "typename", "createObject", "props", "options", "gen", "object", "make", "invoke", "AddObject", "target", "hidden", "targetNodeId"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface, useCapability } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\nimport { getSpace } from '@dxos/react-client/echo';\n\nimport { RangeList, SheetContainer } from '#containers';\nimport { Sheet, SheetCapabilities } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'sheet',\n // TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.\n role: ['article', 'section'],\n filter: (data): data is { attendableId: string; subject: Sheet.Sheet } =>\n typeof data.attendableId === 'string' &&\n Obj.instanceOf(Sheet.Sheet, data.subject) &&\n !!getSpace(data.subject),\n component: ({ data, role }) => {\n const computeGraphRegistry = useCapability(SheetCapabilities.ComputeGraphRegistry);\n\n return (\n <SheetContainer\n role={role}\n subject={data.subject}\n attendableId={data.attendableId}\n space={getSpace(data.subject)!}\n registry={computeGraphRegistry}\n />\n );\n },\n }),\n Surface.create({\n id: 'object-properties',\n filter: AppSurface.object(AppSurface.ObjectProperties, Sheet.Sheet),\n component: ({ data }) => <RangeList sheet={data.subject} />,\n }),\n ]),\n ),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,SAASC,qBAAqB;AACvC,SAASC,kBAAkB;AAC3B,SAASC,WAAW;AACpB,SAASC,gBAAgB;AAEzB,SAASC,WAAWC,sBAAsB;AAC1C,SAASC,OAAOC,yBAAyB;AAEzC,IAAA,wBAAeT,WAAWU,WAAW,MAC5BC,eACLX,WAAWY,YAAYb,aAAac,cAAc;EAChDZ,QAAQa,OAAO;IACbC,IAAI;;IAEJC,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SACP,OAAOA,KAAKC,iBAAiB,YAC7Bf,IAAIgB,WAAWZ,MAAMA,OAAOU,KAAKG,OAAO,KACxC,CAAC,CAAChB,SAASa,KAAKG,OAAO;IACzBC,WAAW,CAAC,EAAEJ,MAAMF,KAAI,MAAE;AACxB,YAAMO,uBAAuBrB,cAAcO,kBAAkBe,oBAAoB;AAEjF,aACE,sBAAA,cAACjB,gBAAAA;QACCS;QACAK,SAASH,KAAKG;QACdF,cAAcD,KAAKC;QACnBM,OAAOpB,SAASa,KAAKG,OAAO;QAC5BK,UAAUH;;IAGhB;EACF,CAAA;EACAtB,QAAQa,OAAO;IACbC,IAAI;IACJE,QAAQd,WAAWwB,OAAOxB,WAAWyB,kBAAkBpB,MAAMA,KAAK;IAClEc,WAAW,CAAC,EAAEJ,KAAI,MAAO,sBAAA,cAACZ,WAAAA;MAAUuB,OAAOX,KAAKG;;EAClD,CAAA;CACD,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "useCapability", "AppSurface", "Obj", "getSpace", "RangeList", "SheetContainer", "Sheet", "SheetCapabilities", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "role", "filter", "data", "attendableId", "instanceOf", "subject", "component", "computeGraphRegistry", "ComputeGraphRegistry", "space", "registry", "object", "ObjectProperties", "sheet"]
7
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"SheetContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SheetContainer/SheetContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,KAAK,KAAK,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAC7D,SAAS,CAAC,KAAK,EACf;IACE,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CACF,CAAC;AAEF,eAAO,MAAM,cAAc,2BAA4B,mBAAmB,sBAIzE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SheetContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SheetContainer/SheetContainer.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAqB1C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B6B,CAAC;eAEzB,IAAI;AAEnB,eAAO,MAAM,OAAO,gCAqBnB,CAAC;AAEF,eAAO,MAAM,IAAI,gCA0BhB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { SheetContainer as default } from './SheetContainer';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/SheetContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,5 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- export { SheetContainer as default } from './SheetContainer';