@dxos/plugin-sheet 0.8.4-main.3eb6e50203 → 0.8.4-main.4a85c3132b

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 (156) hide show
  1. package/dist/lib/browser/RangeList-S3SHV7T6.mjs +53 -0
  2. package/dist/lib/browser/RangeList-S3SHV7T6.mjs.map +7 -0
  3. package/dist/lib/browser/{chunk-EDWHV64N.mjs → SheetContainer-I3NFVVDQ.mjs} +535 -203
  4. package/dist/lib/browser/SheetContainer-I3NFVVDQ.mjs.map +7 -0
  5. package/dist/lib/browser/{anchor-sort-AMMLA66W.mjs → anchor-sort-DZ3IHHJJ.mjs} +2 -2
  6. package/dist/lib/browser/{chunk-IFLWVS2V.mjs → chunk-NNWF7EKC.mjs} +10 -10
  7. package/dist/lib/browser/{chunk-IFLWVS2V.mjs.map → chunk-NNWF7EKC.mjs.map} +2 -2
  8. package/dist/lib/browser/{chunk-KE3AKN5W.mjs → chunk-S445OQGW.mjs} +5 -5
  9. package/dist/lib/browser/{chunk-KE3AKN5W.mjs.map → chunk-S445OQGW.mjs.map} +3 -3
  10. package/dist/lib/browser/{compute-graph-registry-RC5L7RE4.mjs → compute-graph-registry-W6HO2G3P.mjs} +2 -2
  11. package/dist/lib/browser/index.mjs +6 -6
  12. package/dist/lib/browser/{markdown-D2T2DOVX.mjs → markdown-S6GVLHB4.mjs} +3 -3
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/{operation-resolver-P2RX75DA.mjs → operation-resolver-Z4X4UWNR.mjs} +4 -4
  15. package/dist/lib/browser/operation-resolver-Z4X4UWNR.mjs.map +7 -0
  16. package/dist/lib/browser/{react-surface-45CRAB5G.mjs → react-surface-KIU6DGKW.mjs} +13 -13
  17. package/dist/lib/browser/react-surface-KIU6DGKW.mjs.map +7 -0
  18. package/dist/lib/browser/types/index.mjs +1 -1
  19. package/dist/lib/node-esm/RangeList-IB23OJK2.mjs +54 -0
  20. package/dist/lib/node-esm/RangeList-IB23OJK2.mjs.map +7 -0
  21. package/dist/lib/node-esm/{chunk-AYSEWH7N.mjs → SheetContainer-KUXNCSFP.mjs} +535 -203
  22. package/dist/lib/node-esm/SheetContainer-KUXNCSFP.mjs.map +7 -0
  23. package/dist/lib/node-esm/{anchor-sort-VHMBRX2E.mjs → anchor-sort-24OXMOSX.mjs} +2 -2
  24. package/dist/lib/node-esm/{chunk-PPOYR7DK.mjs → chunk-M52YLLWU.mjs} +10 -10
  25. package/dist/lib/node-esm/{chunk-PPOYR7DK.mjs.map → chunk-M52YLLWU.mjs.map} +2 -2
  26. package/dist/lib/node-esm/{chunk-6J5L47IB.mjs → chunk-NKZ3O4OR.mjs} +5 -5
  27. package/dist/lib/node-esm/{chunk-6J5L47IB.mjs.map → chunk-NKZ3O4OR.mjs.map} +3 -3
  28. package/dist/lib/node-esm/{compute-graph-registry-ZGXVLVGD.mjs → compute-graph-registry-2C3Y2RPQ.mjs} +2 -2
  29. package/dist/lib/node-esm/index.mjs +6 -6
  30. package/dist/lib/node-esm/{markdown-PTV72DLO.mjs → markdown-YT5KJTQT.mjs} +3 -3
  31. package/dist/lib/node-esm/meta.json +1 -1
  32. package/dist/lib/node-esm/{operation-resolver-WPIWQ5IO.mjs → operation-resolver-7VD2YXSQ.mjs} +4 -4
  33. package/dist/lib/node-esm/operation-resolver-7VD2YXSQ.mjs.map +7 -0
  34. package/dist/lib/node-esm/{react-surface-ITV2L6HK.mjs → react-surface-7FZAE3S7.mjs} +13 -13
  35. package/dist/lib/node-esm/react-surface-7FZAE3S7.mjs.map +7 -0
  36. package/dist/lib/node-esm/types/index.mjs +1 -1
  37. package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts +1 -1
  38. package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts +1 -1
  39. package/dist/types/src/capabilities/markdown/markdown.d.ts +1 -1
  40. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +1 -1
  41. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +1 -1
  42. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
  43. package/dist/types/src/components/Sheet/Sheet.d.ts +11 -0
  44. package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -0
  45. package/dist/types/src/components/Sheet/index.d.ts +2 -0
  46. package/dist/types/src/components/Sheet/index.d.ts.map +1 -0
  47. package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts.map +1 -0
  48. package/dist/types/src/components/SheetContent/SheetContent.d.ts +5 -0
  49. package/dist/types/src/components/SheetContent/SheetContent.d.ts.map +1 -0
  50. package/dist/types/src/components/{GridSheet/GridSheet.stories.d.ts → SheetContent/SheetContent.stories.d.ts} +2 -2
  51. package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts.map +1 -0
  52. package/dist/types/src/components/SheetContent/index.d.ts +2 -0
  53. package/dist/types/src/components/SheetContent/index.d.ts.map +1 -0
  54. package/dist/types/src/components/SheetContent/util.d.ts.map +1 -0
  55. package/dist/types/src/components/{SheetContext/SheetContext.d.ts → SheetRoot/SheetRoot.d.ts} +4 -4
  56. package/dist/types/src/components/SheetRoot/SheetRoot.d.ts.map +1 -0
  57. package/dist/types/src/components/SheetRoot/index.d.ts +2 -0
  58. package/dist/types/src/components/SheetRoot/index.d.ts.map +1 -0
  59. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts +5 -0
  60. package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts.map +1 -0
  61. package/dist/types/src/components/SheetStatusbar/index.d.ts +2 -0
  62. package/dist/types/src/components/SheetStatusbar/index.d.ts.map +1 -0
  63. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +6 -3
  64. package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
  65. package/dist/types/src/components/index.d.ts +1 -4
  66. package/dist/types/src/components/index.d.ts.map +1 -1
  67. package/dist/types/src/{components → containers}/RangeList/RangeList.d.ts.map +1 -1
  68. package/dist/types/src/containers/RangeList/index.d.ts +3 -0
  69. package/dist/types/src/containers/RangeList/index.d.ts.map +1 -0
  70. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts +12 -0
  71. package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts.map +1 -0
  72. package/dist/types/src/{components → containers}/SheetContainer/SheetContainer.stories.d.ts +1 -2
  73. package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
  74. package/dist/types/src/{components → containers}/SheetContainer/index.d.ts.map +1 -1
  75. package/dist/types/src/containers/index.d.ts +4 -0
  76. package/dist/types/src/containers/index.d.ts.map +1 -0
  77. package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
  78. package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
  79. package/dist/types/src/testing/testing.d.ts +1 -1
  80. package/dist/types/src/types/Sheet.d.ts +1 -1
  81. package/dist/types/src/types/types.d.ts +1 -1
  82. package/dist/types/tsconfig.tsbuildinfo +1 -1
  83. package/package.json +56 -57
  84. package/src/capabilities/operation-resolver/operation-resolver.ts +2 -2
  85. package/src/capabilities/react-surface/react-surface.tsx +7 -4
  86. package/src/components/ComputeGraph/compute-graph.stories.tsx +1 -1
  87. package/src/components/Sheet/Sheet.tsx +20 -0
  88. package/src/components/Sheet/index.ts +5 -0
  89. package/src/components/{GridSheet → SheetContent}/SheetCellEditor.stories.tsx +1 -1
  90. package/src/components/{GridSheet/GridSheet.stories.tsx → SheetContent/SheetContent.stories.tsx} +11 -10
  91. package/src/components/{GridSheet/GridSheet.tsx → SheetContent/SheetContent.tsx} +12 -9
  92. package/src/components/{RangeList → SheetContent}/index.ts +1 -1
  93. package/src/components/{GridSheet → SheetContent}/util.ts +3 -3
  94. package/src/components/{SheetContext/SheetContext.tsx → SheetRoot/SheetRoot.tsx} +36 -34
  95. package/src/components/{GridSheet → SheetRoot}/index.ts +1 -1
  96. package/src/components/{FunctionEditor/FunctionEditor.tsx → SheetStatusbar/SheetStatusbar.tsx} +11 -6
  97. package/src/components/{FunctionEditor → SheetStatusbar}/index.ts +1 -1
  98. package/src/components/SheetToolbar/SheetToolbar.stories.tsx +4 -4
  99. package/src/components/SheetToolbar/SheetToolbar.tsx +10 -9
  100. package/src/components/SheetToolbar/align.ts +3 -3
  101. package/src/components/SheetToolbar/style.ts +3 -3
  102. package/src/components/index.ts +1 -7
  103. package/src/{components → containers}/RangeList/RangeList.tsx +7 -5
  104. package/src/containers/RangeList/index.ts +7 -0
  105. package/src/{components → containers}/SheetContainer/SheetContainer.stories.tsx +11 -30
  106. package/src/containers/SheetContainer/SheetContainer.tsx +57 -0
  107. package/src/{components → containers}/SheetContainer/index.ts +1 -1
  108. package/src/containers/index.ts +8 -0
  109. package/src/extensions/compute.stories.tsx +11 -10
  110. package/src/extensions/editor/sheet-extension.ts +10 -10
  111. package/src/integrations/thread-ranges.ts +0 -1
  112. package/src/playwright/playwright.config.ts +1 -1
  113. package/src/playwright/sheet.spec.ts +1 -1
  114. package/src/types/sheet-range-types.ts +3 -3
  115. package/src/types/types.ts +1 -1
  116. package/dist/lib/browser/SheetContainer-6DNFC4TY.mjs +0 -397
  117. package/dist/lib/browser/SheetContainer-6DNFC4TY.mjs.map +0 -7
  118. package/dist/lib/browser/chunk-EDWHV64N.mjs.map +0 -7
  119. package/dist/lib/browser/operation-resolver-P2RX75DA.mjs.map +0 -7
  120. package/dist/lib/browser/react-surface-45CRAB5G.mjs.map +0 -7
  121. package/dist/lib/node-esm/SheetContainer-7H5R7M54.mjs +0 -398
  122. package/dist/lib/node-esm/SheetContainer-7H5R7M54.mjs.map +0 -7
  123. package/dist/lib/node-esm/chunk-AYSEWH7N.mjs.map +0 -7
  124. package/dist/lib/node-esm/operation-resolver-WPIWQ5IO.mjs.map +0 -7
  125. package/dist/lib/node-esm/react-surface-ITV2L6HK.mjs.map +0 -7
  126. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +0 -3
  127. package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +0 -1
  128. package/dist/types/src/components/FunctionEditor/index.d.ts +0 -2
  129. package/dist/types/src/components/FunctionEditor/index.d.ts.map +0 -1
  130. package/dist/types/src/components/GridSheet/GridSheet.d.ts +0 -3
  131. package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +0 -1
  132. package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +0 -1
  133. package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +0 -1
  134. package/dist/types/src/components/GridSheet/index.d.ts +0 -2
  135. package/dist/types/src/components/GridSheet/index.d.ts.map +0 -1
  136. package/dist/types/src/components/GridSheet/util.d.ts.map +0 -1
  137. package/dist/types/src/components/RangeList/index.d.ts +0 -2
  138. package/dist/types/src/components/RangeList/index.d.ts.map +0 -1
  139. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +0 -10
  140. package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +0 -1
  141. package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
  142. package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +0 -1
  143. package/dist/types/src/components/SheetContext/index.d.ts +0 -2
  144. package/dist/types/src/components/SheetContext/index.d.ts.map +0 -1
  145. package/src/components/SheetContainer/SheetContainer.tsx +0 -48
  146. package/src/components/SheetContext/index.ts +0 -5
  147. /package/dist/lib/browser/{anchor-sort-AMMLA66W.mjs.map → anchor-sort-DZ3IHHJJ.mjs.map} +0 -0
  148. /package/dist/lib/browser/{compute-graph-registry-RC5L7RE4.mjs.map → compute-graph-registry-W6HO2G3P.mjs.map} +0 -0
  149. /package/dist/lib/browser/{markdown-D2T2DOVX.mjs.map → markdown-S6GVLHB4.mjs.map} +0 -0
  150. /package/dist/lib/node-esm/{anchor-sort-VHMBRX2E.mjs.map → anchor-sort-24OXMOSX.mjs.map} +0 -0
  151. /package/dist/lib/node-esm/{compute-graph-registry-ZGXVLVGD.mjs.map → compute-graph-registry-2C3Y2RPQ.mjs.map} +0 -0
  152. /package/dist/lib/node-esm/{markdown-PTV72DLO.mjs.map → markdown-YT5KJTQT.mjs.map} +0 -0
  153. /package/dist/types/src/components/{GridSheet → SheetContent}/SheetCellEditor.stories.d.ts +0 -0
  154. /package/dist/types/src/components/{GridSheet → SheetContent}/util.d.ts +0 -0
  155. /package/dist/types/src/{components → containers}/RangeList/RangeList.d.ts +0 -0
  156. /package/dist/types/src/{components → containers}/SheetContainer/index.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types/capabilities.ts", "../../../src/meta.ts", "../../../src/types/Sheet.ts", "../../../src/types/util.ts", "../../../src/types/sheet-range-types.ts", "../../../src/types/types.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type ComputeGraphRegistry } from '@dxos/compute';\n\nimport { meta } from '../meta';\n\nexport namespace SheetCapabilities {\n export const ComputeGraphRegistry = Capability.make<ComputeGraphRegistry>(\n `${meta.id}/capability/compute-graph-registry`,\n );\n}\n", "//\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: 'dxos.org/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", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { addressFromA1Notation, isFormula } from '@dxos/compute';\nimport { 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: 'dxos.org/type/Sheet',\n version: '0.1.0',\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.change to satisfy change context requirements.\n Obj.change(sheet, (s) => {\n initialize(s, size);\n\n if (cells) {\n Object.entries(cells).forEach(([key, { value }]) => {\n const idx = addressToIndex(s, addressFromA1Notation(key));\n if (isFormula(value)) {\n value = mapFormulaRefsToIndices(s, value);\n }\n\n s.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';\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 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-gridComment';\n\n case styleKey:\n switch (value) {\n case 'highlight':\n return '!bg-gridHighlight';\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 { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/operation';\nimport { SpaceSchema } from '@dxos/react-client/echo';\nimport { Collection } from '@dxos/schema';\n\nimport { meta } from '../meta';\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\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 namespace SheetOperation {\n export const OnCreateSpace = Operation.make({\n meta: { key: `${SHEET_OPERATION}/on-create-space`, name: 'On Create Space' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n space: SpaceSchema,\n rootCollection: Collection.Collection,\n isDefault: Schema.optional(Schema.Boolean),\n }),\n output: Schema.Void,\n },\n });\n\n export const InsertAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}/axis-insert`, name: 'Insert Axis' },\n schema: {\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 });\n\n export 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\n export type DropAxisOutput = Schema.Schema.Type<typeof DropAxisOutput>;\n\n export const DropAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}/axis-drop`, name: 'Drop Axis' },\n schema: {\n input: Schema.Struct({\n model: Schema.Any,\n axis: Axis,\n axisIndex: Schema.String,\n }),\n output: DropAxisOutput,\n },\n });\n\n /**\n * Restore a dropped axis (inverse of DropAxis).\n */\n export const RestoreAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}/restore-axis`, name: 'Restore Axis' },\n schema: {\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 });\n}\n"],
