@dxos/plugin-sheet 0.8.1-main.ae460ac → 0.8.1-staging.31c3ee1
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-EDJA5L2H.mjs → SheetContainer-B3A5443Z.mjs} +6 -6
- package/dist/lib/browser/SheetContainer-B3A5443Z.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DN6QF7VV.mjs → chunk-AT5ZK6JD.mjs} +1 -1
- package/dist/lib/browser/chunk-AT5ZK6JD.mjs.map +7 -0
- package/dist/lib/browser/{chunk-UGSCCRPW.mjs → chunk-CHMPICA6.mjs} +14 -7
- package/dist/lib/browser/chunk-CHMPICA6.mjs.map +7 -0
- package/dist/lib/browser/{chunk-GAFHJBCU.mjs → chunk-D3G4UGEK.mjs} +1 -1
- package/dist/lib/browser/chunk-D3G4UGEK.mjs.map +7 -0
- package/dist/lib/browser/{chunk-LXHRT3CC.mjs → chunk-EMSCNWEK.mjs} +2 -2
- package/dist/lib/browser/{chunk-OOSRC36N.mjs → chunk-ZOKEQL2K.mjs} +3 -3
- package/dist/lib/browser/{chunk-OOSRC36N.mjs.map → chunk-ZOKEQL2K.mjs.map} +2 -2
- package/dist/lib/browser/{compute-graph-registry-EGPD4HEX.mjs → compute-graph-registry-WEJLJJ6T.mjs} +7 -4
- package/dist/lib/browser/compute-graph-registry-WEJLJJ6T.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +10 -18
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-6S2RMLQF.mjs → intent-resolver-6OUEM3IG.mjs} +3 -3
- package/dist/lib/browser/{markdown-EJU2M7EE.mjs → markdown-DR4RDEEY.mjs} +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-24GOYR7J.mjs → react-surface-ECKBP3UZ.mjs} +11 -10
- package/dist/lib/browser/react-surface-ECKBP3UZ.mjs.map +7 -0
- package/dist/lib/browser/{thread-7ZWW5EA7.mjs → thread-76MK2FMV.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{SheetContainer-B77HHBOC.cjs → SheetContainer-LGRD3TTQ.cjs} +38 -38
- package/dist/lib/node/SheetContainer-LGRD3TTQ.cjs.map +7 -0
- package/dist/lib/node/{chunk-VMJK5QN4.cjs → chunk-AEH3L5QZ.cjs} +31 -24
- package/dist/lib/node/chunk-AEH3L5QZ.cjs.map +7 -0
- package/dist/lib/node/{chunk-4LSYTNS4.cjs → chunk-D4MOMCEU.cjs} +7 -7
- package/dist/lib/node/{chunk-4LSYTNS4.cjs.map → chunk-D4MOMCEU.cjs.map} +2 -2
- package/dist/lib/node/{chunk-MLU6KRQN.cjs → chunk-JSIDCZHB.cjs} +4 -4
- package/dist/lib/node/chunk-JSIDCZHB.cjs.map +7 -0
- package/dist/lib/node/{chunk-SQZEJPZ7.cjs → chunk-LEV7OSTK.cjs} +4 -4
- package/dist/lib/node/chunk-LEV7OSTK.cjs.map +7 -0
- package/dist/lib/node/{chunk-ZV2RS3QH.cjs → chunk-O2FOEUYB.cjs} +6 -6
- package/dist/lib/node/{compute-graph-registry-GJK5H264.cjs → compute-graph-registry-VVSRJUGS.cjs} +11 -8
- package/dist/lib/node/compute-graph-registry-VVSRJUGS.cjs.map +7 -0
- package/dist/lib/node/index.cjs +29 -37
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-I25V7SBT.cjs → intent-resolver-ICHNDL6F.cjs} +11 -11
- package/dist/lib/node/{markdown-SQHC4EGJ.cjs → markdown-E7OUIMZO.cjs} +9 -9
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-6BJQU2XB.cjs → react-surface-6PBWE75L.cjs} +19 -18
- package/dist/lib/node/react-surface-6PBWE75L.cjs.map +7 -0
- package/dist/lib/node/{thread-DRNYTR6M.cjs → thread-WP43BC4N.cjs} +8 -8
- package/dist/lib/node/types/index.cjs +30 -30
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{SheetContainer-KXWIQCP4.mjs → SheetContainer-4FNTLG5R.mjs} +6 -6
- package/dist/lib/node-esm/SheetContainer-4FNTLG5R.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HPAMZ6SP.mjs → chunk-6NB67Y6X.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-HPAMZ6SP.mjs.map → chunk-6NB67Y6X.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-SX3S7UKU.mjs → chunk-76T5X4VP.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-7TL2H7LA.mjs → chunk-HXBUY5ET.mjs} +1 -1
- package/dist/lib/node-esm/chunk-HXBUY5ET.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-3PA7XGUK.mjs → chunk-WQHYR4WD.mjs} +14 -7
- package/dist/lib/node-esm/chunk-WQHYR4WD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-RTZXXOS2.mjs → chunk-Y6ND5HWX.mjs} +1 -1
- package/dist/lib/node-esm/chunk-Y6ND5HWX.mjs.map +7 -0
- package/dist/lib/node-esm/{compute-graph-registry-3F5JCYEN.mjs → compute-graph-registry-PBQ52KH6.mjs} +7 -4
- package/dist/lib/node-esm/compute-graph-registry-PBQ52KH6.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +10 -18
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-IPRSINII.mjs → intent-resolver-2JNQCFCI.mjs} +3 -3
- package/dist/lib/node-esm/{markdown-UXKP45S3.mjs → markdown-BPKS2TNG.mjs} +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-YGNWYLVN.mjs → react-surface-UM2Y3ZWZ.mjs} +11 -10
- package/dist/lib/node-esm/react-surface-UM2Y3ZWZ.mjs.map +7 -0
- package/dist/lib/node-esm/{thread-6T5VXPAF.mjs → thread-4NCPE5FK.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/SheetPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/compute-graph-registry.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts +1 -1
- package/dist/types/src/components/ComputeGraph/ComputeGraphContextProvider.d.ts.map +1 -1
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts +2 -1
- package/dist/types/src/components/FunctionEditor/FunctionEditor.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts +2 -1
- package/dist/types/src/components/GridSheet/GridSheet.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts +2 -1
- package/dist/types/src/components/GridSheet/GridSheet.stories.d.ts.map +1 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts +2 -1
- package/dist/types/src/components/GridSheet/SheetCellEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts +2 -1
- package/dist/types/src/components/RangeList/RangeList.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts +2 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.d.ts.map +1 -1
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts +3 -2
- package/dist/types/src/components/SheetContainer/SheetContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/SheetContext/SheetContext.d.ts +2 -2
- package/dist/types/src/components/SheetContext/SheetContext.d.ts.map +1 -1
- package/dist/types/src/components/SheetToolbar/SheetToolbar.d.ts +2 -2
- package/dist/types/src/components/SheetToolbar/SheetToolbar.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 +3 -2
- 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/meta.d.ts +2 -8
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -9
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +90 -28
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/package.json +47 -45
- package/src/SheetPlugin.tsx +1 -2
- package/src/capabilities/compute-graph-registry.ts +5 -2
- package/src/capabilities/react-surface.tsx +6 -4
- package/src/components/ComputeGraph/compute-graph.stories.tsx +1 -1
- package/src/components/SheetToolbar/comment.ts +1 -1
- package/src/extensions/compute.ts +2 -2
- package/src/integrations/thread-ranges.ts +9 -1
- package/src/meta.ts +2 -2
- package/src/model/sheet-model.test.ts +1 -1
- package/src/model/sheet-model.ts +1 -1
- package/src/sanity.test.ts +1 -1
- package/src/translations.ts +1 -3
- package/dist/lib/browser/SheetContainer-EDJA5L2H.mjs.map +0 -7
- package/dist/lib/browser/chunk-DN6QF7VV.mjs.map +0 -7
- package/dist/lib/browser/chunk-GAFHJBCU.mjs.map +0 -7
- package/dist/lib/browser/chunk-UGSCCRPW.mjs.map +0 -7
- package/dist/lib/browser/compute-graph-registry-EGPD4HEX.mjs.map +0 -7
- package/dist/lib/browser/react-surface-24GOYR7J.mjs.map +0 -7
- package/dist/lib/node/SheetContainer-B77HHBOC.cjs.map +0 -7
- package/dist/lib/node/chunk-MLU6KRQN.cjs.map +0 -7
- package/dist/lib/node/chunk-SQZEJPZ7.cjs.map +0 -7
- package/dist/lib/node/chunk-VMJK5QN4.cjs.map +0 -7
- package/dist/lib/node/compute-graph-registry-GJK5H264.cjs.map +0 -7
- package/dist/lib/node/react-surface-6BJQU2XB.cjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-KXWIQCP4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3PA7XGUK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7TL2H7LA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RTZXXOS2.mjs.map +0 -7
- package/dist/lib/node-esm/compute-graph-registry-3F5JCYEN.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-YGNWYLVN.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-LXHRT3CC.mjs.map → chunk-EMSCNWEK.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-6S2RMLQF.mjs.map → intent-resolver-6OUEM3IG.mjs.map} +0 -0
- /package/dist/lib/browser/{markdown-EJU2M7EE.mjs.map → markdown-DR4RDEEY.mjs.map} +0 -0
- /package/dist/lib/browser/{thread-7ZWW5EA7.mjs.map → thread-76MK2FMV.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-ZV2RS3QH.cjs.map → chunk-O2FOEUYB.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-I25V7SBT.cjs.map → intent-resolver-ICHNDL6F.cjs.map} +0 -0
- /package/dist/lib/node/{markdown-SQHC4EGJ.cjs.map → markdown-E7OUIMZO.cjs.map} +0 -0
- /package/dist/lib/node/{thread-DRNYTR6M.cjs.map → thread-WP43BC4N.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-SX3S7UKU.mjs.map → chunk-76T5X4VP.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-IPRSINII.mjs.map → intent-resolver-2JNQCFCI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{markdown-UXKP45S3.mjs.map → markdown-BPKS2TNG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{thread-6T5VXPAF.mjs.map → thread-4NCPE5FK.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"SheetContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContainer/SheetContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,eAAO,MAAM,KAAK,gCAajB,CAAC;AAEF,eAAO,MAAM,IAAI,gCAkBhB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IA8BX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ComputeGraph, type CellAddress, type CellRange, type CompleteCellRange } from '@dxos/compute';
|
|
3
3
|
import { type GridContentProps, type GridEditing } from '@dxos/react-ui-grid';
|
|
4
4
|
import { type SheetModel } from '../../model';
|
|
@@ -25,5 +25,5 @@ export type SheetProviderProps = {
|
|
|
25
25
|
readonly?: boolean;
|
|
26
26
|
ignoreAttention?: boolean;
|
|
27
27
|
} & Pick<SheetContextValue, 'onInfo'>;
|
|
28
|
-
export declare const SheetProvider: ({ children, graph, sheet, readonly, ignoreAttention, onInfo, }: PropsWithChildren<SheetProviderProps>) =>
|
|
28
|
+
export declare const SheetProvider: ({ children, graph, sheet, readonly, ignoreAttention, onInfo, }: PropsWithChildren<SheetProviderProps>) => React.JSX.Element | null;
|
|
29
29
|
//# sourceMappingURL=SheetContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContext/SheetContext.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetContext/SheetContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAA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AAE,QAAQ,CAAC,CAAC;AAEtC,eAAO,MAAM,aAAa,mEAOvB,iBAAiB,CAAC,kBAAkB,CAAC,6BAUvC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
3
|
export type SheetToolbarProps = ThemedClassName<PropsWithChildren<{
|
|
4
4
|
attendableId?: string;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare const SheetToolbar: ({ attendableId, classNames }: SheetToolbarProps) =>
|
|
6
|
+
export declare const SheetToolbar: ({ attendableId, classNames }: SheetToolbarProps) => React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=SheetToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"SheetToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/SheetToolbar/SheetToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAe,MAAM,OAAO,CAAC;AAEnE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAatD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,CAAC;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC;AAa9F,eAAO,MAAM,YAAY,iCAAkC,iBAAiB,sBAe3E,CAAC"}
|
|
@@ -7,5 +7,5 @@ export declare const SheetContainer: import("react").LazyExoticComponent<({ spac
|
|
|
7
7
|
sheet: import("../types").SheetType;
|
|
8
8
|
role?: string;
|
|
9
9
|
ignoreAttention?: boolean;
|
|
10
|
-
}) => import("react
|
|
10
|
+
}) => import("react").JSX.Element | null>;
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC0T,CAAC;mBAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,cAAc;;;QAC0T,CAAC;mBAA2B,CAAC;yCAD9S,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type Meta } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
type EditorProps = {
|
|
4
5
|
text?: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const Default: {
|
|
7
|
-
render: ({ text }: EditorProps) =>
|
|
8
|
+
render: ({ text }: EditorProps) => React.JSX.Element;
|
|
8
9
|
args: {
|
|
9
10
|
text: string;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
export declare const Graph: {
|
|
13
|
-
render: (props: EditorProps) =>
|
|
14
|
+
render: (props: EditorProps) => React.JSX.Element;
|
|
14
15
|
args: {
|
|
15
16
|
text: string;
|
|
16
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"compute.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/compute.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAA6B,MAAM,OAAO,CAAC;AAyBlD,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAmEF,eAAO,MAAM,OAAO;uBA1DW,WAAW;;;;CAgFzC,CAAC;AAEF,eAAO,MAAM,KAAK;oBAlCS,WAAW;;;;CAkDrC,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IASX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-ranges.d.ts","sourceRoot":"","sources":["../../../../src/integrations/thread-ranges.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"thread-ranges.d.ts","sourceRoot":"","sources":["../../../../src/integrations/thread-ranges.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAoB,KAAK,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAKlF,OAAO,EAAE,KAAK,aAAa,EAA8C,MAAM,qBAAqB,CAAC;AAKrG,eAAO,MAAM,+BAA+B,UAAW,iBAAiB,KAAG,MAE1E,CAAC;AAEF,eAAO,MAAM,4BAA4B,WAAY,MAAM,KAAG,iBAAiB,GAAG,IAWjF,CAAC;AAEF,eAAO,MAAM,qCAAqC,SAAU,aAAa,GAAG,IAAI,SA+B/E,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAiDtC,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
+
import { type PluginMeta } from '@dxos/app-framework';
|
|
1
2
|
export declare const SHEET_PLUGIN = "dxos.org/plugin/sheet";
|
|
2
|
-
export declare const meta:
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
icon: string;
|
|
7
|
-
source: string;
|
|
8
|
-
screenshots: string[];
|
|
9
|
-
};
|
|
3
|
+
export declare const meta: PluginMeta;
|
|
10
4
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD,eAAO,MAAM,IAAI,EAAE,UAQlB,CAAC"}
|
|
@@ -2,10 +2,8 @@ declare const _default: readonly [{
|
|
|
2
2
|
readonly 'en-US': {
|
|
3
3
|
readonly [x: string]: {
|
|
4
4
|
readonly 'typename label': "Sheet";
|
|
5
|
+
readonly 'object name placeholder': "New sheet";
|
|
5
6
|
readonly 'plugin name'?: undefined;
|
|
6
|
-
readonly 'sheet title placeholder'?: undefined;
|
|
7
|
-
readonly 'create sheet label'?: undefined;
|
|
8
|
-
readonly 'create sheet section label'?: undefined;
|
|
9
7
|
readonly 'cell placeholder'?: undefined;
|
|
10
8
|
readonly 'range key alignment label'?: undefined;
|
|
11
9
|
readonly 'range key style label'?: undefined;
|
|
@@ -32,9 +30,6 @@ declare const _default: readonly [{
|
|
|
32
30
|
readonly 'row dropped label'?: undefined;
|
|
33
31
|
} | {
|
|
34
32
|
readonly 'plugin name': "Sheets";
|
|
35
|
-
readonly 'sheet title placeholder': "New sheet";
|
|
36
|
-
readonly 'create sheet label': "Create sheet";
|
|
37
|
-
readonly 'create sheet section label': "Create sheet";
|
|
38
33
|
readonly 'cell placeholder': "Cell value...";
|
|
39
34
|
readonly 'range key alignment label': "Align";
|
|
40
35
|
readonly 'range key style label': "Style";
|
|
@@ -60,12 +55,10 @@ declare const _default: readonly [{
|
|
|
60
55
|
readonly 'col dropped label': "Deleted a column";
|
|
61
56
|
readonly 'row dropped label': "Deleted a row";
|
|
62
57
|
readonly 'typename label'?: undefined;
|
|
58
|
+
readonly 'object name placeholder'?: undefined;
|
|
63
59
|
};
|
|
64
60
|
readonly "dxos.org/plugin/sheet": {
|
|
65
61
|
readonly 'plugin name': "Sheets";
|
|
66
|
-
readonly 'sheet title placeholder': "New sheet";
|
|
67
|
-
readonly 'create sheet label': "Create sheet";
|
|
68
|
-
readonly 'create sheet section label': "Create sheet";
|
|
69
62
|
readonly 'cell placeholder': "Cell value...";
|
|
70
63
|
readonly 'range key alignment label': "Align";
|
|
71
64
|
readonly 'range key style label': "Style";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAoCW"}
|
|
@@ -35,24 +35,55 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
|
|
|
35
35
|
anchor: S.optional<typeof S.String>;
|
|
36
36
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
37
37
|
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
sender: S.
|
|
41
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
value:
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
39
|
+
created: S.SchemaClass<string, string, never>;
|
|
40
|
+
sender: S.Struct<{
|
|
41
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
42
|
+
readonly id: string;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
identifiers: {
|
|
45
|
+
readonly value: string;
|
|
46
|
+
readonly type: string;
|
|
47
|
+
}[];
|
|
48
|
+
}>>;
|
|
49
|
+
identityDid: S.optional<typeof S.String>;
|
|
48
50
|
identityKey: S.optional<typeof S.String>;
|
|
49
51
|
email: S.optional<typeof S.String>;
|
|
50
52
|
name: S.optional<typeof S.String>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
54
|
+
}>;
|
|
55
|
+
blocks: S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
56
|
+
pending: S.optional<typeof S.Boolean>;
|
|
57
|
+
}>, S.Struct<{
|
|
58
|
+
type: S.Literal<["text"]>;
|
|
59
|
+
disposition: S.optional<typeof S.String>;
|
|
60
|
+
text: typeof S.String;
|
|
61
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
62
|
+
pending: S.optional<typeof S.Boolean>;
|
|
63
|
+
}>, S.Struct<{
|
|
64
|
+
type: S.Literal<["json"]>;
|
|
65
|
+
disposition: S.optional<typeof S.String>;
|
|
66
|
+
data: typeof S.String;
|
|
67
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
68
|
+
pending: S.optional<typeof S.Boolean>;
|
|
69
|
+
}>, S.Struct<{
|
|
70
|
+
type: S.Literal<["image"]>;
|
|
71
|
+
id: S.optional<typeof S.String>;
|
|
72
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
73
|
+
type: S.Literal<["base64"]>;
|
|
74
|
+
mediaType: typeof S.String;
|
|
75
|
+
data: typeof S.String;
|
|
76
|
+
}>>, S.mutable<S.Struct<{
|
|
77
|
+
type: S.Literal<["http"]>;
|
|
78
|
+
url: typeof S.String;
|
|
79
|
+
}>>]>>;
|
|
80
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
81
|
+
pending: S.optional<typeof S.Boolean>;
|
|
82
|
+
}>, S.Struct<{
|
|
83
|
+
type: S.Literal<["reference"]>;
|
|
84
|
+
reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
85
|
+
}>>>]>>;
|
|
54
86
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
55
|
-
context: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>;
|
|
56
87
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
57
88
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>>;
|
|
58
89
|
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
@@ -78,24 +109,55 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
|
|
|
78
109
|
anchor: S.optional<typeof S.String>;
|
|
79
110
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
80
111
|
messages: S.mutable<S.Array$<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").TypedObjectFields<{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
sender: S.
|
|
84
|
-
contact: S.optional<import("@dxos/echo-schema").Ref$<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
value:
|
|
89
|
-
|
|
90
|
-
|
|
112
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
113
|
+
created: S.SchemaClass<string, string, never>;
|
|
114
|
+
sender: S.Struct<{
|
|
115
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
116
|
+
readonly id: string;
|
|
117
|
+
name?: string | undefined;
|
|
118
|
+
identifiers: {
|
|
119
|
+
readonly value: string;
|
|
120
|
+
readonly type: string;
|
|
121
|
+
}[];
|
|
122
|
+
}>>;
|
|
123
|
+
identityDid: S.optional<typeof S.String>;
|
|
91
124
|
identityKey: S.optional<typeof S.String>;
|
|
92
125
|
email: S.optional<typeof S.String>;
|
|
93
126
|
name: S.optional<typeof S.String>;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
127
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
128
|
+
}>;
|
|
129
|
+
blocks: S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
130
|
+
pending: S.optional<typeof S.Boolean>;
|
|
131
|
+
}>, S.Struct<{
|
|
132
|
+
type: S.Literal<["text"]>;
|
|
133
|
+
disposition: S.optional<typeof S.String>;
|
|
134
|
+
text: typeof S.String;
|
|
135
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
136
|
+
pending: S.optional<typeof S.Boolean>;
|
|
137
|
+
}>, S.Struct<{
|
|
138
|
+
type: S.Literal<["json"]>;
|
|
139
|
+
disposition: S.optional<typeof S.String>;
|
|
140
|
+
data: typeof S.String;
|
|
141
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
142
|
+
pending: S.optional<typeof S.Boolean>;
|
|
143
|
+
}>, S.Struct<{
|
|
144
|
+
type: S.Literal<["image"]>;
|
|
145
|
+
id: S.optional<typeof S.String>;
|
|
146
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
147
|
+
type: S.Literal<["base64"]>;
|
|
148
|
+
mediaType: typeof S.String;
|
|
149
|
+
data: typeof S.String;
|
|
150
|
+
}>>, S.mutable<S.Struct<{
|
|
151
|
+
type: S.Literal<["http"]>;
|
|
152
|
+
url: typeof S.String;
|
|
153
|
+
}>>]>>;
|
|
154
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
155
|
+
pending: S.optional<typeof S.Boolean>;
|
|
156
|
+
}>, S.Struct<{
|
|
157
|
+
type: S.Literal<["reference"]>;
|
|
158
|
+
reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
159
|
+
}>>>]>>;
|
|
97
160
|
properties: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.Any>>>;
|
|
98
|
-
context: S.optional<import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>>;
|
|
99
161
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
100
162
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>>;
|
|
101
163
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAO,CAAC,EAAe,MAAM,mBAAmB,CAAC;AAGxD,eAAO,MAAM,SAAS;;EAKpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAGxD,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAGhD,eAAO,MAAM,aAAa;;EAExB,CAAC;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAO,CAAC,EAAe,MAAM,mBAAmB,CAAC;AAGxD,eAAO,MAAM,SAAS;;EAKpB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAGxD,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AAGhD,eAAO,MAAM,aAAa;;EAExB,CAAC;;;;;;;;;;;;;;;;;;;;cAnBoC,EAAG,QAAQ,QAAO,EAAG,MAAM;gBACtD,EAAG,QA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AO;gBAExB,EAAG,MAAM;sBAAoB,EAClC,OAAK;6BAAoC,EAAG,QAAQ,QACrD,EAAG,MACA;6BAA2B,EAAG,MAAM;kBAAe,EAAG,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM;yBAAuB,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAc,EAAG,MAAM;sBAAoB,EAAG,OAAO;oBAA4B,EAAG,QAAQ,QAAO,EAAG,MAAM;wBAAsB,EAAG,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM;0BAAwB,EAAG,OAAO;sCAA+C,EAAG,MAAM;iCAA8B,EAAG,MAAM;qBAAkB,EAAG,OAAO,CAAC,EAAE,MAAM;0BAAwB,EAAG,OAAO;gCAAuC,EAAG,MAAM;;kBAAmC,EAAG,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM;yBAAuB,EAAG,QAAQ,QAAO,EAAG,OAAO;gBAAc,EAAG,MAAM;sBAAoB,EAAG,OAAO;kCAA+C,mBAAmB;;wBAAqD,EAAG,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,QAAO,EAAG,MAAM,SAAQ,EAAG,GAAG;kBAAmB,mBAAmB;;;AAxBx6B,qBAAa,SAAU,SAAQ,cAuB7B;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-sheet",
|
|
3
|
-
"version": "0.8.1-
|
|
3
|
+
"version": "0.8.1-staging.31c3ee1",
|
|
4
4
|
"description": "Braneframe sketch plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -47,45 +47,45 @@
|
|
|
47
47
|
"@lezer/lr": "^1.4.2",
|
|
48
48
|
"@preact/signals-core": "^1.6.0",
|
|
49
49
|
"@radix-ui/react-context": "1.1.1",
|
|
50
|
-
"@tanstack/react-virtual": "^3.9.0",
|
|
51
50
|
"codemirror-lang-spreadsheet": "^1.3.0",
|
|
52
51
|
"date-fns": "^3.3.1",
|
|
53
52
|
"lodash.defaultsdeep": "^4.6.1",
|
|
54
53
|
"re-resizable": "^6.9.17",
|
|
55
54
|
"react-markdown": "^8.0.5",
|
|
56
55
|
"react-resize-detector": "^11.0.1",
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/invariant": "0.8.1-
|
|
67
|
-
"@dxos/keys": "0.8.1-
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/plugin-attention": "0.8.1-
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/plugin-graph": "0.8.1-
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/react-
|
|
80
|
-
"@dxos/react-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-grid": "0.8.1-
|
|
83
|
-
"@dxos/react-ui-
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/react-ui-
|
|
86
|
-
"@dxos/react-ui-menu": "0.8.1-
|
|
87
|
-
"@dxos/schema": "0.8.1-
|
|
88
|
-
"@dxos/
|
|
56
|
+
"@dxos/async": "0.8.1-staging.31c3ee1",
|
|
57
|
+
"@dxos/client": "0.8.1-staging.31c3ee1",
|
|
58
|
+
"@dxos/compute": "0.8.1-staging.31c3ee1",
|
|
59
|
+
"@dxos/app-framework": "0.8.1-staging.31c3ee1",
|
|
60
|
+
"@dxos/context": "0.8.1-staging.31c3ee1",
|
|
61
|
+
"@dxos/functions": "0.8.1-staging.31c3ee1",
|
|
62
|
+
"@dxos/crypto": "0.8.1-staging.31c3ee1",
|
|
63
|
+
"@dxos/debug": "0.8.1-staging.31c3ee1",
|
|
64
|
+
"@dxos/echo-schema": "0.8.1-staging.31c3ee1",
|
|
65
|
+
"@dxos/invariant": "0.8.1-staging.31c3ee1",
|
|
66
|
+
"@dxos/keys": "0.8.1-staging.31c3ee1",
|
|
67
|
+
"@dxos/log": "0.8.1-staging.31c3ee1",
|
|
68
|
+
"@dxos/plugin-attention": "0.8.1-staging.31c3ee1",
|
|
69
|
+
"@dxos/live-object": "0.8.1-staging.31c3ee1",
|
|
70
|
+
"@dxos/plugin-graph": "0.8.1-staging.31c3ee1",
|
|
71
|
+
"@dxos/plugin-client": "0.8.1-staging.31c3ee1",
|
|
72
|
+
"@dxos/plugin-deck": "0.8.1-staging.31c3ee1",
|
|
73
|
+
"@dxos/plugin-markdown": "0.8.1-staging.31c3ee1",
|
|
74
|
+
"@dxos/plugin-stack": "0.8.1-staging.31c3ee1",
|
|
75
|
+
"@dxos/plugin-script": "0.8.1-staging.31c3ee1",
|
|
76
|
+
"@dxos/plugin-space": "0.8.1-staging.31c3ee1",
|
|
77
|
+
"@dxos/plugin-thread": "0.8.1-staging.31c3ee1",
|
|
78
|
+
"@dxos/react-client": "0.8.1-staging.31c3ee1",
|
|
79
|
+
"@dxos/react-hooks": "0.8.1-staging.31c3ee1",
|
|
80
|
+
"@dxos/react-ui-attention": "0.8.1-staging.31c3ee1",
|
|
81
|
+
"@dxos/react-ui-grid": "0.8.1-staging.31c3ee1",
|
|
82
|
+
"@dxos/react-ui-editor": "0.8.1-staging.31c3ee1",
|
|
83
|
+
"@dxos/react-ui-list": "0.8.1-staging.31c3ee1",
|
|
84
|
+
"@dxos/react-ui-form": "0.8.1-staging.31c3ee1",
|
|
85
|
+
"@dxos/react-ui-menu": "0.8.1-staging.31c3ee1",
|
|
86
|
+
"@dxos/schema": "0.8.1-staging.31c3ee1",
|
|
87
|
+
"@dxos/react-ui-stack": "0.8.1-staging.31c3ee1",
|
|
88
|
+
"@dxos/util": "0.8.1-staging.31c3ee1"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@lezer/generator": "^1.7.1",
|
|
@@ -94,24 +94,26 @@
|
|
|
94
94
|
"@types/react": "~18.2.0",
|
|
95
95
|
"@types/react-dom": "~18.2.0",
|
|
96
96
|
"@types/react-window": "^1.8.8",
|
|
97
|
+
"effect": "3.13.3",
|
|
97
98
|
"react": "~18.2.0",
|
|
98
99
|
"react-dom": "~18.2.0",
|
|
99
100
|
"vite": "5.4.7",
|
|
100
|
-
"@dxos/echo-generator": "0.8.1-
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/react-ui": "0.8.1-
|
|
104
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.1-
|
|
105
|
-
"@dxos/react-ui-
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/test-utils": "0.8.1-
|
|
101
|
+
"@dxos/echo-generator": "0.8.1-staging.31c3ee1",
|
|
102
|
+
"@dxos/random": "0.8.1-staging.31c3ee1",
|
|
103
|
+
"@dxos/lit-grid": "0.8.1-staging.31c3ee1",
|
|
104
|
+
"@dxos/react-ui": "0.8.1-staging.31c3ee1",
|
|
105
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.1-staging.31c3ee1",
|
|
106
|
+
"@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
|
|
107
|
+
"@dxos/storybook-utils": "0.8.1-staging.31c3ee1",
|
|
108
|
+
"@dxos/react-ui-types": "0.8.1-staging.31c3ee1",
|
|
109
|
+
"@dxos/test-utils": "0.8.1-staging.31c3ee1"
|
|
109
110
|
},
|
|
110
111
|
"peerDependencies": {
|
|
112
|
+
"effect": "3.13.3",
|
|
111
113
|
"react": "~18.2.0",
|
|
112
114
|
"react-dom": "~18.2.0",
|
|
113
|
-
"@dxos/react-ui": "0.8.1-
|
|
114
|
-
"@dxos/react-ui
|
|
115
|
+
"@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
|
|
116
|
+
"@dxos/react-ui": "0.8.1-staging.31c3ee1"
|
|
115
117
|
},
|
|
116
118
|
"publishConfig": {
|
|
117
119
|
"access": "public"
|
package/src/SheetPlugin.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import { SpaceCapabilities, ThreadEvents } from '@dxos/plugin-space';
|
|
|
9
9
|
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
10
10
|
|
|
11
11
|
import { Markdown, Thread, ReactSurface, IntentResolver, ComputeGraphRegistry } from './capabilities';
|
|
12
|
-
import { meta
|
|
12
|
+
import { meta } from './meta';
|
|
13
13
|
import { serializer } from './serializer';
|
|
14
14
|
import translations from './translations';
|
|
15
15
|
import { SheetAction, SheetType } from './types';
|
|
@@ -34,7 +34,6 @@ export const SheetPlugin = () =>
|
|
|
34
34
|
id: SheetType.typename,
|
|
35
35
|
metadata: {
|
|
36
36
|
label: (object: any) => (object instanceof SheetType ? object.name : undefined),
|
|
37
|
-
placeholder: ['sheet title placeholder', { ns: SHEET_PLUGIN }],
|
|
38
37
|
icon: 'ph--grid-nine--regular',
|
|
39
38
|
serializer,
|
|
40
39
|
},
|
|
@@ -7,12 +7,16 @@ import { ClientCapabilities } from '@dxos/plugin-client';
|
|
|
7
7
|
|
|
8
8
|
import { SheetCapabilities } from './capabilities';
|
|
9
9
|
|
|
10
|
+
const isSecure = (protocol: string) => {
|
|
11
|
+
return protocol === 'https:' || protocol === 'wss:';
|
|
12
|
+
};
|
|
13
|
+
|
|
10
14
|
export default async (context: PluginsContext) => {
|
|
11
15
|
const client = context.requestCapability(ClientCapabilities.Client);
|
|
12
16
|
let remoteFunctionUrl: string | undefined;
|
|
13
17
|
if (client.config.values.runtime?.services?.edge?.url) {
|
|
14
18
|
const url = new URL('/functions', client.config.values.runtime?.services?.edge?.url);
|
|
15
|
-
url.protocol = 'https';
|
|
19
|
+
url.protocol = isSecure(url.protocol) ? 'https' : 'http';
|
|
16
20
|
remoteFunctionUrl = url.toString();
|
|
17
21
|
}
|
|
18
22
|
|
|
@@ -20,6 +24,5 @@ export default async (context: PluginsContext) => {
|
|
|
20
24
|
// Async import removes direct dependency on hyperformula.
|
|
21
25
|
const { defaultPlugins, ComputeGraphRegistry } = await import('@dxos/compute');
|
|
22
26
|
const computeGraphRegistry = new ComputeGraphRegistry({ plugins: defaultPlugins, remoteFunctionUrl });
|
|
23
|
-
|
|
24
27
|
return contributes(SheetCapabilities.ComputeGraphRegistry, computeGraphRegistry);
|
|
25
28
|
};
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, contributes, createSurface, useCapability } from '@dxos/app-framework';
|
|
8
|
+
import { isInstanceOf } from '@dxos/echo-schema';
|
|
8
9
|
import { getSpace } from '@dxos/react-client/echo';
|
|
9
10
|
|
|
10
11
|
import { SheetCapabilities } from './capabilities';
|
|
@@ -17,7 +18,8 @@ export default () =>
|
|
|
17
18
|
createSurface({
|
|
18
19
|
id: `${SHEET_PLUGIN}/sheet`,
|
|
19
20
|
role: ['article', 'section'],
|
|
20
|
-
filter: (data): data is { subject: SheetType } =>
|
|
21
|
+
filter: (data): data is { subject: SheetType } =>
|
|
22
|
+
isInstanceOf(SheetType, data.subject) && !!getSpace(data.subject),
|
|
21
23
|
component: ({ data, role }) => {
|
|
22
24
|
const computeGraphRegistry = useCapability(SheetCapabilities.ComputeGraphRegistry);
|
|
23
25
|
|
|
@@ -29,9 +31,9 @@ export default () =>
|
|
|
29
31
|
},
|
|
30
32
|
}),
|
|
31
33
|
createSurface({
|
|
32
|
-
id: `${SHEET_PLUGIN}/settings`,
|
|
33
|
-
role: '
|
|
34
|
-
filter: (data): data is { subject: SheetType } => data.subject
|
|
34
|
+
id: `${SHEET_PLUGIN}/object-settings`,
|
|
35
|
+
role: 'object-settings',
|
|
36
|
+
filter: (data): data is { subject: SheetType } => isInstanceOf(SheetType, data.subject),
|
|
35
37
|
component: ({ data }) => <RangeList sheet={data.subject} />,
|
|
36
38
|
}),
|
|
37
39
|
]);
|
|
@@ -8,7 +8,7 @@ import { type Meta } from '@storybook/react';
|
|
|
8
8
|
import React, { useEffect, useRef, useState } from 'react';
|
|
9
9
|
|
|
10
10
|
import { testFunctionPlugins } from '@dxos/compute/testing';
|
|
11
|
-
import { FunctionType } from '@dxos/functions';
|
|
11
|
+
import { FunctionType } from '@dxos/functions/types';
|
|
12
12
|
import { create, useSpace, Filter } from '@dxos/react-client/echo';
|
|
13
13
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
14
14
|
import { Toolbar, Button, Input } from '@dxos/react-ui';
|
|
@@ -21,7 +21,7 @@ export const useCommentState = (state: Partial<CommentState>) => {
|
|
|
21
21
|
// TODO(thure): Can this O(n) call be memoized?
|
|
22
22
|
const overlapsCommentAnchor = useMemo(
|
|
23
23
|
() =>
|
|
24
|
-
RefArray.
|
|
24
|
+
RefArray.targets(model.sheet.threads ?? [])
|
|
25
25
|
.filter((thread) => thread.status !== 'resolved')
|
|
26
26
|
.some((thread) => {
|
|
27
27
|
if (!cursorFallbackRange) {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from '@codemirror/state';
|
|
15
15
|
import { Decoration, EditorView, ViewPlugin, WidgetType } from '@codemirror/view';
|
|
16
16
|
|
|
17
|
-
import { type
|
|
17
|
+
import { type CleanupFn, debounce } from '@dxos/async';
|
|
18
18
|
import {
|
|
19
19
|
createSheetName,
|
|
20
20
|
type CellAddress,
|
|
@@ -92,7 +92,7 @@ export const compute = (options: ComputeOptions = {}): Extension => {
|
|
|
92
92
|
ViewPlugin.fromClass(
|
|
93
93
|
class {
|
|
94
94
|
// Graph subscription.
|
|
95
|
-
private _subscription?:
|
|
95
|
+
private _subscription?: CleanupFn;
|
|
96
96
|
constructor(view: EditorView) {
|
|
97
97
|
const id = view.state.facet(documentId);
|
|
98
98
|
const computeGraph = view.state.facet(computeGraphFacet);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { pipe } from 'effect';
|
|
5
6
|
import { useCallback, useEffect, useMemo } from 'react';
|
|
6
7
|
|
|
7
8
|
import {
|
|
@@ -10,10 +11,12 @@ import {
|
|
|
10
11
|
LayoutAction,
|
|
11
12
|
useIntentResolver,
|
|
12
13
|
useIntentDispatcher,
|
|
14
|
+
chain,
|
|
13
15
|
} from '@dxos/app-framework';
|
|
14
16
|
import { debounce } from '@dxos/async';
|
|
15
17
|
import { type CellAddress, type CompleteCellRange, inRange } from '@dxos/compute';
|
|
16
18
|
import { S } from '@dxos/echo-schema';
|
|
19
|
+
import { ATTENDABLE_PATH_SEPARATOR, DeckAction } from '@dxos/plugin-deck/types';
|
|
17
20
|
import { ThreadAction } from '@dxos/plugin-thread/types';
|
|
18
21
|
import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
19
22
|
import { type DxGridElement, type DxGridPosition, type GridContentProps } from '@dxos/react-ui-grid';
|
|
@@ -99,7 +102,12 @@ export const useSelectThreadOnCellFocus = () => {
|
|
|
99
102
|
});
|
|
100
103
|
|
|
101
104
|
if (closestThread) {
|
|
102
|
-
|
|
105
|
+
const primary = fullyQualifiedId(model.sheet);
|
|
106
|
+
const intent = pipe(
|
|
107
|
+
createIntent(ThreadAction.Select, { current: fullyQualifiedId(closestThread) }),
|
|
108
|
+
chain(DeckAction.ChangeCompanion, { primary, companion: `${primary}${ATTENDABLE_PATH_SEPARATOR}comments` }),
|
|
109
|
+
);
|
|
110
|
+
void dispatch(intent);
|
|
103
111
|
}
|
|
104
112
|
},
|
|
105
113
|
[dispatch, threads],
|
package/src/meta.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type PluginMeta } from '@dxos/app-framework';
|
|
|
6
6
|
|
|
7
7
|
export const SHEET_PLUGIN = 'dxos.org/plugin/sheet';
|
|
8
8
|
|
|
9
|
-
export const meta = {
|
|
9
|
+
export const meta: PluginMeta = {
|
|
10
10
|
id: SHEET_PLUGIN,
|
|
11
11
|
name: 'Sheet',
|
|
12
12
|
description:
|
|
@@ -14,4 +14,4 @@ export const meta = {
|
|
|
14
14
|
icon: 'ph--grid-nine--regular',
|
|
15
15
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',
|
|
16
16
|
screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],
|
|
17
|
-
}
|
|
17
|
+
};
|
|
@@ -7,7 +7,7 @@ import { afterEach, beforeEach, describe, expect, onTestFinished, test } from 'v
|
|
|
7
7
|
import { Trigger } from '@dxos/async';
|
|
8
8
|
import { type CellScalarValue, addressFromA1Notation, isFormula } from '@dxos/compute';
|
|
9
9
|
import { TestBuilder, testFunctionPlugins } from '@dxos/compute/testing';
|
|
10
|
-
import { FunctionType } from '@dxos/functions';
|
|
10
|
+
import { FunctionType } from '@dxos/functions/types';
|
|
11
11
|
import { log } from '@dxos/log';
|
|
12
12
|
|
|
13
13
|
import { SheetModel } from './sheet-model';
|