@dxos/plugin-sheet 0.8.4-main.3c1ae3b → 0.8.4-main.3eb6e50203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/SheetContainer-6DNFC4TY.mjs +397 -0
- package/dist/lib/browser/SheetContainer-6DNFC4TY.mjs.map +7 -0
- package/dist/lib/browser/{anchor-sort-OWOAGQM6.mjs → anchor-sort-AMMLA66W.mjs} +8 -7
- package/dist/lib/browser/anchor-sort-AMMLA66W.mjs.map +7 -0
- package/dist/lib/browser/chunk-EDWHV64N.mjs +1473 -0
- package/dist/lib/browser/chunk-EDWHV64N.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7VEWYJJN.mjs → chunk-IFLWVS2V.mjs} +5 -5
- package/dist/lib/browser/chunk-IFLWVS2V.mjs.map +7 -0
- package/dist/lib/browser/chunk-KE3AKN5W.mjs +397 -0
- package/dist/lib/browser/chunk-KE3AKN5W.mjs.map +7 -0
- package/dist/lib/browser/compute-graph-registry-RC5L7RE4.mjs +21 -0
- package/dist/lib/browser/compute-graph-registry-RC5L7RE4.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +67 -76
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/markdown-D2T2DOVX.mjs +29 -0
- package/dist/lib/browser/markdown-D2T2DOVX.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-P2RX75DA.mjs +79 -0
- package/dist/lib/browser/operation-resolver-P2RX75DA.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-OAPAEL36.mjs → react-surface-45CRAB5G.mjs} +17 -20
- package/dist/lib/browser/react-surface-45CRAB5G.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +5 -2
- package/dist/lib/node-esm/SheetContainer-7H5R7M54.mjs +398 -0
- package/dist/lib/node-esm/SheetContainer-7H5R7M54.mjs.map +7 -0
- package/dist/lib/node-esm/{anchor-sort-FG3DS4HM.mjs → anchor-sort-VHMBRX2E.mjs} +8 -7
- package/dist/lib/node-esm/anchor-sort-VHMBRX2E.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6J5L47IB.mjs +398 -0
- package/dist/lib/node-esm/chunk-6J5L47IB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-AYSEWH7N.mjs +1474 -0
- package/dist/lib/node-esm/chunk-AYSEWH7N.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-4QV4AGWK.mjs → chunk-PPOYR7DK.mjs} +5 -5
- package/dist/lib/node-esm/chunk-PPOYR7DK.mjs.map +7 -0
- package/dist/lib/node-esm/compute-graph-registry-ZGXVLVGD.mjs +22 -0
- package/dist/lib/node-esm/compute-graph-registry-ZGXVLVGD.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +67 -76
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/markdown-PTV72DLO.mjs +30 -0
- package/dist/lib/node-esm/markdown-PTV72DLO.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-WPIWQ5IO.mjs +80 -0
- package/dist/lib/node-esm/operation-resolver-WPIWQ5IO.mjs.map +7 -0
- package/dist/lib/node-esm/{react-surface-6LO5MPFK.mjs → react-surface-ITV2L6HK.mjs} +17 -20
- package/dist/lib/node-esm/react-surface-ITV2L6HK.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +5 -2
- package/dist/types/src/SheetPlugin.d.ts +2 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts +6 -0
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts.map +1 -0
- package/dist/types/src/capabilities/anchor-sort/index.d.ts +3 -0
- package/dist/types/src/capabilities/anchor-sort/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts +5 -0
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-graph-registry/index.d.ts +3 -0
- package/dist/types/src/capabilities/compute-graph-registry/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +5 -6
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
- package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +4 -5
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +2 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/align.d.ts +12 -19
- package/dist/types/src/components/SheetToolbar/align.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/style.d.ts +12 -18
- package/dist/types/src/components/SheetToolbar/style.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts +14 -1
- package/dist/types/src/components/SheetToolbar/useToolbarState.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/dist/types/src/extensions/editor/sheet-extension.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/model/sheet-model.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +13 -13
- package/dist/types/src/types/Sheet.d.ts +38 -32
- package/dist/types/src/types/Sheet.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +6 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +91 -65
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/types/util.d.ts +2 -1
- package/dist/types/src/types/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +76 -70
- package/src/SheetPlugin.tsx +43 -58
- package/src/capabilities/anchor-sort/anchor-sort.ts +27 -0
- package/src/capabilities/anchor-sort/index.ts +7 -0
- package/src/capabilities/compute-graph-registry/compute-graph-registry.ts +27 -0
- package/src/capabilities/compute-graph-registry/index.ts +7 -0
- package/src/capabilities/index.ts +5 -9
- package/src/capabilities/markdown/index.ts +7 -0
- package/src/capabilities/markdown/markdown.ts +30 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +77 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +43 -0
- package/src/components/ComputeGraph/compute-graph.stories.tsx +1 -1
- package/src/components/GridSheet/GridSheet.stories.tsx +3 -3
- package/src/components/GridSheet/GridSheet.tsx +26 -28
- package/src/components/GridSheet/SheetCellEditor.stories.tsx +7 -4
- package/src/components/GridSheet/util.ts +1 -1
- package/src/components/RangeList/RangeList.tsx +5 -2
- package/src/components/SheetContainer/SheetContainer.stories.tsx +42 -22
- package/src/components/SheetContainer/SheetContainer.tsx +27 -20
- package/src/components/SheetToolbar/SheetToolbar.stories.tsx +1 -1
- package/src/components/SheetToolbar/SheetToolbar.tsx +30 -19
- package/src/components/SheetToolbar/align.ts +41 -16
- package/src/components/SheetToolbar/style.ts +45 -15
- package/src/components/SheetToolbar/useToolbarState.ts +22 -5
- package/src/extensions/compute.stories.tsx +16 -7
- package/src/extensions/compute.ts +1 -1
- package/src/extensions/editor/sheet-extension.ts +7 -4
- package/src/index.ts +1 -1
- package/src/integrations/thread-ranges.ts +36 -40
- package/src/meta.ts +2 -2
- package/src/model/sheet-model.ts +69 -37
- package/src/playwright/playwright.config.ts +1 -1
- package/src/playwright/sheet.spec.ts +1 -0
- package/src/types/Sheet.ts +22 -28
- package/src/{capabilities → types}/capabilities.ts +2 -2
- package/src/types/index.ts +1 -0
- package/src/types/types.ts +81 -37
- package/src/types/util.ts +2 -1
- package/dist/lib/browser/SheetContainer-UAOTJWSB.mjs +0 -349
- package/dist/lib/browser/SheetContainer-UAOTJWSB.mjs.map +0 -7
- package/dist/lib/browser/anchor-sort-OWOAGQM6.mjs.map +0 -7
- package/dist/lib/browser/chunk-73AV3NH6.mjs +0 -15
- package/dist/lib/browser/chunk-73AV3NH6.mjs.map +0 -7
- package/dist/lib/browser/chunk-7VEWYJJN.mjs.map +0 -7
- package/dist/lib/browser/chunk-B7YJQ6NY.mjs +0 -852
- package/dist/lib/browser/chunk-B7YJQ6NY.mjs.map +0 -7
- package/dist/lib/browser/chunk-FWFAAGXL.mjs +0 -28
- package/dist/lib/browser/chunk-FWFAAGXL.mjs.map +0 -7
- package/dist/lib/browser/chunk-GBK6OLCY.mjs +0 -907
- package/dist/lib/browser/chunk-GBK6OLCY.mjs.map +0 -7
- package/dist/lib/browser/compute-graph-registry-AP5RA7W3.mjs +0 -21
- package/dist/lib/browser/compute-graph-registry-AP5RA7W3.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-OMHQGXFL.mjs +0 -56
- package/dist/lib/browser/intent-resolver-OMHQGXFL.mjs.map +0 -7
- package/dist/lib/browser/markdown-B6VKYY2S.mjs +0 -26
- package/dist/lib/browser/markdown-B6VKYY2S.mjs.map +0 -7
- package/dist/lib/browser/react-surface-OAPAEL36.mjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-37DHGRQD.mjs +0 -350
- package/dist/lib/node-esm/SheetContainer-37DHGRQD.mjs.map +0 -7
- package/dist/lib/node-esm/anchor-sort-FG3DS4HM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2D5E4MPO.mjs +0 -853
- package/dist/lib/node-esm/chunk-2D5E4MPO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-44YTKTMP.mjs +0 -16
- package/dist/lib/node-esm/chunk-44YTKTMP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4QV4AGWK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HILDMVPL.mjs +0 -29
- package/dist/lib/node-esm/chunk-HILDMVPL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KSHCRK5J.mjs +0 -908
- package/dist/lib/node-esm/chunk-KSHCRK5J.mjs.map +0 -7
- package/dist/lib/node-esm/compute-graph-registry-UMQ5UYCL.mjs +0 -22
- package/dist/lib/node-esm/compute-graph-registry-UMQ5UYCL.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-DHEHYV3B.mjs +0 -57
- package/dist/lib/node-esm/intent-resolver-DHEHYV3B.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-VKY7HXU2.mjs +0 -27
- package/dist/lib/node-esm/markdown-VKY7HXU2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-6LO5MPFK.mjs.map +0 -7
- package/dist/types/src/capabilities/anchor-sort.d.ts +0 -4
- package/dist/types/src/capabilities/anchor-sort.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -5
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/compute-graph-registry.d.ts +0 -4
- package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown.d.ts +0 -4
- package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/src/capabilities/anchor-sort.ts +0 -21
- package/src/capabilities/compute-graph-registry.ts +0 -23
- package/src/capabilities/intent-resolver.ts +0 -38
- package/src/capabilities/markdown.ts +0 -23
- package/src/capabilities/react-surface.tsx +0 -41
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/index.ts", "../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/SheetPlugin.tsx", "../../../src/capabilities/anchor-sort/index.ts", "../../../src/capabilities/compute-graph-registry/index.ts", "../../../src/capabilities/markdown/index.ts", "../../../src/capabilities/operation-resolver/index.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/serializer.ts", "../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { ActivationEvent, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { AutomationEvents } from '@dxos/plugin-automation';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { MarkdownEvents } from '@dxos/plugin-markdown';\nimport { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { AnchorSort, ComputeGraphRegistry, Markdown, OperationResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { serializer } from './serializer';\nimport { translations } from './translations';\nimport { Sheet, SheetOperation } from './types';\n\nexport const SheetPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Sheet.Sheet.typename,\n metadata: {\n label: (object: Sheet.Sheet) => object.name,\n icon: 'ph--grid-nine--regular',\n iconHue: 'indigo',\n serializer,\n comments: 'anchored',\n createObject: ((props) => Effect.sync(() => Sheet.make(props))) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addOperationResolverModule({ activate: OperationResolver }),\n AppPlugin.addSchemaModule({ schema: [Sheet.Sheet] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule({\n activatesOn: ActivationEvent.allOf(ClientEvents.ClientReady, AutomationEvents.ComputeRuntimeReady),\n activate: ComputeGraphRegistry,\n }),\n Plugin.addModule({\n id: 'on-space-created',\n activatesOn: SpaceEvents.SpaceCreated,\n activate: () =>\n Effect.succeed(\n Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>\n Operation.invoke(SheetOperation.OnCreateSpace, params),\n ),\n ),\n }),\n Plugin.addModule({\n activatesOn: MarkdownEvents.SetupExtensions,\n activate: Markdown,\n }),\n Plugin.addModule({\n // TODO(wittjosiah): More relevant event?\n activatesOn: AppActivationEvents.AppGraphReady,\n activate: AnchorSort,\n }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const AnchorSort = Capability.lazy('AnchorSort', () => import('./anchor-sort'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ComputeGraphRegistry = Capability.lazy('ComputeGraphRegistry', () => import('./compute-graph-registry'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Markdown = Capability.lazy('Markdown', () => import('./markdown'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { Obj } from '@dxos/echo';\nimport { getObjectCore } from '@dxos/echo-db';\nimport { type TypedObjectSerializer } from '@dxos/plugin-space/types';\n\nimport { Sheet } from './types';\n\nexport const serializer: TypedObjectSerializer<Sheet.Sheet> = {\n serialize: async ({ object }): Promise<string> => {\n return JSON.stringify(object, null, 2);\n },\n\n deserialize: async ({ content, newId }) => {\n const { id, ...parsed } = JSON.parse(content);\n const sheet = Obj.make(Sheet.Sheet, parsed);\n\n if (!newId) {\n const core = getObjectCore(sheet);\n core.id = id;\n }\n\n return sheet;\n },\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\nimport { Sheet } from './types';\n\nexport const translations = [\n {\n 'en-US': {\n [Sheet.Sheet.typename]: {\n 'typename label': 'Sheet',\n 'typename label_zero': 'Sheets',\n 'typename label_one': 'Sheet',\n 'typename label_other': 'Sheets',\n 'object name placeholder': 'New sheet',\n 'rename object label': 'Rename sheet',\n 'delete object label': 'Delete sheet',\n 'object deleted label': 'Sheet deleted',\n },\n [meta.id]: {\n 'plugin name': 'Sheets',\n 'cell placeholder': 'Cell value...',\n 'range key alignment label': 'Align',\n 'range key style label': 'Style',\n 'range value start label': 'Align left',\n 'range value center label': 'Align center',\n 'range value end label': 'Align right',\n 'range value softwrap label': 'Wrap text',\n 'range value highlight label': 'Highlight',\n 'toolbar action label': '{{value}}',\n 'selection overlaps existing comment label': 'Selected cell already has a comment',\n 'comment label': 'Add comment',\n 'comment ranges not supported label': 'Commenting on ranges is not yet supported',\n 'no cursor label': 'Select a cell to comment',\n 'open comment for sheet cell': 'View comments for cell',\n 'add col before label': 'Add column before',\n 'add col after label': 'Add column after',\n 'delete col label': 'Delete column',\n 'add row before label': 'Add row before',\n 'add row after label': 'Add row after',\n 'delete row label': 'Delete row',\n 'range list heading': 'Ranges',\n 'no ranges message': 'No ranges',\n 'range title': '{{position}} — {{value}}',\n 'col dropped label': 'Deleted a column',\n 'row dropped label': 'Deleted a row',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,cAAAA,aAAYC,cAAc;AACpD,SAASC,qBAAqBC,iBAAiB;AAC/C,SAASC,iBAAiB;AAC1B,SAASC,wBAAwB;AACjC,SAASC,oBAAoB;AAC7B,SAASC,sBAAsB;AAC/B,SAASC,mBAAmBC,mBAAmB;;;ACR/C,SAASC,kBAAkB;AAEpB,IAAMC,aAAaC,WAAWC,KAAK,cAAc,MAAM,OAAO,4BAAA,CAAA;;;ACFrE,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,uBAAuBC,YAAWC,KAAK,wBAAwB,MAAM,OAAO,uCAAA,CAAA;;;ACFzF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,WAAWC,YAAWC,KAAK,YAAY,MAAM,OAAO,yBAAA,CAAA;;;ACFjE,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,oBAAoBC,YAAWC,KAAK,qBAAqB,MAAM,OAAO,mCAAA,CAAA;;;ACFnF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,eAAeC,YAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACFzE,SAASC,WAAW;AACpB,SAASC,qBAAqB;AAKvB,IAAMC,aAAiD;EAC5DC,WAAW,OAAO,EAAEC,OAAM,MAAE;AAC1B,WAAOC,KAAKC,UAAUF,QAAQ,MAAM,CAAA;EACtC;EAEAG,aAAa,OAAO,EAAEC,SAASC,MAAK,MAAE;AACpC,UAAM,EAAEC,IAAI,GAAGC,OAAAA,IAAWN,KAAKO,MAAMJ,OAAAA;AACrC,UAAMK,QAAQC,IAAIC,KAAKC,cAAMA,OAAOL,MAAAA;AAEpC,QAAI,CAACF,OAAO;AACV,YAAMQ,OAAOC,cAAcL,KAAAA;AAC3BI,WAAKP,KAAKA;IACZ;AAEA,WAAOG;EACT;AACF;;;ACjBO,IAAMM,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,cAAMA,MAAMC,QAAQ,GAAG;QACtB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,oBAAoB;QACpB,6BAA6B;QAC7B,yBAAyB;QACzB,2BAA2B;QAC3B,4BAA4B;QAC5B,yBAAyB;QACzB,8BAA8B;QAC9B,+BAA+B;QAC/B,wBAAwB;QACxB,6CAA6C;QAC7C,iBAAiB;QACjB,sCAAsC;QACtC,mBAAmB;QACnB,+BAA+B;QAC/B,wBAAwB;QACxB,uBAAuB;QACvB,oBAAoB;QACpB,wBAAwB;QACxB,uBAAuB;QACvB,oBAAoB;QACpB,sBAAsB;QACtB,qBAAqB;QACrB,eAAe;QACf,qBAAqB;QACrB,qBAAqB;MACvB;IACF;EACF;;;;AP9BK,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,cAAMA,MAAMC;IAChBH,UAAU;MACRI,OAAO,CAACC,WAAwBA,OAAOC;MACvCC,MAAM;MACNC,SAAS;MACTC;MACAC,UAAU;MACVC,cAAe,CAACC,UAAiBC,YAAK,MAAMX,cAAMY,KAAKF,KAAAA,CAAAA;IACzD;EACF;AACF,CAAA,GACAd,UAAUiB,2BAA2B;EAAEC,UAAUC;AAAkB,CAAA,GACnEnB,UAAUoB,gBAAgB;EAAEC,QAAQ;IAACjB,cAAMA;;AAAO,CAAA,GAClDJ,UAAUsB,iBAAiB;EAAEJ,UAAUK;AAAa,CAAA,GACpDvB,UAAUwB,sBAAsB;EAAEC;AAAa,CAAA,GAC/C7B,OAAO8B,UAAU;EACfC,aAAaC,gBAAgBC,MAAMC,aAAaC,aAAaC,iBAAiBC,mBAAmB;EACjGf,UAAUgB;AACZ,CAAA,GACAtC,OAAO8B,UAAU;EACfvB,IAAI;EACJwB,aAAaQ,YAAYC;EACzBlB,UAAU,MACDmB,eACLC,YAAWC,YAAYC,kBAAkBC,eAAe,CAACC,WACvDC,UAAUC,OAAOC,eAAeJ,eAAeC,MAAAA,CAAAA,CAAAA;AAGvD,CAAA,GACA9C,OAAO8B,UAAU;EACfC,aAAamB,eAAeC;EAC5B7B,UAAU8B;AACZ,CAAA,GACApD,OAAO8B,UAAU;;EAEfC,aAAasB,oBAAoBC;EACjChC,UAAUiC;AACZ,CAAA,GACAvD,OAAOoB,IAAI;",
|
|
6
|
+
"names": ["Effect", "ActivationEvent", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "Operation", "AutomationEvents", "ClientEvents", "MarkdownEvents", "SpaceCapabilities", "SpaceEvents", "Capability", "AnchorSort", "Capability", "lazy", "Capability", "ComputeGraphRegistry", "Capability", "lazy", "Capability", "Markdown", "Capability", "lazy", "Capability", "OperationResolver", "Capability", "lazy", "Capability", "ReactSurface", "Capability", "lazy", "Obj", "getObjectCore", "serializer", "serialize", "object", "JSON", "stringify", "deserialize", "content", "newId", "id", "parsed", "parse", "sheet", "Obj", "make", "Sheet", "core", "getObjectCore", "translations", "Sheet", "typename", "meta", "id", "SheetPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Sheet", "typename", "label", "object", "name", "icon", "iconHue", "serializer", "comments", "createObject", "props", "sync", "make", "addOperationResolverModule", "activate", "OperationResolver", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "addModule", "activatesOn", "ActivationEvent", "allOf", "ClientEvents", "ClientReady", "AutomationEvents", "ComputeRuntimeReady", "ComputeGraphRegistry", "SpaceEvents", "SpaceCreated", "succeed", "Capability", "contributes", "SpaceCapabilities", "OnCreateSpace", "params", "Operation", "invoke", "SheetOperation", "MarkdownEvents", "SetupExtensions", "Markdown", "AppActivationEvents", "AppGraphReady", "AnchorSort"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computeGraphFacet
|
|
3
|
+
} from "./chunk-IFLWVS2V.mjs";
|
|
4
|
+
import {
|
|
5
|
+
SheetCapabilities
|
|
6
|
+
} from "./chunk-KE3AKN5W.mjs";
|
|
7
|
+
|
|
8
|
+
// src/capabilities/markdown/markdown.ts
|
|
9
|
+
import * as Effect from "effect/Effect";
|
|
10
|
+
import { Capability } from "@dxos/app-framework";
|
|
11
|
+
import { getSpace } from "@dxos/client/echo";
|
|
12
|
+
import { MarkdownCapabilities } from "@dxos/plugin-markdown";
|
|
13
|
+
var markdown_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
14
|
+
const capabilities = yield* Capability.Service;
|
|
15
|
+
return Capability.contributes(MarkdownCapabilities.Extensions, [
|
|
16
|
+
({ document: doc }) => {
|
|
17
|
+
const computeGraphRegistry = capabilities.get(SheetCapabilities.ComputeGraphRegistry);
|
|
18
|
+
const space = getSpace(doc);
|
|
19
|
+
if (space) {
|
|
20
|
+
const computeGraph = computeGraphRegistry.getOrCreateGraph(space);
|
|
21
|
+
return computeGraphFacet.of(computeGraph);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]);
|
|
25
|
+
}));
|
|
26
|
+
export {
|
|
27
|
+
markdown_default as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=markdown-D2T2DOVX.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/markdown/markdown.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { getSpace } from '@dxos/client/echo';\nimport { MarkdownCapabilities } from '@dxos/plugin-markdown';\n\nimport { computeGraphFacet } from '../../extensions';\nimport { SheetCapabilities } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n // Get context for lazy capability access in callbacks.\n const capabilities = yield* Capability.Service;\n\n return Capability.contributes(MarkdownCapabilities.Extensions, [\n ({ document: doc }) => {\n const computeGraphRegistry = capabilities.get(SheetCapabilities.ComputeGraphRegistry);\n const space = getSpace(doc);\n if (space) {\n const computeGraph = computeGraphRegistry.getOrCreateGraph(space);\n return computeGraphFacet.of(computeGraph);\n }\n },\n ]);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,gBAAgB;AACzB,SAASC,4BAA4B;AAKrC,IAAA,mBAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAEhB,QAAMC,eAAe,OAAOH,WAAWI;AAEvC,SAAOJ,WAAWK,YAAYC,qBAAqBC,YAAY;IAC7D,CAAC,EAAEC,UAAUC,IAAG,MAAE;AAChB,YAAMC,uBAAuBP,aAAaQ,IAAIC,kBAAkBC,oBAAoB;AACpF,YAAMC,QAAQC,SAASN,GAAAA;AACvB,UAAIK,OAAO;AACT,cAAME,eAAeN,qBAAqBO,iBAAiBH,KAAAA;AAC3D,eAAOI,kBAAkBC,GAAGH,YAAAA;MAC9B;IACF;GACD;AACH,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "getSpace", "MarkdownCapabilities", "Capability", "makeModule", "fnUntraced", "capabilities", "Service", "contributes", "MarkdownCapabilities", "Extensions", "document", "doc", "computeGraphRegistry", "get", "SheetCapabilities", "ComputeGraphRegistry", "space", "getSpace", "computeGraph", "getOrCreateGraph", "computeGraphFacet", "of"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":2115,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/capabilities.ts":{"bytes":1439,"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":13782,"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":10814,"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/model/sheet-model.ts":{"bytes":58045,"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/types/types.ts":{"bytes":7011,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/model/index.ts","kind":"import-statement","original":"../model"},{"path":"src/types/Sheet.ts","kind":"import-statement","original":"./Sheet"}],"format":"esm"},"src/types/index.ts":{"bytes":778,"imports":[{"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.ts":{"bytes":2607,"imports":[{"path":"@dxos/app-framework","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/compute-graph-registry.ts":{"bytes":3349,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-automation","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"@dxos/compute","kind":"dynamic-import","external":true}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":5426,"imports":[{"path":"@dxos/app-framework","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/extensions/compute.ts":{"bytes":17694,"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/react-ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/editor/sheet-extension.ts":{"bytes":28539,"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/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-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.ts":{"bytes":2952,"imports":[{"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/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytes":4223,"imports":[{"path":"@preact-signals/safe-react/tracking","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}],"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":15465,"imports":[{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Schema","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/react","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/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/components/SheetContext/SheetContext.tsx":{"bytes":10941,"imports":[{"path":"@preact-signals/safe-react/tracking","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":"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":21702,"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/react-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":47086,"imports":[{"path":"@preact-signals/safe-react/tracking","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/react","kind":"import-statement","external":true},{"path":"@dxos/compute","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":7937,"imports":[{"path":"@preact-signals/safe-react/tracking","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/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-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":5396,"imports":[{"path":"@preact-signals/safe-react/tracking","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":"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":12241,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","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":12520,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","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":1362,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"format":"esm"},"src/components/SheetToolbar/SheetToolbar.tsx":{"bytes":9268,"imports":[{"path":"@preact-signals/safe-react/tracking","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-framework/react","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":4420,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","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.tsx":{"bytes":5694,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","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"},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1878,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/capabilities/anchor-sort.ts","kind":"dynamic-import","original":"./anchor-sort"},{"path":"src/capabilities/compute-graph-registry.ts","kind":"dynamic-import","original":"./compute-graph-registry"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/markdown.ts","kind":"dynamic-import","original":"./markdown"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","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":9696,"imports":[{"path":"@dxos/app-framework","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":"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":735,"imports":[{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"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":9559},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-73AV3NH6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/anchor-sort-OWOAGQM6.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/compute-graph-registry-AP5RA7W3.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/intent-resolver-OMHQGXFL.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/markdown-B6VKYY2S.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/react-surface-OAPAEL36.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","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/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/capabilities/index.ts":{"bytesInOutput":407},"src/index.ts":{"bytesInOutput":0},"src/SheetPlugin.tsx":{"bytesInOutput":2048},"src/serializer.ts":{"bytesInOutput":451},"src/translations.ts":{"bytesInOutput":1803}},"bytes":5101},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"}],"exports":["ApiError","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","RangeException","ReadonlyException","Sheet","SheetAction","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","rangeFromIndex","rangeToIndex","styleKey"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":959},"dist/lib/browser/anchor-sort-OWOAGQM6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1368},"dist/lib/browser/anchor-sort-OWOAGQM6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/anchor-sort.ts","inputs":{"src/capabilities/anchor-sort.ts":{"bytesInOutput":486}},"bytes":729},"dist/lib/browser/compute-graph-registry-AP5RA7W3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1668},"dist/lib/browser/compute-graph-registry-AP5RA7W3.mjs":{"imports":[{"path":"dist/lib/browser/chunk-73AV3NH6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"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.ts","inputs":{"src/capabilities/compute-graph-registry.ts":{"bytesInOutput":577}},"bytes":832},"dist/lib/browser/intent-resolver-OMHQGXFL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2523},"dist/lib/browser/intent-resolver-OMHQGXFL.mjs":{"imports":[{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":1211}},"bytes":1472},"dist/lib/browser/markdown-B6VKYY2S.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1526},"dist/lib/browser/markdown-B6VKYY2S.mjs":{"imports":[{"path":"dist/lib/browser/chunk-73AV3NH6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-7VEWYJJN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"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.ts","inputs":{"src/capabilities/markdown.ts":{"bytesInOutput":553}},"bytes":826},"dist/lib/browser/SheetContainer-UAOTJWSB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":23061},"dist/lib/browser/SheetContainer-UAOTJWSB.mjs":{"imports":[{"path":"dist/lib/browser/chunk-B7YJQ6NY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-7VEWYJJN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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":"@preact-signals/safe-react/tracking","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-framework/react","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/components/SheetContainer/index.ts","inputs":{"src/components/SheetContainer/SheetContainer.tsx":{"bytesInOutput":955},"src/components/FunctionEditor/FunctionEditor.tsx":{"bytesInOutput":1572},"src/components/FunctionEditor/index.ts":{"bytesInOutput":0},"src/components/SheetToolbar/SheetToolbar.tsx":{"bytesInOutput":2215},"src/components/SheetToolbar/align.ts":{"bytesInOutput":2678},"src/components/SheetToolbar/style.ts":{"bytesInOutput":2725},"src/components/SheetToolbar/useToolbarState.ts":{"bytesInOutput":173},"src/components/SheetToolbar/index.ts":{"bytesInOutput":0},"src/components/SheetContainer/index.ts":{"bytesInOutput":45}},"bytes":11194},"dist/lib/browser/react-surface-OAPAEL36.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2789},"dist/lib/browser/react-surface-OAPAEL36.mjs":{"imports":[{"path":"dist/lib/browser/chunk-73AV3NH6.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-B7YJQ6NY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-7VEWYJJN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/react","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.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":1219}},"bytes":1652},"dist/lib/browser/chunk-73AV3NH6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":729},"dist/lib/browser/chunk-73AV3NH6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["SheetCapabilities"],"inputs":{"src/capabilities/capabilities.ts":{"bytesInOutput":272}},"bytes":433},"dist/lib/browser/chunk-B7YJQ6NY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":55526},"dist/lib/browser/chunk-B7YJQ6NY.mjs":{"imports":[{"path":"dist/lib/browser/chunk-GBK6OLCY.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-7VEWYJJN.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","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":"@preact-signals/safe-react/tracking","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/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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/react","kind":"import-statement","external":true},{"path":"@dxos/compute","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/Function","kind":"import-statement","external":true},{"path":"effect/Schema","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/react","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/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":"@preact-signals/safe-react/tracking","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":"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/react-ui-theme","kind":"import-statement","external":true},{"path":"dist/lib/browser/SheetContainer-UAOTJWSB.mjs","kind":"dynamic-import"}],"exports":["ComputeGraphContextProvider","GridSheet","RangeList","SheetContainer","SheetProvider","useComputeGraph","useSheetContext"],"inputs":{"src/components/ComputeGraph/ComputeGraphContextProvider.tsx":{"bytesInOutput":940},"src/components/RangeList/RangeList.tsx":{"bytesInOutput":1998},"src/components/index.ts":{"bytesInOutput":104},"src/components/ComputeGraph/index.ts":{"bytesInOutput":0},"src/components/GridSheet/GridSheet.tsx":{"bytesInOutput":12223},"src/integrations/thread-ranges.ts":{"bytesInOutput":3389},"src/integrations/index.ts":{"bytesInOutput":0},"src/components/SheetContext/SheetContext.tsx":{"bytesInOutput":2614},"src/components/SheetContext/index.ts":{"bytesInOutput":0},"src/components/GridSheet/util.ts":{"bytesInOutput":5057},"src/components/GridSheet/index.ts":{"bytesInOutput":0},"src/components/RangeList/index.ts":{"bytesInOutput":0}},"bytes":27169},"dist/lib/browser/chunk-GBK6OLCY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":46727},"dist/lib/browser/chunk-GBK6OLCY.mjs":{"imports":[{"path":"dist/lib/browser/chunk-FWFAAGXL.mjs","kind":"import-statement"},{"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/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}],"exports":["ApiError","DEFAULT_COLS","DEFAULT_ROWS","MAX_COLS","MAX_ROWS","RangeException","ReadonlyException","SheetAction","Sheet_exports","addressFromIndex","addressToIndex","alignKey","cellClassNameForRange","commentKey","compareIndexPositions","createIndex","createIndices","initialize","insertIndices","mapFormulaIndicesToRefs","mapFormulaRefsToIndices","rangeFromIndex","rangeToIndex","styleKey","useSheetModel"],"inputs":{"src/types/Sheet.ts":{"bytesInOutput":2564},"src/types/util.ts":{"bytesInOutput":2925},"src/types/index.ts":{"bytesInOutput":0},"src/types/sheet-range-types.ts":{"bytesInOutput":709},"src/types/types.ts":{"bytesInOutput":1622},"src/model/sheet-model.ts":{"bytesInOutput":14540},"src/model/index.ts":{"bytesInOutput":0},"src/model/useSheetModel.ts":{"bytesInOutput":543}},"bytes":23660},"dist/lib/browser/chunk-7VEWYJJN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20137},"dist/lib/browser/chunk-7VEWYJJN.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/react-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/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["computeGraphFacet","rangeExtension","sheetExtension"],"inputs":{"src/extensions/compute.ts":{"bytesInOutput":509},"src/extensions/index.ts":{"bytesInOutput":0},"src/extensions/editor/sheet-extension.ts":{"bytesInOutput":6110},"src/extensions/editor/index.ts":{"bytesInOutput":0}},"bytes":6806},"dist/lib/browser/chunk-FWFAAGXL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1012},"dist/lib/browser/chunk-FWFAAGXL.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["__export","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":543}},"bytes":802}}}
|
|
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}}}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SheetOperation,
|
|
3
|
+
Sheet_exports,
|
|
4
|
+
meta
|
|
5
|
+
} from "./chunk-KE3AKN5W.mjs";
|
|
6
|
+
|
|
7
|
+
// src/capabilities/operation-resolver/operation-resolver.ts
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import { Capabilities, Capability, UndoMapping } from "@dxos/app-framework";
|
|
10
|
+
import { Obj, Ref, Type } from "@dxos/echo";
|
|
11
|
+
import { OperationResolver } from "@dxos/operation";
|
|
12
|
+
import { Collection } from "@dxos/schema";
|
|
13
|
+
var operation_resolver_default = Capability.makeModule(() => Effect.succeed([
|
|
14
|
+
Capability.contributes(Capabilities.UndoMapping, [
|
|
15
|
+
UndoMapping.make({
|
|
16
|
+
operation: SheetOperation.DropAxis,
|
|
17
|
+
inverse: SheetOperation.RestoreAxis,
|
|
18
|
+
deriveContext: (input, output) => ({
|
|
19
|
+
model: input.model,
|
|
20
|
+
axis: output.axis,
|
|
21
|
+
axisIndex: output.axisIndex,
|
|
22
|
+
index: output.index,
|
|
23
|
+
axisMeta: output.axisMeta,
|
|
24
|
+
values: output.values
|
|
25
|
+
}),
|
|
26
|
+
message: [
|
|
27
|
+
"axis dropped label",
|
|
28
|
+
{
|
|
29
|
+
ns: meta.id
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
]),
|
|
34
|
+
Capability.contributes(Capabilities.OperationResolver, [
|
|
35
|
+
OperationResolver.make({
|
|
36
|
+
operation: SheetOperation.OnCreateSpace,
|
|
37
|
+
handler: Effect.fnUntraced(function* ({ rootCollection }) {
|
|
38
|
+
const collection = Collection.makeManaged({
|
|
39
|
+
key: Type.getTypename(Sheet_exports.Sheet)
|
|
40
|
+
});
|
|
41
|
+
Obj.change(rootCollection, (c) => {
|
|
42
|
+
c.objects.push(Ref.make(collection));
|
|
43
|
+
});
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
OperationResolver.make({
|
|
47
|
+
operation: SheetOperation.InsertAxis,
|
|
48
|
+
handler: ({ model, axis, index, count }) => Effect.sync(() => {
|
|
49
|
+
model[axis === "col" ? "insertColumns" : "insertRows"](index, count);
|
|
50
|
+
})
|
|
51
|
+
}),
|
|
52
|
+
OperationResolver.make({
|
|
53
|
+
operation: SheetOperation.DropAxis,
|
|
54
|
+
handler: ({ model, axis, axisIndex }) => Effect.sync(() => {
|
|
55
|
+
const undoData = model[axis === "col" ? "dropColumn" : "dropRow"](axisIndex);
|
|
56
|
+
return {
|
|
57
|
+
axis: undoData.axis,
|
|
58
|
+
axisIndex: undoData.axisIndex,
|
|
59
|
+
index: undoData.index,
|
|
60
|
+
axisMeta: undoData.axisMeta,
|
|
61
|
+
values: undoData.values
|
|
62
|
+
};
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
//
|
|
66
|
+
// RestoreAxis (inverse of DropAxis)
|
|
67
|
+
//
|
|
68
|
+
OperationResolver.make({
|
|
69
|
+
operation: SheetOperation.RestoreAxis,
|
|
70
|
+
handler: ({ model, axis, ...restoreData }) => Effect.sync(() => {
|
|
71
|
+
model[axis === "col" ? "restoreColumn" : "restoreRow"](restoreData);
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
])
|
|
75
|
+
]));
|
|
76
|
+
export {
|
|
77
|
+
operation_resolver_default as default
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=operation-resolver-P2RX75DA.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 { Collection } 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 = Collection.makeManaged({ 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,kBAAkB;AAK3B,IAAA,6BAAeC,WAAWC,WAAW,MAC5BC,eAAQ;EACbF,WAAWG,YAAYC,aAAaC,aAAa;IAC/CA,YAAYC,KAAK;MACfC,WAAWC,eAAeC;MAC1BC,SAASF,eAAeG;MACxBC,eAAe,CAACC,OAAOC,YAAY;QACjCC,OAAOF,MAAME;QACbC,MAAMF,OAAOE;QACbC,WAAWH,OAAOG;QAClBC,OAAOJ,OAAOI;QACdC,UAAUL,OAAOK;QACjBC,QAAQN,OAAOM;MACjB;MACAC,SAAS;QAAC;QAAsB;UAAEC,IAAIC,KAAKC;QAAG;;IAChD,CAAA;GACD;EACDxB,WAAWG,YAAYC,aAAaqB,mBAAmB;IACrDA,kBAAkBnB,KAAK;MACrBC,WAAWC,eAAekB;MAC1BC,SAAgBC,kBAAW,WAAW,EAAEC,eAAc,GAAE;AACtD,cAAMC,aAAaC,WAAWC,YAAY;UAAEC,KAAKC,KAAKC,YAAYC,cAAMA,KAAK;QAAE,CAAA;AAC/EC,YAAIC,OAAOT,gBAAgB,CAACU,MAAAA;AAC1BA,YAAEC,QAAQC,KAAKC,IAAIpC,KAAKwB,UAAAA,CAAAA;QAC1B,CAAA;MACF,CAAA;IACF,CAAA;IACAL,kBAAkBnB,KAAK;MACrBC,WAAWC,eAAemC;MAC1BhB,SAAS,CAAC,EAAEZ,OAAOC,MAAME,OAAO0B,MAAK,MAC5BC,YAAK,MAAA;AACV9B,cAAMC,SAAS,QAAQ,kBAAkB,YAAA,EAAcE,OAAO0B,KAAAA;MAChE,CAAA;IACJ,CAAA;IACAnB,kBAAkBnB,KAAK;MACrBC,WAAWC,eAAeC;MAC1BkB,SAAS,CAAC,EAAEZ,OAAOC,MAAMC,UAAS,MACzB4B,YAAK,MAAA;AACV,cAAMC,WAAW/B,MAAMC,SAAS,QAAQ,eAAe,SAAA,EAAWC,SAAAA;AAElE,eAAO;UACLD,MAAM8B,SAAS9B;UACfC,WAAW6B,SAAS7B;UACpBC,OAAO4B,SAAS5B;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", "Collection", "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", "Collection", "makeManaged", "key", "Type", "getTypename", "Sheet", "Obj", "change", "c", "objects", "push", "Ref", "InsertAxis", "count", "sync", "undoData", "restoreData"]
|
|
7
|
+
}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SheetCapabilities
|
|
3
|
-
} from "./chunk-73AV3NH6.mjs";
|
|
4
1
|
import {
|
|
5
2
|
ComputeGraphContextProvider,
|
|
6
3
|
RangeList,
|
|
7
4
|
SheetContainer
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import
|
|
10
|
-
Sheet_exports
|
|
11
|
-
} from "./chunk-GBK6OLCY.mjs";
|
|
12
|
-
import "./chunk-7VEWYJJN.mjs";
|
|
5
|
+
} from "./chunk-EDWHV64N.mjs";
|
|
6
|
+
import "./chunk-IFLWVS2V.mjs";
|
|
13
7
|
import {
|
|
8
|
+
SheetCapabilities,
|
|
9
|
+
Sheet_exports,
|
|
14
10
|
meta
|
|
15
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KE3AKN5W.mjs";
|
|
16
12
|
|
|
17
|
-
// src/capabilities/react-surface.tsx
|
|
13
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
14
|
+
import * as Effect from "effect/Effect";
|
|
18
15
|
import React from "react";
|
|
19
|
-
import { Capabilities,
|
|
20
|
-
import { useCapability } from "@dxos/app-framework/
|
|
16
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
17
|
+
import { Surface, useCapability } from "@dxos/app-framework/ui";
|
|
21
18
|
import { Obj } from "@dxos/echo";
|
|
22
19
|
import { getSpace } from "@dxos/react-client/echo";
|
|
23
|
-
var react_surface_default = (() => contributes(Capabilities.ReactSurface, [
|
|
24
|
-
|
|
20
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
21
|
+
Surface.create({
|
|
25
22
|
id: `${meta.id}/sheet`,
|
|
26
23
|
role: [
|
|
27
24
|
"article",
|
|
@@ -33,13 +30,13 @@ var react_surface_default = (() => contributes(Capabilities.ReactSurface, [
|
|
|
33
30
|
return /* @__PURE__ */ React.createElement(ComputeGraphContextProvider, {
|
|
34
31
|
registry: computeGraphRegistry
|
|
35
32
|
}, /* @__PURE__ */ React.createElement(SheetContainer, {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
role,
|
|
34
|
+
subject: data.subject,
|
|
35
|
+
space: getSpace(data.subject)
|
|
39
36
|
}));
|
|
40
37
|
}
|
|
41
38
|
}),
|
|
42
|
-
|
|
39
|
+
Surface.create({
|
|
43
40
|
id: `${meta.id}/object-settings`,
|
|
44
41
|
role: "object-settings",
|
|
45
42
|
filter: (data) => Obj.instanceOf(Sheet_exports.Sheet, data.subject),
|
|
@@ -47,8 +44,8 @@ var react_surface_default = (() => contributes(Capabilities.ReactSurface, [
|
|
|
47
44
|
sheet: data.subject
|
|
48
45
|
})
|
|
49
46
|
})
|
|
50
|
-
]));
|
|
47
|
+
])));
|
|
51
48
|
export {
|
|
52
49
|
react_surface_default as default
|
|
53
50
|
};
|
|
54
|
-
//# sourceMappingURL=react-surface-
|
|
51
|
+
//# sourceMappingURL=react-surface-45CRAB5G.mjs.map
|