5
- "mappings": ";;;;;;;AAIA,SAASA,kBAAkB;;;ACC3B,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,aAAa;IAAC;;AAChB;;;UDTiBC,oBAAAA;qBACFC,uBAAuBC,WAAWC,KAC7C,GAAGC,KAAKC,EAAE,oCAAoC;AAElD,GAJiBL,sBAAAA,oBAAAA,CAAAA,EAAAA;;;;AETjB;;;;;;;;AAIA,YAAYM,YAAY;AAExB,SAASC,yBAAAA,wBAAuBC,aAAAA,kBAAiB;AACjD,SAASC,KAAKC,YAAY;AAC1B,SAASC,2BAA2B;;;ACJpC,SAIEC,uBACAC,qBACAC,iBACK;AACP,SAASC,mBAAmB;AAE5B,SAASC,iBAAiB;;AAInB,IAAMC,WAAW;AACjB,IAAMC,WAAW;AAEjB,IAAMC,eAAe;AACrB,IAAMC,eAAe;AAGrB,IAAMC,WAAN,cAAuBC,MAAAA;AAAO;AAE9B,IAAMC,oBAAN,cAAgCF,SAAAA;AAAU;AAE1C,IAAMG,iBAAN,cAA6BH,SAAAA;EAClC,YAAYI,GAAW;AACrB,UAAK;EACP;AACF;AAKO,IAAMC,cAAc,CAACC,SAAS,MAAC;AACpC,QAAMC,aAAa;AACnB,QAAMC,mBAAmBD,WAAWD;AACpC,QAAMG,eAAef,YAAYY,MAAAA;AACjC,SAAOI,MAAMC,KAAKF,cAAc,CAACG,SAASL,WAAWK,OAAOJ,gBAAAA,CAAiB,EAAEK,KAAK,EAAA;AACtF;AAEO,IAAMC,gBAAgB,CAACR,WAA6BI,MAAMC,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8B,CAAA;MAC5F,CAAA;MACAP,QAAeC;IACjB;EACF,CAAA;AACF,GAlEiBnB,mBAAAA,iBAAAA,CAAAA,EAAAA;;;",
6
- "names": ["Capability", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "screenshots", "SheetCapabilities", "ComputeGraphRegistry", "Capability", "make", "meta", "id", "Schema", "addressFromA1Notation", "isFormula", "Obj", "Type", "FormInputAnnotation", "addressFromA1Notation", "addressToA1Notation", "isFormula", "randomBytes", "invariant", "MAX_ROWS", "MAX_COLS", "DEFAULT_ROWS", "DEFAULT_COLS", "ApiError", "Error", "ReadonlyException", "RangeException", "n", "createIndex", "length", "characters", "charactersLength", "randomBuffer", "Array", "from", "byte", "join", "createIndices", "map", "insertIndices", "indices", "i", "max", "idx", "splice", "initialize", "sheet", "rows", "columns", "addressToIndex", "cell", "col", "row", "addressFromIndex", "column", "split", "indexOf", "rangeToIndex", "range", "to", "rangeFromIndex", "index", "compareIndexPositions", "indexA", "indexB", "rowA", "columnA", "rowB", "columnB", "mapFormulaRefsToIndices", "formula", "replace", "match", "mapFormulaIndicesToRefs", "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", "make", "sheet", "Obj", "change", "s", "initialize", "Object", "entries", "forEach", "idx", "addressToIndex", "addressFromA1Notation", "isFormula", "mapFormulaRefsToIndices", "alignKey", "commentKey", "styleKey", "cellClassNameForRange", "key", "value", "undefined", "Schema", "Capability", "Operation", "SpaceSchema", "Collection", "ActionAxis", "Union", "Literal", "SheetAction", "RestoreAxis", "Struct", "axis", "axisIndex", "String", "index", "Number", "axisMeta", "RowColumnMeta", "values", "Array", "Any", "SHEET_OPERATION", "meta", "id", "Axis", "SheetOperation", "OnCreateSpace", "Operation", "make", "key", "name", "services", "Capability", "Service", "schema", "input", "space", "SpaceSchema", "rootCollection", "Collection", "isDefault", "optional", "Boolean", "output", "Void", "InsertAxis", "model", "count", "DropAxisOutput", "annotations", "description", "DropAxis"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type ComputeGraphRegistry } from '@dxos/compute';\n\nimport { meta } from '../meta';\n\nexport namespace SheetCapabilities {\n export const ComputeGraphRegistry = Capability.make<ComputeGraphRegistry>(\n `${meta.id}/capability/compute-graph-registry`,\n );\n}\n", "//\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: 'dxos.org/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", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { addressFromA1Notation, isFormula } from '@dxos/compute';\nimport { 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: 'dxos.org/type/Sheet',\n version: '0.1.0',\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.change to satisfy change context requirements.\n Obj.change(sheet, (s) => {\n initialize(s, size);\n\n if (cells) {\n Object.entries(cells).forEach(([key, { value }]) => {\n const idx = addressToIndex(s, addressFromA1Notation(key));\n if (isFormula(value)) {\n value = mapFormulaRefsToIndices(s, value);\n }\n\n s.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';\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 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 { Capability } from '@dxos/app-framework';\nimport { Collection } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { SpaceSchema } from '@dxos/react-client/echo';\n\nimport { meta } from '../meta';\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\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 namespace SheetOperation {\n export const OnCreateSpace = Operation.make({\n meta: { key: `${SHEET_OPERATION}/on-create-space`, name: 'On Create Space' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n space: SpaceSchema,\n rootCollection: Collection.Collection,\n isDefault: Schema.optional(Schema.Boolean),\n }),\n output: Schema.Void,\n },\n });\n\n export const InsertAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}/axis-insert`, name: 'Insert Axis' },\n schema: {\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 });\n\n export 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\n export type DropAxisOutput = Schema.Schema.Type<typeof DropAxisOutput>;\n\n export const DropAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}/axis-drop`, name: 'Drop Axis' },\n schema: {\n input: Schema.Struct({\n model: Schema.Any,\n axis: Axis,\n axisIndex: Schema.String,\n }),\n output: DropAxisOutput,\n },\n });\n\n /**\n * Restore a dropped axis (inverse of DropAxis).\n */\n export const RestoreAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}/restore-axis`, name: 'Restore Axis' },\n schema: {\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 });\n}\n"],
5
+ "mappings": ";;;;;;;AAIA,SAASA,kBAAkB;;;ACC3B,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,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A;IAC9EpC,OAAcC,eAAOkC,YAAY;MAAEC,aAAa;IAAgC,CAAA;IAChFlC,UAAiBI,YAAI6B,YAAY;MAAEC,aAAa;IAA2B,CAAA;IAC3EhC,QAAeC,cAAaC,WAAG,EAAE6B,YAAY;MAAEC,aAAa;IAAqC,CAAA;EACnG,CAAA;kBAIaC,WAAWxB,UAAUC,KAAK;IACrCN,MAAM;MAAEO,KAAK,GAAGR,eAAAA;MAA6BS,MAAM;IAAY;IAC/DI,QAAQ;MACNC,OAAczB,eAAO;QACnBoC,OAAc1B;QACdT,MAAMa;QACNZ,WAAkBC;MACpB,CAAA;MACA8B,QAAMlB,gBAAEuB;IACV;EACF,CAAA;kBAKavC,cAAckB,UAAUC,KAAK;IACxCN,MAAM;MAAEO,KAAK,GAAGR,eAAAA;MAAgCS,MAAM;IAAe;IACrEI,QAAQ;MACNC,OAAczB,eAAO;QACnBoC,OAAc1B,YAAI6B,YAAY;UAAEC,aAAa;QAAmB,CAAA;QAChEvC,MAAMa,KAAKyB,YAAY;UAAEC,aAAa;QAA8B,CAAA;QACpEtC,WAAkBC,eAAOoC,YAAY;UAAEC,aAAa;QAA6B,CAAA;QACjFpC,OAAcC,eAAOkC,YAAY;UAAEC,aAAa;QAA8B,CAAA;QAC9ElC,UAAiBI,YAAI6B,YAAY;UAAEC,aAAa;QAA2B,CAAA;QAC3EhC,QAAeC,cAAaC,WAAG,EAAE6B,YAAY;UAAEC,aAAa;QAA8B,CAAA;MAC5F,CAAA;MACAP,QAAeC;IACjB;EACF,CAAA;AACF,GAlEiBnB,mBAAAA,iBAAAA,CAAAA,EAAAA;;;",
6
+ "names": ["Capability", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "screenshots", "SheetCapabilities", "ComputeGraphRegistry", "Capability", "make", "meta", "id", "Schema", "addressFromA1Notation", "isFormula", "Obj", "Type", "FormInputAnnotation", "addressFromA1Notation", "addressToA1Notation", "isFormula", "randomBytes", "invariant", "MAX_ROWS", "MAX_COLS", "DEFAULT_ROWS", "DEFAULT_COLS", "ApiError", "Error", "ReadonlyException", "RangeException", "n", "createIndex", "length", "characters", "charactersLength", "randomBuffer", "Array", "from", "byte", "join", "createIndices", "map", "insertIndices", "indices", "i", "max", "idx", "splice", "initialize", "sheet", "rows", "columns", "addressToIndex", "cell", "col", "row", "addressFromIndex", "column", "split", "indexOf", "rangeToIndex", "range", "to", "rangeFromIndex", "index", "compareIndexPositions", "indexA", "indexB", "rowA", "columnA", "rowB", "columnB", "mapFormulaRefsToIndices", "formula", "replace", "match", "mapFormulaIndicesToRefs", "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", "make", "sheet", "Obj", "change", "s", "initialize", "Object", "entries", "forEach", "idx", "addressToIndex", "addressFromA1Notation", "isFormula", "mapFormulaRefsToIndices", "alignKey", "commentKey", "styleKey", "cellClassNameForRange", "key", "value", "undefined", "Schema", "Capability", "Collection", "Operation", "SpaceSchema", "ActionAxis", "Union", "Literal", "SheetAction", "RestoreAxis", "Struct", "axis", "axisIndex", "String", "index", "Number", "axisMeta", "RowColumnMeta", "values", "Array", "Any", "SHEET_OPERATION", "meta", "id", "Axis", "SheetOperation", "OnCreateSpace", "Operation", "make", "key", "name", "services", "Capability", "Service", "schema", "input", "space", "SpaceSchema", "rootCollection", "Collection", "isDefault", "optional", "Boolean", "output", "Void", "InsertAxis", "model", "count", "DropAxisOutput", "annotations", "description", "DropAxis"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SheetCapabilities
3
- } from "./chunk-KE3AKN5W.mjs";
3
+ } from "./chunk-S445OQGW.mjs";
4
4
 
