@dxos/plugin-conductor 0.7.5-staging.e6154f3
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/LICENSE +8 -0
- package/README.md +90 -0
- package/dist/lib/browser/CanvasContainer-2LHBQGCB.mjs +95 -0
- package/dist/lib/browser/CanvasContainer-2LHBQGCB.mjs.map +7 -0
- package/dist/lib/browser/chunk-DUUJXCVO.mjs +21 -0
- package/dist/lib/browser/chunk-DUUJXCVO.mjs.map +7 -0
- package/dist/lib/browser/chunk-KTJBLHAY.mjs +26 -0
- package/dist/lib/browser/chunk-KTJBLHAY.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +96 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/intent-resolver-IKITW45C.mjs +34 -0
- package/dist/lib/browser/intent-resolver-IKITW45C.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/browser/react-surface-KAJ3W4G5.mjs +30 -0
- package/dist/lib/browser/react-surface-KAJ3W4G5.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +8 -0
- package/dist/lib/browser/types.mjs.map +7 -0
- package/dist/lib/node/CanvasContainer-YQK4QVL6.cjs +128 -0
- package/dist/lib/node/CanvasContainer-YQK4QVL6.cjs.map +7 -0
- package/dist/lib/node/chunk-3WWLHGNO.cjs +45 -0
- package/dist/lib/node/chunk-3WWLHGNO.cjs.map +7 -0
- package/dist/lib/node/chunk-Y3VOCBBO.cjs +44 -0
- package/dist/lib/node/chunk-Y3VOCBBO.cjs.map +7 -0
- package/dist/lib/node/index.cjs +119 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/intent-resolver-P6OSOKYW.cjs +50 -0
- package/dist/lib/node/intent-resolver-P6OSOKYW.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node/react-surface-NA74HMQP.cjs +52 -0
- package/dist/lib/node/react-surface-NA74HMQP.cjs.map +7 -0
- package/dist/lib/node/types.cjs +30 -0
- package/dist/lib/node/types.cjs.map +7 -0
- package/dist/lib/node-esm/CanvasContainer-CJHLFVHB.mjs +97 -0
- package/dist/lib/node-esm/CanvasContainer-CJHLFVHB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ML7CFPFL.mjs +23 -0
- package/dist/lib/node-esm/chunk-ML7CFPFL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZJLM74FY.mjs +27 -0
- package/dist/lib/node-esm/chunk-ZJLM74FY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +97 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/intent-resolver-LUU6EZQI.mjs +35 -0
- package/dist/lib/node-esm/intent-resolver-LUU6EZQI.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/react-surface-DX25CX6P.mjs +31 -0
- package/dist/lib/node-esm/react-surface-DX25CX6P.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +9 -0
- package/dist/lib/node-esm/types.mjs.map +7 -0
- package/dist/types/src/ConductorPlugin.d.ts +2 -0
- package/dist/types/src/ConductorPlugin.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +3 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/CanvasContainer.d.ts +7 -0
- package/dist/types/src/components/CanvasContainer.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +5 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/meta.d.ts +11 -0
- package/dist/types/src/meta.d.ts.map +1 -0
- package/dist/types/src/sanity.test.d.ts +2 -0
- package/dist/types/src/sanity.test.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +25 -0
- package/dist/types/src/translations.d.ts.map +1 -0
- package/dist/types/src/types.d.ts +18 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +70 -0
- package/src/ConductorPlugin.tsx +64 -0
- package/src/capabilities/index.ts +8 -0
- package/src/capabilities/intent-resolver.ts +27 -0
- package/src/capabilities/react-surface.tsx +22 -0
- package/src/components/CanvasContainer.tsx +121 -0
- package/src/components/index.ts +7 -0
- package/src/index.ts +6 -0
- package/src/meta.ts +18 -0
- package/src/sanity.test.ts +11 -0
- package/src/translations.ts +23 -0
- package/src/types.ts +21 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var CanvasContainer_YQK4QVL6_exports = {};
|
|
30
|
+
__export(CanvasContainer_YQK4QVL6_exports, {
|
|
31
|
+
CanvasContainer: () => CanvasContainer,
|
|
32
|
+
default: () => CanvasContainer_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(CanvasContainer_YQK4QVL6_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_assistant = require("@dxos/assistant");
|
|
37
|
+
var import_conductor = require("@dxos/conductor");
|
|
38
|
+
var import_edge_client = require("@dxos/edge-client");
|
|
39
|
+
var import_react_client = require("@dxos/react-client");
|
|
40
|
+
var import_echo = require("@dxos/react-client/echo");
|
|
41
|
+
var import_react_ui_canvas_compute = require("@dxos/react-ui-canvas-compute");
|
|
42
|
+
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
43
|
+
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
44
|
+
var createServices = (config, space) => {
|
|
45
|
+
return {
|
|
46
|
+
spaceService: space == null ? void 0 : {
|
|
47
|
+
spaceId: space.id,
|
|
48
|
+
db: space.db
|
|
49
|
+
},
|
|
50
|
+
gpt: config.values.runtime?.services?.ai?.server == null ? void 0 : new import_conductor.EdgeGpt(new import_assistant.AIServiceClientImpl({
|
|
51
|
+
endpoint: config.values.runtime?.services?.ai?.server
|
|
52
|
+
})),
|
|
53
|
+
edgeClient: config.values.runtime?.services?.edge?.url == null ? void 0 : new import_edge_client.EdgeClient((0, import_edge_client.createStubEdgeIdentity)(), {
|
|
54
|
+
socketEndpoint: config.values.runtime?.services?.edge?.url
|
|
55
|
+
}),
|
|
56
|
+
edgeHttpClient: config.values.runtime?.services?.edge?.url == null ? void 0 : new import_edge_client.EdgeHttpClient(config.values.runtime?.services?.edge?.url)
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
var useGraphController = (canvas) => {
|
|
60
|
+
const config = (0, import_react_client.useConfig)();
|
|
61
|
+
const space = (0, import_echo.getSpace)(canvas);
|
|
62
|
+
const controller = (0, import_react.useMemo)(() => {
|
|
63
|
+
if (!canvas.computeGraph?.target) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const model = new import_conductor.ComputeGraphModel(canvas.computeGraph?.target);
|
|
67
|
+
const controller2 = new import_react_ui_canvas_compute.ComputeGraphController(model);
|
|
68
|
+
controller2.setServices(createServices(config, space));
|
|
69
|
+
return controller2;
|
|
70
|
+
}, [
|
|
71
|
+
canvas.computeGraph?.target,
|
|
72
|
+
space
|
|
73
|
+
]);
|
|
74
|
+
(0, import_react.useEffect)(() => {
|
|
75
|
+
if (!controller) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
void controller.open();
|
|
79
|
+
return () => {
|
|
80
|
+
void controller.close();
|
|
81
|
+
};
|
|
82
|
+
}, [
|
|
83
|
+
controller
|
|
84
|
+
]);
|
|
85
|
+
return controller;
|
|
86
|
+
};
|
|
87
|
+
var CanvasContainer = ({ canvas, role }) => {
|
|
88
|
+
const id = (0, import_echo.fullyQualifiedId)(canvas);
|
|
89
|
+
const graph = (0, import_react.useMemo)(() => import_react_ui_canvas_editor.CanvasGraphModel.create(canvas.layout), [
|
|
90
|
+
canvas.layout
|
|
91
|
+
]);
|
|
92
|
+
const controller = useGraphController(canvas);
|
|
93
|
+
const graphMonitor = (0, import_react_ui_canvas_compute.useGraphMonitor)(controller?.graph);
|
|
94
|
+
const registry = (0, import_react.useMemo)(() => new import_react_ui_canvas_editor.ShapeRegistry(import_react_ui_canvas_compute.computeShapes), []);
|
|
95
|
+
const editorRef = (0, import_react.useRef)(null);
|
|
96
|
+
const layout = (0, import_react.useMemo)(() => controller && registry ? new import_react_ui_canvas_compute.ComputeShapeLayout(controller, registry) : void 0, [
|
|
97
|
+
controller,
|
|
98
|
+
registry
|
|
99
|
+
]);
|
|
100
|
+
if (!controller) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_compute.ComputeContext.Provider, {
|
|
104
|
+
value: {
|
|
105
|
+
controller
|
|
106
|
+
}
|
|
107
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
|
|
108
|
+
toolbar: false,
|
|
109
|
+
size: role === "section" ? "square" : "intrinsic"
|
|
110
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.KeyboardContainer, {
|
|
111
|
+
id
|
|
112
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.Root, {
|
|
113
|
+
id,
|
|
114
|
+
ref: editorRef,
|
|
115
|
+
graph,
|
|
116
|
+
graphMonitor,
|
|
117
|
+
registry,
|
|
118
|
+
layout
|
|
119
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.Canvas, null), /* @__PURE__ */ import_react.default.createElement(import_react_ui_canvas_editor.Editor.UI, {
|
|
120
|
+
showTools: true
|
|
121
|
+
})))));
|
|
122
|
+
};
|
|
123
|
+
var CanvasContainer_default = CanvasContainer;
|
|
124
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
125
|
+
0 && (module.exports = {
|
|
126
|
+
CanvasContainer
|
|
127
|
+
});
|
|
128
|
+
//# sourceMappingURL=CanvasContainer-YQK4QVL6.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/CanvasContainer.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useEffect, useMemo, useRef } from 'react';\n\nimport { AIServiceClientImpl } from '@dxos/assistant';\nimport { type Config } from '@dxos/client';\nimport { ComputeGraphModel, EdgeGpt } from '@dxos/conductor';\nimport { createStubEdgeIdentity, EdgeClient, EdgeHttpClient } from '@dxos/edge-client';\nimport { useConfig } from '@dxos/react-client';\nimport { fullyQualifiedId, getSpace, type Space } from '@dxos/react-client/echo';\nimport {\n ComputeContext,\n ComputeGraphController,\n type ComputeShape,\n ComputeShapeLayout,\n computeShapes,\n type Services,\n useGraphMonitor,\n} from '@dxos/react-ui-canvas-compute';\nimport {\n type CanvasBoardType,\n CanvasGraphModel,\n Editor,\n type EditorController,\n KeyboardContainer,\n ShapeRegistry,\n} from '@dxos/react-ui-canvas-editor';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nconst createServices = (config: Config, space?: Space): Partial<Services> => {\n return {\n spaceService:\n space == null\n ? undefined\n : {\n spaceId: space.id,\n db: space.db,\n },\n gpt:\n config.values.runtime?.services?.ai?.server == null\n ? undefined\n : new EdgeGpt(new AIServiceClientImpl({ endpoint: config.values.runtime?.services?.ai?.server })),\n edgeClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeClient(createStubEdgeIdentity(), { socketEndpoint: config.values.runtime?.services?.edge?.url }),\n edgeHttpClient:\n config.values.runtime?.services?.edge?.url == null\n ? undefined\n : new EdgeHttpClient(config.values.runtime?.services?.edge?.url),\n };\n};\n\nconst useGraphController = (canvas: CanvasBoardType) => {\n const config = useConfig();\n const space = getSpace(canvas);\n const controller = useMemo(() => {\n if (!canvas.computeGraph?.target) {\n return null;\n }\n const model = new ComputeGraphModel(canvas.computeGraph?.target);\n const controller = new ComputeGraphController(model);\n controller.setServices(createServices(config, space));\n return controller;\n }, [canvas.computeGraph?.target, space]);\n\n useEffect(() => {\n if (!controller) {\n return;\n }\n void controller.open();\n return () => {\n void controller.close();\n };\n }, [controller]);\n\n return controller;\n};\n\nexport const CanvasContainer = ({ canvas, role }: { canvas: CanvasBoardType; role: string }) => {\n const id = fullyQualifiedId(canvas);\n const graph = useMemo(() => CanvasGraphModel.create<ComputeShape>(canvas.layout), [canvas.layout]);\n const controller = useGraphController(canvas);\n const graphMonitor = useGraphMonitor(controller?.graph);\n const registry = useMemo(() => new ShapeRegistry(computeShapes), []);\n const editorRef = useRef<EditorController>(null);\n\n // Layout.\n const layout = useMemo(\n () => (controller && registry ? new ComputeShapeLayout(controller, registry) : undefined),\n [controller, registry],\n );\n\n if (!controller) {\n return;\n }\n\n return (\n <ComputeContext.Provider value={{ controller }}>\n <StackItem.Content toolbar={false} size={role === 'section' ? 'square' : 'intrinsic'}>\n <KeyboardContainer id={id}>\n <Editor.Root\n id={id}\n ref={editorRef}\n graph={graph}\n graphMonitor={graphMonitor as any}\n registry={registry}\n layout={layout}\n >\n <Editor.Canvas />\n <Editor.UI showTools />\n </Editor.Root>\n </KeyboardContainer>\n </StackItem.Content>\n </ComputeContext.Provider>\n );\n};\n\nexport default CanvasContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkD;AAElD,uBAAoC;AAEpC,uBAA2C;AAC3C,yBAAmE;AACnE,0BAA0B;AAC1B,kBAAuD;AACvD,qCAQO;AACP,oCAOO;AACP,4BAA0B;AAE1B,IAAMA,iBAAiB,CAACC,QAAgBC,UAAAA;AACtC,SAAO;IACLC,cACED,SAAS,OACLE,SACA;MACEC,SAASH,MAAMI;MACfC,IAAIL,MAAMK;IACZ;IACNC,KACEP,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC,UAAU,OAC3CT,SACA,IAAIU,yBAAQ,IAAIC,qCAAoB;MAAEC,UAAUf,OAAOQ,OAAOC,SAASC,UAAUC,IAAIC;IAAO,CAAA,CAAA;IAClGI,YACEhB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIgB,kCAAWC,2CAAAA,GAA0B;MAAEC,gBAAgBrB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC;IAAI,CAAA;IAC5GI,gBACEtB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,OAAO,OAC1Cf,SACA,IAAIoB,kCAAevB,OAAOQ,OAAOC,SAASC,UAAUO,MAAMC,GAAAA;EAClE;AACF;AAEA,IAAMM,qBAAqB,CAACC,WAAAA;AAC1B,QAAMzB,aAAS0B,+BAAAA;AACf,QAAMzB,YAAQ0B,sBAASF,MAAAA;AACvB,QAAMG,iBAAaC,sBAAQ,MAAA;AACzB,QAAI,CAACJ,OAAOK,cAAcC,QAAQ;AAChC,aAAO;IACT;AACA,UAAMC,QAAQ,IAAIC,mCAAkBR,OAAOK,cAAcC,MAAAA;AACzD,UAAMH,cAAa,IAAIM,sDAAuBF,KAAAA;AAC9CJ,gBAAWO,YAAYpC,eAAeC,QAAQC,KAAAA,CAAAA;AAC9C,WAAO2B;EACT,GAAG;IAACH,OAAOK,cAAcC;IAAQ9B;GAAM;AAEvCmC,8BAAU,MAAA;AACR,QAAI,CAACR,YAAY;AACf;IACF;AACA,SAAKA,WAAWS,KAAI;AACpB,WAAO,MAAA;AACL,WAAKT,WAAWU,MAAK;IACvB;EACF,GAAG;IAACV;GAAW;AAEf,SAAOA;AACT;AAEO,IAAMW,kBAAkB,CAAC,EAAEd,QAAQe,KAAI,MAA6C;AACzF,QAAMnC,SAAKoC,8BAAiBhB,MAAAA;AAC5B,QAAMiB,YAAQb,sBAAQ,MAAMc,+CAAiBC,OAAqBnB,OAAOoB,MAAM,GAAG;IAACpB,OAAOoB;GAAO;AACjG,QAAMjB,aAAaJ,mBAAmBC,MAAAA;AACtC,QAAMqB,mBAAeC,gDAAgBnB,YAAYc,KAAAA;AACjD,QAAMM,eAAWnB,sBAAQ,MAAM,IAAIoB,4CAAcC,4CAAAA,GAAgB,CAAA,CAAE;AACnE,QAAMC,gBAAYC,qBAAyB,IAAA;AAG3C,QAAMP,aAAShB,sBACb,MAAOD,cAAcoB,WAAW,IAAIK,kDAAmBzB,YAAYoB,QAAAA,IAAY7C,QAC/E;IAACyB;IAAYoB;GAAS;AAGxB,MAAI,CAACpB,YAAY;AACf;EACF;AAEA,SACE,6BAAA0B,QAAA,cAACC,8CAAeC,UAAQ;IAACC,OAAO;MAAE7B;IAAW;KAC3C,6BAAA0B,QAAA,cAACI,gCAAUC,SAAO;IAACC,SAAS;IAAOC,MAAMrB,SAAS,YAAY,WAAW;KACvE,6BAAAc,QAAA,cAACQ,iDAAAA;IAAkBzD;KACjB,6BAAAiD,QAAA,cAACS,qCAAOC,MAAI;IACV3D;IACA4D,KAAKd;IACLT;IACAI;IACAE;IACAH;KAEA,6BAAAS,QAAA,cAACS,qCAAOG,QAAM,IAAA,GACd,6BAAAZ,QAAA,cAACS,qCAAOI,IAAE;IAACC,WAAAA;;AAMvB;AAEA,IAAA,0BAAe7B;",
|
|
6
|
+
"names": ["createServices", "config", "space", "spaceService", "undefined", "spaceId", "id", "db", "gpt", "values", "runtime", "services", "ai", "server", "EdgeGpt", "AIServiceClientImpl", "endpoint", "edgeClient", "edge", "url", "EdgeClient", "createStubEdgeIdentity", "socketEndpoint", "edgeHttpClient", "EdgeHttpClient", "useGraphController", "canvas", "useConfig", "getSpace", "controller", "useMemo", "computeGraph", "target", "model", "ComputeGraphModel", "ComputeGraphController", "setServices", "useEffect", "open", "close", "CanvasContainer", "role", "fullyQualifiedId", "graph", "CanvasGraphModel", "create", "layout", "graphMonitor", "useGraphMonitor", "registry", "ShapeRegistry", "computeShapes", "editorRef", "useRef", "ComputeShapeLayout", "React", "ComputeContext", "Provider", "value", "StackItem", "Content", "toolbar", "size", "KeyboardContainer", "Editor", "Root", "ref", "Canvas", "UI", "showTools"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_3WWLHGNO_exports = {};
|
|
20
|
+
__export(chunk_3WWLHGNO_exports, {
|
|
21
|
+
ConductorAction: () => ConductorAction
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chunk_3WWLHGNO_exports);
|
|
24
|
+
var import_chunk_Y3VOCBBO = require("./chunk-Y3VOCBBO.cjs");
|
|
25
|
+
var import_echo_schema = require("@dxos/echo-schema");
|
|
26
|
+
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
27
|
+
var ConductorAction;
|
|
28
|
+
(function(ConductorAction2) {
|
|
29
|
+
const CONDUCTOR_ACTION = `${import_chunk_Y3VOCBBO.CONDUCTOR_PLUGIN}/action`;
|
|
30
|
+
class Create extends import_echo_schema.S.TaggedClass()(`${CONDUCTOR_ACTION}/create`, {
|
|
31
|
+
input: import_echo_schema.S.Struct({
|
|
32
|
+
name: import_echo_schema.S.optional(import_echo_schema.S.String)
|
|
33
|
+
}),
|
|
34
|
+
output: import_echo_schema.S.Struct({
|
|
35
|
+
object: import_react_ui_canvas_editor.CanvasBoardType
|
|
36
|
+
})
|
|
37
|
+
}) {
|
|
38
|
+
}
|
|
39
|
+
ConductorAction2.Create = Create;
|
|
40
|
+
})(ConductorAction || (ConductorAction = {}));
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
ConductorAction
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=chunk-3WWLHGNO.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { S } from '@dxos/echo-schema';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport namespace ConductorAction {\n const CONDUCTOR_ACTION = `${CONDUCTOR_PLUGIN}/action`;\n\n export class Create extends S.TaggedClass<Create>()(`${CONDUCTOR_ACTION}/create`, {\n input: S.Struct({\n name: S.optional(S.String),\n }),\n output: S.Struct({\n object: CanvasBoardType,\n }),\n }) {}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAAkB;AAClB,oCAAgC;;UAIfA,kBAAAA;AACf,QAAMC,mBAAmB,GAAGC,sCAAAA;EAErB,MAAMC,eAAeC,qBAAEC,YAAW,EAAW,GAAGJ,gBAAAA,WAA2B;IAChFK,OAAOF,qBAAEG,OAAO;MACdC,MAAMJ,qBAAEK,SAASL,qBAAEM,MAAM;IAC3B,CAAA;IACAC,QAAQP,qBAAEG,OAAO;MACfK,QAAQC;IACV,CAAA;EACF,CAAA,EAAA;EAAI;mBAPSV,SAAAA;AAQf,GAXiBH,oBAAAA,kBAAAA,CAAAA,EAAAA;",
|
|
6
|
+
"names": ["ConductorAction", "CONDUCTOR_ACTION", "CONDUCTOR_PLUGIN", "Create", "S", "TaggedClass", "input", "Struct", "name", "optional", "String", "output", "object", "CanvasBoardType"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var chunk_Y3VOCBBO_exports = {};
|
|
20
|
+
__export(chunk_Y3VOCBBO_exports, {
|
|
21
|
+
CONDUCTOR_PLUGIN: () => CONDUCTOR_PLUGIN,
|
|
22
|
+
meta: () => meta
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(chunk_Y3VOCBBO_exports);
|
|
25
|
+
var CONDUCTOR_PLUGIN = "dxos.org/plugin/conductor";
|
|
26
|
+
var meta = {
|
|
27
|
+
id: CONDUCTOR_PLUGIN,
|
|
28
|
+
name: "Conductor",
|
|
29
|
+
description: "Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.",
|
|
30
|
+
icon: "ph--infinity--regular",
|
|
31
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor",
|
|
32
|
+
tags: [
|
|
33
|
+
"experimental"
|
|
34
|
+
],
|
|
35
|
+
screenshots: [
|
|
36
|
+
"https://dxos.network/plugin-details-canvas-dark.png"
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
CONDUCTOR_PLUGIN,
|
|
42
|
+
meta
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=chunk-Y3VOCBBO.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 CONDUCTOR_PLUGIN = 'dxos.org/plugin/conductor';\n\nexport const meta = {\n id: CONDUCTOR_PLUGIN,\n name: 'Conductor',\n description:\n 'Conductor allows you to build a node based compute graph that can handle complex workflows inside of Composer. Leverage your collaborative data along with custom scripts to orchestrate agentic workflows that operate in the background.',\n icon: 'ph--infinity--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-conductor',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-canvas-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,mBAAmB;AAEzB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["CONDUCTOR_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var node_exports = {};
|
|
30
|
+
__export(node_exports, {
|
|
31
|
+
CONDUCTOR_PLUGIN: () => import_chunk_Y3VOCBBO.CONDUCTOR_PLUGIN,
|
|
32
|
+
ConductorPlugin: () => ConductorPlugin,
|
|
33
|
+
meta: () => import_chunk_Y3VOCBBO.meta
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(node_exports);
|
|
36
|
+
var import_chunk_3WWLHGNO = require("./chunk-3WWLHGNO.cjs");
|
|
37
|
+
var import_chunk_Y3VOCBBO = require("./chunk-Y3VOCBBO.cjs");
|
|
38
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
39
|
+
var import_conductor = require("@dxos/conductor");
|
|
40
|
+
var import_types = require("@dxos/functions/types");
|
|
41
|
+
var import_plugin_client = require("@dxos/plugin-client");
|
|
42
|
+
var import_plugin_space = require("@dxos/plugin-space");
|
|
43
|
+
var import_types2 = require("@dxos/plugin-space/types");
|
|
44
|
+
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
45
|
+
var import_app_framework2 = require("@dxos/app-framework");
|
|
46
|
+
var import_react_ui_canvas_editor2 = require("@dxos/react-ui-canvas-editor");
|
|
47
|
+
var IntentResolver = (0, import_app_framework2.lazy)(() => import("./intent-resolver-P6OSOKYW.cjs"));
|
|
48
|
+
var ReactSurface = (0, import_app_framework2.lazy)(() => import("./react-surface-NA74HMQP.cjs"));
|
|
49
|
+
var translations_default = [
|
|
50
|
+
{
|
|
51
|
+
"en-US": {
|
|
52
|
+
[import_react_ui_canvas_editor2.CanvasBoardType.typename]: {
|
|
53
|
+
"typename label": "Circuit"
|
|
54
|
+
},
|
|
55
|
+
[import_chunk_Y3VOCBBO.CONDUCTOR_PLUGIN]: {
|
|
56
|
+
"plugin name": "Conductor",
|
|
57
|
+
"canvas title placeholder": "New circuit",
|
|
58
|
+
"create canvas label": "Create circuit",
|
|
59
|
+
"content placeholder": "Enter text..."
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
var ConductorPlugin = () => (0, import_app_framework.definePlugin)(import_chunk_Y3VOCBBO.meta, [
|
|
65
|
+
(0, import_app_framework.defineModule)({
|
|
66
|
+
id: `${import_chunk_Y3VOCBBO.meta.id}/module/translations`,
|
|
67
|
+
activatesOn: import_app_framework.Events.SetupTranslations,
|
|
68
|
+
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Translations, translations_default)
|
|
69
|
+
}),
|
|
70
|
+
(0, import_app_framework.defineModule)({
|
|
71
|
+
id: `${import_chunk_Y3VOCBBO.meta.id}/module/metadata`,
|
|
72
|
+
activatesOn: import_app_framework.Events.SetupMetadata,
|
|
73
|
+
activate: () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.Metadata, {
|
|
74
|
+
id: import_react_ui_canvas_editor.CanvasBoardType.typename,
|
|
75
|
+
metadata: {
|
|
76
|
+
placeholder: [
|
|
77
|
+
"canvas title placeholder",
|
|
78
|
+
{
|
|
79
|
+
ns: import_chunk_Y3VOCBBO.CONDUCTOR_PLUGIN
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
icon: "ph--infinity--regular"
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
(0, import_app_framework.defineModule)({
|
|
87
|
+
id: `${import_chunk_Y3VOCBBO.meta.id}/module/object-form`,
|
|
88
|
+
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
89
|
+
activate: () => (0, import_app_framework.contributes)(import_plugin_space.SpaceCapabilities.ObjectForm, (0, import_types2.defineObjectForm)({
|
|
90
|
+
objectSchema: import_react_ui_canvas_editor.CanvasBoardType,
|
|
91
|
+
getIntent: () => (0, import_app_framework.createIntent)(import_chunk_3WWLHGNO.ConductorAction.Create)
|
|
92
|
+
}))
|
|
93
|
+
}),
|
|
94
|
+
(0, import_app_framework.defineModule)({
|
|
95
|
+
id: `${import_chunk_Y3VOCBBO.meta.id}/module/schema`,
|
|
96
|
+
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
97
|
+
activate: () => (0, import_app_framework.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
98
|
+
import_conductor.ComputeGraph,
|
|
99
|
+
import_types.FunctionTrigger
|
|
100
|
+
])
|
|
101
|
+
}),
|
|
102
|
+
(0, import_app_framework.defineModule)({
|
|
103
|
+
id: `${import_chunk_Y3VOCBBO.meta.id}/module/react-surface`,
|
|
104
|
+
activatesOn: import_app_framework.Events.SetupReactSurface,
|
|
105
|
+
activate: ReactSurface
|
|
106
|
+
}),
|
|
107
|
+
(0, import_app_framework.defineModule)({
|
|
108
|
+
id: `${import_chunk_Y3VOCBBO.meta.id}/module/intent-resolver`,
|
|
109
|
+
activatesOn: import_app_framework.Events.SetupIntentResolver,
|
|
110
|
+
activate: IntentResolver
|
|
111
|
+
})
|
|
112
|
+
]);
|
|
113
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
114
|
+
0 && (module.exports = {
|
|
115
|
+
CONDUCTOR_PLUGIN,
|
|
116
|
+
ConductorPlugin,
|
|
117
|
+
meta
|
|
118
|
+
});
|
|
119
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/ConductorPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { FunctionTrigger } from '@dxos/functions/types';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities } from '@dxos/plugin-space';\nimport { defineObjectForm } from '@dxos/plugin-space/types';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { IntentResolver, ReactSurface } from './capabilities';\nimport { CONDUCTOR_PLUGIN, meta } from './meta';\nimport translations from './translations';\nimport { ConductorAction } from './types';\n\nexport const ConductorPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: CanvasBoardType.typename,\n metadata: {\n placeholder: ['canvas title placeholder', { ns: CONDUCTOR_PLUGIN }],\n icon: 'ph--infinity--regular',\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/object-form`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () =>\n contributes(\n SpaceCapabilities.ObjectForm,\n defineObjectForm({\n objectSchema: CanvasBoardType,\n getIntent: () => createIntent(ConductorAction.Create),\n }),\n ),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [ComputeGraph, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CONDUCTOR_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [CanvasBoardType.typename]: {\n 'typename label': 'Circuit',\n },\n [CONDUCTOR_PLUGIN]: {\n 'plugin name': 'Conductor',\n 'canvas title placeholder': 'New circuit',\n 'create canvas label': 'Create circuit',\n 'content placeholder': 'Enter text...',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA4F;AAC5F,uBAA6B;AAC7B,mBAAgC;AAChC,2BAAiD;AACjD,0BAAkC;AAClC,IAAAA,gBAAiC;AACjC,oCAAgC;ACNhC,IAAAC,wBAAqB;ACArB,IAAAC,iCAAgC;ADEzB,IAAMC,qBAAiBC,4BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAMC,mBAAeD,4BAAK,MAAM,OAAO,8BAAA,CAAA;ACC9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACE,+CAAgBC,QAAQ,GAAG;QAC1B,kBAAkB;MACpB;MACA,CAACC,sCAAAA,GAAmB;QAClB,eAAe;QACf,4BAA4B;QAC5B,uBAAuB;QACvB,uBAAuB;MACzB;IACF;EACF;;AFJK,IAAMC,kBAAkB,UAC7BC,mCAAaC,4BAAM;MACjBC,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOC;IACpBC,UAAU,UAAMC,kCAAYC,kCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAT,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAOO;IACpBL,UAAU,UACRC,kCAAYC,kCAAaI,UAAU;MACjCV,IAAIP,8BAAAA,gBAAgBC;MACpBiB,UAAU;QACRC,aAAa;UAAC;UAA4B;YAAEC,IAAIlB;UAAiB;;QACjEmB,MAAM;MACR;IACF,CAAA;EACJ,CAAA;MACAf,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAac,kCAAaC;IAC1BZ,UAAU,UACRC,kCACEY,sCAAkBC,gBAClBC,gCAAiB;MACfC,cAAc3B,8BAAAA;MACd4B,WAAW,UAAMC,mCAAaC,sCAAgBC,MAAM;IACtD,CAAA,CAAA;EAEN,CAAA;MACAzB,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAac,kCAAaC;IAC1BZ,UAAU,UAAMC,kCAAYoB,wCAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;MACA7B,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAO2B;IACpBzB,UAAUZ;EACZ,CAAA;MACAO,mCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,4BAAO4B;IACpB1B,UAAUd;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["import_types", "import_app_framework", "import_react_ui_canvas_editor", "IntentResolver", "lazy", "ReactSurface", "CanvasBoardType", "typename", "CONDUCTOR_PLUGIN", "ConductorPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "placeholder", "ns", "icon", "ClientEvents", "SetupSchema", "SpaceCapabilities", "ObjectForm", "defineObjectForm", "objectSchema", "getIntent", "createIntent", "ConductorAction", "Create", "ClientCapabilities", "Schema", "ComputeGraph", "FunctionTrigger", "SetupReactSurface", "SetupIntentResolver"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var intent_resolver_P6OSOKYW_exports = {};
|
|
20
|
+
__export(intent_resolver_P6OSOKYW_exports, {
|
|
21
|
+
default: () => intent_resolver_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(intent_resolver_P6OSOKYW_exports);
|
|
24
|
+
var import_chunk_3WWLHGNO = require("./chunk-3WWLHGNO.cjs");
|
|
25
|
+
var import_chunk_Y3VOCBBO = require("./chunk-Y3VOCBBO.cjs");
|
|
26
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
27
|
+
var import_conductor = require("@dxos/conductor");
|
|
28
|
+
var import_live_object = require("@dxos/live-object");
|
|
29
|
+
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
30
|
+
var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)({
|
|
31
|
+
intent: import_chunk_3WWLHGNO.ConductorAction.Create,
|
|
32
|
+
resolve: ({ name }) => ({
|
|
33
|
+
data: {
|
|
34
|
+
object: (0, import_live_object.create)(import_react_ui_canvas_editor.CanvasBoardType, {
|
|
35
|
+
name,
|
|
36
|
+
computeGraph: (0, import_live_object.makeRef)((0, import_live_object.create)(import_conductor.ComputeGraph, {
|
|
37
|
+
graph: {
|
|
38
|
+
nodes: [],
|
|
39
|
+
edges: []
|
|
40
|
+
}
|
|
41
|
+
})),
|
|
42
|
+
layout: {
|
|
43
|
+
nodes: [],
|
|
44
|
+
edges: []
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
}));
|
|
50
|
+
//# sourceMappingURL=intent-resolver-P6OSOKYW.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/intent-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, createResolver } from '@dxos/app-framework';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { create, makeRef } from '@dxos/live-object';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { ConductorAction } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: ConductorAction.Create,\n resolve: ({ name }) => ({\n data: {\n object: create(CanvasBoardType, {\n name,\n computeGraph: makeRef(create(ComputeGraph, { graph: { nodes: [], edges: [] } })),\n layout: { nodes: [], edges: [] },\n }),\n },\n }),\n }),\n );\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAA0D;AAC1D,uBAA6B;AAC7B,yBAAgC;AAChC,oCAAgC;AAIhC,IAAA,0BAAe,UACbA,kCACEC,kCAAaC,oBACbC,qCAAe;EACbC,QAAQC,sCAAgBC;EACxBC,SAAS,CAAC,EAAEC,KAAI,OAAQ;IACtBC,MAAM;MACJC,YAAQC,2BAAOC,+CAAiB;QAC9BJ;QACAK,kBAAcC,gCAAQH,2BAAOI,+BAAc;UAAEC,OAAO;YAAEC,OAAO,CAAA;YAAIC,OAAO,CAAA;UAAG;QAAE,CAAA,CAAA;QAC7EC,QAAQ;UAAEF,OAAO,CAAA;UAAIC,OAAO,CAAA;QAAG;MACjC,CAAA;IACF;EACF;AACF,CAAA,CAAA;",
|
|
6
|
+
"names": ["contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "ConductorAction", "Create", "resolve", "name", "data", "object", "create", "CanvasBoardType", "computeGraph", "makeRef", "ComputeGraph", "graph", "nodes", "edges", "layout"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"packages/plugins/experimental/plugin-conductor/src/meta.ts":{"bytes":2384,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/types.ts":{"bytes":2387,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytes":3490,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/components/CanvasContainer.tsx":{"bytes":13257,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/components/index.ts":{"bytes":821,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/components/CanvasContainer.tsx","kind":"dynamic-import","original":"./CanvasContainer"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/capabilities/react-surface.tsx":{"bytes":2810,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/experimental/plugin-conductor/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/capabilities/index.ts":{"bytes":1097,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/experimental/plugin-conductor/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/translations.ts":{"bytes":2025,"imports":[{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/ConductorPlugin.tsx":{"bytes":8758,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/experimental/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-conductor/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-conductor/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-conductor/src/index.ts":{"bytes":617,"imports":[{"path":"packages/plugins/experimental/plugin-conductor/src/ConductorPlugin.tsx","kind":"import-statement","original":"./ConductorPlugin"},{"path":"packages/plugins/experimental/plugin-conductor/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-conductor/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5500},"packages/plugins/experimental/plugin-conductor/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-3WWLHGNO.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/intent-resolver-P6OSOKYW.cjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/react-surface-NA74HMQP.cjs","kind":"dynamic-import"},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["CONDUCTOR_PLUGIN","ConductorPlugin","meta"],"entryPoint":"packages/plugins/experimental/plugin-conductor/src/index.ts","inputs":{"packages/plugins/experimental/plugin-conductor/src/ConductorPlugin.tsx":{"bytesInOutput":1912},"packages/plugins/experimental/plugin-conductor/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-conductor/src/translations.ts":{"bytesInOutput":425},"packages/plugins/experimental/plugin-conductor/src/index.ts":{"bytesInOutput":0}},"bytes":3043},"packages/plugins/experimental/plugin-conductor/dist/lib/node/types.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-conductor/dist/lib/node/types.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-3WWLHGNO.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs","kind":"import-statement"}],"exports":["ConductorAction"],"entryPoint":"packages/plugins/experimental/plugin-conductor/src/types.ts","inputs":{},"bytes":154},"packages/plugins/experimental/plugin-conductor/dist/lib/node/intent-resolver-P6OSOKYW.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1693},"packages/plugins/experimental/plugin-conductor/dist/lib/node/intent-resolver-P6OSOKYW.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-3WWLHGNO.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-conductor/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/experimental/plugin-conductor/src/capabilities/intent-resolver.ts":{"bytesInOutput":704}},"bytes":983},"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-3WWLHGNO.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1159},"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-3WWLHGNO.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true}],"exports":["ConductorAction"],"inputs":{"packages/plugins/experimental/plugin-conductor/src/types.ts":{"bytesInOutput":499}},"bytes":697},"packages/plugins/experimental/plugin-conductor/dist/lib/node/CanvasContainer-YQK4QVL6.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7298},"packages/plugins/experimental/plugin-conductor/dist/lib/node/CanvasContainer-YQK4QVL6.cjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/assistant","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/edge-client","kind":"import-statement","external":true},{"path":"@dxos/react-client","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-compute","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["CanvasContainer","default"],"entryPoint":"packages/plugins/experimental/plugin-conductor/src/components/CanvasContainer.tsx","inputs":{"packages/plugins/experimental/plugin-conductor/src/components/CanvasContainer.tsx":{"bytesInOutput":3251}},"bytes":3458},"packages/plugins/experimental/plugin-conductor/dist/lib/node/react-surface-NA74HMQP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1659},"packages/plugins/experimental/plugin-conductor/dist/lib/node/react-surface-NA74HMQP.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-canvas-editor","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-conductor/dist/lib/node/CanvasContainer-YQK4QVL6.cjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-conductor/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/experimental/plugin-conductor/src/capabilities/react-surface.tsx":{"bytesInOutput":522},"packages/plugins/experimental/plugin-conductor/src/components/index.ts":{"bytesInOutput":106}},"bytes":1033},"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1094},"packages/plugins/experimental/plugin-conductor/dist/lib/node/chunk-Y3VOCBBO.cjs":{"imports":[],"exports":["CONDUCTOR_PLUGIN","meta"],"inputs":{"packages/plugins/experimental/plugin-conductor/src/meta.ts":{"bytesInOutput":611}},"bytes":757}}}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var react_surface_NA74HMQP_exports = {};
|
|
30
|
+
__export(react_surface_NA74HMQP_exports, {
|
|
31
|
+
default: () => react_surface_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(react_surface_NA74HMQP_exports);
|
|
34
|
+
var import_chunk_Y3VOCBBO = require("./chunk-Y3VOCBBO.cjs");
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
37
|
+
var import_react_ui_canvas_editor = require("@dxos/react-ui-canvas-editor");
|
|
38
|
+
var import_react2 = require("react");
|
|
39
|
+
var CanvasContainer = (0, import_react2.lazy)(() => import("./CanvasContainer-YQK4QVL6.cjs"));
|
|
40
|
+
var react_surface_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.ReactSurface, (0, import_app_framework.createSurface)({
|
|
41
|
+
id: import_chunk_Y3VOCBBO.CONDUCTOR_PLUGIN,
|
|
42
|
+
role: [
|
|
43
|
+
"article",
|
|
44
|
+
"section"
|
|
45
|
+
],
|
|
46
|
+
filter: (data) => data.subject instanceof import_react_ui_canvas_editor.CanvasBoardType,
|
|
47
|
+
component: ({ data, role }) => /* @__PURE__ */ import_react.default.createElement(CanvasContainer, {
|
|
48
|
+
canvas: data.subject,
|
|
49
|
+
role
|
|
50
|
+
})
|
|
51
|
+
}));
|
|
52
|
+
//# sourceMappingURL=react-surface-NA74HMQP.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { CanvasBoardType } from '@dxos/react-ui-canvas-editor';\n\nimport { CanvasContainer } from '../components';\nimport { CONDUCTOR_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: CONDUCTOR_PLUGIN,\n role: ['article', 'section'],\n filter: (data): data is { subject: CanvasBoardType } => data.subject instanceof CanvasBoardType,\n component: ({ data, role }) => <CanvasContainer canvas={data.subject} role={role} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport const CanvasContainer = lazy(() => import('./CanvasContainer'));\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,2BAAyD;AACzD,oCAAgC;ACHhC,IAAAA,gBAAqB;AAEd,IAAMC,sBAAkBC,oBAAK,MAAM,OAAO,gCAAA,CAAA;ADMjD,IAAA,wBAAe,UACbC,kCACEC,kCAAaC,kBACbC,oCAAc;EACZC,IAAIC;EACJC,MAAM;IAAC;IAAW;;EAClBC,QAAQ,CAACC,SAA+CA,KAAKC,mBAAmBC;EAChFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,6BAAAM,QAAA,cAACd,iBAAAA;IAAgBe,QAAQL,KAAKC;IAASH;;AACxE,CAAA,CAAA;",
|
|
6
|
+
"names": ["import_react", "CanvasContainer", "lazy", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "CONDUCTOR_PLUGIN", "role", "filter", "data", "subject", "CanvasBoardType", "component", "React", "canvas"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var types_exports = {};
|
|
20
|
+
__export(types_exports, {
|
|
21
|
+
ConductorAction: () => import_chunk_3WWLHGNO.ConductorAction
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(types_exports);
|
|
24
|
+
var import_chunk_3WWLHGNO = require("./chunk-3WWLHGNO.cjs");
|
|
25
|
+
var import_chunk_Y3VOCBBO = require("./chunk-Y3VOCBBO.cjs");
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
ConductorAction
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["types.cjs"],
|
|
4
|
+
"sourcesContent": ["import {\n ConductorAction\n} from \"./chunk-3WWLHGNO.cjs\";\nimport \"./chunk-Y3VOCBBO.cjs\";\nexport {\n ConductorAction\n};\n//# sourceMappingURL=types.cjs.map\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAEO;AACP,4BAAO;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|