@dxos/plugin-automation 0.8.1-staging.391c573 → 0.8.1-staging.97aedb1
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/{AutomationPanel-KNXI72FK.mjs → AutomationPanel-YAHFXQX6.mjs} +27 -20
- package/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs +40 -0
- package/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs.map +7 -0
- package/dist/lib/browser/chunk-FALBBJNO.mjs +138 -0
- package/dist/lib/browser/chunk-FALBBJNO.mjs.map +7 -0
- package/dist/lib/browser/chunk-MT3FZH4V.mjs +8 -0
- package/dist/lib/browser/{chunk-OFDNNRLE.mjs → chunk-WKKQV4PC.mjs} +2 -2
- package/dist/lib/browser/chunk-WKKQV4PC.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +32 -17
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-4QQSJR4A.mjs +42 -0
- package/dist/lib/browser/react-surface-4QQSJR4A.mjs.map +7 -0
- package/dist/lib/node/{AutomationPanel-SVNHL4NI.cjs → AutomationPanel-ZKAMIU6O.cjs} +28 -21
- package/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs.map +7 -0
- package/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs +56 -0
- package/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs.map +7 -0
- package/dist/lib/node/{chunk-ORMEYEBE.cjs → chunk-7GXNXMSM.cjs} +4 -4
- package/dist/lib/node/chunk-7GXNXMSM.cjs.map +7 -0
- package/dist/lib/node/{chunk-Z7QSJQ4S.cjs → chunk-AGJ6XTDN.cjs} +5 -5
- package/dist/lib/node/chunk-FTEDH5Q6.cjs +167 -0
- package/dist/lib/node/chunk-FTEDH5Q6.cjs.map +7 -0
- package/dist/lib/node/index.cjs +37 -22
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-O6QXBWRG.cjs → react-surface-52M54VWV.cjs} +28 -13
- package/dist/lib/node/react-surface-52M54VWV.cjs.map +7 -0
- package/dist/lib/node-esm/{AutomationPanel-YP556U5O.mjs → AutomationPanel-XF7YPSKM.mjs} +27 -20
- package/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs +41 -0
- package/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6MUUH67V.mjs → chunk-DZ44LGYT.mjs} +2 -2
- package/dist/lib/node-esm/chunk-DZ44LGYT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-M4QXMIIB.mjs +139 -0
- package/dist/lib/node-esm/chunk-M4QXMIIB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs +10 -0
- package/dist/lib/node-esm/index.mjs +32 -17
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-MGKM3OO3.mjs +43 -0
- package/dist/lib/node-esm/react-surface-MGKM3OO3.mjs.map +7 -0
- package/dist/types/src/AutomationPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +181 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +177 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -7
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +5 -3
- package/dist/types/src/translations.d.ts.map +1 -1
- package/package.json +24 -20
- package/src/AutomationPlugin.tsx +14 -5
- package/src/capabilities/app-graph-builder.ts +31 -0
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/react-surface.tsx +22 -7
- package/src/components/AutomationPanel/AutomationPanel.tsx +59 -55
- package/src/components/TriggerEditor/TriggerEditor.tsx +89 -80
- package/src/meta.ts +2 -2
- package/src/translations.ts +6 -4
- package/dist/lib/browser/AutomationPanel-KNXI72FK.mjs.map +0 -7
- package/dist/lib/browser/chunk-HRHRMTAE.mjs +0 -8
- package/dist/lib/browser/chunk-NZZED7GX.mjs +0 -119
- package/dist/lib/browser/chunk-NZZED7GX.mjs.map +0 -7
- package/dist/lib/browser/chunk-OFDNNRLE.mjs.map +0 -7
- package/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs +0 -56
- package/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KZ3CT4BI.mjs +0 -27
- package/dist/lib/browser/react-surface-KZ3CT4BI.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-SVNHL4NI.cjs.map +0 -7
- package/dist/lib/node/chunk-ORMEYEBE.cjs.map +0 -7
- package/dist/lib/node/chunk-TTISAT2O.cjs +0 -148
- package/dist/lib/node/chunk-TTISAT2O.cjs.map +0 -7
- package/dist/lib/node/complementary-panel-ZYJJ42ZU.cjs +0 -72
- package/dist/lib/node/complementary-panel-ZYJJ42ZU.cjs.map +0 -7
- package/dist/lib/node/react-surface-O6QXBWRG.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-YP556U5O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5A5YUVH2.mjs +0 -10
- package/dist/lib/node-esm/chunk-6MUUH67V.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-I2V2NGYF.mjs +0 -120
- package/dist/lib/node-esm/chunk-I2V2NGYF.mjs.map +0 -7
- package/dist/lib/node-esm/complementary-panel-S42RIIAY.mjs +0 -57
- package/dist/lib/node-esm/complementary-panel-S42RIIAY.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-F4NLSDP6.mjs +0 -28
- package/dist/lib/node-esm/react-surface-F4NLSDP6.mjs.map +0 -7
- package/dist/types/src/capabilities/complementary-panel.d.ts +0 -4
- package/dist/types/src/capabilities/complementary-panel.d.ts.map +0 -1
- package/src/capabilities/complementary-panel.ts +0 -56
- /package/dist/lib/browser/{chunk-HRHRMTAE.mjs.map → chunk-MT3FZH4V.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-Z7QSJQ4S.cjs.map → chunk-AGJ6XTDN.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-5A5YUVH2.mjs.map → chunk-OA75PSGH.mjs.map} +0 -0
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TriggerEditor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FALBBJNO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AUTOMATION_PLUGIN
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WKKQV4PC.mjs";
|
|
7
7
|
|
|
8
|
-
// packages/plugins/
|
|
8
|
+
// packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx
|
|
9
9
|
import React, { useState } from "react";
|
|
10
10
|
import { S } from "@dxos/echo-schema";
|
|
11
11
|
import { FunctionType, FunctionTrigger, FunctionTriggerSchema, TriggerKind, ScriptType } from "@dxos/functions/types";
|
|
12
12
|
import { useClient } from "@dxos/react-client";
|
|
13
13
|
import { create, Filter, useQuery, getSpace } from "@dxos/react-client/echo";
|
|
14
|
-
import { Clipboard, IconButton, Input, useTranslation } from "@dxos/react-ui";
|
|
14
|
+
import { Clipboard, IconButton, Input, Separator, useTranslation } from "@dxos/react-ui";
|
|
15
|
+
import { ControlItem, controlItemClasses } from "@dxos/react-ui-form";
|
|
15
16
|
import { List } from "@dxos/react-ui-list";
|
|
17
|
+
import { StackItem } from "@dxos/react-ui-stack";
|
|
16
18
|
import { ghostHover, mx } from "@dxos/react-ui-theme";
|
|
17
19
|
var grid = "grid grid-cols-[40px_1fr_32px] min-bs-[2.5rem]";
|
|
18
20
|
var AutomationPanel = ({ space, object }) => {
|
|
@@ -29,9 +31,7 @@ var AutomationPanel = ({ space, object }) => {
|
|
|
29
31
|
setSelected(trigger2);
|
|
30
32
|
};
|
|
31
33
|
const handleAdd = () => {
|
|
32
|
-
setTrigger(create(FunctionTriggerSchema, {
|
|
33
|
-
meta: {}
|
|
34
|
-
}));
|
|
34
|
+
setTrigger(create(FunctionTriggerSchema, {}));
|
|
35
35
|
setSelected(void 0);
|
|
36
36
|
};
|
|
37
37
|
const handleDelete = (trigger2) => {
|
|
@@ -51,9 +51,21 @@ var AutomationPanel = ({ space, object }) => {
|
|
|
51
51
|
const handleCancel = () => {
|
|
52
52
|
setTrigger(void 0);
|
|
53
53
|
};
|
|
54
|
-
return /* @__PURE__ */ React.createElement(Clipboard.Provider, null, /* @__PURE__ */ React.createElement(
|
|
54
|
+
return /* @__PURE__ */ React.createElement(Clipboard.Provider, null, /* @__PURE__ */ React.createElement(StackItem.Content, {
|
|
55
|
+
classNames: "block overflow-y-auto"
|
|
56
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
55
57
|
className: "flex flex-col w-full"
|
|
56
|
-
},
|
|
58
|
+
}, trigger ? /* @__PURE__ */ React.createElement(ControlItem, {
|
|
59
|
+
title: t("trigger editor title")
|
|
60
|
+
}, /* @__PURE__ */ React.createElement(TriggerEditor, {
|
|
61
|
+
space,
|
|
62
|
+
trigger,
|
|
63
|
+
onSave: handleSave,
|
|
64
|
+
onCancel: handleCancel
|
|
65
|
+
})) : /* @__PURE__ */ React.createElement("div", {
|
|
66
|
+
role: "none",
|
|
67
|
+
className: controlItemClasses
|
|
68
|
+
}, /* @__PURE__ */ React.createElement(List.Root, {
|
|
57
69
|
items: triggers,
|
|
58
70
|
isItem: S.is(FunctionTrigger),
|
|
59
71
|
getId: (field) => field.id
|
|
@@ -80,18 +92,13 @@ var AutomationPanel = ({ space, object }) => {
|
|
|
80
92
|
})), /* @__PURE__ */ React.createElement(List.ItemDeleteButton, {
|
|
81
93
|
onClick: () => handleDelete(trigger2)
|
|
82
94
|
}));
|
|
83
|
-
}))),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
onSave: handleSave,
|
|
87
|
-
onCancel: handleCancel
|
|
88
|
-
}), !trigger && /* @__PURE__ */ React.createElement("div", {
|
|
89
|
-
className: "flex p-2 justify-center"
|
|
90
|
-
}, /* @__PURE__ */ React.createElement(IconButton, {
|
|
95
|
+
}))), triggers.length > 0 && /* @__PURE__ */ React.createElement(Separator, {
|
|
96
|
+
classNames: "mlb-4"
|
|
97
|
+
}), /* @__PURE__ */ React.createElement(IconButton, {
|
|
91
98
|
icon: "ph--plus--regular",
|
|
92
99
|
label: t("new trigger label"),
|
|
93
100
|
onClick: handleAdd
|
|
94
|
-
}))));
|
|
101
|
+
})))));
|
|
95
102
|
};
|
|
96
103
|
var getCopyAction = (client, trigger) => {
|
|
97
104
|
if (trigger?.spec?.type === TriggerKind.Email) {
|
|
@@ -124,9 +131,9 @@ var getFunctionName = (scripts, functions, trigger) => {
|
|
|
124
131
|
return scripts.find((s) => functionObject.source?.target?.id === s.id)?.name ?? shortId;
|
|
125
132
|
};
|
|
126
133
|
|
|
127
|
-
// packages/plugins/
|
|
134
|
+
// packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts
|
|
128
135
|
var AutomationPanel_default = AutomationPanel;
|
|
129
136
|
export {
|
|
130
137
|
AutomationPanel_default as default
|
|
131
138
|
};
|
|
132
|
-
//# sourceMappingURL=AutomationPanel-
|
|
139
|
+
//# sourceMappingURL=AutomationPanel-YAHFXQX6.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/AutomationPanel/AutomationPanel.tsx", "../../../src/components/AutomationPanel/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useState } from 'react';\n\nimport { S } from '@dxos/echo-schema';\nimport {\n FunctionType,\n FunctionTrigger,\n FunctionTriggerSchema,\n TriggerKind,\n type FunctionTriggerType,\n ScriptType,\n} from '@dxos/functions/types';\nimport { type Client, useClient } from '@dxos/react-client';\nimport { create, Filter, useQuery, type Space, type ReactiveObject, getSpace } from '@dxos/react-client/echo';\nimport { Clipboard, IconButton, Input, Separator, useTranslation } from '@dxos/react-ui';\nimport { ControlItem, controlItemClasses } from '@dxos/react-ui-form';\nimport { List } from '@dxos/react-ui-list';\nimport { StackItem } from '@dxos/react-ui-stack';\nimport { ghostHover, mx } from '@dxos/react-ui-theme';\n\nimport { AUTOMATION_PLUGIN } from '../../meta';\nimport { TriggerEditor, type TriggerEditorProps } from '../TriggerEditor';\n\nconst grid = 'grid grid-cols-[40px_1fr_32px] min-bs-[2.5rem]';\n\nexport type AutomationPanelProps = {\n space: Space;\n object?: ReactiveObject<any>;\n};\n\n// TODO(burdon): Factor out common layout with ViewEditor.\nexport const AutomationPanel = ({ space, object }: AutomationPanelProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n const client = useClient();\n const triggers = useQuery(space, Filter.schema(FunctionTrigger));\n const functions = useQuery(space, Filter.schema(FunctionType));\n const scripts = useQuery(space, Filter.schema(ScriptType));\n\n const [trigger, setTrigger] = useState<FunctionTriggerType>();\n const [selected, setSelected] = useState<FunctionTrigger>();\n\n const handleSelect = (trigger: FunctionTrigger) => {\n const { id: _, ...values } = trigger;\n setTrigger(values);\n setSelected(trigger);\n };\n\n const handleAdd = () => {\n setTrigger(create(FunctionTriggerSchema, {}));\n setSelected(undefined);\n };\n\n const handleDelete = (trigger: FunctionTrigger) => {\n space.db.remove(trigger);\n setTrigger(undefined);\n setSelected(undefined);\n };\n\n const handleSave: TriggerEditorProps['onSave'] = (trigger) => {\n if (selected) {\n Object.assign(selected, trigger);\n } else {\n space.db.add(create(FunctionTrigger, trigger));\n }\n\n setTrigger(undefined);\n setSelected(undefined);\n };\n\n const handleCancel: TriggerEditorProps['onCancel'] = () => {\n setTrigger(undefined);\n };\n\n return (\n <Clipboard.Provider>\n <StackItem.Content classNames='block overflow-y-auto'>\n <div className='flex flex-col w-full'>\n {trigger ? (\n <ControlItem title={t('trigger editor title')}>\n <TriggerEditor space={space} trigger={trigger} onSave={handleSave} onCancel={handleCancel} />\n </ControlItem>\n ) : (\n <div role='none' className={controlItemClasses}>\n <List.Root<FunctionTrigger> items={triggers} isItem={S.is(FunctionTrigger)} getId={(field) => field.id}>\n {({ items: triggers }) => (\n <div role='list' className='flex flex-col w-full'>\n {triggers?.map((trigger) => {\n const copyAction = getCopyAction(client, trigger);\n return (\n <List.Item<FunctionTrigger>\n key={trigger.id}\n item={trigger}\n classNames={mx(grid, ghostHover, 'items-center', 'px-2')}\n >\n <Input.Root>\n <Input.Switch\n checked={trigger.enabled}\n onCheckedChange={(checked) => (trigger.enabled = checked)}\n />\n </Input.Root>\n\n <div className={'flex'}>\n <List.ItemTitle\n classNames='px-1 cursor-pointer w-0 shrink truncate'\n onClick={() => handleSelect(trigger)}\n >\n {getFunctionName(scripts, functions, trigger) ?? '∅'}\n </List.ItemTitle>\n\n {/* TODO: a better way to expose copy action */}\n {copyAction && (\n <Clipboard.IconButton\n label={t(copyAction.translationKey)}\n value={copyAction.contentProvider()}\n />\n )}\n </div>\n\n <List.ItemDeleteButton onClick={() => handleDelete(trigger)} />\n </List.Item>\n );\n })}\n </div>\n )}\n </List.Root>\n {triggers.length > 0 && <Separator classNames='mlb-4' />}\n <IconButton icon='ph--plus--regular' label={t('new trigger label')} onClick={handleAdd} />\n </div>\n )}\n </div>\n </StackItem.Content>\n </Clipboard.Provider>\n );\n};\n\nconst getCopyAction = (client: Client, trigger: FunctionTrigger | undefined) => {\n if (trigger?.spec?.type === TriggerKind.Email) {\n return { translationKey: 'trigger copy email', contentProvider: () => `${getSpace(trigger)!.id}@dxos.network` };\n }\n\n if (trigger?.spec?.type === TriggerKind.Webhook) {\n return { translationKey: 'trigger copy url', contentProvider: () => getWebhookUrl(client, trigger) };\n }\n\n return undefined;\n};\n\nconst getWebhookUrl = (client: Client, trigger: FunctionTrigger) => {\n const spaceId = getSpace(trigger)!.id;\n const edgeUrl = new URL(client.config.values.runtime!.services!.edge!.url!);\n const isSecure = edgeUrl.protocol.startsWith('https') || edgeUrl.protocol.startsWith('wss');\n edgeUrl.protocol = isSecure ? 'https' : 'http';\n return new URL(`/webhook/${spaceId}:${trigger.id}`, edgeUrl).toString();\n};\n\nconst getFunctionName = (scripts: ScriptType[], functions: FunctionType[], trigger: FunctionTriggerType) => {\n // TODO(wittjosiah): Truncation should be done in the UI.\n // Warning that the List component is currently a can of worms.\n const shortId = trigger.function && `${trigger.function?.slice(0, 16)}…`;\n const functionObject = functions.find((fn) => `dxn:worker:${fn.name}` === trigger.function);\n if (!functionObject) {\n return shortId;\n }\n return scripts.find((s) => functionObject.source?.target?.id === s.id)?.name ?? shortId;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { AutomationPanel } from './AutomationPanel';\n\nexport default AutomationPanel;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["React", "useState", "S", "FunctionType", "FunctionTrigger", "FunctionTriggerSchema", "TriggerKind", "ScriptType", "useClient", "create", "Filter", "useQuery", "getSpace", "Clipboard", "IconButton", "Input", "Separator", "useTranslation", "ControlItem", "controlItemClasses", "List", "StackItem", "ghostHover", "mx", "grid", "AutomationPanel", "space", "object", "t", "useTranslation", "AUTOMATION_PLUGIN", "client", "useClient", "triggers", "useQuery", "Filter", "schema", "FunctionTrigger", "functions", "FunctionType", "scripts", "ScriptType", "trigger", "setTrigger", "useState", "selected", "setSelected", "handleSelect", "id", "_", "values", "handleAdd", "create", "FunctionTriggerSchema", "undefined", "handleDelete", "db", "remove", "handleSave", "Object", "assign", "add", "handleCancel", "Clipboard", "Provider", "StackItem", "Content", "classNames", "div", "className", "ControlItem", "title", "TriggerEditor", "onSave", "onCancel", "role", "controlItemClasses", "List", "Root", "items", "isItem", "S", "is", "getId", "field", "map", "copyAction", "getCopyAction", "Item", "key", "item", "mx", "ghostHover", "Input", "Switch", "checked", "enabled", "onCheckedChange", "ItemTitle", "onClick", "getFunctionName", "IconButton", "label", "translationKey", "value", "contentProvider", "ItemDeleteButton", "length", "Separator", "icon", "spec", "type", "TriggerKind", "Email", "getSpace", "Webhook", "getWebhookUrl", "spaceId", "edgeUrl", "URL", "config", "runtime", "services", "edge", "url", "isSecure", "protocol", "startsWith", "toString", "shortId", "function", "slice", "functionObject", "find", "fn", "name", "s", "source", "target", "AutomationPanel"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
meta
|
|
3
|
+
} from "./chunk-WKKQV4PC.mjs";
|
|
4
|
+
|
|
5
|
+
// packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts
|
|
6
|
+
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
7
|
+
import { isInstanceOf } from "@dxos/echo-schema";
|
|
8
|
+
import { ScriptType } from "@dxos/functions";
|
|
9
|
+
import { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from "@dxos/plugin-deck/types";
|
|
10
|
+
import { createExtension } from "@dxos/plugin-graph";
|
|
11
|
+
import { SCRIPT_PLUGIN } from "@dxos/plugin-script/types";
|
|
12
|
+
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
|
|
13
|
+
createExtension({
|
|
14
|
+
id: `${SCRIPT_PLUGIN}/script-companion`,
|
|
15
|
+
filter: (node) => isInstanceOf(ScriptType, node.data),
|
|
16
|
+
connector: ({ node }) => [
|
|
17
|
+
{
|
|
18
|
+
id: [
|
|
19
|
+
node.id,
|
|
20
|
+
"automation"
|
|
21
|
+
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
22
|
+
type: PLANK_COMPANION_TYPE,
|
|
23
|
+
data: "automation",
|
|
24
|
+
properties: {
|
|
25
|
+
label: [
|
|
26
|
+
"script automation label",
|
|
27
|
+
{
|
|
28
|
+
ns: meta.id
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
icon: "ph--lightning--regular"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
})
|
|
36
|
+
]);
|
|
37
|
+
export {
|
|
38
|
+
app_graph_builder_default as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=app-graph-builder-K3BIQFWW.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { ScriptType } from '@dxos/functions';\nimport { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';\nimport { createExtension, type Node } from '@dxos/plugin-graph';\nimport { SCRIPT_PLUGIN } from '@dxos/plugin-script/types';\n\nimport { meta } from '../meta';\n\nexport default (context: PluginsContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${SCRIPT_PLUGIN}/script-companion`,\n filter: (node): node is Node<ScriptType> => isInstanceOf(ScriptType, node.data),\n connector: ({ node }) => [\n {\n id: [node.id, 'automation'].join(ATTENDABLE_PATH_SEPARATOR),\n type: PLANK_COMPANION_TYPE,\n data: 'automation',\n properties: {\n label: ['script automation label', { ns: meta.id }],\n icon: 'ph--lightning--regular',\n },\n },\n ],\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;AAIA,SAASA,cAAcC,mBAAwC;AAC/D,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,sBAAsBC,iCAAiC;AAChE,SAASC,uBAAkC;AAC3C,SAASC,qBAAqB;AAI9B,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;EACxCC,gBAAgB;IACdC,IAAI,GAAGC,aAAAA;IACPC,QAAQ,CAACC,SAAmCC,aAAaC,YAAYF,KAAKG,IAAI;IAC9EC,WAAW,CAAC,EAAEJ,KAAI,MAAO;MACvB;QACEH,IAAI;UAACG,KAAKH;UAAI;UAAcQ,KAAKC,yBAAAA;QACjCC,MAAMC;QACNL,MAAM;QACNM,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIC,KAAKf;YAAG;;UACjDgB,MAAM;QACR;MACF;;EAEJ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "isInstanceOf", "ScriptType", "PLANK_COMPANION_TYPE", "ATTENDABLE_PATH_SEPARATOR", "createExtension", "SCRIPT_PLUGIN", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "SCRIPT_PLUGIN", "filter", "node", "isInstanceOf", "ScriptType", "data", "connector", "join", "ATTENDABLE_PATH_SEPARATOR", "type", "PLANK_COMPANION_TYPE", "properties", "label", "ns", "meta", "icon"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUTOMATION_PLUGIN
|
|
3
|
+
} from "./chunk-WKKQV4PC.mjs";
|
|
4
|
+
|
|
5
|
+
// packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx
|
|
6
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
7
|
+
import { ComputeGraph } from "@dxos/conductor";
|
|
8
|
+
import { FunctionType, FunctionTriggerSchema, ScriptType, TriggerKind } from "@dxos/functions/types";
|
|
9
|
+
import { Filter, useQuery } from "@dxos/react-client/echo";
|
|
10
|
+
import { IconButton, Input, useTranslation } from "@dxos/react-ui";
|
|
11
|
+
import { Form, SelectInput, TextInput, useInputProps } from "@dxos/react-ui-form";
|
|
12
|
+
var PayloadInput = (props) => {
|
|
13
|
+
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
14
|
+
const inputProps = useInputProps([
|
|
15
|
+
"meta",
|
|
16
|
+
props.property
|
|
17
|
+
]);
|
|
18
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
19
|
+
role: "none",
|
|
20
|
+
className: "flex items-center mt-2 gap-1"
|
|
21
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
22
|
+
role: "none",
|
|
23
|
+
className: "flex-1"
|
|
24
|
+
}, /* @__PURE__ */ React.createElement(TextInput, {
|
|
25
|
+
...inputProps,
|
|
26
|
+
type: "string",
|
|
27
|
+
label: props.property
|
|
28
|
+
})), /* @__PURE__ */ React.createElement(IconButton, {
|
|
29
|
+
icon: "ph--trash--regular",
|
|
30
|
+
iconOnly: true,
|
|
31
|
+
classNames: "mt-6",
|
|
32
|
+
label: t("trigger meta remove"),
|
|
33
|
+
onClick: () => {
|
|
34
|
+
const newValues = {
|
|
35
|
+
...props.getValue()
|
|
36
|
+
};
|
|
37
|
+
delete newValues[props.property];
|
|
38
|
+
props.onValueChange("object", newValues);
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
var TriggerEditor = ({ space, trigger, onSave, onCancel }) => {
|
|
43
|
+
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
44
|
+
const functions = useQuery(space, Filter.schema(FunctionType));
|
|
45
|
+
const workflows = useQuery(space, Filter.schema(ComputeGraph));
|
|
46
|
+
const scripts = useQuery(space, Filter.schema(ScriptType));
|
|
47
|
+
const handleSave = (values) => {
|
|
48
|
+
onSave?.(values);
|
|
49
|
+
};
|
|
50
|
+
const Custom = useMemo(() => ({
|
|
51
|
+
["function"]: (props) => /* @__PURE__ */ React.createElement(SelectInput, {
|
|
52
|
+
...props,
|
|
53
|
+
options: getWorkflowOptions(workflows).concat(getFunctionOptions(scripts, functions))
|
|
54
|
+
}),
|
|
55
|
+
["spec.type"]: (props) => /* @__PURE__ */ React.createElement(SelectInput, {
|
|
56
|
+
...props,
|
|
57
|
+
options: Object.values(TriggerKind).map((kind) => ({
|
|
58
|
+
value: kind,
|
|
59
|
+
label: t(`trigger type ${kind}`)
|
|
60
|
+
}))
|
|
61
|
+
}),
|
|
62
|
+
// TODO(wittjosiah): Form should be able to handle arbitrary records by default.
|
|
63
|
+
["meta"]: (props) => {
|
|
64
|
+
const payload = props.getValue() ?? {};
|
|
65
|
+
useEffect(() => props.onValueChange("object", {
|
|
66
|
+
...payload
|
|
67
|
+
}), []);
|
|
68
|
+
const [newPayloadFieldName, setNewPayloadFieldName] = useState("");
|
|
69
|
+
const handleAddPayload = useCallback(() => {
|
|
70
|
+
if (newPayloadFieldName.length) {
|
|
71
|
+
const payload2 = props.getValue() ?? {};
|
|
72
|
+
const payloadWithNewProp = {
|
|
73
|
+
...payload2,
|
|
74
|
+
[newPayloadFieldName]: ""
|
|
75
|
+
};
|
|
76
|
+
setNewPayloadFieldName("");
|
|
77
|
+
props.onValueChange("object", payloadWithNewProp);
|
|
78
|
+
}
|
|
79
|
+
}, [
|
|
80
|
+
newPayloadFieldName,
|
|
81
|
+
props.getValue,
|
|
82
|
+
props.onValueChange
|
|
83
|
+
]);
|
|
84
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, "Payload"), [
|
|
85
|
+
...Object.keys(payload)
|
|
86
|
+
].map((key) => /* @__PURE__ */ React.createElement(PayloadInput, {
|
|
87
|
+
key,
|
|
88
|
+
property: key,
|
|
89
|
+
...props
|
|
90
|
+
})), /* @__PURE__ */ React.createElement("div", {
|
|
91
|
+
role: "none",
|
|
92
|
+
className: "flex items-center mt-2 gap-1 plb-1"
|
|
93
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
94
|
+
role: "none",
|
|
95
|
+
className: "flex-1"
|
|
96
|
+
}, /* @__PURE__ */ React.createElement(Input.Root, null, /* @__PURE__ */ React.createElement(Input.TextInput, {
|
|
97
|
+
placeholder: t("trigger payload prop name placeholder"),
|
|
98
|
+
value: newPayloadFieldName,
|
|
99
|
+
onChange: (event) => setNewPayloadFieldName(event.target.value)
|
|
100
|
+
}))), /* @__PURE__ */ React.createElement(IconButton, {
|
|
101
|
+
icon: "ph--plus--regular",
|
|
102
|
+
iconOnly: true,
|
|
103
|
+
label: t("trigger payload add"),
|
|
104
|
+
onClick: handleAddPayload
|
|
105
|
+
})));
|
|
106
|
+
}
|
|
107
|
+
}), [
|
|
108
|
+
workflows,
|
|
109
|
+
scripts,
|
|
110
|
+
functions,
|
|
111
|
+
t
|
|
112
|
+
]);
|
|
113
|
+
return /* @__PURE__ */ React.createElement(Form, {
|
|
114
|
+
schema: FunctionTriggerSchema,
|
|
115
|
+
values: trigger,
|
|
116
|
+
onSave: handleSave,
|
|
117
|
+
onCancel,
|
|
118
|
+
Custom
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
var getWorkflowOptions = (graphs) => {
|
|
122
|
+
return graphs.map((graph) => ({
|
|
123
|
+
label: `compute-${graph.id}`,
|
|
124
|
+
value: `dxn:echo:@:${graph.id}`
|
|
125
|
+
}));
|
|
126
|
+
};
|
|
127
|
+
var getFunctionOptions = (scripts, functions) => {
|
|
128
|
+
const getLabel = (fn) => scripts.find((s) => fn.source?.target?.id === s.id)?.name ?? fn.name;
|
|
129
|
+
return functions.map((fn) => ({
|
|
130
|
+
label: getLabel(fn),
|
|
131
|
+
value: `dxn:worker:${fn.name}`
|
|
132
|
+
}));
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export {
|
|
136
|
+
TriggerEditor
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=chunk-FALBBJNO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/TriggerEditor/TriggerEditor.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n\nimport { ComputeGraph } from '@dxos/conductor';\nimport {\n FunctionType,\n FunctionTriggerSchema,\n type FunctionTriggerType,\n type FunctionTrigger,\n ScriptType,\n TriggerKind,\n} from '@dxos/functions/types';\nimport { Filter, useQuery, type Space } from '@dxos/react-client/echo';\nimport { IconButton, Input, useTranslation } from '@dxos/react-ui';\nimport { type CustomInputMap, Form, type InputProps, SelectInput, TextInput, useInputProps } from '@dxos/react-ui-form';\n\nimport { AUTOMATION_PLUGIN } from '../../meta';\n\nexport type TriggerEditorProps = {\n space: Space;\n trigger: FunctionTriggerType;\n onSave?: (trigger: Omit<FunctionTrigger, 'id'>) => void;\n onCancel?: () => void;\n};\n\nconst PayloadInput = (props: InputProps & { property: string }) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n // TODO(dmaretskyi): Prop name (`meta`) should be passed in.\n const inputProps = useInputProps(['meta', props.property]);\n return (\n <div role='none' className='flex items-center mt-2 gap-1'>\n <div role='none' className='flex-1'>\n <TextInput {...inputProps} type='string' label={props.property} />\n </div>\n <IconButton\n icon='ph--trash--regular'\n iconOnly\n classNames={'mt-6'}\n label={t('trigger meta remove')}\n onClick={() => {\n const newValues: any = { ...props.getValue() };\n delete newValues[props.property];\n props.onValueChange('object', newValues);\n }}\n />\n </div>\n );\n};\n\nexport const TriggerEditor = ({ space, trigger, onSave, onCancel }: TriggerEditorProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n\n const functions = useQuery(space, Filter.schema(FunctionType));\n const workflows = useQuery(space, Filter.schema(ComputeGraph));\n const scripts = useQuery(space, Filter.schema(ScriptType));\n\n const handleSave = (values: FunctionTriggerType) => {\n onSave?.(values);\n };\n\n const Custom = useMemo(\n (): CustomInputMap => ({\n ['function' satisfies keyof FunctionTriggerType]: (props) => (\n <SelectInput\n {...props}\n options={getWorkflowOptions(workflows).concat(getFunctionOptions(scripts, functions))}\n />\n ),\n ['spec.type' as const]: (props) => (\n <SelectInput\n {...props}\n options={Object.values(TriggerKind).map((kind) => ({\n value: kind,\n label: t(`trigger type ${kind}`),\n }))}\n />\n ),\n // TODO(wittjosiah): Form should be able to handle arbitrary records by default.\n ['meta' as const]: (props) => {\n const payload = props.getValue() ?? {};\n useEffect(() => props.onValueChange('object', { ...payload }), []);\n const [newPayloadFieldName, setNewPayloadFieldName] = useState('');\n\n const handleAddPayload = useCallback(() => {\n if (newPayloadFieldName.length) {\n const payload = props.getValue() ?? {};\n const payloadWithNewProp = { ...payload, [newPayloadFieldName]: '' };\n setNewPayloadFieldName('');\n props.onValueChange('object', payloadWithNewProp);\n }\n }, [newPayloadFieldName, props.getValue, props.onValueChange]);\n\n return (\n <>\n <div>{/* TODO(wittjosiah): props.label */ 'Payload'}</div>\n {[...Object.keys(payload)].map((key) => (\n <PayloadInput key={key} property={key} {...props} />\n ))}\n <div role='none' className='flex items-center mt-2 gap-1 plb-1'>\n <div role='none' className='flex-1'>\n <Input.Root>\n <Input.TextInput\n placeholder={t('trigger payload prop name placeholder')}\n value={newPayloadFieldName}\n onChange={(event) => setNewPayloadFieldName(event.target.value)}\n />\n </Input.Root>\n </div>\n <IconButton\n icon='ph--plus--regular'\n iconOnly\n label={t('trigger payload add')}\n onClick={handleAddPayload}\n />\n </div>\n </>\n );\n },\n }),\n [workflows, scripts, functions, t],\n );\n\n return (\n <Form<FunctionTriggerType>\n schema={FunctionTriggerSchema}\n values={trigger}\n onSave={handleSave}\n onCancel={onCancel}\n Custom={Custom}\n />\n );\n};\n\nconst getWorkflowOptions = (graphs: ComputeGraph[]) => {\n return graphs.map((graph) => ({ label: `compute-${graph.id}`, value: `dxn:echo:@:${graph.id}` }));\n};\n\nconst getFunctionOptions = (scripts: ScriptType[], functions: FunctionType[]) => {\n const getLabel = (fn: FunctionType) => scripts.find((s) => fn.source?.target?.id === s.id)?.name ?? fn.name;\n return functions.map((fn) => ({ label: getLabel(fn), value: `dxn:worker:${fn.name}` }));\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["React", "useCallback", "useEffect", "useMemo", "useState", "ComputeGraph", "FunctionType", "FunctionTriggerSchema", "ScriptType", "TriggerKind", "Filter", "useQuery", "IconButton", "Input", "useTranslation", "Form", "SelectInput", "TextInput", "useInputProps", "PayloadInput", "props", "t", "useTranslation", "AUTOMATION_PLUGIN", "inputProps", "useInputProps", "property", "div", "role", "className", "TextInput", "type", "label", "IconButton", "icon", "iconOnly", "classNames", "onClick", "newValues", "getValue", "onValueChange", "TriggerEditor", "space", "trigger", "onSave", "onCancel", "functions", "useQuery", "Filter", "schema", "FunctionType", "workflows", "ComputeGraph", "scripts", "ScriptType", "handleSave", "values", "Custom", "useMemo", "SelectInput", "options", "getWorkflowOptions", "concat", "getFunctionOptions", "Object", "TriggerKind", "map", "kind", "value", "payload", "useEffect", "newPayloadFieldName", "setNewPayloadFieldName", "useState", "handleAddPayload", "useCallback", "length", "payloadWithNewProp", "keys", "key", "Input", "Root", "placeholder", "onChange", "event", "target", "Form", "FunctionTriggerSchema", "graphs", "graph", "id", "getLabel", "fn", "find", "s", "source", "name"]
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// packages/plugins/
|
|
1
|
+
// packages/plugins/plugin-automation/src/meta.ts
|
|
2
2
|
var AUTOMATION_PLUGIN = "dxos.org/plugin/automation";
|
|
3
3
|
var meta = {
|
|
4
4
|
id: AUTOMATION_PLUGIN,
|
|
@@ -12,4 +12,4 @@ export {
|
|
|
12
12
|
AUTOMATION_PLUGIN,
|
|
13
13
|
meta
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-WKKQV4PC.mjs.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 AUTOMATION_PLUGIN = 'dxos.org/plugin/automation';\n\nexport const meta: PluginMeta = {\n id: AUTOMATION_PLUGIN,\n name: 'Automation',\n description:\n 'The Automation tab allows you to trigger pre-defined workflows related to the element you are interacting with inside of Composer.',\n icon: 'ph--robot--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-automation',\n};\n"],
|
|
5
|
+
"mappings": ";AAMO,IAAMA,oBAAoB;AAE1B,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;AACV;",
|
|
6
|
+
"names": ["AUTOMATION_PLUGIN", "meta", "id", "name", "description", "icon", "source"]
|
|
7
|
+
}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AutomationPanel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MT3FZH4V.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TriggerEditor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FALBBJNO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AUTOMATION_PLUGIN,
|
|
9
9
|
meta
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WKKQV4PC.mjs";
|
|
11
11
|
|
|
12
|
-
// packages/plugins/
|
|
12
|
+
// packages/plugins/plugin-automation/src/AutomationPlugin.tsx
|
|
13
13
|
import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
|
|
14
14
|
import { FunctionType, FunctionTrigger } from "@dxos/functions/types";
|
|
15
15
|
import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
|
|
16
|
-
import {
|
|
16
|
+
import { SpaceCapabilities, SpaceEvents } from "@dxos/plugin-space";
|
|
17
17
|
|
|
18
|
-
// packages/plugins/
|
|
18
|
+
// packages/plugins/plugin-automation/src/capabilities/index.ts
|
|
19
19
|
import { lazy } from "@dxos/app-framework";
|
|
20
|
-
var
|
|
21
|
-
var ReactSurface = lazy(() => import("./react-surface-
|
|
20
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-K3BIQFWW.mjs"));
|
|
21
|
+
var ReactSurface = lazy(() => import("./react-surface-4QQSJR4A.mjs"));
|
|
22
22
|
|
|
23
|
-
// packages/plugins/
|
|
23
|
+
// packages/plugins/plugin-automation/src/translations.ts
|
|
24
24
|
var translations_default = [
|
|
25
25
|
{
|
|
26
26
|
"en-US": {
|
|
27
27
|
[AUTOMATION_PLUGIN]: {
|
|
28
28
|
"plugin name": "Automation",
|
|
29
29
|
"automation panel label": "Automations",
|
|
30
|
-
"
|
|
30
|
+
"script automation label": "Automation",
|
|
31
|
+
"trigger editor title": "New Trigger",
|
|
32
|
+
"new trigger label": "Add Trigger",
|
|
31
33
|
"trigger type timer": "Timer",
|
|
32
34
|
"trigger type webhook": "Webhook",
|
|
33
35
|
"trigger type websocket": "Websocket",
|
|
@@ -36,15 +38,15 @@ var translations_default = [
|
|
|
36
38
|
"trigger type queue": "Queue",
|
|
37
39
|
"trigger copy url": "Copy URL",
|
|
38
40
|
"trigger copy email": "Copy Email",
|
|
39
|
-
"trigger
|
|
40
|
-
"trigger
|
|
41
|
-
"trigger
|
|
41
|
+
"trigger payload add": "Add",
|
|
42
|
+
"trigger payload remove": "Remove",
|
|
43
|
+
"trigger payload prop name placeholder": "New payload property name"
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
];
|
|
46
48
|
|
|
47
|
-
// packages/plugins/
|
|
49
|
+
// packages/plugins/plugin-automation/src/AutomationPlugin.tsx
|
|
48
50
|
var AutomationPlugin = () => definePlugin(meta, [
|
|
49
51
|
defineModule({
|
|
50
52
|
id: `${meta.id}/module/translations`,
|
|
@@ -60,9 +62,22 @@ var AutomationPlugin = () => definePlugin(meta, [
|
|
|
60
62
|
])
|
|
61
63
|
}),
|
|
62
64
|
defineModule({
|
|
63
|
-
id: `${meta.id}/module/
|
|
64
|
-
activatesOn:
|
|
65
|
-
activate:
|
|
65
|
+
id: `${meta.id}/module/app-graph-builder`,
|
|
66
|
+
activatesOn: Events.SetupAppGraph,
|
|
67
|
+
activate: AppGraphBuilder
|
|
68
|
+
}),
|
|
69
|
+
defineModule({
|
|
70
|
+
id: `${meta.id}/module/space-settings`,
|
|
71
|
+
activatesOn: SpaceEvents.SetupSettingsPanel,
|
|
72
|
+
activate: () => contributes(SpaceCapabilities.SettingsSection, {
|
|
73
|
+
id: "automation",
|
|
74
|
+
label: [
|
|
75
|
+
"automation panel label",
|
|
76
|
+
{
|
|
77
|
+
ns: meta.id
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
})
|
|
66
81
|
}),
|
|
67
82
|
defineModule({
|
|
68
83
|
id: `${meta.id}/module/react-surface`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/AutomationPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { FunctionType, FunctionTrigger } from '@dxos/functions/types';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;AAC9E,SAASC,cAAcC,uBAAuB;AAC9C,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,
|
|
6
|
-
"names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "FunctionType", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { FunctionType, FunctionTrigger } from '@dxos/functions/types';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\nimport { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';\n\nimport { AppGraphBuilder, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport translations from './translations';\n\nexport const AutomationPlugin = () =>\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/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, [FunctionType, FunctionTrigger]),\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n defineModule({\n id: `${meta.id}/module/space-settings`,\n activatesOn: SpaceEvents.SetupSettingsPanel,\n activate: () =>\n contributes(SpaceCapabilities.SettingsSection, {\n id: 'automation',\n label: ['automation panel label', { ns: meta.id }],\n }),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { AUTOMATION_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [AUTOMATION_PLUGIN]: {\n 'plugin name': 'Automation',\n 'automation panel label': 'Automations',\n 'script automation label': 'Automation',\n\n 'trigger editor title': 'New Trigger',\n 'new trigger label': 'Add Trigger',\n 'trigger type timer': 'Timer',\n 'trigger type webhook': 'Webhook',\n 'trigger type websocket': 'Websocket',\n 'trigger type subscription': 'Subscription',\n 'trigger type email': 'Email',\n 'trigger type queue': 'Queue',\n\n 'trigger copy url': 'Copy URL',\n 'trigger copy email': 'Copy Email',\n\n 'trigger payload add': 'Add',\n 'trigger payload remove': 'Remove',\n 'trigger payload prop name placeholder': 'New payload property name',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;AAC9E,SAASC,cAAcC,uBAAuB;AAC9C,SAASC,oBAAoBC,oBAAoB;AACjD,SAASC,mBAAmBC,mBAAmB;;;ACH/C,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC1C,IAAMC,eAAeD,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACD9C,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACE,iBAAAA,GAAoB;QACnB,eAAe;QACf,0BAA0B;QAC1B,2BAA2B;QAE3B,wBAAwB;QACxB,qBAAqB;QACrB,sBAAsB;QACtB,wBAAwB;QACxB,0BAA0B;QAC1B,6BAA6B;QAC7B,sBAAsB;QACtB,sBAAsB;QAEtB,oBAAoB;QACpB,sBAAsB;QAEtB,uBAAuB;QACvB,0BAA0B;QAC1B,yCAAyC;MAC3C;IACF;EACF;;;;AFlBK,IAAMC,mBAAmB,MAC9BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaQ,aAAaC;IAC1BN,UAAU,MAAMC,YAAYM,mBAAmBC,QAAQ;MAACC;MAAcC;KAAgB;EACxF,CAAA;EACAf,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOa;IACpBX,UAAUY;EACZ,CAAA;EACAjB,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAagB,YAAYC;IACzBd,UAAU,MACRC,YAAYc,kBAAkBC,iBAAiB;MAC7CpB,IAAI;MACJqB,OAAO;QAAC;QAA0B;UAAEC,IAAIxB,KAAKE;QAAG;;IAClD,CAAA;EACJ,CAAA;EACAD,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOqB;IACpBnB,UAAUoB;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "FunctionType", "FunctionTrigger", "ClientCapabilities", "ClientEvents", "SpaceCapabilities", "SpaceEvents", "lazy", "AppGraphBuilder", "lazy", "ReactSurface", "AUTOMATION_PLUGIN", "AutomationPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema", "FunctionType", "FunctionTrigger", "SetupAppGraph", "AppGraphBuilder", "SpaceEvents", "SetupSettingsPanel", "SpaceCapabilities", "SettingsSection", "label", "ns", "SetupReactSurface", "ReactSurface"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/experimental/plugin-automation/src/meta.ts":{"bytes":1789,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":17077,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":557,"imports":[{"path":"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":20227,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":751,"imports":[{"path":"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/components/index.ts":{"bytes":927,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/capabilities/complementary-panel.ts":{"bytes":6583,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":3118,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/capabilities/index.ts":{"bytes":1122,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/capabilities/complementary-panel.ts","kind":"dynamic-import","original":"./complementary-panel"},{"path":"packages/plugins/experimental/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/translations.ts":{"bytes":2833,"imports":[{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/AutomationPlugin.tsx":{"bytes":5125,"imports":[{"path":"@dxos/app-framework","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-deck","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/experimental/plugin-automation/src/index.ts":{"bytes":717,"imports":[{"path":"packages/plugins/experimental/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-automation/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4097},"packages/plugins/experimental/plugin-automation/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-HRHRMTAE.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-NZZED7GX.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","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-deck","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/react-surface-KZ3CT4BI.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationPanel","AutomationPlugin","TriggerEditor","meta"],"entryPoint":"packages/plugins/experimental/plugin-automation/src/index.ts","inputs":{"packages/plugins/experimental/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1042},"packages/plugins/experimental/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":198},"packages/plugins/experimental/plugin-automation/src/translations.ts":{"bytesInOutput":719}},"bytes":2576},"packages/plugins/experimental/plugin-automation/dist/lib/browser/AutomationPanel-KNXI72FK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11220},"packages/plugins/experimental/plugin-automation/dist/lib/browser/AutomationPanel-KNXI72FK.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-NZZED7GX.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":4750},"packages/plugins/experimental/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5211},"packages/plugins/experimental/plugin-automation/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3446},"packages/plugins/experimental/plugin-automation/dist/lib/browser/complementary-panel-4CPOJL4Y.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-automation/src/capabilities/complementary-panel.ts","inputs":{"packages/plugins/experimental/plugin-automation/src/capabilities/complementary-panel.ts":{"bytesInOutput":1547}},"bytes":1810},"packages/plugins/experimental/plugin-automation/dist/lib/browser/react-surface-KZ3CT4BI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1563},"packages/plugins/experimental/plugin-automation/dist/lib/browser/react-surface-KZ3CT4BI.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-HRHRMTAE.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-NZZED7GX.mjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/experimental/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":590}},"bytes":925},"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-HRHRMTAE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-HRHRMTAE.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/AutomationPanel-KNXI72FK.mjs","kind":"dynamic-import"}],"exports":["AutomationPanel"],"inputs":{"packages/plugins/experimental/plugin-automation/src/components/index.ts":{"bytesInOutput":106}},"bytes":256},"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-NZZED7GX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":8756},"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-NZZED7GX.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":4295},"packages/plugins/experimental/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":4527},"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":835},"packages/plugins/experimental/plugin-automation/dist/lib/browser/chunk-OFDNNRLE.mjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/experimental/plugin-automation/src/meta.ts":{"bytesInOutput":395}},"bytes":543}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytes":1764,"imports":[],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytes":18213,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytes":544,"imports":[{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx","kind":"import-statement","original":"./TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytes":21670,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"../TriggerEditor"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytes":738,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":914,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts","kind":"import-statement","original":"./TriggerEditor"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":4479,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":4985,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-automation/src/translations.ts":{"bytes":3132,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":6390,"imports":[{"path":"@dxos/app-framework","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":"packages/plugins/plugin-automation/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-automation/src/index.ts":{"bytes":704,"imports":[{"path":"packages/plugins/plugin-automation/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-automation/src/AutomationPlugin.tsx","kind":"import-statement","original":"./AutomationPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-automation/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4811},"packages/plugins/plugin-automation/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-MT3FZH4V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-FALBBJNO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","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/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/react-surface-4QQSJR4A.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationPanel","AutomationPlugin","TriggerEditor","meta"],"entryPoint":"packages/plugins/plugin-automation/src/index.ts","inputs":{"packages/plugins/plugin-automation/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytesInOutput":1357},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":193},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":827}},"bytes":2942},"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12052},"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-FALBBJNO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","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","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-list","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":5148},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5583},"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2151},"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-script/types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1001}},"bytes":1232},"packages/plugins/plugin-automation/dist/lib/browser/react-surface-4QQSJR4A.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2476},"packages/plugins/plugin-automation/dist/lib/browser/react-surface-4QQSJR4A.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-MT3FZH4V.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-FALBBJNO.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytesInOutput":1121}},"bytes":1430},"packages/plugins/plugin-automation/dist/lib/browser/chunk-MT3FZH4V.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":404},"packages/plugins/plugin-automation/dist/lib/browser/chunk-MT3FZH4V.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs","kind":"dynamic-import"}],"exports":["AutomationPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":106}},"bytes":243},"packages/plugins/plugin-automation/dist/lib/browser/chunk-FALBBJNO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9335},"packages/plugins/plugin-automation/dist/lib/browser/chunk-FALBBJNO.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/conductor","kind":"import-statement","external":true},{"path":"@dxos/functions/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["TriggerEditor"],"inputs":{"packages/plugins/plugin-automation/src/components/TriggerEditor/TriggerEditor.tsx":{"bytesInOutput":4576},"packages/plugins/plugin-automation/src/components/TriggerEditor/index.ts":{"bytesInOutput":0}},"bytes":4795},"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":827},"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs":{"imports":[],"exports":["AUTOMATION_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-automation/src/meta.ts":{"bytesInOutput":395}},"bytes":530}}}
|