@dxos/plugin-sheet 0.7.5-staging.e6154f3 → 0.8.1-main.013e445
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-45IMNPCA.mjs} +5 -5
- package/dist/lib/browser/SheetContainer-45IMNPCA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-OOSRC36N.mjs → chunk-4UDNLWW7.mjs} +2 -2
- 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-UGSCCRPW.mjs → chunk-DLSDEQ2V.mjs} +4 -4
- package/dist/lib/browser/{chunk-LXHRT3CC.mjs → chunk-EMSCNWEK.mjs} +2 -2
- package/dist/lib/browser/{compute-graph-registry-EGPD4HEX.mjs → compute-graph-registry-FW7GRR5X.mjs} +3 -3
- 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-ZLZZSOJB.mjs} +3 -3
- package/dist/lib/browser/{markdown-EJU2M7EE.mjs → markdown-D6MQR2SL.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-24GOYR7J.mjs → react-surface-WBHKNFTW.mjs} +8 -7
- package/dist/lib/browser/react-surface-WBHKNFTW.mjs.map +7 -0
- package/dist/lib/browser/{thread-7ZWW5EA7.mjs → thread-DWC3EEZF.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{SheetContainer-B77HHBOC.cjs → SheetContainer-WGATRGMV.cjs} +37 -37
- package/dist/lib/node/SheetContainer-WGATRGMV.cjs.map +7 -0
- package/dist/lib/node/{chunk-VMJK5QN4.cjs → chunk-BNTA7BX7.cjs} +19 -19
- 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-ZV2RS3QH.cjs → chunk-O2FOEUYB.cjs} +6 -6
- package/dist/lib/node/{chunk-4LSYTNS4.cjs → chunk-TRMVOTUW.cjs} +6 -6
- package/dist/lib/node/{compute-graph-registry-GJK5H264.cjs → compute-graph-registry-GRIJY7HC.cjs} +7 -7
- 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-FNEVXUYN.cjs} +11 -11
- package/dist/lib/node/{markdown-SQHC4EGJ.cjs → markdown-2JV7CLN4.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-6BJQU2XB.cjs → react-surface-S67AU3L7.cjs} +17 -16
- package/dist/lib/node/react-surface-S67AU3L7.cjs.map +7 -0
- package/dist/lib/node/{thread-DRNYTR6M.cjs → thread-BRLYEK44.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-MGLGBHZU.mjs} +5 -5
- package/dist/lib/node-esm/SheetContainer-MGLGBHZU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SX3S7UKU.mjs → chunk-76T5X4VP.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-3PA7XGUK.mjs → chunk-AXJBBZWW.mjs} +4 -4
- 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/{chunk-HPAMZ6SP.mjs → chunk-ZSOBPK4C.mjs} +2 -2
- package/dist/lib/node-esm/{compute-graph-registry-3F5JCYEN.mjs → compute-graph-registry-7QPVVG3V.mjs} +3 -3
- 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-YGXHQQWI.mjs} +3 -3
- package/dist/lib/node-esm/{markdown-UXKP45S3.mjs → markdown-JOT6YWLG.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-YGNWYLVN.mjs → react-surface-FXMZK7ZZ.mjs} +8 -7
- package/dist/lib/node-esm/react-surface-FXMZK7ZZ.mjs.map +7 -0
- package/dist/lib/node-esm/{thread-6T5VXPAF.mjs → thread-3XAKFPK5.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/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/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 +88 -28
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/package.json +44 -45
- package/src/SheetPlugin.tsx +1 -2
- package/src/capabilities/react-surface.tsx +4 -2
- package/src/components/ComputeGraph/compute-graph.stories.tsx +1 -1
- package/src/components/SheetToolbar/comment.ts +1 -1
- package/src/meta.ts +2 -2
- package/src/model/sheet-model.test.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-GAFHJBCU.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/react-surface-6BJQU2XB.cjs.map +0 -7
- package/dist/lib/node-esm/SheetContainer-KXWIQCP4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RTZXXOS2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-YGNWYLVN.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-OOSRC36N.mjs.map → chunk-4UDNLWW7.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-UGSCCRPW.mjs.map → chunk-DLSDEQ2V.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-LXHRT3CC.mjs.map → chunk-EMSCNWEK.mjs.map} +0 -0
- /package/dist/lib/browser/{compute-graph-registry-EGPD4HEX.mjs.map → compute-graph-registry-FW7GRR5X.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-6S2RMLQF.mjs.map → intent-resolver-ZLZZSOJB.mjs.map} +0 -0
- /package/dist/lib/browser/{markdown-EJU2M7EE.mjs.map → markdown-D6MQR2SL.mjs.map} +0 -0
- /package/dist/lib/browser/{thread-7ZWW5EA7.mjs.map → thread-DWC3EEZF.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-VMJK5QN4.cjs.map → chunk-BNTA7BX7.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-ZV2RS3QH.cjs.map → chunk-O2FOEUYB.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-4LSYTNS4.cjs.map → chunk-TRMVOTUW.cjs.map} +0 -0
- /package/dist/lib/node/{compute-graph-registry-GJK5H264.cjs.map → compute-graph-registry-GRIJY7HC.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-I25V7SBT.cjs.map → intent-resolver-FNEVXUYN.cjs.map} +0 -0
- /package/dist/lib/node/{markdown-SQHC4EGJ.cjs.map → markdown-2JV7CLN4.cjs.map} +0 -0
- /package/dist/lib/node/{thread-DRNYTR6M.cjs.map → thread-BRLYEK44.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-SX3S7UKU.mjs.map → chunk-76T5X4VP.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-3PA7XGUK.mjs.map → chunk-AXJBBZWW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-HPAMZ6SP.mjs.map → chunk-ZSOBPK4C.mjs.map} +0 -0
- /package/dist/lib/node-esm/{compute-graph-registry-3F5JCYEN.mjs.map → compute-graph-registry-7QPVVG3V.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-IPRSINII.mjs.map → intent-resolver-YGXHQQWI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{markdown-UXKP45S3.mjs.map → markdown-JOT6YWLG.mjs.map} +0 -0
- /package/dist/lib/node-esm/{thread-6T5VXPAF.mjs.map → thread-3XAKFPK5.mjs.map} +0 -0
|
@@ -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,OAAO,CAAC;AAExG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CA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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"}
|
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,54 @@ 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
|
+
}>>;
|
|
48
49
|
identityKey: S.optional<typeof S.String>;
|
|
49
50
|
email: S.optional<typeof S.String>;
|
|
50
51
|
name: S.optional<typeof S.String>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
53
|
+
}>;
|
|
54
|
+
blocks: S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
55
|
+
pending: S.optional<typeof S.Boolean>;
|
|
56
|
+
}>, S.Struct<{
|
|
57
|
+
type: S.Literal<["text"]>;
|
|
58
|
+
disposition: S.optional<typeof S.String>;
|
|
59
|
+
text: typeof S.String;
|
|
60
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
61
|
+
pending: S.optional<typeof S.Boolean>;
|
|
62
|
+
}>, S.Struct<{
|
|
63
|
+
type: S.Literal<["json"]>;
|
|
64
|
+
disposition: S.optional<typeof S.String>;
|
|
65
|
+
data: typeof S.String;
|
|
66
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
67
|
+
pending: S.optional<typeof S.Boolean>;
|
|
68
|
+
}>, S.Struct<{
|
|
69
|
+
type: S.Literal<["image"]>;
|
|
70
|
+
id: S.optional<typeof S.String>;
|
|
71
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
72
|
+
type: S.Literal<["base64"]>;
|
|
73
|
+
mediaType: typeof S.String;
|
|
74
|
+
data: typeof S.String;
|
|
75
|
+
}>>, S.mutable<S.Struct<{
|
|
76
|
+
type: S.Literal<["http"]>;
|
|
77
|
+
url: typeof S.String;
|
|
78
|
+
}>>]>>;
|
|
79
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
80
|
+
pending: S.optional<typeof S.Boolean>;
|
|
81
|
+
}>, S.Struct<{
|
|
82
|
+
type: S.Literal<["reference"]>;
|
|
83
|
+
reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
84
|
+
}>>>]>>;
|
|
54
85
|
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
86
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
57
87
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>>;
|
|
58
88
|
}, import("@dxos/echo-schema").TypedObjectOptions>, S.Struct.Encoded<{
|
|
@@ -78,24 +108,54 @@ declare const SheetType_base: import("@dxos/echo-schema").TypedObjectPrototype<i
|
|
|
78
108
|
anchor: S.optional<typeof S.String>;
|
|
79
109
|
status: S.optional<S.Union<[S.Literal<["staged"]>, S.Literal<["active"]>, S.Literal<["resolved"]>]>>;
|
|
80
110
|
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
|
-
|
|
111
|
+
id: import("@dxos/echo-schema").ObjectIdClass;
|
|
112
|
+
created: S.SchemaClass<string, string, never>;
|
|
113
|
+
sender: S.Struct<{
|
|
114
|
+
contact: S.optional<import("@dxos/echo-schema").Ref$<{
|
|
115
|
+
readonly id: string;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
identifiers: {
|
|
118
|
+
readonly value: string;
|
|
119
|
+
readonly type: string;
|
|
120
|
+
}[];
|
|
121
|
+
}>>;
|
|
91
122
|
identityKey: S.optional<typeof S.String>;
|
|
92
123
|
email: S.optional<typeof S.String>;
|
|
93
124
|
name: S.optional<typeof S.String>;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
125
|
+
role: S.optional<S.Literal<["user", "assistant"]>>;
|
|
126
|
+
}>;
|
|
127
|
+
blocks: S.Array$<S.Union<[S.mutable<S.extend<S.Struct<{
|
|
128
|
+
pending: S.optional<typeof S.Boolean>;
|
|
129
|
+
}>, S.Struct<{
|
|
130
|
+
type: S.Literal<["text"]>;
|
|
131
|
+
disposition: S.optional<typeof S.String>;
|
|
132
|
+
text: typeof S.String;
|
|
133
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
134
|
+
pending: S.optional<typeof S.Boolean>;
|
|
135
|
+
}>, S.Struct<{
|
|
136
|
+
type: S.Literal<["json"]>;
|
|
137
|
+
disposition: S.optional<typeof S.String>;
|
|
138
|
+
data: typeof S.String;
|
|
139
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
140
|
+
pending: S.optional<typeof S.Boolean>;
|
|
141
|
+
}>, S.Struct<{
|
|
142
|
+
type: S.Literal<["image"]>;
|
|
143
|
+
id: S.optional<typeof S.String>;
|
|
144
|
+
source: S.optional<S.Union<[S.mutable<S.Struct<{
|
|
145
|
+
type: S.Literal<["base64"]>;
|
|
146
|
+
mediaType: typeof S.String;
|
|
147
|
+
data: typeof S.String;
|
|
148
|
+
}>>, S.mutable<S.Struct<{
|
|
149
|
+
type: S.Literal<["http"]>;
|
|
150
|
+
url: typeof S.String;
|
|
151
|
+
}>>]>>;
|
|
152
|
+
}>>>, S.mutable<S.extend<S.Struct<{
|
|
153
|
+
pending: S.optional<typeof S.Boolean>;
|
|
154
|
+
}>, S.Struct<{
|
|
155
|
+
type: S.Literal<["reference"]>;
|
|
156
|
+
reference: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
157
|
+
}>>>]>>;
|
|
97
158
|
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
159
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>;
|
|
100
160
|
}, import("@dxos/echo-schema").TypedObjectOptions>>>>>;
|
|
101
161
|
}>>;
|
|
@@ -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.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AG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-sheet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1-main.013e445",
|
|
4
4
|
"description": "Braneframe sketch plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@dnd-kit/modifiers": "^6.0.0",
|
|
42
42
|
"@dnd-kit/sortable": "^7.0.1",
|
|
43
43
|
"@dnd-kit/utilities": "^3.2.0",
|
|
44
|
-
"@effect/schema": "^0.75.5",
|
|
45
44
|
"@lezer/common": "^1.2.2",
|
|
46
45
|
"@lezer/highlight": "^1.2.1",
|
|
47
46
|
"@lezer/lezer": "^1.1.2",
|
|
@@ -55,38 +54,38 @@
|
|
|
55
54
|
"re-resizable": "^6.9.17",
|
|
56
55
|
"react-markdown": "^8.0.5",
|
|
57
56
|
"react-resize-detector": "^11.0.1",
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/client": "0.
|
|
61
|
-
"@dxos/context": "0.
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/invariant": "0.
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/log": "0.
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/plugin-client": "0.
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/plugin-space": "0.
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/plugin-stack": "0.
|
|
78
|
-
"@dxos/react-client": "0.
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/react-ui-attention": "0.
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-grid": "0.
|
|
84
|
-
"@dxos/react-ui-list": "0.
|
|
85
|
-
"@dxos/react-ui-stack": "0.
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
57
|
+
"@dxos/app-framework": "0.8.1-main.013e445",
|
|
58
|
+
"@dxos/async": "0.8.1-main.013e445",
|
|
59
|
+
"@dxos/client": "0.8.1-main.013e445",
|
|
60
|
+
"@dxos/context": "0.8.1-main.013e445",
|
|
61
|
+
"@dxos/compute": "0.8.1-main.013e445",
|
|
62
|
+
"@dxos/crypto": "0.8.1-main.013e445",
|
|
63
|
+
"@dxos/debug": "0.8.1-main.013e445",
|
|
64
|
+
"@dxos/functions": "0.8.1-main.013e445",
|
|
65
|
+
"@dxos/echo-schema": "0.8.1-main.013e445",
|
|
66
|
+
"@dxos/invariant": "0.8.1-main.013e445",
|
|
67
|
+
"@dxos/keys": "0.8.1-main.013e445",
|
|
68
|
+
"@dxos/log": "0.8.1-main.013e445",
|
|
69
|
+
"@dxos/plugin-attention": "0.8.1-main.013e445",
|
|
70
|
+
"@dxos/live-object": "0.8.1-main.013e445",
|
|
71
|
+
"@dxos/plugin-client": "0.8.1-main.013e445",
|
|
72
|
+
"@dxos/plugin-markdown": "0.8.1-main.013e445",
|
|
73
|
+
"@dxos/plugin-graph": "0.8.1-main.013e445",
|
|
74
|
+
"@dxos/plugin-space": "0.8.1-main.013e445",
|
|
75
|
+
"@dxos/plugin-script": "0.8.1-main.013e445",
|
|
76
|
+
"@dxos/plugin-stack": "0.8.1-main.013e445",
|
|
77
|
+
"@dxos/react-client": "0.8.1-main.013e445",
|
|
78
|
+
"@dxos/react-hooks": "0.8.1-main.013e445",
|
|
79
|
+
"@dxos/react-ui-attention": "0.8.1-main.013e445",
|
|
80
|
+
"@dxos/plugin-thread": "0.8.1-main.013e445",
|
|
81
|
+
"@dxos/react-ui-editor": "0.8.1-main.013e445",
|
|
82
|
+
"@dxos/react-ui-grid": "0.8.1-main.013e445",
|
|
83
|
+
"@dxos/react-ui-list": "0.8.1-main.013e445",
|
|
84
|
+
"@dxos/react-ui-stack": "0.8.1-main.013e445",
|
|
85
|
+
"@dxos/react-ui-menu": "0.8.1-main.013e445",
|
|
86
|
+
"@dxos/schema": "0.8.1-main.013e445",
|
|
87
|
+
"@dxos/util": "0.8.1-main.013e445",
|
|
88
|
+
"@dxos/react-ui-form": "0.8.1-main.013e445"
|
|
90
89
|
},
|
|
91
90
|
"devDependencies": {
|
|
92
91
|
"@lezer/generator": "^1.7.1",
|
|
@@ -98,21 +97,21 @@
|
|
|
98
97
|
"react": "~18.2.0",
|
|
99
98
|
"react-dom": "~18.2.0",
|
|
100
99
|
"vite": "5.4.7",
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/react-ui": "0.
|
|
105
|
-
"@dxos/react-ui-syntax-highlighter": "0.
|
|
106
|
-
"@dxos/react-ui-
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/
|
|
109
|
-
"@dxos/test-utils": "0.
|
|
100
|
+
"@dxos/lit-grid": "0.8.1-main.013e445",
|
|
101
|
+
"@dxos/random": "0.8.1-main.013e445",
|
|
102
|
+
"@dxos/echo-generator": "0.8.1-main.013e445",
|
|
103
|
+
"@dxos/react-ui": "0.8.1-main.013e445",
|
|
104
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.1-main.013e445",
|
|
105
|
+
"@dxos/react-ui-theme": "0.8.1-main.013e445",
|
|
106
|
+
"@dxos/react-ui-types": "0.8.1-main.013e445",
|
|
107
|
+
"@dxos/storybook-utils": "0.8.1-main.013e445",
|
|
108
|
+
"@dxos/test-utils": "0.8.1-main.013e445"
|
|
110
109
|
},
|
|
111
110
|
"peerDependencies": {
|
|
112
111
|
"react": "~18.2.0",
|
|
113
112
|
"react-dom": "~18.2.0",
|
|
114
|
-
"@dxos/react-ui": "0.
|
|
115
|
-
"@dxos/react-ui-theme": "0.
|
|
113
|
+
"@dxos/react-ui": "0.8.1-main.013e445",
|
|
114
|
+
"@dxos/react-ui-theme": "0.8.1-main.013e445"
|
|
116
115
|
},
|
|
117
116
|
"publishConfig": {
|
|
118
117
|
"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
|
},
|
|
@@ -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
|
|
|
@@ -31,7 +33,7 @@ export default () =>
|
|
|
31
33
|
createSurface({
|
|
32
34
|
id: `${SHEET_PLUGIN}/settings`,
|
|
33
35
|
role: 'complementary--settings',
|
|
34
|
-
filter: (data): data is { subject: SheetType } => data.subject
|
|
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) {
|
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';
|
package/src/sanity.test.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { describe, test, expect } from 'vitest';
|
|
|
12
12
|
|
|
13
13
|
import { Client } from '@dxos/client';
|
|
14
14
|
import { create } from '@dxos/client/echo';
|
|
15
|
-
import { FunctionType } from '@dxos/functions';
|
|
15
|
+
import { FunctionType } from '@dxos/functions/types';
|
|
16
16
|
|
|
17
17
|
// TODO(burdon): Fix test infrastructure:
|
|
18
18
|
// - Need docs? esp. needed for config. need pristine example package?
|
package/src/translations.ts
CHANGED
|
@@ -10,12 +10,10 @@ export default [
|
|
|
10
10
|
'en-US': {
|
|
11
11
|
[SheetType.typename]: {
|
|
12
12
|
'typename label': 'Sheet',
|
|
13
|
+
'object name placeholder': 'New sheet',
|
|
13
14
|
},
|
|
14
15
|
[SHEET_PLUGIN]: {
|
|
15
16
|
'plugin name': 'Sheets',
|
|
16
|
-
'sheet title placeholder': 'New sheet',
|
|
17
|
-
'create sheet label': 'Create sheet',
|
|
18
|
-
'create sheet section label': 'Create sheet',
|
|
19
17
|
'cell placeholder': 'Cell value...',
|
|
20
18
|
'range key alignment label': 'Align',
|
|
21
19
|
'range key style label': 'Style',
|