@dxos/plugin-sheet 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/RangeList-YI6FSF3S.mjs +48 -0
- package/dist/lib/browser/RangeList-YI6FSF3S.mjs.map +7 -0
- package/dist/lib/browser/{chunk-S27QJYTN.mjs → SheetContainer-O577SWMS.mjs} +578 -243
- package/dist/lib/browser/SheetContainer-O577SWMS.mjs.map +7 -0
- package/dist/lib/browser/{anchor-sort-LLO7PZKF.mjs → anchor-sort-NV6MQFUH.mjs} +5 -4
- package/dist/lib/browser/anchor-sort-NV6MQFUH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KE3AKN5W.mjs → chunk-GHS75KWH.mjs} +15 -32
- package/dist/lib/browser/chunk-GHS75KWH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-IFLWVS2V.mjs → chunk-NNWF7EKC.mjs} +10 -10
- package/dist/lib/browser/{chunk-IFLWVS2V.mjs.map → chunk-NNWF7EKC.mjs.map} +2 -2
- package/dist/lib/browser/{compute-graph-registry-RC5L7RE4.mjs → compute-graph-registry-HVVALVIE.mjs} +2 -2
- package/dist/lib/browser/index.mjs +24 -27
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{markdown-D2T2DOVX.mjs → markdown-I2REDYX5.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-YDOW72CN.mjs → operation-resolver-VGBMFSYG.mjs} +5 -19
- package/dist/lib/browser/operation-resolver-VGBMFSYG.mjs.map +7 -0
- package/dist/lib/browser/react-surface-NSPYPZYP.mjs +52 -0
- package/dist/lib/browser/react-surface-NSPYPZYP.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/RangeList-7EG3K4KG.mjs +49 -0
- package/dist/lib/node-esm/RangeList-7EG3K4KG.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Y4V6HVHO.mjs → SheetContainer-ICPEZUMD.mjs} +578 -243
- package/dist/lib/node-esm/SheetContainer-ICPEZUMD.mjs.map +7 -0
- package/dist/lib/node-esm/{anchor-sort-OX5I2YOW.mjs → anchor-sort-7XYLH2AM.mjs} +5 -4
- package/dist/lib/node-esm/anchor-sort-7XYLH2AM.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PPOYR7DK.mjs → chunk-M52YLLWU.mjs} +10 -10
- package/dist/lib/node-esm/{chunk-PPOYR7DK.mjs.map → chunk-M52YLLWU.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-6J5L47IB.mjs → chunk-VGXC77GH.mjs} +15 -32
- package/dist/lib/node-esm/chunk-VGXC77GH.mjs.map +7 -0
- package/dist/lib/node-esm/{compute-graph-registry-ZGXVLVGD.mjs → compute-graph-registry-IDU2KKQU.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +24 -27
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{markdown-PTV72DLO.mjs → markdown-6KBH3MBO.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{operation-resolver-Q63VQBVA.mjs → operation-resolver-E7FIHPCO.mjs} +5 -19
- package/dist/lib/node-esm/operation-resolver-E7FIHPCO.mjs.map +7 -0
- package/dist/lib/node-esm/{react-surface-SWRZSZVR.mjs → react-surface-LCMQBROP.mjs} +22 -21
- package/dist/lib/node-esm/react-surface-LCMQBROP.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts +3 -2
- package/dist/types/src/capabilities/anchor-sort/anchor-sort.d.ts.map +1 -1
- package/dist/types/src/capabilities/anchor-sort/index.d.ts +1 -1
- package/dist/types/src/capabilities/anchor-sort/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/compute-graph-registry/compute-graph-registry.d.ts +1 -1
- package/dist/types/src/capabilities/markdown/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/Sheet/Sheet.d.ts +15 -0
- package/dist/types/src/components/Sheet/Sheet.d.ts.map +1 -0
- package/dist/types/src/components/Sheet/index.d.ts +2 -0
- package/dist/types/src/components/Sheet/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/SheetCellEditor.stories.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/SheetContent.d.ts +7 -0
- package/dist/types/src/components/SheetContent/SheetContent.d.ts.map +1 -0
- package/dist/types/src/components/{GridSheet/GridSheet.stories.d.ts → SheetContent/SheetContent.stories.d.ts} +5 -2
- package/dist/types/src/components/SheetContent/SheetContent.stories.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/index.d.ts +2 -0
- package/dist/types/src/components/SheetContent/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetContent/util.d.ts.map +1 -0
- package/dist/types/src/components/{SheetContext/SheetContext.d.ts → SheetRoot/SheetRoot.d.ts} +6 -4
- package/dist/types/src/components/SheetRoot/SheetRoot.d.ts.map +1 -0
- package/dist/types/src/components/SheetRoot/index.d.ts +2 -0
- package/dist/types/src/components/SheetRoot/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts +7 -0
- package/dist/types/src/components/SheetStatusbar/SheetStatusbar.d.ts.map +1 -0
- package/dist/types/src/components/SheetStatusbar/index.d.ts +2 -0
- package/dist/types/src/components/SheetStatusbar/index.d.ts.map +1 -0
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +6 -3
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts +2 -0
- package/dist/types/src/components/SheetToolbar/SheetToolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components → containers}/RangeList/RangeList.d.ts.map +1 -1
- package/dist/types/src/containers/RangeList/index.d.ts +3 -0
- package/dist/types/src/containers/RangeList/index.d.ts.map +1 -0
- package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts +12 -0
- package/dist/types/src/containers/SheetContainer/SheetContainer.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SheetContainer/SheetContainer.stories.d.ts +2 -2
- package/dist/types/src/containers/SheetContainer/SheetContainer.stories.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/SheetContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/extensions/compute.stories.d.ts.map +1 -1
- package/dist/types/src/integrations/thread-ranges.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 +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Sheet.d.ts +1 -1
- package/dist/types/src/types/Sheet.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +3 -24
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +62 -62
- package/src/SheetPlugin.tsx +15 -24
- package/src/capabilities/anchor-sort/anchor-sort.ts +3 -2
- package/src/capabilities/operation-resolver/operation-resolver.ts +4 -15
- package/src/capabilities/react-surface/react-surface.tsx +19 -13
- package/src/components/ComputeGraph/compute-graph.stories.tsx +2 -2
- package/src/components/Sheet/Sheet.tsx +20 -0
- package/src/components/Sheet/index.ts +5 -0
- package/src/components/{GridSheet → SheetContent}/SheetCellEditor.stories.tsx +5 -5
- package/src/components/{GridSheet/GridSheet.stories.tsx → SheetContent/SheetContent.stories.tsx} +12 -11
- package/src/components/{GridSheet/GridSheet.tsx → SheetContent/SheetContent.tsx} +14 -11
- package/src/components/{RangeList → SheetContent}/index.ts +1 -1
- package/src/components/{GridSheet → SheetContent}/util.ts +3 -3
- package/src/components/{SheetContext/SheetContext.tsx → SheetRoot/SheetRoot.tsx} +44 -36
- package/src/components/{GridSheet → SheetRoot}/index.ts +1 -1
- package/src/components/{FunctionEditor/FunctionEditor.tsx → SheetStatusbar/SheetStatusbar.tsx} +19 -8
- package/src/components/{FunctionEditor → SheetStatusbar}/index.ts +1 -1
- package/src/components/SheetToolbar/SheetToolbar.stories.tsx +4 -4
- package/src/components/SheetToolbar/SheetToolbar.tsx +11 -10
- package/src/components/SheetToolbar/align.ts +9 -9
- package/src/components/SheetToolbar/style.ts +7 -7
- package/src/components/index.ts +1 -7
- package/src/{components → containers}/RangeList/RangeList.tsx +10 -8
- package/src/containers/RangeList/index.ts +7 -0
- package/src/{components → containers}/SheetContainer/SheetContainer.stories.tsx +28 -33
- package/src/containers/SheetContainer/SheetContainer.tsx +57 -0
- package/src/{components → containers}/SheetContainer/index.ts +1 -1
- package/src/containers/index.ts +8 -0
- package/src/extensions/compute.stories.tsx +12 -11
- package/src/extensions/editor/sheet-extension.ts +10 -10
- package/src/integrations/thread-ranges.ts +6 -9
- package/src/meta.ts +1 -1
- package/src/model/sheet-model.ts +36 -34
- package/src/playwright/playwright.config.ts +1 -1
- package/src/playwright/sheet.spec.ts +1 -1
- package/src/translations.ts +1 -0
- package/src/types/Sheet.ts +8 -2
- package/src/types/capabilities.ts +1 -1
- package/src/types/sheet-range-types.ts +3 -3
- package/src/types/types.ts +4 -20
- package/dist/lib/browser/SheetContainer-J72HS2FI.mjs +0 -397
- package/dist/lib/browser/SheetContainer-J72HS2FI.mjs.map +0 -7
- package/dist/lib/browser/anchor-sort-LLO7PZKF.mjs.map +0 -7
- package/dist/lib/browser/chunk-KE3AKN5W.mjs.map +0 -7
- package/dist/lib/browser/chunk-S27QJYTN.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-YDOW72CN.mjs.map +0 -7
- package/dist/lib/browser/react-surface-JIYVFH42.mjs +0 -51
- package/dist/lib/browser/react-surface-JIYVFH42.mjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-OGSSDOZU.mjs +0 -398
- package/dist/lib/node-esm/SheetContainer-OGSSDOZU.mjs.map +0 -7
- package/dist/lib/node-esm/anchor-sort-OX5I2YOW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6J5L47IB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Y4V6HVHO.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-Q63VQBVA.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-SWRZSZVR.mjs.map +0 -7
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +0 -3
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +0 -1
- package/dist/types/src/components/FunctionEditor/index.d.ts +0 -2
- package/dist/types/src/components/FunctionEditor/index.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts +0 -3
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/index.d.ts +0 -2
- package/dist/types/src/components/GridSheet/index.d.ts.map +0 -1
- package/dist/types/src/components/GridSheet/util.d.ts.map +0 -1
- package/dist/types/src/components/RangeList/index.d.ts +0 -2
- package/dist/types/src/components/RangeList/index.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +0 -10
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +0 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +0 -1
- package/dist/types/src/components/SheetContext/index.d.ts +0 -2
- package/dist/types/src/components/SheetContext/index.d.ts.map +0 -1
- package/src/components/SheetContainer/SheetContainer.tsx +0 -48
- package/src/components/SheetContext/index.ts +0 -5
- /package/dist/lib/browser/{compute-graph-registry-RC5L7RE4.mjs.map → compute-graph-registry-HVVALVIE.mjs.map} +0 -0
- /package/dist/lib/browser/{markdown-D2T2DOVX.mjs.map → markdown-I2REDYX5.mjs.map} +0 -0
- /package/dist/lib/node-esm/{compute-graph-registry-ZGXVLVGD.mjs.map → compute-graph-registry-IDU2KKQU.mjs.map} +0 -0
- /package/dist/lib/node-esm/{markdown-PTV72DLO.mjs.map → markdown-6KBH3MBO.mjs.map} +0 -0
- /package/dist/types/src/components/{GridSheet → SheetContent}/SheetCellEditor.stories.d.ts +0 -0
- /package/dist/types/src/components/{GridSheet → SheetContent}/util.d.ts +0 -0
- /package/dist/types/src/{components → containers}/RangeList/RangeList.d.ts +0 -0
- /package/dist/types/src/{components → containers}/SheetContainer/index.d.ts +0 -0
|
@@ -11,7 +11,7 @@ import { Capability } from "@dxos/app-framework";
|
|
|
11
11
|
// src/meta.ts
|
|
12
12
|
import { trim } from "@dxos/util";
|
|
13
13
|
var meta = {
|
|
14
|
-
id: "dxos.
|
|
14
|
+
id: "org.dxos.plugin.sheet",
|
|
15
15
|
name: "Sheet",
|
|
16
16
|
description: trim`
|
|
17
17
|
Full-featured spreadsheet application with over 400 built-in formulas for calculations and data analysis.
|
|
@@ -27,7 +27,7 @@ var meta = {
|
|
|
27
27
|
|
|
28
28
|
// src/types/capabilities.ts
|
|
29
29
|
(function(SheetCapabilities2) {
|
|
30
|
-
SheetCapabilities2.ComputeGraphRegistry = Capability.make(`${meta.id}
|
|
30
|
+
SheetCapabilities2.ComputeGraphRegistry = Capability.make(`${meta.id}.capability.compute-graph-registry`);
|
|
31
31
|
})(SheetCapabilities || (SheetCapabilities = {}));
|
|
32
32
|
var SheetCapabilities;
|
|
33
33
|
|
|
@@ -42,7 +42,7 @@ __export(Sheet_exports, {
|
|
|
42
42
|
});
|
|
43
43
|
import * as Schema from "effect/Schema";
|
|
44
44
|
import { addressFromA1Notation as addressFromA1Notation2, isFormula as isFormula2 } from "@dxos/compute";
|
|
45
|
-
import { Obj, Type } from "@dxos/echo";
|
|
45
|
+
import { Annotation, Obj, Type } from "@dxos/echo";
|
|
46
46
|
import { FormInputAnnotation } from "@dxos/echo/internal";
|
|
47
47
|
|
|
48
48
|
// src/types/util.ts
|
|
@@ -188,8 +188,11 @@ var Sheet = Schema.Struct({
|
|
|
188
188
|
// Cell formatting referenced by indexed range.
|
|
189
189
|
ranges: Schema.Array(Range).pipe(FormInputAnnotation.set(false))
|
|
190
190
|
}).pipe(Type.object({
|
|
191
|
-
typename: "dxos.
|
|
191
|
+
typename: "org.dxos.type.sheet",
|
|
192
192
|
version: "0.1.0"
|
|
193
|
+
}), Annotation.IconAnnotation.set({
|
|
194
|
+
icon: "ph--grid-nine--regular",
|
|
195
|
+
hue: "indigo"
|
|
193
196
|
}));
|
|
194
197
|
var make = ({ name, cells = {}, ...size } = {}) => {
|
|
195
198
|
const sheet = Obj.make(Sheet, {
|
|
@@ -236,13 +239,13 @@ var cellClassNameForRange = ({ key, value }) => {
|
|
|
236
239
|
return void 0;
|
|
237
240
|
}
|
|
238
241
|
case commentKey:
|
|
239
|
-
return "bg-
|
|
242
|
+
return "bg-grid-comment";
|
|
240
243
|
case styleKey:
|
|
241
244
|
switch (value) {
|
|
242
245
|
case "highlight":
|
|
243
|
-
return "
|
|
246
|
+
return "bg-grid-highlight!";
|
|
244
247
|
case "softwrap":
|
|
245
|
-
return "
|
|
248
|
+
return "whitespace-normal!";
|
|
246
249
|
default:
|
|
247
250
|
return void 0;
|
|
248
251
|
}
|
|
@@ -253,10 +256,7 @@ var cellClassNameForRange = ({ key, value }) => {
|
|
|
253
256
|
|
|
254
257
|
// src/types/types.ts
|
|
255
258
|
import * as Schema2 from "effect/Schema";
|
|
256
|
-
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
257
259
|
import { Operation } from "@dxos/operation";
|
|
258
|
-
import { SpaceSchema } from "@dxos/react-client/echo";
|
|
259
|
-
import { Collection } from "@dxos/schema";
|
|
260
260
|
var ActionAxis = Schema2.Union(Schema2.Literal("row"), Schema2.Literal("col"));
|
|
261
261
|
(function(SheetAction2) {
|
|
262
262
|
SheetAction2.RestoreAxis = Schema2.Struct({
|
|
@@ -267,29 +267,12 @@ var ActionAxis = Schema2.Union(Schema2.Literal("row"), Schema2.Literal("col"));
|
|
|
267
267
|
values: Schema2.Array(Schema2.Any)
|
|
268
268
|
});
|
|
269
269
|
})(SheetAction || (SheetAction = {}));
|
|
270
|
-
var SHEET_OPERATION = `${meta.id}
|
|
270
|
+
var SHEET_OPERATION = `${meta.id}.operation`;
|
|
271
271
|
var Axis = Schema2.Union(Schema2.Literal("row"), Schema2.Literal("col"));
|
|
272
272
|
(function(SheetOperation2) {
|
|
273
|
-
SheetOperation2.OnCreateSpace = Operation.make({
|
|
274
|
-
meta: {
|
|
275
|
-
key: `${SHEET_OPERATION}/on-create-space`,
|
|
276
|
-
name: "On Create Space"
|
|
277
|
-
},
|
|
278
|
-
services: [
|
|
279
|
-
Capability2.Service
|
|
280
|
-
],
|
|
281
|
-
schema: {
|
|
282
|
-
input: Schema2.Struct({
|
|
283
|
-
space: SpaceSchema,
|
|
284
|
-
rootCollection: Collection.Collection,
|
|
285
|
-
isDefault: Schema2.optional(Schema2.Boolean)
|
|
286
|
-
}),
|
|
287
|
-
output: Schema2.Void
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
273
|
SheetOperation2.InsertAxis = Operation.make({
|
|
291
274
|
meta: {
|
|
292
|
-
key: `${SHEET_OPERATION}
|
|
275
|
+
key: `${SHEET_OPERATION}.axis-insert`,
|
|
293
276
|
name: "Insert Axis"
|
|
294
277
|
},
|
|
295
278
|
schema: {
|
|
@@ -321,7 +304,7 @@ var Axis = Schema2.Union(Schema2.Literal("row"), Schema2.Literal("col"));
|
|
|
321
304
|
});
|
|
322
305
|
SheetOperation2.DropAxis = Operation.make({
|
|
323
306
|
meta: {
|
|
324
|
-
key: `${SHEET_OPERATION}
|
|
307
|
+
key: `${SHEET_OPERATION}.axis-drop`,
|
|
325
308
|
name: "Drop Axis"
|
|
326
309
|
},
|
|
327
310
|
schema: {
|
|
@@ -335,7 +318,7 @@ var Axis = Schema2.Union(Schema2.Literal("row"), Schema2.Literal("col"));
|
|
|
335
318
|
});
|
|
336
319
|
SheetOperation2.RestoreAxis = Operation.make({
|
|
337
320
|
meta: {
|
|
338
|
-
key: `${SHEET_OPERATION}
|
|
321
|
+
key: `${SHEET_OPERATION}.restore-axis`,
|
|
339
322
|
name: "Restore Axis"
|
|
340
323
|
},
|
|
341
324
|
schema: {
|
|
@@ -395,4 +378,4 @@ export {
|
|
|
395
378
|
SheetAction,
|
|
396
379
|
SheetOperation
|
|
397
380
|
};
|
|
398
|
-
//# sourceMappingURL=chunk-
|
|
381
|
+
//# sourceMappingURL=chunk-VGXC77GH.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/capabilities.ts", "../../../src/meta.ts", "../../../src/types/Sheet.ts", "../../../src/types/util.ts", "../../../src/types/sheet-range-types.ts", "../../../src/types/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type ComputeGraphRegistry } from '@dxos/compute';\n\nimport { meta } from '../meta';\n\nexport namespace SheetCapabilities {\n export const ComputeGraphRegistry = Capability.make<ComputeGraphRegistry>(\n `${meta.id}.capability.compute-graph-registry`,\n );\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.sheet',\n name: 'Sheet',\n description: trim`\n Full-featured spreadsheet application with over 400 built-in formulas for calculations and data analysis.\n Create custom JavaScript functions and integrate with AI agents for advanced automation.\n `,\n icon: 'ph--grid-nine--regular',\n iconHue: 'indigo',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',\n screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { addressFromA1Notation, isFormula } from '@dxos/compute';\nimport { Annotation, Obj, Type } from '@dxos/echo';\nimport { FormInputAnnotation } from '@dxos/echo/internal';\n\nimport { addressToIndex, initialize, mapFormulaRefsToIndices } from './util';\n\nexport type SheetSize = {\n rows: number;\n columns: number;\n};\n\nexport const CellValue = Schema.Struct({\n // TODO(burdon): How to store dates (datetime, date, time), percentages, etc.\n // Consider import/export; natural access for other plugins. Special handling for currency (precision).\n // TODO(burdon): Automerge (long string) or short string or number.\n value: Schema.Any,\n});\n\nexport type CellValue = Schema.Schema.Type<typeof CellValue>;\n\n// TODO(burdon): IMPORTANT: Reconcile with Field definition.\nexport const Range = Schema.Struct({\n range: Schema.String,\n key: Schema.String,\n value: Schema.String,\n});\n\nexport type Range = Schema.Schema.Type<typeof Range>;\n\n// TODO(burdon): Visibility, locked, frozen, etc.\nexport const RowColumnMeta = Schema.Struct({\n size: Schema.optional(Schema.Number),\n});\n\n// TODO(burdon): Reconcile col/column (across packages).\n// TODO(burdon): Index to all updates when rows/columns are inserted/deleted.\nexport const Sheet = Schema.Struct({\n name: Schema.optional(Schema.String),\n\n // Sparse map of cells referenced by index.\n cells: Schema.Record({ key: Schema.String, value: CellValue }).pipe(FormInputAnnotation.set(false)),\n\n // Ordered row indices.\n rows: Schema.Array(Schema.String).pipe(FormInputAnnotation.set(false)),\n\n // Ordered column indices.\n columns: Schema.Array(Schema.String).pipe(FormInputAnnotation.set(false)),\n\n // Row metadata referenced by index.\n rowMeta: Schema.Record({ key: Schema.String, value: RowColumnMeta }).pipe(FormInputAnnotation.set(false)),\n\n // Column metadata referenced by index.\n columnMeta: Schema.Record({ key: Schema.String, value: RowColumnMeta }).pipe(FormInputAnnotation.set(false)),\n\n // Cell formatting referenced by indexed range.\n ranges: Schema.Array(Range).pipe(FormInputAnnotation.set(false)),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.sheet',\n version: '0.1.0',\n }),\n Annotation.IconAnnotation.set({\n icon: 'ph--grid-nine--regular',\n hue: 'indigo',\n }),\n);\n\nexport interface Sheet extends Schema.Schema.Type<typeof Sheet> {}\n\nexport type SheetProps = {\n name?: string;\n cells?: Record<string, CellValue>;\n} & Partial<SheetSize>;\n\nexport const make = ({ name, cells = {}, ...size }: SheetProps = {}) => {\n const sheet = Obj.make(Sheet, { name, cells: {}, rows: [], columns: [], rowMeta: {}, columnMeta: {}, ranges: [] });\n\n // Initialize and set cells within Obj.change to satisfy change context requirements.\n Obj.change(sheet, (s) => {\n initialize(s, size);\n\n if (cells) {\n Object.entries(cells).forEach(([key, { value }]) => {\n const idx = addressToIndex(s, addressFromA1Notation(key));\n if (isFormula(value)) {\n value = mapFormulaRefsToIndices(s, value);\n }\n\n s.cells[idx] = { value };\n });\n }\n });\n\n return sheet;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport {\n type CellAddress,\n type CellRange,\n type CompleteCellRange,\n addressFromA1Notation,\n addressToA1Notation,\n isFormula,\n} from '@dxos/compute';\nimport { randomBytes } from '@dxos/crypto';\nimport { type Obj } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\n\nimport { type Sheet } from '../types';\n\nexport const MAX_ROWS = 500;\nexport const MAX_COLS = 676; // 26^2;\n\nexport const DEFAULT_ROWS = 50;\nexport const DEFAULT_COLS = 26;\n\n// TODO(burdon): Factor out from dxos/protocols to new common package.\nexport class ApiError extends Error {}\n\nexport class ReadonlyException extends ApiError {}\n\nexport class RangeException extends ApiError {\n constructor(n: number) {\n super();\n }\n}\n\n/**\n * With a string length of 8, the chance of a collision is 0.02% for a sheet with 10,000 strings.\n */\nexport const createIndex = (length = 8): string => {\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n const charactersLength = characters.length;\n const randomBuffer = randomBytes(length);\n return Array.from(randomBuffer, (byte) => characters[byte % charactersLength]).join('');\n};\n\nexport const createIndices = (length: number): string[] => Array.from({ length }).map(() => createIndex());\n\nexport const insertIndices = (indices: string[], i: number, n: number, max: number) => {\n if (i + n > max) {\n throw new RangeException(i + n);\n }\n\n const idx = createIndices(n);\n indices.splice(i, 0, ...idx);\n return idx;\n};\n\nexport const initialize = (\n sheet: Obj.Mutable<Sheet.Sheet>,\n { rows = DEFAULT_ROWS, columns = DEFAULT_COLS }: Partial<Sheet.SheetSize> = {},\n) => {\n if (!sheet.rows.length) {\n insertIndices(sheet.rows, 0, rows, MAX_ROWS);\n }\n if (!sheet.columns.length) {\n insertIndices(sheet.columns, 0, columns, MAX_COLS);\n }\n};\n\n/**\n * E.g., \"A1\" => \"CA2@CB3\".\n */\nexport const addressToIndex = (sheet: Sheet.Sheet, cell: CellAddress): string => {\n return `${sheet.columns[cell.col]}@${sheet.rows[cell.row]}`;\n};\n\n/**\n * E.g., \"CA2@CB3\" => \"A1\".\n */\nexport const addressFromIndex = (sheet: Sheet.Sheet, idx: string): CellAddress => {\n const [column, row] = idx.split('@');\n return {\n col: sheet.columns.indexOf(column),\n row: sheet.rows.indexOf(row),\n };\n};\n\n/**\n * E.g., \"A1:B2\" => \"CA2@CB3:CC4@CD5\".\n */\nexport const rangeToIndex = (sheet: Sheet.Sheet, range: CellRange): string => {\n return [range.from, range.to ?? range.from].map((cell) => addressToIndex(sheet, cell)).join(':');\n};\n\n/**\n * E.g., \"CA2@CB3:CC4@CD5\" => \"A1:B2\".\n */\nexport const rangeFromIndex = (sheet: Sheet.Sheet, idx: string): CompleteCellRange => {\n const [from, to] = idx.split(':').map((index) => addressFromIndex(sheet, index));\n return { from, to };\n};\n\n/**\n * Compares the positions of two cell indexes in a sheet.\n * Sorts primarily by row, then by column if rows are equal.\n */\nexport const compareIndexPositions = (sheet: Sheet.Sheet, indexA: string, indexB: string): number => {\n const { row: rowA, col: columnA } = addressFromIndex(sheet, indexA);\n const { row: rowB, col: columnB } = addressFromIndex(sheet, indexB);\n\n // Sort by row first, then by column.\n if (rowA !== rowB) {\n return rowA - rowB;\n } else {\n return columnA - columnB;\n }\n};\n\n// TODO(burdon): Tests.\n\n/**\n * Map from A1 notation to indices.\n */\nexport const mapFormulaRefsToIndices = (sheet: Sheet.Sheet, formula: string): string => {\n invariant(isFormula(formula));\n return formula.replace(/([a-zA-Z]+)([0-9]+)/g, (match) => {\n return addressToIndex(sheet, addressFromA1Notation(match));\n });\n};\n\n/**\n * Map from indices to A1 notation.\n */\nexport const mapFormulaIndicesToRefs = (sheet: Sheet.Sheet, formula: string): string => {\n invariant(isFormula(formula));\n return formula.replace(/([a-zA-Z0-9]+)@([a-zA-Z0-9]+)/g, (idx) => {\n return addressToA1Notation(addressFromIndex(sheet, idx));\n });\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { type ClassNameValue } from '@dxos/react-ui';\n\nimport { type Sheet } from '../types';\n\nexport const alignKey = 'alignment';\nexport type AlignKey = typeof alignKey;\nexport type AlignValue = 'start' | 'center' | 'end';\n\nexport const commentKey = 'comment';\nexport type CommentKey = typeof commentKey;\nexport type CommentValue = string;\n\nexport const styleKey = 'style';\nexport type StyleKey = typeof styleKey;\nexport type StyleValue = 'highlight' | 'softwrap';\n\n// TODO(burdon): Reconcile with plugin-table.\nexport const cellClassNameForRange = ({ key, value }: Sheet.Sheet['ranges'][number]): ClassNameValue => {\n switch (key) {\n case alignKey:\n switch (value) {\n case 'start':\n return 'text-start';\n case 'center':\n return 'text-center';\n case 'end':\n return 'text-end';\n default:\n return undefined;\n }\n\n case commentKey:\n return 'bg-grid-comment';\n\n case styleKey:\n switch (value) {\n case 'highlight':\n return 'bg-grid-highlight!';\n case 'softwrap':\n return 'whitespace-normal!';\n default:\n return undefined;\n }\n\n default:\n return undefined;\n }\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Operation } from '@dxos/operation';\n\nimport { meta } from '../meta';\n\nimport * as Sheet from './Sheet';\n\n// TODO(wittjosiah): Factor out. This is `DxGridAxis` from `@dxos/react-ui-grid`.\nconst ActionAxis = Schema.Union(Schema.Literal('row'), Schema.Literal('col'));\n\nexport namespace SheetAction {\n export const RestoreAxis = Schema.Struct({\n axis: ActionAxis,\n axisIndex: Schema.String,\n index: Schema.Number,\n axisMeta: Sheet.RowColumnMeta,\n values: Schema.Array(Schema.Any),\n });\n\n export type RestoreAxis = Schema.Schema.Type<typeof RestoreAxis>;\n}\n\nconst SHEET_OPERATION = `${meta.id}.operation`;\n\n// TODO(wittjosiah): Factor out. This is `DxGridAxis` from `@dxos/react-ui-grid`.\nconst Axis = Schema.Union(Schema.Literal('row'), Schema.Literal('col'));\n\nexport namespace SheetOperation {\n export const InsertAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}.axis-insert`, name: 'Insert Axis' },\n schema: {\n input: Schema.Struct({\n model: Schema.Any,\n axis: Axis,\n index: Schema.Number,\n count: Schema.optional(Schema.Number),\n }),\n output: Schema.Void,\n },\n });\n\n export const DropAxisOutput = Schema.Struct({\n axis: Axis.annotations({ description: 'The axis type (row or col).' }),\n axisIndex: Schema.String.annotations({ description: 'The dropped axis index.' }),\n index: Schema.Number.annotations({ description: 'The position the axis was at.' }),\n axisMeta: Schema.Any.annotations({ description: 'The row/column metadata.' }),\n values: Schema.Array(Schema.Any).annotations({ description: 'The cell values that were dropped.' }),\n });\n\n export type DropAxisOutput = Schema.Schema.Type<typeof DropAxisOutput>;\n\n export const DropAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}.axis-drop`, name: 'Drop Axis' },\n schema: {\n input: Schema.Struct({\n model: Schema.Any,\n axis: Axis,\n axisIndex: Schema.String,\n }),\n output: DropAxisOutput,\n },\n });\n\n /**\n * Restore a dropped axis (inverse of DropAxis).\n */\n export const RestoreAxis = Operation.make({\n meta: { key: `${SHEET_OPERATION}.restore-axis`, name: 'Restore Axis' },\n schema: {\n input: Schema.Struct({\n model: Schema.Any.annotations({ description: 'The sheet model.' }),\n axis: Axis.annotations({ description: 'The axis type (row or col).' }),\n axisIndex: Schema.String.annotations({ description: 'The axis index to restore.' }),\n index: Schema.Number.annotations({ description: 'The position to restore at.' }),\n axisMeta: Schema.Any.annotations({ description: 'The row/column metadata.' }),\n values: Schema.Array(Schema.Any).annotations({ description: 'The cell values to restore.' }),\n }),\n output: Schema.Void,\n },\n });\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,kBAAkB;;;ACC3B,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,aAAa;IAAC;;AAChB;;;UDTiBC,oBAAAA;qBACFC,uBAAuBC,WAAWC,KAC7C,GAAGC,KAAKC,EAAE,oCAAoC;AAElD,GAJiBL,sBAAAA,oBAAAA,CAAAA,EAAAA;;;;AETjB;;;;;;;;AAMA,YAAYM,YAAY;AAExB,SAASC,yBAAAA,wBAAuBC,aAAAA,kBAAiB;AACjD,SAASC,YAAYC,KAAKC,YAAY;AACtC,SAASC,2BAA2B;;;ACNpC,SAIEC,uBACAC,qBACAC,iBACK;AACP,SAASC,mBAAmB;AAE5B,SAASC,iBAAiB;;AAInB,IAAMC,WAAW;AACjB,IAAMC,WAAW;AAEjB,IAAMC,eAAe;AACrB,IAAMC,eAAe;AAGrB,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A8B,CAAA;QAC9ExB,UAAiBI,YAAImB,YAAY;UAAEC,aAAa;QAA2B,CAAA;QAC3EtB,QAAeC,cAAaC,WAAG,EAAEmB,YAAY;UAAEC,aAAa;QAA8B,CAAA;MAC5F,CAAA;MACAJ,QAAeC;IACjB;EACF,CAAA;AACF,GArDiBZ,mBAAAA,iBAAAA,CAAAA,EAAAA;;;",
|
|
6
|
+
"names": ["Capability", "trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "screenshots", "SheetCapabilities", "ComputeGraphRegistry", "Capability", "make", "meta", "id", "Schema", "addressFromA1Notation", "isFormula", "Annotation", "Obj", "Type", "FormInputAnnotation", "addressFromA1Notation", "addressToA1Notation", "isFormula", "randomBytes", "invariant", "MAX_ROWS", "MAX_COLS", "DEFAULT_ROWS", "DEFAULT_COLS", "ApiError", "Error", "ReadonlyException", "RangeException", "n", "createIndex", "length", "characters", "charactersLength", "randomBuffer", "Array", "from", "byte", "join", "createIndices", "map", "insertIndices", "indices", "i", "max", "idx", "splice", "initialize", "sheet", "rows", "columns", "addressToIndex", "cell", "col", "row", "addressFromIndex", "column", "split", "indexOf", "rangeToIndex", "range", "to", "rangeFromIndex", "index", "compareIndexPositions", "indexA", "indexB", "rowA", "columnA", "rowB", "columnB", "mapFormulaRefsToIndices", "formula", "replace", "match", "mapFormulaIndicesToRefs", "CellValue", "Struct", "value", "Any", "Range", "range", "String", "key", "RowColumnMeta", "size", "optional", "Number", "Sheet", "name", "cells", "Record", "pipe", "FormInputAnnotation", "set", "rows", "Array", "columns", "rowMeta", "columnMeta", "ranges", "Type", "object", "typename", "version", "Annotation", "IconAnnotation", "icon", "hue", "make", "sheet", "Obj", "change", "s", "initialize", "Object", "entries", "forEach", "idx", "addressToIndex", "addressFromA1Notation", "isFormula", "mapFormulaRefsToIndices", "alignKey", "commentKey", "styleKey", "cellClassNameForRange", "key", "value", "undefined", "Schema", "Operation", "ActionAxis", "Union", "Literal", "SheetAction", "RestoreAxis", "Struct", "axis", "axisIndex", "String", "index", "Number", "axisMeta", "RowColumnMeta", "values", "Array", "Any", "SHEET_OPERATION", "meta", "id", "Axis", "SheetOperation", "InsertAxis", "Operation", "make", "key", "name", "schema", "input", "model", "count", "optional", "output", "Void", "DropAxisOutput", "annotations", "description", "DropAxis"]
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SheetCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VGXC77GH.mjs";
|
|
5
5
|
|
|
6
6
|
// src/capabilities/compute-graph-registry/compute-graph-registry.ts
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
@@ -19,4 +19,4 @@ var compute_graph_registry_default = Capability.makeModule(Effect.fnUntraced(fun
|
|
|
19
19
|
export {
|
|
20
20
|
compute_graph_registry_default as default
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=compute-graph-registry-
|
|
22
|
+
//# sourceMappingURL=compute-graph-registry-IDU2KKQU.mjs.map
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
SheetCapabilities,
|
|
4
|
-
SheetOperation,
|
|
5
4
|
Sheet_exports,
|
|
6
5
|
meta
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VGXC77GH.mjs";
|
|
8
7
|
|
|
9
8
|
// src/SheetPlugin.tsx
|
|
10
9
|
import * as Effect from "effect/Effect";
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
10
|
+
import * as Option from "effect/Option";
|
|
11
|
+
import { ActivationEvent, Plugin } from "@dxos/app-framework";
|
|
12
|
+
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
13
|
+
import { Annotation } from "@dxos/echo";
|
|
13
14
|
import { AutomationEvents } from "@dxos/plugin-automation";
|
|
14
15
|
import { ClientEvents } from "@dxos/plugin-client";
|
|
15
16
|
import { MarkdownEvents } from "@dxos/plugin-markdown";
|
|
16
|
-
import { SpaceCapabilities, SpaceEvents } from "@dxos/plugin-space";
|
|
17
17
|
|
|
18
18
|
// src/capabilities/anchor-sort/index.ts
|
|
19
19
|
import { Capability } from "@dxos/app-framework";
|
|
20
|
-
var AnchorSort = Capability.lazy("AnchorSort", () => import("./anchor-sort-
|
|
20
|
+
var AnchorSort = Capability.lazy("AnchorSort", () => import("./anchor-sort-7XYLH2AM.mjs"));
|
|
21
21
|
|
|
22
22
|
// src/capabilities/compute-graph-registry/index.ts
|
|
23
23
|
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
24
|
-
var ComputeGraphRegistry = Capability2.lazy("ComputeGraphRegistry", () => import("./compute-graph-registry-
|
|
24
|
+
var ComputeGraphRegistry = Capability2.lazy("ComputeGraphRegistry", () => import("./compute-graph-registry-IDU2KKQU.mjs"));
|
|
25
25
|
|
|
26
26
|
// src/capabilities/markdown/index.ts
|
|
27
27
|
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
28
|
-
var Markdown = Capability3.lazy("Markdown", () => import("./markdown-
|
|
28
|
+
var Markdown = Capability3.lazy("Markdown", () => import("./markdown-6KBH3MBO.mjs"));
|
|
29
29
|
|
|
30
30
|
// src/capabilities/operation-resolver/index.ts
|
|
31
31
|
import { Capability as Capability4 } from "@dxos/app-framework";
|
|
32
|
-
var OperationResolver = Capability4.lazy("OperationResolver", () => import("./operation-resolver-
|
|
32
|
+
var OperationResolver = Capability4.lazy("OperationResolver", () => import("./operation-resolver-E7FIHPCO.mjs"));
|
|
33
33
|
|
|
34
34
|
// src/capabilities/react-surface/index.ts
|
|
35
35
|
import { Capability as Capability5 } from "@dxos/app-framework";
|
|
36
|
-
var ReactSurface = Capability5.lazy("ReactSurface", () => import("./react-surface-
|
|
36
|
+
var ReactSurface = Capability5.lazy("ReactSurface", () => import("./react-surface-LCMQBROP.mjs"));
|
|
37
37
|
|
|
38
38
|
// src/serializer.ts
|
|
39
39
|
import { Obj } from "@dxos/echo";
|
|
@@ -63,6 +63,7 @@ var translations = [
|
|
|
63
63
|
"typename label_one": "Sheet",
|
|
64
64
|
"typename label_other": "Sheets",
|
|
65
65
|
"object name placeholder": "New sheet",
|
|
66
|
+
"add object label": "Add sheet",
|
|
66
67
|
"rename object label": "Rename sheet",
|
|
67
68
|
"delete object label": "Delete sheet",
|
|
68
69
|
"object deleted label": "Sheet deleted"
|
|
@@ -100,42 +101,38 @@ var translations = [
|
|
|
100
101
|
];
|
|
101
102
|
|
|
102
103
|
// src/SheetPlugin.tsx
|
|
103
|
-
var SheetPlugin = Plugin.define(meta).pipe(
|
|
104
|
-
activatesOn: ActivationEvent.allOf(ClientEvents.ClientReady, AutomationEvents.ComputeRuntimeReady),
|
|
105
|
-
activate: ComputeGraphRegistry
|
|
106
|
-
}), Common.Plugin.addTranslationsModule({
|
|
107
|
-
translations
|
|
108
|
-
}), Common.Plugin.addMetadataModule({
|
|
104
|
+
var SheetPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
|
|
109
105
|
metadata: {
|
|
110
106
|
id: Sheet_exports.Sheet.typename,
|
|
111
107
|
metadata: {
|
|
112
108
|
label: (object) => object.name,
|
|
113
|
-
icon:
|
|
114
|
-
iconHue: "
|
|
109
|
+
icon: Annotation.IconAnnotation.get(Sheet_exports.Sheet).pipe(Option.getOrThrow).icon,
|
|
110
|
+
iconHue: Annotation.IconAnnotation.get(Sheet_exports.Sheet).pipe(Option.getOrThrow).hue ?? "white",
|
|
115
111
|
serializer,
|
|
116
112
|
comments: "anchored",
|
|
117
113
|
createObject: (props) => Effect.sync(() => Sheet_exports.make(props))
|
|
118
114
|
}
|
|
119
115
|
}
|
|
120
|
-
}),
|
|
116
|
+
}), AppPlugin.addOperationResolverModule({
|
|
117
|
+
activate: OperationResolver
|
|
118
|
+
}), AppPlugin.addSchemaModule({
|
|
121
119
|
schema: [
|
|
122
120
|
Sheet_exports.Sheet
|
|
123
121
|
]
|
|
122
|
+
}), AppPlugin.addSurfaceModule({
|
|
123
|
+
activate: ReactSurface
|
|
124
|
+
}), AppPlugin.addTranslationsModule({
|
|
125
|
+
translations
|
|
124
126
|
}), Plugin.addModule({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
activate: () => Effect.succeed(Capability6.contributes(SpaceCapabilities.OnCreateSpace, (params) => Operation.invoke(SheetOperation.OnCreateSpace, params)))
|
|
127
|
+
activatesOn: ActivationEvent.allOf(ClientEvents.ClientReady, AutomationEvents.ComputeRuntimeReady),
|
|
128
|
+
activate: ComputeGraphRegistry
|
|
128
129
|
}), Plugin.addModule({
|
|
129
130
|
activatesOn: MarkdownEvents.SetupExtensions,
|
|
130
131
|
activate: Markdown
|
|
131
132
|
}), Plugin.addModule({
|
|
132
133
|
// TODO(wittjosiah): More relevant event?
|
|
133
|
-
activatesOn:
|
|
134
|
+
activatesOn: AppActivationEvents.AppGraphReady,
|
|
134
135
|
activate: AnchorSort
|
|
135
|
-
}), Common.Plugin.addSurfaceModule({
|
|
136
|
-
activate: ReactSurface
|
|
137
|
-
}), Common.Plugin.addOperationResolverModule({
|
|
138
|
-
activate: OperationResolver
|
|
139
136
|
}), Plugin.make);
|
|
140
137
|
export {
|
|
141
138
|
SheetCapabilities,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
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,
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["Effect", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { ActivationEvent, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\nimport { Annotation } from '@dxos/echo';\nimport { AutomationEvents } from '@dxos/plugin-automation';\nimport { ClientEvents } from '@dxos/plugin-client';\nimport { MarkdownEvents } from '@dxos/plugin-markdown';\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 } 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: Annotation.IconAnnotation.get(Sheet.Sheet).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(Sheet.Sheet).pipe(Option.getOrThrow).hue ?? 'white',\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 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 'add object label': 'Add 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;AACxB,YAAYC,YAAY;AAExB,SAASC,iBAAiBC,cAAc;AACxC,SAASC,qBAAqBC,iBAAiB;AAC/C,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,oBAAoB;AAC7B,SAASC,sBAAsB;;;ACR/B,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,Y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AAMA,MAAMC;IAChBH,UAAU;MACRI,OAAO,CAACC,WAAwBA,OAAOC;MACvCC,MAAMC,WAAWC,eAAeC,IAAIR,cAAMA,KAAK,EAAEL,KAAYc,iBAAU,EAAEJ;MACzEK,SAASJ,WAAWC,eAAeC,IAAIR,cAAMA,KAAK,EAAEL,KAAYc,iBAAU,EAAEE,OAAO;MACnFC;MACAC,UAAU;MACVC,cAAe,CAACC,UAAiBC,YAAK,MAAMhB,cAAMiB,KAAKF,KAAAA,CAAAA;IACzD;EACF;AACF,CAAA,GACAnB,UAAUsB,2BAA2B;EAAEC,UAAUC;AAAkB,CAAA,GACnExB,UAAUyB,gBAAgB;EAAEC,QAAQ;IAACtB,cAAMA;;AAAO,CAAA,GAClDJ,UAAU2B,iBAAiB;EAAEJ,UAAUK;AAAa,CAAA,GACpD5B,UAAU6B,sBAAsB;EAAEC;AAAa,CAAA,GAC/ClC,OAAOmC,UAAU;EACfC,aAAaC,gBAAgBC,MAAMC,aAAaC,aAAaC,iBAAiBC,mBAAmB;EACjGf,UAAUgB;AACZ,CAAA,GACA3C,OAAOmC,UAAU;EACfC,aAAaQ,eAAeC;EAC5BlB,UAAUmB;AACZ,CAAA,GACA9C,OAAOmC,UAAU;;EAEfC,aAAaW,oBAAoBC;EACjCrB,UAAUsB;AACZ,CAAA,GACAjD,OAAOyB,IAAI;",
|
|
6
|
+
"names": ["Effect", "Option", "ActivationEvent", "Plugin", "AppActivationEvents", "AppPlugin", "Annotation", "AutomationEvents", "ClientEvents", "MarkdownEvents", "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", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "serializer", "comments", "createObject", "props", "sync", "make", "addOperationResolverModule", "activate", "OperationResolver", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "addModule", "activatesOn", "ActivationEvent", "allOf", "ClientEvents", "ClientReady", "AutomationEvents", "ComputeRuntimeReady", "ComputeGraphRegistry", "MarkdownEvents", "SetupExtensions", "Markdown", "AppActivationEvents", "AppGraphReady", "AnchorSort"]
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
computeGraphFacet
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-M52YLLWU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SheetCapabilities
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VGXC77GH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/capabilities/markdown/markdown.ts
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
@@ -27,4 +27,4 @@ var markdown_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
|
27
27
|
export {
|
|
28
28
|
markdown_default as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=markdown-
|
|
30
|
+
//# sourceMappingURL=markdown-6KBH3MBO.mjs.map
|