5
5
  // src/capabilities/compute-graph-registry/compute-graph-registry.ts
6
6
  import * as Effect from "effect/Effect";
@@ -18,4 +18,4 @@ var compute_graph_registry_default = Capability.makeModule(Effect.fnUntraced(fun
18
18
  export {
19
19
  compute_graph_registry_default as default
20
20
  };
21
- //# sourceMappingURL=compute-graph-registry-RC5L7RE4.mjs.map
21
+ //# sourceMappingURL=compute-graph-registry-W6HO2G3P.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  SheetOperation,
4
4
  Sheet_exports,
5
5
  meta
6
- } from "./chunk-KE3AKN5W.mjs";
6
+ } from "./chunk-S445OQGW.mjs";
7
7
 
8
8
  // src/SheetPlugin.tsx
9
9
  import * as Effect from "effect/Effect";
@@ -17,23 +17,23 @@ import { SpaceCapabilities, SpaceEvents } from "@dxos/plugin-space";
17
17
 
18
18
  // src/capabilities/anchor-sort/index.ts
19
19
  import { Capability } from "@dxos/app-framework";
20
- var AnchorSort = Capability.lazy("AnchorSort", () => import("./anchor-sort-AMMLA66W.mjs"));
20
+ var AnchorSort = Capability.lazy("AnchorSort", () => import("./anchor-sort-DZ3IHHJJ.mjs"));
21
21
 
