@dxos/plugin-sheet 0.7.5-main.e9bb01b → 0.7.5-main.ff8607b
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-QE32GHSA.mjs → SheetContainer-IMHGS7Z4.mjs} +4 -4
- package/dist/lib/browser/{chunk-EEN6LQ77.mjs → chunk-AT7F2WDW.mjs} +4 -4
- package/dist/lib/browser/{chunk-5IP6N25X.mjs → chunk-GAFHJBCU.mjs} +2 -2
- package/dist/lib/browser/chunk-GAFHJBCU.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NA2WJTDQ.mjs → chunk-LXHRT3CC.mjs} +2 -2
- package/dist/lib/browser/{chunk-MW7L2R23.mjs → chunk-OOSRC36N.mjs} +2 -2
- package/dist/lib/browser/{compute-graph-registry-5PSCPAJC.mjs → compute-graph-registry-EGPD4HEX.mjs} +3 -3
- package/dist/lib/browser/index.mjs +8 -8
- package/dist/lib/browser/{intent-resolver-BIOB22P2.mjs → intent-resolver-6S2RMLQF.mjs} +3 -3
- package/dist/lib/browser/{markdown-ZXHPFU4B.mjs → markdown-CFJIWHZX.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-DUNHY5TJ.mjs → react-surface-PHKJZYFB.mjs} +5 -5
- package/dist/lib/browser/{thread-RSI66HGQ.mjs → thread-7ZWW5EA7.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{SheetContainer-63QTAGQQ.cjs → SheetContainer-NNIZN4AK.cjs} +36 -36
- package/dist/lib/node/{chunk-K4VMHOR2.cjs → chunk-2KCZUH72.cjs} +19 -19
- package/dist/lib/node/{chunk-6BZ2TACG.cjs → chunk-4LSYTNS4.cjs} +6 -6
- package/dist/lib/node/{chunk-AUC5XQEN.cjs → chunk-MLU6KRQN.cjs} +5 -5
- package/dist/lib/node/chunk-MLU6KRQN.cjs.map +7 -0
- package/dist/lib/node/{chunk-6G6HHJOM.cjs → chunk-ZV2RS3QH.cjs} +6 -6
- package/dist/lib/node/{compute-graph-registry-IKYGA5ZC.cjs → compute-graph-registry-GJK5H264.cjs} +7 -7
- package/dist/lib/node/index.cjs +28 -28
- package/dist/lib/node/{intent-resolver-EN5ZMUUF.cjs → intent-resolver-I25V7SBT.cjs} +11 -11
- package/dist/lib/node/{markdown-7NVPUDWI.cjs → markdown-YTCSW66K.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-YGALRCRL.cjs → react-surface-HLE6CRA6.cjs} +16 -16
- package/dist/lib/node/{thread-7KJVRDUE.cjs → thread-DRNYTR6M.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-EUR47CP5.mjs → SheetContainer-PGDJKGTZ.mjs} +4 -4
- package/dist/lib/node-esm/{chunk-LGQMXD6K.mjs → chunk-HPAMZ6SP.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-JFUKD7N4.mjs → chunk-RTZXXOS2.mjs} +2 -2
- package/dist/lib/node-esm/chunk-RTZXXOS2.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6C53G45G.mjs → chunk-SX3S7UKU.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-RFGJUSHF.mjs → chunk-ZM7XLUGL.mjs} +4 -4
- package/dist/lib/node-esm/{compute-graph-registry-ZSLEFSS5.mjs → compute-graph-registry-3F5JCYEN.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +8 -8
- package/dist/lib/node-esm/{intent-resolver-6BCKQA5A.mjs → intent-resolver-IPRSINII.mjs} +3 -3
- package/dist/lib/node-esm/{markdown-LRZEUBKN.mjs → markdown-CGSK44XJ.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-AAT56ZBA.mjs → react-surface-PFRJ7V5N.mjs} +5 -5
- package/dist/lib/node-esm/{thread-U3RIKVMB.mjs → thread-6T5VXPAF.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +44 -44
- package/src/meta.ts +2 -1
- package/dist/lib/browser/chunk-5IP6N25X.mjs.map +0 -7
- package/dist/lib/node/chunk-AUC5XQEN.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-JFUKD7N4.mjs.map +0 -7
- /package/dist/lib/browser/{SheetContainer-QE32GHSA.mjs.map → SheetContainer-IMHGS7Z4.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-EEN6LQ77.mjs.map → chunk-AT7F2WDW.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-NA2WJTDQ.mjs.map → chunk-LXHRT3CC.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-MW7L2R23.mjs.map → chunk-OOSRC36N.mjs.map} +0 -0
- /package/dist/lib/browser/{compute-graph-registry-5PSCPAJC.mjs.map → compute-graph-registry-EGPD4HEX.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-BIOB22P2.mjs.map → intent-resolver-6S2RMLQF.mjs.map} +0 -0
- /package/dist/lib/browser/{markdown-ZXHPFU4B.mjs.map → markdown-CFJIWHZX.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-DUNHY5TJ.mjs.map → react-surface-PHKJZYFB.mjs.map} +0 -0
- /package/dist/lib/browser/{thread-RSI66HGQ.mjs.map → thread-7ZWW5EA7.mjs.map} +0 -0
- /package/dist/lib/node/{SheetContainer-63QTAGQQ.cjs.map → SheetContainer-NNIZN4AK.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-K4VMHOR2.cjs.map → chunk-2KCZUH72.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-6BZ2TACG.cjs.map → chunk-4LSYTNS4.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-6G6HHJOM.cjs.map → chunk-ZV2RS3QH.cjs.map} +0 -0
- /package/dist/lib/node/{compute-graph-registry-IKYGA5ZC.cjs.map → compute-graph-registry-GJK5H264.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-EN5ZMUUF.cjs.map → intent-resolver-I25V7SBT.cjs.map} +0 -0
- /package/dist/lib/node/{markdown-7NVPUDWI.cjs.map → markdown-YTCSW66K.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-YGALRCRL.cjs.map → react-surface-HLE6CRA6.cjs.map} +0 -0
- /package/dist/lib/node/{thread-7KJVRDUE.cjs.map → thread-DRNYTR6M.cjs.map} +0 -0
- /package/dist/lib/node-esm/{SheetContainer-EUR47CP5.mjs.map → SheetContainer-PGDJKGTZ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-LGQMXD6K.mjs.map → chunk-HPAMZ6SP.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-6C53G45G.mjs.map → chunk-SX3S7UKU.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-RFGJUSHF.mjs.map → chunk-ZM7XLUGL.mjs.map} +0 -0
- /package/dist/lib/node-esm/{compute-graph-registry-ZSLEFSS5.mjs.map → compute-graph-registry-3F5JCYEN.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-6BCKQA5A.mjs.map → intent-resolver-IPRSINII.mjs.map} +0 -0
- /package/dist/lib/node-esm/{markdown-LRZEUBKN.mjs.map → markdown-CGSK44XJ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-AAT56ZBA.mjs.map → react-surface-PFRJ7V5N.mjs.map} +0 -0
- /package/dist/lib/node-esm/{thread-U3RIKVMB.mjs.map → thread-6T5VXPAF.mjs.map} +0 -0
|
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var SheetContainer_NNIZN4AK_exports = {};
|
|
30
|
+
__export(SheetContainer_NNIZN4AK_exports, {
|
|
31
31
|
default: () => SheetContainer_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(SheetContainer_NNIZN4AK_exports);
|
|
34
|
+
var import_chunk_2KCZUH72 = require("./chunk-2KCZUH72.cjs");
|
|
35
35
|
var import_chunk_P4KSGZSS = require("./chunk-P4KSGZSS.cjs");
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var import_chunk_4LSYTNS4 = require("./chunk-4LSYTNS4.cjs");
|
|
37
|
+
var import_chunk_MLU6KRQN = require("./chunk-MLU6KRQN.cjs");
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
39
|
var import_echo = require("@dxos/react-client/echo");
|
|
40
40
|
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
@@ -59,13 +59,13 @@ var import_types = require("@dxos/plugin-thread/types");
|
|
|
59
59
|
var import_react8 = require("react");
|
|
60
60
|
var import_live_object2 = require("@dxos/live-object");
|
|
61
61
|
var FunctionEditor = () => {
|
|
62
|
-
const { model, cursor, range } = (0,
|
|
62
|
+
const { model, cursor, range } = (0, import_chunk_2KCZUH72.useSheetContext)();
|
|
63
63
|
let value;
|
|
64
64
|
let formula = false;
|
|
65
65
|
if (cursor) {
|
|
66
66
|
value = model.getCellValue(cursor);
|
|
67
67
|
if ((0, import_compute.isFormula)(value)) {
|
|
68
|
-
value = model.graph.mapFunctionBindingFromId((0,
|
|
68
|
+
value = model.graph.mapFunctionBindingFromId((0, import_chunk_4LSYTNS4.mapFormulaIndicesToRefs)(model.sheet, value));
|
|
69
69
|
formula = true;
|
|
70
70
|
} else if (value != null) {
|
|
71
71
|
value = String(value);
|
|
@@ -95,9 +95,9 @@ var aligns = {
|
|
|
95
95
|
end: "ph--text-align-right--regular"
|
|
96
96
|
};
|
|
97
97
|
var useAlignState = (state) => {
|
|
98
|
-
const { cursor, model } = (0,
|
|
98
|
+
const { cursor, model } = (0, import_chunk_2KCZUH72.useSheetContext)();
|
|
99
99
|
(0, import_react4.useEffect)(() => {
|
|
100
|
-
state[
|
|
100
|
+
state[import_chunk_4LSYTNS4.alignKey] = cursor ? model.sheet.ranges?.findLast(({ range, key }) => key === import_chunk_4LSYTNS4.alignKey && (0, import_compute2.inRange)((0, import_chunk_4LSYTNS4.rangeFromIndex)(model.sheet, range), cursor))?.value : void 0;
|
|
101
101
|
}, [
|
|
102
102
|
cursor,
|
|
103
103
|
model.sheet
|
|
@@ -107,29 +107,29 @@ var createAlignGroupAction = (value) => (0, import_react_ui_menu2.createMenuItem
|
|
|
107
107
|
label: [
|
|
108
108
|
"align label",
|
|
109
109
|
{
|
|
110
|
-
ns:
|
|
110
|
+
ns: import_chunk_MLU6KRQN.SHEET_PLUGIN
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
113
|
variant: "toggleGroup",
|
|
114
114
|
selectCardinality: "single",
|
|
115
|
-
value: `${
|
|
115
|
+
value: `${import_chunk_4LSYTNS4.alignKey}--${value}`
|
|
116
116
|
});
|
|
117
117
|
var createAlignActions = (value) => Object.entries(aligns).map(([alignValue, icon]) => {
|
|
118
|
-
return (0, import_react_ui_menu2.createMenuAction)(`${
|
|
119
|
-
key:
|
|
118
|
+
return (0, import_react_ui_menu2.createMenuAction)(`${import_chunk_4LSYTNS4.alignKey}--${alignValue}`, {
|
|
119
|
+
key: import_chunk_4LSYTNS4.alignKey,
|
|
120
120
|
value: alignValue,
|
|
121
121
|
checked: value === alignValue,
|
|
122
122
|
label: [
|
|
123
123
|
`range value ${alignValue} label`,
|
|
124
124
|
{
|
|
125
|
-
ns:
|
|
125
|
+
ns: import_chunk_MLU6KRQN.SHEET_PLUGIN
|
|
126
126
|
}
|
|
127
127
|
],
|
|
128
128
|
icon,
|
|
129
|
-
testId: `grid.toolbar.${
|
|
129
|
+
testId: `grid.toolbar.${import_chunk_4LSYTNS4.alignKey}.${alignValue}`
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
|
-
var createAlign = ({ [
|
|
132
|
+
var createAlign = ({ [import_chunk_4LSYTNS4.alignKey]: alignValue }) => {
|
|
133
133
|
const alignGroup = createAlignGroupAction(alignValue);
|
|
134
134
|
const alignActions = createAlignActions(alignValue);
|
|
135
135
|
return {
|
|
@@ -150,12 +150,12 @@ var createAlign = ({ [import_chunk_6BZ2TACG.alignKey]: alignValue }) => {
|
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
var useCommentState = (state) => {
|
|
153
|
-
const { cursorFallbackRange, model } = (0,
|
|
153
|
+
const { cursorFallbackRange, model } = (0, import_chunk_2KCZUH72.useSheetContext)();
|
|
154
154
|
const overlapsCommentAnchor = (0, import_react5.useMemo)(() => import_live_object.RefArray.allResolvedTargets(model.sheet.threads ?? []).filter((thread) => thread.status !== "resolved").some((thread) => {
|
|
155
155
|
if (!cursorFallbackRange) {
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
|
-
return (0,
|
|
158
|
+
return (0, import_chunk_4LSYTNS4.rangeToIndex)(model.sheet, cursorFallbackRange) === thread.anchor;
|
|
159
159
|
}), [
|
|
160
160
|
cursorFallbackRange,
|
|
161
161
|
model.sheet
|
|
@@ -168,13 +168,13 @@ var useCommentState = (state) => {
|
|
|
168
168
|
]);
|
|
169
169
|
};
|
|
170
170
|
var createCommentAction = (state) => (0, import_react_ui_menu3.createMenuAction)("comment", {
|
|
171
|
-
key:
|
|
171
|
+
key: import_chunk_4LSYTNS4.commentKey,
|
|
172
172
|
testId: "editor.toolbar.comment",
|
|
173
173
|
icon: "ph--chat-text--regular",
|
|
174
174
|
label: [
|
|
175
175
|
`${state.commentEnabled} label`,
|
|
176
176
|
{
|
|
177
|
-
ns:
|
|
177
|
+
ns: import_chunk_MLU6KRQN.SHEET_PLUGIN
|
|
178
178
|
}
|
|
179
179
|
],
|
|
180
180
|
disabled: state.commentEnabled !== "comment"
|
|
@@ -195,12 +195,12 @@ var styles = {
|
|
|
195
195
|
softwrap: "ph--paragraph--regular"
|
|
196
196
|
};
|
|
197
197
|
var useStyleState = (state) => {
|
|
198
|
-
const { cursorFallbackRange, model } = (0,
|
|
198
|
+
const { cursorFallbackRange, model } = (0, import_chunk_2KCZUH72.useSheetContext)();
|
|
199
199
|
(0, import_react6.useEffect)(() => {
|
|
200
200
|
state.highlight = false;
|
|
201
201
|
state.softwrap = false;
|
|
202
202
|
if (cursorFallbackRange && model.sheet.ranges) {
|
|
203
|
-
model.sheet.ranges.filter(({ range, key }) => key === "style" && (0, import_compute3.inRange)((0,
|
|
203
|
+
model.sheet.ranges.filter(({ range, key }) => key === "style" && (0, import_compute3.inRange)((0, import_chunk_4LSYTNS4.rangeFromIndex)(model.sheet, range), cursorFallbackRange.from)).forEach(({ value }) => {
|
|
204
204
|
state[value] = true;
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -224,7 +224,7 @@ var createStyleActions = (state) => Object.entries(styles).map(([styleValue, ico
|
|
|
224
224
|
label: [
|
|
225
225
|
`range value ${styleValue} label`,
|
|
226
226
|
{
|
|
227
|
-
ns:
|
|
227
|
+
ns: import_chunk_MLU6KRQN.SHEET_PLUGIN
|
|
228
228
|
}
|
|
229
229
|
],
|
|
230
230
|
checked: !!state[styleValue]
|
|
@@ -251,14 +251,14 @@ var createStyle = (state) => {
|
|
|
251
251
|
};
|
|
252
252
|
};
|
|
253
253
|
var useToolbarAction = (state) => {
|
|
254
|
-
const { model, cursorFallbackRange, cursor } = (0,
|
|
254
|
+
const { model, cursorFallbackRange, cursor } = (0, import_chunk_2KCZUH72.useSheetContext)();
|
|
255
255
|
const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
|
|
256
256
|
return (0, import_react7.useCallback)((action) => {
|
|
257
257
|
const { key, value } = action.properties;
|
|
258
258
|
if (cursorFallbackRange) {
|
|
259
|
-
const index = model.sheet.ranges?.findIndex((range) => range.key === key && (0, import_compute4.inRange)((0,
|
|
259
|
+
const index = model.sheet.ranges?.findIndex((range) => range.key === key && (0, import_compute4.inRange)((0, import_chunk_4LSYTNS4.rangeFromIndex)(model.sheet, range.range), cursorFallbackRange.from)) ?? -1;
|
|
260
260
|
const nextRangeEntity = {
|
|
261
|
-
range: (0,
|
|
261
|
+
range: (0, import_chunk_4LSYTNS4.rangeToIndex)(model.sheet, cursorFallbackRange),
|
|
262
262
|
key,
|
|
263
263
|
value
|
|
264
264
|
};
|
|
@@ -266,17 +266,17 @@ var useToolbarAction = (state) => {
|
|
|
266
266
|
case "alignment":
|
|
267
267
|
if (index < 0) {
|
|
268
268
|
model.sheet.ranges?.push(nextRangeEntity);
|
|
269
|
-
state[
|
|
269
|
+
state[import_chunk_4LSYTNS4.alignKey] = value;
|
|
270
270
|
} else if (model.sheet.ranges[index].value === value) {
|
|
271
271
|
model.sheet.ranges?.splice(index, 1);
|
|
272
|
-
state[
|
|
272
|
+
state[import_chunk_4LSYTNS4.alignKey] = void 0;
|
|
273
273
|
} else {
|
|
274
274
|
model.sheet.ranges?.splice(index, 1, nextRangeEntity);
|
|
275
|
-
state[
|
|
275
|
+
state[import_chunk_4LSYTNS4.alignKey] = value;
|
|
276
276
|
}
|
|
277
277
|
break;
|
|
278
278
|
case "style":
|
|
279
|
-
if (model.sheet.ranges.filter(({ range, key: rangeKey }) => rangeKey === "style" && (0, import_compute4.inRange)((0,
|
|
279
|
+
if (model.sheet.ranges.filter(({ range, key: rangeKey }) => rangeKey === "style" && (0, import_compute4.inRange)((0, import_chunk_4LSYTNS4.rangeFromIndex)(model.sheet, range), cursorFallbackRange.from)).some(({ value: rangeValue }) => rangeValue === value)) {
|
|
280
280
|
if (index >= 0) {
|
|
281
281
|
model.sheet.ranges?.splice(index, 1);
|
|
282
282
|
}
|
|
@@ -289,7 +289,7 @@ var useToolbarAction = (state) => {
|
|
|
289
289
|
case "comment": {
|
|
290
290
|
const cellContent = model.getCellText(cursorFallbackRange.from);
|
|
291
291
|
void dispatch((0, import_app_framework.createIntent)(import_types.ThreadAction.Create, {
|
|
292
|
-
cursor: (0,
|
|
292
|
+
cursor: (0, import_chunk_2KCZUH72.completeCellRangeToThreadCursor)(cursorFallbackRange),
|
|
293
293
|
name: cellContent,
|
|
294
294
|
subject: model.sheet
|
|
295
295
|
}));
|
|
@@ -345,8 +345,8 @@ var SheetToolbar = ({ attendableId, classNames }) => {
|
|
|
345
345
|
}));
|
|
346
346
|
};
|
|
347
347
|
var SheetContainer = ({ space, sheet, role, ignoreAttention }) => {
|
|
348
|
-
const graph = (0,
|
|
349
|
-
return graph ? /* @__PURE__ */ import_react.default.createElement(
|
|
348
|
+
const graph = (0, import_chunk_2KCZUH72.useComputeGraph)(space);
|
|
349
|
+
return graph ? /* @__PURE__ */ import_react.default.createElement(import_chunk_2KCZUH72.SheetProvider, {
|
|
350
350
|
sheet,
|
|
351
351
|
graph,
|
|
352
352
|
ignoreAttention
|
|
@@ -358,7 +358,7 @@ var SheetContainer = ({ space, sheet, role, ignoreAttention }) => {
|
|
|
358
358
|
}
|
|
359
359
|
}, /* @__PURE__ */ import_react.default.createElement(SheetToolbar, {
|
|
360
360
|
attendableId: (0, import_echo.fullyQualifiedId)(sheet)
|
|
361
|
-
}), /* @__PURE__ */ import_react.default.createElement(
|
|
361
|
+
}), /* @__PURE__ */ import_react.default.createElement(import_chunk_2KCZUH72.GridSheet, null), /* @__PURE__ */ import_react.default.createElement(FunctionEditor, null))) : null;
|
|
362
362
|
};
|
|
363
363
|
var SheetContainer_default = SheetContainer;
|
|
364
|
-
//# sourceMappingURL=SheetContainer-
|
|
364
|
+
//# sourceMappingURL=SheetContainer-NNIZN4AK.cjs.map
|
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_2KCZUH72_exports = {};
|
|
30
|
+
__export(chunk_2KCZUH72_exports, {
|
|
31
31
|
ComputeGraphContextProvider: () => ComputeGraphContextProvider,
|
|
32
32
|
GridSheet: () => GridSheet,
|
|
33
33
|
RangeList: () => RangeList,
|
|
@@ -37,10 +37,10 @@ __export(chunk_K4VMHOR2_exports, {
|
|
|
37
37
|
useComputeGraph: () => useComputeGraph,
|
|
38
38
|
useSheetContext: () => useSheetContext
|
|
39
39
|
});
|
|
40
|
-
module.exports = __toCommonJS(
|
|
40
|
+
module.exports = __toCommonJS(chunk_2KCZUH72_exports);
|
|
41
41
|
var import_chunk_P4KSGZSS = require("./chunk-P4KSGZSS.cjs");
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var import_chunk_4LSYTNS4 = require("./chunk-4LSYTNS4.cjs");
|
|
43
|
+
var import_chunk_MLU6KRQN = require("./chunk-MLU6KRQN.cjs");
|
|
44
44
|
var import_react = __toESM(require("react"));
|
|
45
45
|
var import_debug = require("@dxos/debug");
|
|
46
46
|
var import_react_hooks = require("@dxos/react-hooks");
|
|
@@ -97,7 +97,7 @@ var useComputeGraph = (space) => {
|
|
|
97
97
|
return graph;
|
|
98
98
|
};
|
|
99
99
|
var RangeList = ({ sheet }) => {
|
|
100
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
100
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_MLU6KRQN.SHEET_PLUGIN);
|
|
101
101
|
const handleSelectRange = (range) => {
|
|
102
102
|
};
|
|
103
103
|
const handleDeleteRange = (0, import_react2.useCallback)((range) => {
|
|
@@ -110,7 +110,7 @@ var RangeList = ({ sheet }) => {
|
|
|
110
110
|
className: "p-2 text-sm font-semibold"
|
|
111
111
|
}, t("range list heading")), /* @__PURE__ */ import_react2.default.createElement(import_react_ui_list.List.Root, {
|
|
112
112
|
items: sheet.ranges,
|
|
113
|
-
isItem: import_echo_schema.S.is(
|
|
113
|
+
isItem: import_echo_schema.S.is(import_chunk_4LSYTNS4.Range)
|
|
114
114
|
}, ({ items: ranges }) => ranges.map((range, i) => /* @__PURE__ */ import_react2.default.createElement(import_react_ui_list.List.Item, {
|
|
115
115
|
key: i,
|
|
116
116
|
item: range,
|
|
@@ -121,7 +121,7 @@ var RangeList = ({ sheet }) => {
|
|
|
121
121
|
}, /* @__PURE__ */ import_react2.default.createElement(import_react_ui_list.List.ItemDragHandle, null), /* @__PURE__ */ import_react2.default.createElement(import_react_ui_list.List.ItemTitle, {
|
|
122
122
|
onClick: () => handleSelectRange(range)
|
|
123
123
|
}, t("range title", {
|
|
124
|
-
position: (0, import_compute.rangeToA1Notation)((0,
|
|
124
|
+
position: (0, import_compute.rangeToA1Notation)((0, import_chunk_4LSYTNS4.rangeFromIndex)(sheet, range.range)),
|
|
125
125
|
key: t(`range key ${range.key} label`),
|
|
126
126
|
value: t(`range value ${range.value} label`)
|
|
127
127
|
})), /* @__PURE__ */ import_react2.default.createElement(import_react_ui_list.List.ItemDeleteButton, {
|
|
@@ -172,7 +172,7 @@ var useUpdateFocusedCellOnThreadSelection = (grid) => {
|
|
|
172
172
|
model.sheet,
|
|
173
173
|
setActiveRefs
|
|
174
174
|
]);
|
|
175
|
-
(0, import_app_framework2.useIntentResolver)(
|
|
175
|
+
(0, import_app_framework2.useIntentResolver)(import_chunk_MLU6KRQN.SHEET_PLUGIN, scrollIntoViewResolver);
|
|
176
176
|
};
|
|
177
177
|
var useSelectThreadOnCellFocus = () => {
|
|
178
178
|
const { model, cursor } = useSheetContext();
|
|
@@ -249,7 +249,7 @@ var projectCellProps = (model, col, row) => {
|
|
|
249
249
|
row
|
|
250
250
|
};
|
|
251
251
|
const rawValue = model.getValue(address);
|
|
252
|
-
const ranges = model.sheet.ranges?.filter(({ range }) => (0, import_compute3.inRange)((0,
|
|
252
|
+
const ranges = model.sheet.ranges?.filter(({ range }) => (0, import_compute3.inRange)((0, import_chunk_4LSYTNS4.rangeFromIndex)(model.sheet, range), address));
|
|
253
253
|
const threadRefs = model.sheet.threads?.filter((thread) => {
|
|
254
254
|
const range = thread.target?.anchor && parseThreadAnchorAsCellRange(thread.target.anchor);
|
|
255
255
|
return thread && range ? (0, import_compute3.inRange)(range, address) : false;
|
|
@@ -257,7 +257,7 @@ var projectCellProps = (model, col, row) => {
|
|
|
257
257
|
const description = model.getValueDescription(address);
|
|
258
258
|
const type = description?.type;
|
|
259
259
|
const format = description?.format;
|
|
260
|
-
const classNames = ranges?.map(
|
|
260
|
+
const classNames = ranges?.map(import_chunk_4LSYTNS4.cellClassNameForRange).reverse();
|
|
261
261
|
return {
|
|
262
262
|
value: (0, import_react_ui_form.parseValue)({
|
|
263
263
|
type,
|
|
@@ -435,7 +435,7 @@ var SheetProviderImpl = ({ model, onInfo, ignoreAttention, children, __gridScope
|
|
|
435
435
|
}, children);
|
|
436
436
|
};
|
|
437
437
|
var SheetProvider = ({ children, graph, sheet, readonly, ignoreAttention, onInfo }) => {
|
|
438
|
-
const model = (0,
|
|
438
|
+
const model = (0, import_chunk_4LSYTNS4.useSheetModel)(graph, sheet, {
|
|
439
439
|
readonly
|
|
440
440
|
});
|
|
441
441
|
return !model ? null : /* @__PURE__ */ import_react7.default.createElement(import_react_ui_grid3.Grid.Root, {
|
|
@@ -491,7 +491,7 @@ var sheetColDefault = {
|
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
493
|
var GridSheet = () => {
|
|
494
|
-
const { t } = (0, import_react_ui2.useTranslation)(
|
|
494
|
+
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_MLU6KRQN.SHEET_PLUGIN);
|
|
495
495
|
const { id, model, editing, setCursor, setRange, cursor, cursorFallbackRange, activeRefs, ignoreAttention } = useSheetContext();
|
|
496
496
|
const [dxGrid, setDxGrid] = (0, import_react4.useState)(null);
|
|
497
497
|
const [extraplanarFocus, setExtraplanarFocus] = (0, import_react4.useState)(null);
|
|
@@ -694,13 +694,13 @@ var GridSheet = () => {
|
|
|
694
694
|
switch (operation) {
|
|
695
695
|
case "insert-before":
|
|
696
696
|
case "insert-after":
|
|
697
|
-
return dispatch((0, import_app_framework.createIntent)(
|
|
697
|
+
return dispatch((0, import_app_framework.createIntent)(import_chunk_4LSYTNS4.SheetAction.InsertAxis, {
|
|
698
698
|
model,
|
|
699
699
|
axis: contextMenuAxis,
|
|
700
700
|
index: contextMenuOpen[contextMenuAxis] + (operation === "insert-before" ? 0 : 1)
|
|
701
701
|
}));
|
|
702
702
|
case "drop":
|
|
703
|
-
return dispatch((0, import_app_framework.createIntent)(
|
|
703
|
+
return dispatch((0, import_app_framework.createIntent)(import_chunk_4LSYTNS4.SheetAction.DropAxis, {
|
|
704
704
|
model,
|
|
705
705
|
axis: contextMenuAxis,
|
|
706
706
|
axisIndex: model.sheet[contextMenuAxis === "row" ? "rows" : "columns"][contextMenuOpen[contextMenuAxis]]
|
|
@@ -752,8 +752,8 @@ var GridSheet = () => {
|
|
|
752
752
|
onBlur: handleBlur
|
|
753
753
|
}), /* @__PURE__ */ import_react4.default.createElement(import_react_ui_grid.Grid.Content, {
|
|
754
754
|
initialCells,
|
|
755
|
-
limitColumns:
|
|
756
|
-
limitRows:
|
|
755
|
+
limitColumns: import_chunk_4LSYTNS4.DEFAULT_COLS,
|
|
756
|
+
limitRows: import_chunk_4LSYTNS4.DEFAULT_ROWS,
|
|
757
757
|
columns,
|
|
758
758
|
rows,
|
|
759
759
|
onAxisResize: handleAxisResize,
|
|
@@ -800,7 +800,7 @@ var GridSheet = () => {
|
|
|
800
800
|
icon: "ph--backspace--regular"
|
|
801
801
|
}), /* @__PURE__ */ import_react4.default.createElement("span", null, t(`delete ${contextMenuAxis} label`)))), /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.DropdownMenu.Arrow, null))));
|
|
802
802
|
};
|
|
803
|
-
var SheetContainer = (0, import_react3.lazy)(() => import("./SheetContainer-
|
|
803
|
+
var SheetContainer = (0, import_react3.lazy)(() => import("./SheetContainer-NNIZN4AK.cjs"));
|
|
804
804
|
// Annotate the CommonJS export names for ESM import in node:
|
|
805
805
|
0 && (module.exports = {
|
|
806
806
|
ComputeGraphContextProvider,
|
|
@@ -812,4 +812,4 @@ var SheetContainer = (0, import_react3.lazy)(() => import("./SheetContainer-63QT
|
|
|
812
812
|
useComputeGraph,
|
|
813
813
|
useSheetContext
|
|
814
814
|
});
|
|
815
|
-
//# sourceMappingURL=chunk-
|
|
815
|
+
//# sourceMappingURL=chunk-2KCZUH72.cjs.map
|
|
@@ -16,8 +16,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_4LSYTNS4_exports = {};
|
|
20
|
+
__export(chunk_4LSYTNS4_exports, {
|
|
21
21
|
ApiError: () => ApiError,
|
|
22
22
|
CellValue: () => CellValue,
|
|
23
23
|
DEFAULT_COLS: () => DEFAULT_COLS,
|
|
@@ -48,8 +48,8 @@ __export(chunk_6BZ2TACG_exports, {
|
|
|
48
48
|
styleKey: () => styleKey,
|
|
49
49
|
useSheetModel: () => useSheetModel
|
|
50
50
|
});
|
|
51
|
-
module.exports = __toCommonJS(
|
|
52
|
-
var
|
|
51
|
+
module.exports = __toCommonJS(chunk_4LSYTNS4_exports);
|
|
52
|
+
var import_chunk_MLU6KRQN = require("./chunk-MLU6KRQN.cjs");
|
|
53
53
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
54
54
|
var import_types = require("@dxos/plugin-space/types");
|
|
55
55
|
var import_echo_schema2 = require("@dxos/echo-schema");
|
|
@@ -732,7 +732,7 @@ var useSheetModel = (graph, sheet, { readonly } = {}) => {
|
|
|
732
732
|
};
|
|
733
733
|
var SheetAction;
|
|
734
734
|
(function(SheetAction2) {
|
|
735
|
-
const SHEET_ACTION = `${
|
|
735
|
+
const SHEET_ACTION = `${import_chunk_MLU6KRQN.SHEET_PLUGIN}/action`;
|
|
736
736
|
class Create extends import_echo_schema2.S.TaggedClass()(`${SHEET_ACTION}/create`, {
|
|
737
737
|
input: import_echo_schema2.S.Struct({
|
|
738
738
|
name: import_echo_schema2.S.optional(import_echo_schema2.S.String)
|
|
@@ -932,4 +932,4 @@ var mapFormulaIndicesToRefs = (sheet, formula) => {
|
|
|
932
932
|
styleKey,
|
|
933
933
|
useSheetModel
|
|
934
934
|
});
|
|
935
|
-
//# sourceMappingURL=chunk-
|
|
935
|
+
//# sourceMappingURL=chunk-4LSYTNS4.cjs.map
|
|
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_MLU6KRQN_exports = {};
|
|
20
|
+
__export(chunk_MLU6KRQN_exports, {
|
|
21
21
|
SHEET_PLUGIN: () => SHEET_PLUGIN,
|
|
22
22
|
meta: () => meta
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_MLU6KRQN_exports);
|
|
25
25
|
var SHEET_PLUGIN = "dxos.org/plugin/sheet";
|
|
26
26
|
var meta = {
|
|
27
27
|
id: SHEET_PLUGIN,
|
|
28
28
|
name: "Sheet",
|
|
29
|
-
description:
|
|
29
|
+
description: "Sheets in Composer are simple spreadsheets which allow you to leverage custom functions inside of cell grids. Leverage more than 400 pre-built formulas like Sum, Average, Count, Max, Min along with many others. You can also deploy your own custom functions using the Scripts plugin. ",
|
|
30
30
|
icon: "ph--grid-nine--regular",
|
|
31
31
|
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet",
|
|
32
32
|
screenshots: [
|
|
@@ -38,4 +38,4 @@ var meta = {
|
|
|
38
38
|
SHEET_PLUGIN,
|
|
39
39
|
meta
|
|
40
40
|
});
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-MLU6KRQN.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const SHEET_PLUGIN = 'dxos.org/plugin/sheet';\n\nexport const meta = {\n id: SHEET_PLUGIN,\n name: 'Sheet',\n description:\n 'Sheets in Composer are simple spreadsheets which allow you to leverage custom functions inside of cell grids. Leverage more than 400 pre-built formulas like Sum, Average, Count, Max, Min along with many others. You can also deploy your own custom functions using the Scripts plugin. ',\n icon: 'ph--grid-nine--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-sheet',\n screenshots: ['https://dxos.network/plugin-details-sheet-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,eAAe;AAErB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["SHEET_PLUGIN", "meta", "id", "name", "description", "icon", "source", "screenshots"]
|
|
7
|
+
}
|
|
@@ -16,19 +16,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_ZV2RS3QH_exports = {};
|
|
20
|
+
__export(chunk_ZV2RS3QH_exports, {
|
|
21
21
|
SheetCapabilities: () => SheetCapabilities
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_ZV2RS3QH_exports);
|
|
24
|
+
var import_chunk_MLU6KRQN = require("./chunk-MLU6KRQN.cjs");
|
|
25
25
|
var import_app_framework = require("@dxos/app-framework");
|
|
26
26
|
var SheetCapabilities;
|
|
27
27
|
(function(SheetCapabilities2) {
|
|
28
|
-
SheetCapabilities2.ComputeGraphRegistry = (0, import_app_framework.defineCapability)(`${
|
|
28
|
+
SheetCapabilities2.ComputeGraphRegistry = (0, import_app_framework.defineCapability)(`${import_chunk_MLU6KRQN.SHEET_PLUGIN}/capability/compute-graph-registry`);
|
|
29
29
|
})(SheetCapabilities || (SheetCapabilities = {}));
|
|
30
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
31
|
0 && (module.exports = {
|
|
32
32
|
SheetCapabilities
|
|
33
33
|
});
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-ZV2RS3QH.cjs.map
|
package/dist/lib/node/{compute-graph-registry-IKYGA5ZC.cjs → compute-graph-registry-GJK5H264.cjs}
RENAMED
|
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var compute_graph_registry_GJK5H264_exports = {};
|
|
30
|
+
__export(compute_graph_registry_GJK5H264_exports, {
|
|
31
31
|
default: () => compute_graph_registry_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(compute_graph_registry_GJK5H264_exports);
|
|
34
|
+
var import_chunk_ZV2RS3QH = require("./chunk-ZV2RS3QH.cjs");
|
|
35
|
+
var import_chunk_MLU6KRQN = require("./chunk-MLU6KRQN.cjs");
|
|
36
36
|
var import_app_framework = require("@dxos/app-framework");
|
|
37
37
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
38
38
|
var compute_graph_registry_default = async (context) => {
|
|
@@ -48,6 +48,6 @@ var compute_graph_registry_default = async (context) => {
|
|
|
48
48
|
plugins: defaultPlugins,
|
|
49
49
|
remoteFunctionUrl
|
|
50
50
|
});
|
|
51
|
-
return (0, import_app_framework.contributes)(
|
|
51
|
+
return (0, import_app_framework.contributes)(import_chunk_ZV2RS3QH.SheetCapabilities.ComputeGraphRegistry, computeGraphRegistry);
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=compute-graph-registry-
|
|
53
|
+
//# sourceMappingURL=compute-graph-registry-GJK5H264.cjs.map
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,25 +28,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var node_exports = {};
|
|
30
30
|
__export(node_exports, {
|
|
31
|
-
SHEET_PLUGIN: () =>
|
|
32
|
-
SheetCapabilities: () =>
|
|
31
|
+
SHEET_PLUGIN: () => import_chunk_MLU6KRQN.SHEET_PLUGIN,
|
|
32
|
+
SheetCapabilities: () => import_chunk_ZV2RS3QH.SheetCapabilities,
|
|
33
33
|
SheetPlugin: () => SheetPlugin,
|
|
34
|
-
meta: () =>
|
|
34
|
+
meta: () => import_chunk_MLU6KRQN.meta
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(node_exports);
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
37
|
+
var import_chunk_ZV2RS3QH = require("./chunk-ZV2RS3QH.cjs");
|
|
38
|
+
var import_chunk_4LSYTNS4 = require("./chunk-4LSYTNS4.cjs");
|
|
39
|
+
var import_chunk_MLU6KRQN = require("./chunk-MLU6KRQN.cjs");
|
|
40
40
|
var import_app_framework = require("@dxos/app-framework");
|
|
41
41
|
var import_app_framework2 = require("@dxos/app-framework");
|
|
42
42
|
var import_functions = require("@dxos/functions");
|
|
43
43
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
44
44
|
var import_echo = require("@dxos/react-client/echo");
|
|
45
|
-
var ComputeGraphRegistry = (0, import_app_framework.lazy)(() => import("./compute-graph-registry-
|
|
46
|
-
var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-
|
|
47
|
-
var Markdown = (0, import_app_framework.lazy)(() => import("./markdown-
|
|
48
|
-
var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-
|
|
49
|
-
var Thread = (0, import_app_framework.lazy)(() => import("./thread-
|
|
45
|
+
var ComputeGraphRegistry = (0, import_app_framework.lazy)(() => import("./compute-graph-registry-GJK5H264.cjs"));
|
|
46
|
+
var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-I25V7SBT.cjs"));
|
|
47
|
+
var Markdown = (0, import_app_framework.lazy)(() => import("./markdown-YTCSW66K.cjs"));
|
|
48
|
+
var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-HLE6CRA6.cjs"));
|
|
49
|
+
var Thread = (0, import_app_framework.lazy)(() => import("./thread-DRNYTR6M.cjs"));
|
|
50
50
|
var serializer = {
|
|
51
51
|
serialize: async ({ object }) => {
|
|
52
52
|
const { threads: _threads, ...sheet } = object;
|
|
@@ -54,7 +54,7 @@ var serializer = {
|
|
|
54
54
|
},
|
|
55
55
|
deserialize: async ({ content, newId }) => {
|
|
56
56
|
const { id, ...parsed } = JSON.parse(content);
|
|
57
|
-
const sheet = (0, import_echo.create)(
|
|
57
|
+
const sheet = (0, import_echo.create)(import_chunk_4LSYTNS4.SheetType, parsed);
|
|
58
58
|
if (!newId) {
|
|
59
59
|
const core = (0, import_echo.getObjectCore)(sheet);
|
|
60
60
|
core.id = id;
|
|
@@ -65,10 +65,10 @@ var serializer = {
|
|
|
65
65
|
var translations_default = [
|
|
66
66
|
{
|
|
67
67
|
"en-US": {
|
|
68
|
-
[
|
|
68
|
+
[import_chunk_4LSYTNS4.SheetType.typename]: {
|
|
69
69
|
"typename label": "Sheet"
|
|
70
70
|
},
|
|
71
|
-
[
|
|
71
|
+
[import_chunk_MLU6KRQN.SHEET_PLUGIN]: {
|
|
72
72
|
"plugin name": "Sheets",
|
|
73
73
|
"sheet title placeholder": "New sheet",
|
|
74
74
|
"create sheet label": "Create sheet",
|
|
@@ -101,29 +101,29 @@ var translations_default = [
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
];
|
|
104
|
-
var SheetPlugin = () => (0, import_app_framework2.definePlugin)(
|
|
104
|
+
var SheetPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_MLU6KRQN.meta, [
|
|
105
105
|
(0, import_app_framework2.defineModule)({
|
|
106
|
-
id: `${
|
|
106
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/compute-graph-registry`,
|
|
107
107
|
activatesOn: import_plugin_client.ClientEvents.ClientReady,
|
|
108
108
|
activate: ComputeGraphRegistry
|
|
109
109
|
}),
|
|
110
110
|
(0, import_app_framework2.defineModule)({
|
|
111
|
-
id: `${
|
|
111
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/translations`,
|
|
112
112
|
activatesOn: import_app_framework2.Events.SetupTranslations,
|
|
113
113
|
activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
|
|
114
114
|
}),
|
|
115
115
|
(0, import_app_framework2.defineModule)({
|
|
116
|
-
id: `${
|
|
116
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/metadata`,
|
|
117
117
|
activatesOn: import_app_framework2.Events.SetupMetadata,
|
|
118
118
|
activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
|
|
119
|
-
id:
|
|
119
|
+
id: import_chunk_4LSYTNS4.SheetType.typename,
|
|
120
120
|
metadata: {
|
|
121
|
-
createObject: (props) => (0, import_app_framework2.createIntent)(
|
|
122
|
-
label: (object) => object instanceof
|
|
121
|
+
createObject: (props) => (0, import_app_framework2.createIntent)(import_chunk_4LSYTNS4.SheetAction.Create, props),
|
|
122
|
+
label: (object) => object instanceof import_chunk_4LSYTNS4.SheetType ? object.name : void 0,
|
|
123
123
|
placeholder: [
|
|
124
124
|
"sheet title placeholder",
|
|
125
125
|
{
|
|
126
|
-
ns:
|
|
126
|
+
ns: import_chunk_MLU6KRQN.SHEET_PLUGIN
|
|
127
127
|
}
|
|
128
128
|
],
|
|
129
129
|
icon: "ph--grid-nine--regular",
|
|
@@ -132,11 +132,11 @@ var SheetPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_AUC
|
|
|
132
132
|
})
|
|
133
133
|
}),
|
|
134
134
|
(0, import_app_framework2.defineModule)({
|
|
135
|
-
id: `${
|
|
135
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/schema`,
|
|
136
136
|
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
137
137
|
activate: () => [
|
|
138
138
|
(0, import_app_framework2.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
139
|
-
|
|
139
|
+
import_chunk_4LSYTNS4.SheetType
|
|
140
140
|
]),
|
|
141
141
|
// TODO(wittjosiah): Factor out to common package/plugin.
|
|
142
142
|
// FunctionType is currently registered here in case script plugin isn't enabled.
|
|
@@ -146,22 +146,22 @@ var SheetPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_AUC
|
|
|
146
146
|
]
|
|
147
147
|
}),
|
|
148
148
|
(0, import_app_framework2.defineModule)({
|
|
149
|
-
id: `${
|
|
149
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/markdown`,
|
|
150
150
|
activatesOn: import_app_framework2.Events.Startup,
|
|
151
151
|
activate: Markdown
|
|
152
152
|
}),
|
|
153
153
|
(0, import_app_framework2.defineModule)({
|
|
154
|
-
id: `${
|
|
154
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/thread`,
|
|
155
155
|
activatesOn: import_app_framework2.Events.Startup,
|
|
156
156
|
activate: Thread
|
|
157
157
|
}),
|
|
158
158
|
(0, import_app_framework2.defineModule)({
|
|
159
|
-
id: `${
|
|
159
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/react-surface`,
|
|
160
160
|
activatesOn: import_app_framework2.Events.SetupSurfaces,
|
|
161
161
|
activate: ReactSurface
|
|
162
162
|
}),
|
|
163
163
|
(0, import_app_framework2.defineModule)({
|
|
164
|
-
id: `${
|
|
164
|
+
id: `${import_chunk_MLU6KRQN.meta.id}/module/intent-resolver`,
|
|
165
165
|
activatesOn: import_app_framework2.Events.SetupIntents,
|
|
166
166
|
activate: IntentResolver
|
|
167
167
|
})
|