22
22
  // src/capabilities/compute-graph-registry/index.ts
23
23
  import { Capability as Capability2 } from "@dxos/app-framework";
24
- var ComputeGraphRegistry = Capability2.lazy("ComputeGraphRegistry", () => import("./compute-graph-registry-RC5L7RE4.mjs"));
24
+ var ComputeGraphRegistry = Capability2.lazy("ComputeGraphRegistry", () => import("./compute-graph-registry-W6HO2G3P.mjs"));
25
25
 
26
26
  // src/capabilities/markdown/index.ts
27
27
  import { Capability as Capability3 } from "@dxos/app-framework";
28
- var Markdown = Capability3.lazy("Markdown", () => import("./markdown-D2T2DOVX.mjs"));
28
+ var Markdown = Capability3.lazy("Markdown", () => import("./markdown-S6GVLHB4.mjs"));
29
29
 
30
30
  // src/capabilities/operation-resolver/index.ts
31
31
  import { Capability as Capability4 } from "@dxos/app-framework";
32
- var OperationResolver = Capability4.lazy("OperationResolver", () => import("./operation-resolver-P2RX75DA.mjs"));
32
+ var OperationResolver = Capability4.lazy("OperationResolver", () => import("./operation-resolver-Z4X4UWNR.mjs"));
33
33
 
34
34
  // src/capabilities/react-surface/index.ts
35
35
  import { Capability as Capability5 } from "@dxos/app-framework";
36
- var ReactSurface = Capability5.lazy("ReactSurface", () => import("./react-surface-45CRAB5G.mjs"));
36
+ var ReactSurface = Capability5.lazy("ReactSurface", () => import("./react-surface-KIU6DGKW.mjs"));
37
37
 
38
38
  // src/serializer.ts
39
39
  import { Obj } from "@dxos/echo";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  computeGraphFacet
3
- } from "./chunk-IFLWVS2V.mjs";
3
+ } from "./chunk-NNWF7EKC.mjs";
4
4
  import {
5
5
  SheetCapabilities
6
- } from "./chunk-KE3AKN5W.mjs";
6
+ } from "./chunk-S445OQGW.mjs";
7
7
 
8
8
  // src/capabilities/markdown/markdown.ts
9
9
  import * as Effect from "effect/Effect";
@@ -26,4 +26,4 @@ var markdown_default = Capability.makeModule(Effect.fnUntraced(function* () {
26
26
  export {
27
27
  markdown_default as default
28
28
  };
29
- //# sourceMappingURL=markdown-D2T2DOVX.mjs.map
29
+ //# sourceMappingURL=markdown-S6GVLHB4.mjs.map
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":2111,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1425,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/util.ts":{"bytes":13850,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/types/Sheet.ts":{"bytes":10620,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"src/types/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/types/sheet-range-types.ts":{"bytes":3720,"imports":[],"format":"esm"},"src/types/types.ts":{"bytes":12996,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/Sheet.ts","kind":"import-statement","original":"./Sheet"}],"format":"esm"},"src/types/index.ts":{"bytes":878,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/Sheet.ts","kind":"import-statement","original":"./Sheet"},{"path":"src/types/sheet-range-types.ts","kind":"import-statement","original":"./sheet-range-types"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"},{"path":"src/types/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/capabilities/anchor-sort/anchor-sort.ts":{"bytes":3068,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/anchor-sort/index.ts":{"bytes":889,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/anchor-sort/anchor-sort.ts","kind":"dynamic-import","original":"./anchor-sort"}],"format":"esm"},"src/capabilities/compute-graph-registry/compute-graph-registry.ts":{"bytes":3775,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"format":"esm"},"src/capabilities/compute-graph-registry/index.ts":{"bytes":991,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/compute-graph-registry/compute-graph-registry.ts","kind":"dynamic-import","original":"./compute-graph-registry"}],"format":"esm"},"src/extensions/compute.ts":{"bytes":17680,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/editor/sheet-extension.ts":{"bytes":28532,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@lezer/highlight","kind":"import-statement","external":true},{"path":"codemirror-lang-spreadsheet","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/editor/index.ts":{"bytes":493,"imports":[{"path":"src/extensions/editor/sheet-extension.ts","kind":"import-statement","original":"./sheet-extension"}],"format":"esm"},"src/extensions/index.ts":{"bytes":548,"imports":[{"path":"src/extensions/compute.ts","kind":"import-statement","original":"./compute"},{"path":"src/extensions/editor/index.ts","kind":"import-statement","original":"./editor"}],"format":"esm"},"src/capabilities/markdown/markdown.ts":{"bytes":3676,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"../../extensions"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/markdown/index.ts":{"bytes":863,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/markdown/markdown.ts","kind":"dynamic-import","original":"./markdown"}],"format":"esm"},"src/capabilities/operation-resolver/operation-resolver.ts":{"bytes":10111,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/operation-resolver/index.ts":{"bytes":961,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-resolver/operation-resolver.ts","kind":"dynamic-import","original":"./operation-resolver"}],"format":"esm"},"src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytes":4029,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true}],"format":"esm"},"src/components/ComputeGraph/index.ts":{"bytes":527,"imports":[{"path":"src/components/ComputeGraph/ComputeGraphContextProvider.tsx","kind":"import-statement","original":"./ComputeGraphContextProvider"}],"format":"esm"},"src/integrations/thread-ranges.ts":{"bytes":15157,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-thread/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/integrations/index.ts":{"bytes":486,"imports":[{"path":"src/integrations/thread-ranges.ts","kind":"import-statement","original":"./thread-ranges"}],"format":"esm"},"src/model/sheet-model.ts":{"bytes":60495,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/model/useSheetModel.ts":{"bytes":3024,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"src/model/index.ts":{"bytes":574,"imports":[{"path":"src/model/sheet-model.ts","kind":"import-statement","original":"./sheet-model"},{"path":"src/model/useSheetModel.ts","kind":"import-statement","original":"./useSheetModel"}],"format":"esm"},"src/components/SheetContext/SheetContext.tsx":{"bytes":10446,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"src/model/index.ts","kind":"import-statement","original":"../../model"}],"format":"esm"},"src/components/SheetContext/index.ts":{"bytes":492,"imports":[{"path":"src/components/SheetContext/SheetContext.tsx","kind":"import-statement","original":"./SheetContext"}],"format":"esm"},"src/components/GridSheet/util.ts":{"bytes":21688,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/components/GridSheet/GridSheet.tsx":{"bytes":45438,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/lit-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"../../extensions"},{"path":"src/integrations/index.ts","kind":"import-statement","original":"../../integrations"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"},{"path":"src/components/GridSheet/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/components/GridSheet/index.ts":{"bytes":482,"imports":[{"path":"src/components/GridSheet/GridSheet.tsx","kind":"import-statement","original":"./GridSheet"}],"format":"esm"},"src/components/RangeList/RangeList.tsx":{"bytes":7940,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/components/RangeList/index.ts":{"bytes":482,"imports":[{"path":"src/components/RangeList/RangeList.tsx","kind":"import-statement","original":"./RangeList"}],"format":"esm"},"src/components/FunctionEditor/FunctionEditor.tsx":{"bytes":5098,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"src/components/FunctionEditor/index.ts":{"bytes":500,"imports":[{"path":"src/components/FunctionEditor/FunctionEditor.tsx","kind":"import-statement","original":"./FunctionEditor"}],"format":"esm"},"src/components/SheetToolbar/align.ts":{"bytes":14930,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"src/components/SheetToolbar/style.ts":{"bytes":15477,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"}],"format":"esm"},"src/components/SheetToolbar/useToolbarState.ts":{"bytes":3034,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/SheetToolbar/SheetToolbar.tsx":{"bytes":9910,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"},{"path":"src/components/SheetToolbar/align.ts","kind":"import-statement","original":"./align"},{"path":"src/components/SheetToolbar/style.ts","kind":"import-statement","original":"./style"},{"path":"src/components/SheetToolbar/useToolbarState.ts","kind":"import-statement","original":"./useToolbarState"}],"format":"esm"},"src/components/SheetToolbar/index.ts":{"bytes":492,"imports":[{"path":"src/components/SheetToolbar/SheetToolbar.tsx","kind":"import-statement","original":"./SheetToolbar"}],"format":"esm"},"src/components/SheetContainer/SheetContainer.tsx":{"bytes":4827,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"src/components/ComputeGraph/index.ts","kind":"import-statement","original":"../ComputeGraph"},{"path":"src/components/FunctionEditor/index.ts","kind":"import-statement","original":"../FunctionEditor"},{"path":"src/components/GridSheet/index.ts","kind":"import-statement","original":"../GridSheet"},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"../SheetContext"},{"path":"src/components/SheetToolbar/index.ts","kind":"import-statement","original":"../SheetToolbar"}],"format":"esm"},"src/components/SheetContainer/index.ts":{"bytes":676,"imports":[{"path":"src/components/SheetContainer/SheetContainer.tsx","kind":"import-statement","original":"./SheetContainer"}],"format":"esm"},"src/components/index.ts":{"bytes":1135,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/ComputeGraph/index.ts","kind":"import-statement","original":"./ComputeGraph"},{"path":"src/components/GridSheet/index.ts","kind":"import-statement","original":"./GridSheet"},{"path":"src/components/RangeList/index.ts","kind":"import-statement","original":"./RangeList"},{"path":"src/components/SheetContext/index.ts","kind":"import-statement","original":"./SheetContext"},{"path":"src/components/SheetContainer/index.ts","kind":"dynamic-import","original":"./SheetContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":6079,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":909,"imports":[{"path":"src/capabilities/anchor-sort/index.ts","kind":"import-statement","original":"./anchor-sort"},{"path":"src/capabilities/compute-graph-registry/index.ts","kind":"import-statement","original":"./compute-graph-registry"},{"path":"src/capabilities/markdown/index.ts","kind":"import-statement","original":"./markdown"},{"path":"src/capabilities/operation-resolver/index.ts","kind":"import-statement","original":"./operation-resolver"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/serializer.ts":{"bytes":2554,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/translations.ts":{"bytes":6176,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/SheetPlugin.tsx":{"bytes":8483,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/serializer.ts","kind":"import-statement","original":"./serializer"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":716,"imports":[{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/SheetPlugin.tsx","kind":"import-statement","original":"./SheetPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10390},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/anchor-sort-AMMLA66W.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/compute-graph-registry-RC5L7RE4.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/markdown-D2T2DOVX.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-resolver-P2RX75DA.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-45CRAB5G.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true}],"exports":["SheetCapabilities","SheetPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/SheetPlugin.tsx":{"bytesInOutput":1767},"src/capabilities/anchor-sort/index.ts":{"bytesInOutput":142},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/compute-graph-registry/index.ts":{"bytesInOutput":189},"src/capabilities/markdown/index.ts":{"bytesInOutput":151},"src/capabilities/operation-resolver/index.ts":{"bytesInOutput":179},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/serializer.ts":{"bytesInOutput":451},"src/translations.ts":{"bytesInOutput":1803}},"bytes":5360},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"}],"exports":["ApiError","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","RangeException","ReadonlyException","Sheet","SheetAction","SheetCapabilities","SheetOperation","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","rangeFromIndex","rangeToIndex","styleKey"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":1005},"dist/lib/browser/anchor-sort-AMMLA66W.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1609},"dist/lib/browser/anchor-sort-AMMLA66W.mjs":{"imports":[{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/anchor-sort/anchor-sort.ts","inputs":{"src/capabilities/anchor-sort/anchor-sort.ts":{"bytesInOutput":616}},"bytes":840},"dist/lib/browser/compute-graph-registry-RC5L7RE4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1906},"dist/lib/browser/compute-graph-registry-RC5L7RE4.mjs":{"imports":[{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"exports":["default"],"entryPoint":"src/capabilities/compute-graph-registry/compute-graph-registry.ts","inputs":{"src/capabilities/compute-graph-registry/compute-graph-registry.ts":{"bytesInOutput":688}},"bytes":935},"dist/lib/browser/markdown-D2T2DOVX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1894},"dist/lib/browser/markdown-D2T2DOVX.mjs":{"imports":[{"path":"dist/lib/browser/chunk-IFLWVS2V.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/markdown/markdown.ts","inputs":{"src/capabilities/markdown/markdown.ts":{"bytesInOutput":721}},"bytes":972},"dist/lib/browser/operation-resolver-P2RX75DA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4877},"dist/lib/browser/operation-resolver-P2RX75DA.mjs":{"imports":[{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-resolver/operation-resolver.ts","inputs":{"src/capabilities/operation-resolver/operation-resolver.ts":{"bytesInOutput":2275}},"bytes":2528},"dist/lib/browser/SheetContainer-6DNFC4TY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":27804},"dist/lib/browser/SheetContainer-6DNFC4TY.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EDWHV64N.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IFLWVS2V.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/components/SheetContainer/index.ts","inputs":{"src/components/SheetContainer/SheetContainer.tsx":{"bytesInOutput":934},"src/components/FunctionEditor/FunctionEditor.tsx":{"bytesInOutput":1359},"src/components/FunctionEditor/index.ts":{"bytesInOutput":0},"src/components/SheetToolbar/SheetToolbar.tsx":{"bytesInOutput":2238},"src/components/SheetToolbar/align.ts":{"bytesInOutput":3170},"src/components/SheetToolbar/style.ts":{"bytesInOutput":3449},"src/components/SheetToolbar/useToolbarState.ts":{"bytesInOutput":283},"src/components/SheetToolbar/index.ts":{"bytesInOutput":0},"src/components/SheetContainer/index.ts":{"bytesInOutput":45}},"bytes":12270},"dist/lib/browser/react-surface-45CRAB5G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3024},"dist/lib/browser/react-surface-45CRAB5G.mjs":{"imports":[{"path":"dist/lib/browser/chunk-EDWHV64N.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-IFLWVS2V.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":1302}},"bytes":1671},"dist/lib/browser/chunk-EDWHV64N.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":85757},"dist/lib/browser/chunk-EDWHV64N.mjs":{"imports":[{"path":"dist/lib/browser/chunk-IFLWVS2V.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-KE3AKN5W.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/lit-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-thread/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"dist/lib/browser/SheetContainer-6DNFC4TY.mjs","kind":"dynamic-import"}],"exports":["ComputeGraphContextProvider","GridSheet","RangeList","SheetContainer","SheetProvider","useComputeGraph","useSheetContext"],"inputs":{"src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytesInOutput":775},"src/components/RangeList/RangeList.tsx":{"bytesInOutput":1850},"src/components/index.ts":{"bytesInOutput":104},"src/components/ComputeGraph/index.ts":{"bytesInOutput":0},"src/components/GridSheet/GridSheet.tsx":{"bytesInOutput":11423},"src/integrations/thread-ranges.ts":{"bytesInOutput":3383},"src/integrations/index.ts":{"bytesInOutput":0},"src/components/SheetContext/SheetContext.tsx":{"bytesInOutput":2314},"src/model/sheet-model.ts":{"bytesInOutput":15072},"src/model/index.ts":{"bytesInOutput":0},"src/model/useSheetModel.ts":{"bytesInOutput":558},"src/components/SheetContext/index.ts":{"bytesInOutput":0},"src/components/GridSheet/util.ts":{"bytesInOutput":5051},"src/components/GridSheet/index.ts":{"bytesInOutput":0},"src/components/RangeList/index.ts":{"bytesInOutput":0}},"bytes":41598},"dist/lib/browser/chunk-IFLWVS2V.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20135},"dist/lib/browser/chunk-IFLWVS2V.mjs":{"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@lezer/highlight","kind":"import-statement","external":true},{"path":"codemirror-lang-spreadsheet","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["computeGraphFacet","rangeExtension","sheetExtension"],"inputs":{"src/extensions/compute.ts":{"bytesInOutput":503},"src/extensions/index.ts":{"bytesInOutput":0},"src/extensions/editor/sheet-extension.ts":{"bytesInOutput":6099},"src/extensions/editor/index.ts":{"bytesInOutput":0}},"bytes":6789},"dist/lib/browser/chunk-KE3AKN5W.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21842},"dist/lib/browser/chunk-KE3AKN5W.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["ApiError","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","RangeException","ReadonlyException","SheetAction","SheetCapabilities","SheetOperation","Sheet_exports","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","meta","rangeFromIndex","rangeToIndex","styleKey"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":265},"src/meta.ts":{"bytesInOutput":543},"src/types/index.ts":{"bytesInOutput":0},"src/types/Sheet.ts":{"bytesInOutput":2466},"src/types/util.ts":{"bytesInOutput":2925},"src/types/sheet-range-types.ts":{"bytesInOutput":709},"src/types/types.ts":{"bytesInOutput":3353}},"bytes":11149}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":2111,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":1425,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/util.ts":{"bytes":13850,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/types/Sheet.ts":{"bytes":10620,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"src/types/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/types/sheet-range-types.ts":{"bytes":3726,"imports":[],"format":"esm"},"src/types/types.ts":{"bytes":12990,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/types/Sheet.ts","kind":"import-statement","original":"./Sheet"}],"format":"esm"},"src/types/index.ts":{"bytes":878,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/types/Sheet.ts","kind":"import-statement","original":"./Sheet"},{"path":"src/types/sheet-range-types.ts","kind":"import-statement","original":"./sheet-range-types"},{"path":"src/types/types.ts","kind":"import-statement","original":"./types"},{"path":"src/types/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/capabilities/anchor-sort/anchor-sort.ts":{"bytes":3068,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/anchor-sort/index.ts":{"bytes":889,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/anchor-sort/anchor-sort.ts","kind":"dynamic-import","original":"./anchor-sort"}],"format":"esm"},"src/capabilities/compute-graph-registry/compute-graph-registry.ts":{"bytes":3775,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"format":"esm"},"src/capabilities/compute-graph-registry/index.ts":{"bytes":991,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/compute-graph-registry/compute-graph-registry.ts","kind":"dynamic-import","original":"./compute-graph-registry"}],"format":"esm"},"src/extensions/compute.ts":{"bytes":17680,"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/editor/sheet-extension.ts":{"bytes":28552,"imports":[{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@lezer/highlight","kind":"import-statement","external":true},{"path":"codemirror-lang-spreadsheet","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/editor/index.ts":{"bytes":493,"imports":[{"path":"src/extensions/editor/sheet-extension.ts","kind":"import-statement","original":"./sheet-extension"}],"format":"esm"},"src/extensions/index.ts":{"bytes":548,"imports":[{"path":"src/extensions/compute.ts","kind":"import-statement","original":"./compute"},{"path":"src/extensions/editor/index.ts","kind":"import-statement","original":"./editor"}],"format":"esm"},"src/capabilities/markdown/markdown.ts":{"bytes":3676,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"../../extensions"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/markdown/index.ts":{"bytes":863,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/markdown/markdown.ts","kind":"dynamic-import","original":"./markdown"}],"format":"esm"},"src/capabilities/operation-resolver/operation-resolver.ts":{"bytes":10195,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/operation-resolver/index.ts":{"bytes":961,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-resolver/operation-resolver.ts","kind":"dynamic-import","original":"./operation-resolver"}],"format":"esm"},"src/containers/RangeList/RangeList.tsx":{"bytes":7954,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/containers/RangeList/index.ts":{"bytes":624,"imports":[{"path":"src/containers/RangeList/RangeList.tsx","kind":"import-statement","original":"./RangeList"}],"format":"esm"},"src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytes":4029,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true}],"format":"esm"},"src/components/ComputeGraph/index.ts":{"bytes":527,"imports":[{"path":"src/components/ComputeGraph/ComputeGraphContextProvider.tsx","kind":"import-statement","original":"./ComputeGraphContextProvider"}],"format":"esm"},"src/integrations/thread-ranges.ts":{"bytes":15088,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-thread/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/integrations/index.ts":{"bytes":486,"imports":[{"path":"src/integrations/thread-ranges.ts","kind":"import-statement","original":"./thread-ranges"}],"format":"esm"},"src/model/sheet-model.ts":{"bytes":60495,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/model/useSheetModel.ts":{"bytes":3024,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/model/index.ts","kind":"import-statement","original":"../model"}],"format":"esm"},"src/model/index.ts":{"bytes":574,"imports":[{"path":"src/model/sheet-model.ts","kind":"import-statement","original":"./sheet-model"},{"path":"src/model/useSheetModel.ts","kind":"import-statement","original":"./useSheetModel"}],"format":"esm"},"src/components/SheetRoot/SheetRoot.tsx":{"bytes":10397,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"src/model/index.ts","kind":"import-statement","original":"../../model"}],"format":"esm"},"src/components/SheetRoot/index.ts":{"bytes":482,"imports":[{"path":"src/components/SheetRoot/SheetRoot.tsx","kind":"import-statement","original":"./SheetRoot"}],"format":"esm"},"src/components/SheetContent/util.ts":{"bytes":21693,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/components/SheetContent/SheetContent.tsx":{"bytes":45760,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/lit-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"../../extensions"},{"path":"src/integrations/index.ts","kind":"import-statement","original":"../../integrations"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"},{"path":"src/components/SheetContent/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"src/components/SheetContent/index.ts":{"bytes":492,"imports":[{"path":"src/components/SheetContent/SheetContent.tsx","kind":"import-statement","original":"./SheetContent"}],"format":"esm"},"src/components/SheetStatusbar/SheetStatusbar.tsx":{"bytes":5329,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"}],"format":"esm"},"src/components/SheetStatusbar/index.ts":{"bytes":500,"imports":[{"path":"src/components/SheetStatusbar/SheetStatusbar.tsx","kind":"import-statement","original":"./SheetStatusbar"}],"format":"esm"},"src/components/SheetToolbar/align.ts":{"bytes":15093,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"}],"format":"esm"},"src/components/SheetToolbar/style.ts":{"bytes":15636,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"}],"format":"esm"},"src/components/SheetToolbar/useToolbarState.ts":{"bytes":3034,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/SheetToolbar/SheetToolbar.tsx":{"bytes":10171,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"},{"path":"src/components/SheetToolbar/align.ts","kind":"import-statement","original":"./align"},{"path":"src/components/SheetToolbar/style.ts","kind":"import-statement","original":"./style"},{"path":"src/components/SheetToolbar/useToolbarState.ts","kind":"import-statement","original":"./useToolbarState"}],"format":"esm"},"src/components/SheetToolbar/index.ts":{"bytes":492,"imports":[{"path":"src/components/SheetToolbar/SheetToolbar.tsx","kind":"import-statement","original":"./SheetToolbar"}],"format":"esm"},"src/components/Sheet/Sheet.tsx":{"bytes":2023,"imports":[{"path":"src/components/SheetContent/index.ts","kind":"import-statement","original":"../SheetContent"},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"},{"path":"src/components/SheetStatusbar/index.ts","kind":"import-statement","original":"../SheetStatusbar"},{"path":"src/components/SheetToolbar/index.ts","kind":"import-statement","original":"../SheetToolbar"},{"path":"src/components/SheetRoot/index.ts","kind":"import-statement","original":"../SheetRoot"}],"format":"esm"},"src/components/Sheet/index.ts":{"bytes":466,"imports":[{"path":"src/components/Sheet/Sheet.tsx","kind":"import-statement","original":"./Sheet"}],"format":"esm"},"src/components/index.ts":{"bytes":560,"imports":[{"path":"src/components/ComputeGraph/index.ts","kind":"import-statement","original":"./ComputeGraph"},{"path":"src/components/Sheet/index.ts","kind":"import-statement","original":"./Sheet"}],"format":"esm"},"src/containers/SheetContainer/SheetContainer.tsx":{"bytes":5181,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../../components"}],"format":"esm"},"src/containers/SheetContainer/index.ts":{"bytes":676,"imports":[{"path":"src/containers/SheetContainer/SheetContainer.tsx","kind":"import-statement","original":"./SheetContainer"}],"format":"esm"},"src/containers/index.ts":{"bytes":1059,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/RangeList/index.ts","kind":"dynamic-import","original":"./RangeList"},{"path":"src/containers/SheetContainer/index.ts","kind":"dynamic-import","original":"./SheetContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":5826,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"src/containers/index.ts","kind":"import-statement","original":"../../containers"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":909,"imports":[{"path":"src/capabilities/anchor-sort/index.ts","kind":"import-statement","original":"./anchor-sort"},{"path":"src/capabilities/compute-graph-registry/index.ts","kind":"import-statement","original":"./compute-graph-registry"},{"path":"src/capabilities/markdown/index.ts","kind":"import-statement","original":"./markdown"},{"path":"src/capabilities/operation-resolver/index.ts","kind":"import-statement","original":"./operation-resolver"},{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/serializer.ts":{"bytes":2554,"imports":[{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/translations.ts":{"bytes":6176,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/SheetPlugin.tsx":{"bytes":8483,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/serializer.ts","kind":"import-statement","original":"./serializer"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":716,"imports":[{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/SheetPlugin.tsx","kind":"import-statement","original":"./SheetPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/react-surface-KIU6DGKW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3379},"dist/lib/browser/react-surface-KIU6DGKW.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/browser/RangeList-S3SHV7T6.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/SheetContainer-I3NFVVDQ.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":1226},"src/containers/index.ts":{"bytesInOutput":168}},"bytes":1712},"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10390},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/anchor-sort-DZ3IHHJJ.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/compute-graph-registry-W6HO2G3P.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/markdown-S6GVLHB4.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-resolver-Z4X4UWNR.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-KIU6DGKW.mjs","kind":"dynamic-import"},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true}],"exports":["SheetCapabilities","SheetPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/SheetPlugin.tsx":{"bytesInOutput":1767},"src/capabilities/anchor-sort/index.ts":{"bytesInOutput":142},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/compute-graph-registry/index.ts":{"bytesInOutput":189},"src/capabilities/markdown/index.ts":{"bytesInOutput":151},"src/capabilities/operation-resolver/index.ts":{"bytesInOutput":179},"src/capabilities/react-surface/index.ts":{"bytesInOutput":164},"src/serializer.ts":{"bytesInOutput":451},"src/translations.ts":{"bytesInOutput":1803}},"bytes":5360},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"}],"exports":["ApiError","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","RangeException","ReadonlyException","Sheet","SheetAction","SheetCapabilities","SheetOperation","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","rangeFromIndex","rangeToIndex","styleKey"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":1005},"dist/lib/browser/anchor-sort-DZ3IHHJJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1609},"dist/lib/browser/anchor-sort-DZ3IHHJJ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/anchor-sort/anchor-sort.ts","inputs":{"src/capabilities/anchor-sort/anchor-sort.ts":{"bytesInOutput":616}},"bytes":840},"dist/lib/browser/compute-graph-registry-W6HO2G3P.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1906},"dist/lib/browser/compute-graph-registry-W6HO2G3P.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"exports":["default"],"entryPoint":"src/capabilities/compute-graph-registry/compute-graph-registry.ts","inputs":{"src/capabilities/compute-graph-registry/compute-graph-registry.ts":{"bytesInOutput":688}},"bytes":935},"dist/lib/browser/markdown-S6GVLHB4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1894},"dist/lib/browser/markdown-S6GVLHB4.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NNWF7EKC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-markdown","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/markdown/markdown.ts","inputs":{"src/capabilities/markdown/markdown.ts":{"bytesInOutput":721}},"bytes":972},"dist/lib/browser/operation-resolver-Z4X4UWNR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4929},"dist/lib/browser/operation-resolver-Z4X4UWNR.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-resolver/operation-resolver.ts","inputs":{"src/capabilities/operation-resolver/operation-resolver.ts":{"bytesInOutput":2299}},"bytes":2552},"dist/lib/browser/RangeList-S3SHV7T6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4392},"dist/lib/browser/RangeList-S3SHV7T6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/RangeList/index.ts","inputs":{"src/containers/RangeList/RangeList.tsx":{"bytesInOutput":1825},"src/containers/RangeList/index.ts":{"bytesInOutput":35}},"bytes":2114},"dist/lib/browser/SheetContainer-I3NFVVDQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":110899},"dist/lib/browser/SheetContainer-I3NFVVDQ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-NNWF7EKC.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-S445OQGW.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/lit-grid","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-thread/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo-db","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-grid","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/containers/SheetContainer/index.ts","inputs":{"src/containers/SheetContainer/SheetContainer.tsx":{"bytesInOutput":1143},"src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytesInOutput":775},"src/components/ComputeGraph/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0},"src/components/SheetContent/SheetContent.tsx":{"bytesInOutput":11240},"src/integrations/thread-ranges.ts":{"bytesInOutput":3335},"src/integrations/index.ts":{"bytesInOutput":0},"src/components/SheetRoot/SheetRoot.tsx":{"bytesInOutput":2097},"src/model/sheet-model.ts":{"bytesInOutput":15072},"src/model/index.ts":{"bytesInOutput":0},"src/model/useSheetModel.ts":{"bytesInOutput":558},"src/components/SheetRoot/index.ts":{"bytesInOutput":0},"src/components/SheetContent/util.ts":{"bytesInOutput":5053},"src/components/SheetContent/index.ts":{"bytesInOutput":0},"src/components/SheetStatusbar/SheetStatusbar.tsx":{"bytesInOutput":1457},"src/components/SheetStatusbar/index.ts":{"bytesInOutput":0},"src/components/SheetToolbar/SheetToolbar.tsx":{"bytesInOutput":2268},"src/components/SheetToolbar/align.ts":{"bytesInOutput":3280},"src/components/SheetToolbar/style.ts":{"bytesInOutput":3503},"src/components/SheetToolbar/useToolbarState.ts":{"bytesInOutput":296},"src/components/SheetToolbar/index.ts":{"bytesInOutput":0},"src/components/Sheet/Sheet.tsx":{"bytesInOutput":114},"src/components/Sheet/index.ts":{"bytesInOutput":0},"src/containers/SheetContainer/index.ts":{"bytesInOutput":45}},"bytes":51602},"dist/lib/browser/chunk-NNWF7EKC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20143},"dist/lib/browser/chunk-NNWF7EKC.mjs":{"imports":[{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/autocomplete","kind":"import-statement","external":true},{"path":"@codemirror/language","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@lezer/highlight","kind":"import-statement","external":true},{"path":"codemirror-lang-spreadsheet","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"exports":["computeGraphFacet","rangeExtension","sheetExtension"],"inputs":{"src/extensions/compute.ts":{"bytesInOutput":503},"src/extensions/index.ts":{"bytesInOutput":0},"src/extensions/editor/sheet-extension.ts":{"bytesInOutput":6107},"src/extensions/editor/index.ts":{"bytesInOutput":0}},"bytes":6797},"dist/lib/browser/chunk-S445OQGW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21842},"dist/lib/browser/chunk-S445OQGW.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo/internal","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["ApiError","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","RangeException","ReadonlyException","SheetAction","SheetCapabilities","SheetOperation","Sheet_exports","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","meta","rangeFromIndex","rangeToIndex","styleKey"],"inputs":{"src/types/capabilities.ts":{"bytesInOutput":265},"src/meta.ts":{"bytesInOutput":543},"src/types/index.ts":{"bytesInOutput":0},"src/types/Sheet.ts":{"bytesInOutput":2466},"src/types/util.ts":{"bytesInOutput":2925},"src/types/sheet-range-types.ts":{"bytesInOutput":711},"src/types/types.ts":{"bytesInOutput":3351}},"bytes":11149}}}
@@ -2,14 +2,14 @@ import {
2
2
  SheetOperation,
3
3
  Sheet_exports,
4
4
  meta
5
- } from "./chunk-KE3AKN5W.mjs";
5
+ } from "./chunk-S445OQGW.mjs";
6
6
 
7
7
  // src/capabilities/operation-resolver/operation-resolver.ts
8
8
  import * as Effect from "effect/Effect";
9
9
  import { Capabilities, Capability, UndoMapping } from "@dxos/app-framework";
10
10
  import { Obj, Ref, Type } from "@dxos/echo";
11
11
  import { OperationResolver } from "@dxos/operation";
12
- import { Collection } from "@dxos/schema";
12
+ import { ManagedCollection } from "@dxos/schema";
13
13
  var operation_resolver_default = Capability.makeModule(() => Effect.succeed([
14
14
  Capability.contributes(Capabilities.UndoMapping, [
15
15
  UndoMapping.make({
@@ -35,7 +35,7 @@ var operation_resolver_default = Capability.makeModule(() => Effect.succeed([
35
35
  OperationResolver.make({
36
36
  operation: SheetOperation.OnCreateSpace,
37
37
  handler: Effect.fnUntraced(function* ({ rootCollection }) {
38
- const collection = Collection.makeManaged({
38
+ const collection = ManagedCollection.makeManagedCollection({
39
39
  key: Type.getTypename(Sheet_exports.Sheet)
40
40
  });
41
41
  Obj.change(rootCollection, (c) => {
@@ -76,4 +76,4 @@ var operation_resolver_default = Capability.makeModule(() => Effect.succeed([
76
76
  export {
77
77
  operation_resolver_default as default
78
78
  };
79
- //# sourceMappingURL=operation-resolver-P2RX75DA.mjs.map
79
+ //# sourceMappingURL=operation-resolver-Z4X4UWNR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/operation-resolver/operation-resolver.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, UndoMapping } from '@dxos/app-framework';\nimport { Obj, Ref, Type } from '@dxos/echo';\nimport { OperationResolver } from '@dxos/operation';\nimport { ManagedCollection } from '@dxos/schema';\n\nimport { meta } from '../../meta';\nimport { Sheet, SheetOperation } from '../../types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed([\n Capability.contributes(Capabilities.UndoMapping, [\n UndoMapping.make({\n operation: SheetOperation.DropAxis,\n inverse: SheetOperation.RestoreAxis,\n deriveContext: (input, output) => ({\n model: input.model,\n axis: output.axis,\n axisIndex: output.axisIndex,\n index: output.index,\n axisMeta: output.axisMeta,\n values: output.values,\n }),\n message: ['axis dropped label', { ns: meta.id }],\n }),\n ]),\n Capability.contributes(Capabilities.OperationResolver, [\n OperationResolver.make({\n operation: SheetOperation.OnCreateSpace,\n handler: Effect.fnUntraced(function* ({ rootCollection }) {\n const collection = ManagedCollection.makeManagedCollection({ key: Type.getTypename(Sheet.Sheet) });\n Obj.change(rootCollection, (c) => {\n c.objects.push(Ref.make(collection));\n });\n }),\n }),\n OperationResolver.make({\n operation: SheetOperation.InsertAxis,\n handler: ({ model, axis, index, count }) =>\n Effect.sync(() => {\n model[axis === 'col' ? 'insertColumns' : 'insertRows'](index, count);\n }),\n }),\n OperationResolver.make({\n operation: SheetOperation.DropAxis,\n handler: ({ model, axis, axisIndex }) =>\n Effect.sync(() => {\n const undoData = model[axis === 'col' ? 'dropColumn' : 'dropRow'](axisIndex);\n // Return data needed for undo.\n return {\n axis: undoData.axis,\n axisIndex: undoData.axisIndex,\n index: undoData.index,\n axisMeta: undoData.axisMeta,\n values: undoData.values,\n };\n }),\n }),\n\n //\n // RestoreAxis (inverse of DropAxis)\n //\n OperationResolver.make({\n operation: SheetOperation.RestoreAxis,\n handler: ({ model, axis, ...restoreData }) =>\n Effect.sync(() => {\n model[axis === 'col' ? 'restoreColumn' : 'restoreRow'](restoreData);\n }),\n }),\n ]),\n ]),\n);\n"],
5
+ "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,YAAYC,mBAAmB;AACtD,SAASC,KAAKC,KAAKC,YAAY;AAC/B,SAASC,yBAAyB;AAClC,SAASC,y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B;UAChBC,UAAU2B,SAAS3B;UACnBC,QAAQ0B,SAAS1B;QACnB;MACF,CAAA;IACJ,CAAA;;;;IAKAK,kBAAkBnB,KAAK;MACrBC,WAAWC,eAAeG;MAC1BgB,SAAS,CAAC,EAAEZ,OAAOC,MAAM,GAAG+B,YAAAA,MACnBF,YAAK,MAAA;AACV9B,cAAMC,SAAS,QAAQ,kBAAkB,YAAA,EAAc+B,WAAAA;MACzD,CAAA;IACJ,CAAA;GACD;CACF,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "UndoMapping", "Obj", "Ref", "Type", "OperationResolver", "ManagedCollection", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "UndoMapping", "make", "operation", "SheetOperation", "DropAxis", "inverse", "RestoreAxis", "deriveContext", "input", "output", "model", "axis", "axisIndex", "index", "axisMeta", "values", "message", "ns", "meta", "id", "OperationResolver", "OnCreateSpace", "handler", "fnUntraced", "rootCollection", "collection", "ManagedCollection", "makeManagedCollection", "key", "Type", "getTypename", "Sheet", "Obj", "change", "c", "objects", "push", "Ref", "InsertAxis", "count", "sync", "undoData", "restoreData"]
7
+ }