@dxos/plugin-automation 0.8.2-main.f11618f → 0.8.2-staging.7ac8446
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/{chunk-NGG4ICAQ.mjs → AutomationPanel-YAHFXQX6.mjs} +12 -13
- package/dist/lib/browser/AutomationPanel-YAHFXQX6.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-ND64CHOM.mjs → app-graph-builder-K3BIQFWW.mjs} +1 -42
- package/dist/lib/browser/app-graph-builder-K3BIQFWW.mjs.map +7 -0
- package/dist/lib/browser/chunk-MT3FZH4V.mjs +8 -0
- package/dist/lib/browser/chunk-MT3FZH4V.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +17 -23
- 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/{chunk-SRXHHBDE.cjs → AutomationPanel-ZKAMIU6O.cjs} +14 -19
- package/dist/lib/node/AutomationPanel-ZKAMIU6O.cjs.map +7 -0
- package/dist/lib/node/{app-graph-builder-TVFR6RXO.cjs → app-graph-builder-HO4FPGZ5.cjs} +4 -45
- package/dist/lib/node/app-graph-builder-HO4FPGZ5.cjs.map +7 -0
- package/dist/lib/node/{chunk-L5TWLPGA.cjs → chunk-AGJ6XTDN.cjs} +7 -16
- package/dist/lib/node/chunk-AGJ6XTDN.cjs.map +7 -0
- package/dist/lib/node/index.cjs +17 -23
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-PCZCHIET.cjs → react-surface-52M54VWV.cjs} +12 -36
- package/dist/lib/node/react-surface-52M54VWV.cjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HMYAQLGF.mjs → AutomationPanel-XF7YPSKM.mjs} +12 -13
- package/dist/lib/node-esm/AutomationPanel-XF7YPSKM.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-NYLOXWVV.mjs → app-graph-builder-XCJR33VS.mjs} +1 -42
- package/dist/lib/node-esm/app-graph-builder-XCJR33VS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs +10 -0
- package/dist/lib/node-esm/chunk-OA75PSGH.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +17 -23
- 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.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +0 -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 +3 -6
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts +0 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -8
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -8
- package/dist/types/src/translations.d.ts.map +1 -1
- package/package.json +24 -29
- package/src/AutomationPlugin.tsx +9 -4
- package/src/capabilities/app-graph-builder.ts +0 -31
- package/src/capabilities/index.ts +0 -1
- package/src/capabilities/react-surface.tsx +7 -31
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +4 -4
- package/src/components/AutomationPanel/AutomationPanel.tsx +63 -62
- package/src/components/AutomationPanel/index.ts +0 -2
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +3 -3
- package/src/components/index.ts +0 -3
- package/src/translations.ts +1 -10
- package/dist/lib/browser/AutomationContainer-KEQ5RNIW.mjs +0 -34
- package/dist/lib/browser/AutomationContainer-KEQ5RNIW.mjs.map +0 -7
- package/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs +0 -11
- package/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs.map +0 -7
- package/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs +0 -33
- package/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs.map +0 -7
- package/dist/lib/browser/FunctionsPanel-JJPLIAJW.mjs +0 -10
- package/dist/lib/browser/FunctionsPanel-JJPLIAJW.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-ND64CHOM.mjs.map +0 -7
- package/dist/lib/browser/chunk-65VL4EYS.mjs +0 -88
- package/dist/lib/browser/chunk-65VL4EYS.mjs.map +0 -7
- package/dist/lib/browser/chunk-FCLWFVFX.mjs +0 -39
- package/dist/lib/browser/chunk-FCLWFVFX.mjs.map +0 -7
- package/dist/lib/browser/chunk-NGG4ICAQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-QJPKWYTL.mjs +0 -14
- package/dist/lib/browser/chunk-QJPKWYTL.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-SNIAQ7V5.mjs +0 -78
- package/dist/lib/browser/intent-resolver-SNIAQ7V5.mjs.map +0 -7
- package/dist/lib/browser/react-surface-L22QIANU.mjs +0 -68
- package/dist/lib/browser/react-surface-L22QIANU.mjs.map +0 -7
- package/dist/lib/browser/types.mjs +0 -8
- package/dist/lib/browser/types.mjs.map +0 -7
- package/dist/lib/node/AutomationContainer-E5I76FPP.cjs +0 -62
- package/dist/lib/node/AutomationContainer-E5I76FPP.cjs.map +0 -7
- package/dist/lib/node/AutomationPanel-YLXAFJDP.cjs +0 -32
- package/dist/lib/node/AutomationPanel-YLXAFJDP.cjs.map +0 -7
- package/dist/lib/node/FunctionsContainer-3HCURMEB.cjs +0 -61
- package/dist/lib/node/FunctionsContainer-3HCURMEB.cjs.map +0 -7
- package/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs +0 -31
- package/dist/lib/node/FunctionsPanel-SYIZHPGU.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-TVFR6RXO.cjs.map +0 -7
- package/dist/lib/node/chunk-BSK5SHTR.cjs +0 -116
- package/dist/lib/node/chunk-BSK5SHTR.cjs.map +0 -7
- package/dist/lib/node/chunk-L5TWLPGA.cjs.map +0 -7
- package/dist/lib/node/chunk-PSIJDHAX.cjs +0 -58
- package/dist/lib/node/chunk-PSIJDHAX.cjs.map +0 -7
- package/dist/lib/node/chunk-SRXHHBDE.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-A44BNFEG.cjs +0 -94
- package/dist/lib/node/intent-resolver-A44BNFEG.cjs.map +0 -7
- package/dist/lib/node/react-surface-PCZCHIET.cjs.map +0 -7
- package/dist/lib/node/types.cjs +0 -30
- package/dist/lib/node/types.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationContainer-22PUFPSE.mjs +0 -35
- package/dist/lib/node-esm/AutomationContainer-22PUFPSE.mjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-6UXIAJVS.mjs +0 -12
- package/dist/lib/node-esm/AutomationPanel-6UXIAJVS.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsContainer-XG5WVAN3.mjs +0 -34
- package/dist/lib/node-esm/FunctionsContainer-XG5WVAN3.mjs.map +0 -7
- package/dist/lib/node-esm/FunctionsPanel-J3QGUESH.mjs +0 -11
- package/dist/lib/node-esm/FunctionsPanel-J3QGUESH.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-NYLOXWVV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4UPGANGV.mjs +0 -89
- package/dist/lib/node-esm/chunk-4UPGANGV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HMYAQLGF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TMMB5ETD.mjs +0 -16
- package/dist/lib/node-esm/chunk-TMMB5ETD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YYBCQXB2.mjs +0 -40
- package/dist/lib/node-esm/chunk-YYBCQXB2.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-JFLTVJ7D.mjs +0 -79
- package/dist/lib/node-esm/intent-resolver-JFLTVJ7D.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-VSO4NWC6.mjs +0 -69
- package/dist/lib/node-esm/react-surface-VSO4NWC6.mjs.map +0 -7
- package/dist/lib/node-esm/types.mjs +0 -9
- package/dist/lib/node-esm/types.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/AutomationContainer.d.ts +0 -7
- package/dist/types/src/components/AutomationContainer.d.ts.map +0 -1
- package/dist/types/src/components/FunctionsContainer.d.ts +0 -7
- package/dist/types/src/components/FunctionsContainer.d.ts.map +0 -1
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts +0 -7
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +0 -1
- package/dist/types/src/components/FunctionsPanel/index.d.ts +0 -4
- package/dist/types/src/components/FunctionsPanel/index.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -25
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -76
- package/src/components/AutomationContainer.tsx +0 -31
- package/src/components/FunctionsContainer.tsx +0 -31
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +0 -95
- package/src/components/FunctionsPanel/index.ts +0 -8
- package/src/types.ts +0 -32
|
@@ -10,19 +10,20 @@ 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
|
-
import {
|
|
13
|
+
import { create, Filter, useQuery, getSpace } from "@dxos/react-client/echo";
|
|
14
14
|
import { Clipboard, IconButton, Input, Separator, useTranslation } from "@dxos/react-ui";
|
|
15
15
|
import { ControlItem, controlItemClasses } from "@dxos/react-ui-form";
|
|
16
16
|
import { List } from "@dxos/react-ui-list";
|
|
17
|
+
import { StackItem } from "@dxos/react-ui-stack";
|
|
17
18
|
import { ghostHover, mx } from "@dxos/react-ui-theme";
|
|
18
19
|
var grid = "grid grid-cols-[40px_1fr_32px] min-bs-[2.5rem]";
|
|
19
|
-
var AutomationPanel = ({ space, object
|
|
20
|
+
var AutomationPanel = ({ space, object }) => {
|
|
20
21
|
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
21
22
|
const client = useClient();
|
|
22
23
|
const triggers = useQuery(space, Filter.schema(FunctionTrigger));
|
|
23
24
|
const functions = useQuery(space, Filter.schema(FunctionType));
|
|
24
25
|
const scripts = useQuery(space, Filter.schema(ScriptType));
|
|
25
|
-
const [trigger, setTrigger] = useState(
|
|
26
|
+
const [trigger, setTrigger] = useState();
|
|
26
27
|
const [selected, setSelected] = useState();
|
|
27
28
|
const handleSelect = (trigger2) => {
|
|
28
29
|
const { id: _, ...values } = trigger2;
|
|
@@ -30,7 +31,7 @@ var AutomationPanel = ({ space, object, initialTrigger, onDone }) => {
|
|
|
30
31
|
setSelected(trigger2);
|
|
31
32
|
};
|
|
32
33
|
const handleAdd = () => {
|
|
33
|
-
setTrigger(
|
|
34
|
+
setTrigger(create(FunctionTriggerSchema, {}));
|
|
34
35
|
setSelected(void 0);
|
|
35
36
|
};
|
|
36
37
|
const handleDelete = (trigger2) => {
|
|
@@ -42,17 +43,17 @@ var AutomationPanel = ({ space, object, initialTrigger, onDone }) => {
|
|
|
42
43
|
if (selected) {
|
|
43
44
|
Object.assign(selected, trigger2);
|
|
44
45
|
} else {
|
|
45
|
-
space.db.add(
|
|
46
|
+
space.db.add(create(FunctionTrigger, trigger2));
|
|
46
47
|
}
|
|
47
48
|
setTrigger(void 0);
|
|
48
49
|
setSelected(void 0);
|
|
49
|
-
onDone?.();
|
|
50
50
|
};
|
|
51
51
|
const handleCancel = () => {
|
|
52
52
|
setTrigger(void 0);
|
|
53
|
-
onDone?.();
|
|
54
53
|
};
|
|
55
|
-
return /* @__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", {
|
|
56
57
|
className: "flex flex-col w-full"
|
|
57
58
|
}, trigger ? /* @__PURE__ */ React.createElement(ControlItem, {
|
|
58
59
|
title: t("trigger editor title")
|
|
@@ -97,7 +98,7 @@ var AutomationPanel = ({ space, object, initialTrigger, onDone }) => {
|
|
|
97
98
|
icon: "ph--plus--regular",
|
|
98
99
|
label: t("new trigger label"),
|
|
99
100
|
onClick: handleAdd
|
|
100
|
-
})));
|
|
101
|
+
})))));
|
|
101
102
|
};
|
|
102
103
|
var getCopyAction = (client, trigger) => {
|
|
103
104
|
if (trigger?.spec?.type === TriggerKind.Email) {
|
|
@@ -132,9 +133,7 @@ var getFunctionName = (scripts, functions, trigger) => {
|
|
|
132
133
|
|
|
133
134
|
// packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts
|
|
134
135
|
var AutomationPanel_default = AutomationPanel;
|
|
135
|
-
|
|
136
136
|
export {
|
|
137
|
-
|
|
138
|
-
AutomationPanel_default
|
|
137
|
+
AutomationPanel_default as default
|
|
139
138
|
};
|
|
140
|
-
//# sourceMappingURL=
|
|
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": ";;;;;;;;AAIA,OAAOA,SAASC,gBAAgB;AAEhC,SAASC,SAAS;AAClB,SACEC,cACAC,iBACAC,uBACAC,aAEAC,kBACK;AACP,SAAsBC,iBAAiB;AACvC,SAASC,QAAQC,QAAQC,UAA2CC,gBAAgB;AACpF,SAASC,WAAWC,YAAYC,OAAOC,WAAWC,sBAAsB;AACxE,SAASC,aAAaC,0BAA0B;AAChD,SAASC,YAAY;AACrB,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,UAAU;AAK/B,IAAMC,OAAO;AAQN,IAAMC,kBAAkB,CAAC,EAAEC,OAAOC,OAAM,MAAwB;AACrE,QAAM,EAAEC,EAAC,IAAKC,eAAeC,iBAAAA;AAC7B,QAAMC,SAASC,UAAAA;AACf,QAAMC,WAAWC,SAASR,OAAOS,OAAOC,OAAOC,eAAAA,CAAAA;AAC/C,QAAMC,YAAYJ,SAASR,OAAOS,OAAOC,OAAOG,YAAAA,CAAAA;AAChD,QAAMC,UAAUN,SAASR,OAAOS,OAAOC,OAAOK,UAAAA,CAAAA;AAE9C,QAAM,CAACC,SAASC,UAAAA,IAAcC,SAAAA;AAC9B,QAAM,CAACC,UAAUC,WAAAA,IAAeF,SAAAA;AAEhC,QAAMG,eAAe,CAACL,aAAAA;AACpB,UAAM,EAAEM,IAAIC,GAAG,GAAGC,OAAAA,IAAWR;AAC7BC,eAAWO,MAAAA;AACXJ,gBAAYJ,QAAAA;EACd;AAEA,QAAMS,YAAY,MAAA;AAChBR,eAAWS,OAAOC,uBAAuB,CAAC,CAAA,CAAA;AAC1CP,gBAAYQ,MAAAA;EACd;AAEA,QAAMC,eAAe,CAACb,aAAAA;AACpBhB,UAAM8B,GAAGC,OAAOf,QAAAA;AAChBC,eAAWW,MAAAA;AACXR,gBAAYQ,MAAAA;EACd;AAEA,QAAMI,aAA2C,CAAChB,aAAAA;AAChD,QAAIG,UAAU;AACZc,aAAOC,OAAOf,UAAUH,QAAAA;IAC1B,OAAO;AACLhB,YAAM8B,GAAGK,IAAIT,OAAOf,iBAAiBK,QAAAA,CAAAA;IACvC;AAEAC,eAAWW,MAAAA;AACXR,gBAAYQ,MAAAA;EACd;AAEA,QAAMQ,eAA+C,MAAA;AACnDnB,eAAWW,MAAAA;EACb;AAEA,SACE,sBAAA,cAACS,UAAUC,UAAQ,MACjB,sBAAA,cAACC,UAAUC,SAAO;IAACC,YAAW;KAC5B,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACZ3B,UACC,sBAAA,cAAC4B,aAAAA;IAAYC,OAAO3C,EAAE,sBAAA;KACpB,sBAAA,cAAC4C,eAAAA;IAAc9C;IAAcgB;IAAkB+B,QAAQf;IAAYgB,UAAUZ;QAG/E,sBAAA,cAACM,OAAAA;IAAIO,MAAK;IAAON,WAAWO;KAC1B,sBAAA,cAACC,KAAKC,MAAI;IAAkBC,OAAO9C;IAAU+C,QAAQC,EAAEC,GAAG7C,eAAAA;IAAkB8C,OAAO,CAACC,UAAUA,MAAMpC;KACjG,CAAC,EAAE+B,OAAO9C,UAAQ,MACjB,sBAAA,cAACmC,OAAAA;IAAIO,MAAK;IAAON,WAAU;KACxBpC,WAAUoD,IAAI,CAAC3C,aAAAA;AACd,UAAM4C,aAAaC,cAAcxD,QAAQW,QAAAA;AACzC,WACE,sBAAA,cAACmC,KAAKW,MAAI;MACRC,KAAK/C,SAAQM;MACb0C,MAAMhD;MACNyB,YAAYwB,GAAGnE,MAAMoE,YAAY,gBAAgB,MAAA;OAEjD,sBAAA,cAACC,MAAMf,MAAI,MACT,sBAAA,cAACe,MAAMC,QAAM;MACXC,SAASrD,SAAQsD;MACjBC,iBAAiB,CAACF,YAAarD,SAAQsD,UAAUD;SAIrD,sBAAA,cAAC3B,OAAAA;MAAIC,WAAW;OACd,sBAAA,cAACQ,KAAKqB,WAAS;MACb/B,YAAW;MACXgC,SAAS,MAAMpD,aAAaL,QAAAA;OAE3B0D,gBAAgB5D,SAASF,WAAWI,QAAAA,KAAY,QAAA,GAIlD4C,cACC,sBAAA,cAACvB,UAAUsC,YAAU;MACnBC,OAAO1E,EAAE0D,WAAWiB,cAAc;MAClCC,OAAOlB,WAAWmB,gBAAe;SAKvC,sBAAA,cAAC5B,KAAK6B,kBAAgB;MAACP,SAAS,MAAM5C,aAAab,QAAAA;;EAGzD,CAAA,CAAA,CAAA,GAILT,SAAS0E,SAAS,KAAK,sBAAA,cAACC,WAAAA;IAAUzC,YAAW;MAC9C,sBAAA,cAACkC,YAAAA;IAAWQ,MAAK;IAAoBP,OAAO1E,EAAE,mBAAA;IAAsBuE,SAAShD;;AAO3F;AAEA,IAAMoC,gBAAgB,CAACxD,QAAgBW,YAAAA;AACrC,MAAIA,SAASoE,MAAMC,SAASC,YAAYC,OAAO;AAC7C,WAAO;MAAEV,gBAAgB;MAAsBE,iBAAiB,MAAM,GAAGS,SAASxE,OAAAA,EAAUM,EAAE;IAAgB;EAChH;AAEA,MAAIN,SAASoE,MAAMC,SAASC,YAAYG,SAAS;AAC/C,WAAO;MAAEZ,gBAAgB;MAAoBE,iBAAiB,MAAMW,cAAcrF,QAAQW,OAAAA;IAAS;EACrG;AAEA,SAAOY;AACT;AAEA,IAAM8D,gBAAgB,CAACrF,QAAgBW,YAAAA;AACrC,QAAM2E,UAAUH,SAASxE,OAAAA,EAAUM;AACnC,QAAMsE,UAAU,IAAIC,IAAIxF,OAAOyF,OAAOtE,OAAOuE,QAASC,SAAUC,KAAMC,GAAG;AACzE,QAAMC,WAAWP,QAAQQ,SAASC,WAAW,OAAA,KAAYT,QAAQQ,SAASC,WAAW,KAAA;AACrFT,UAAQQ,WAAWD,WAAW,UAAU;AACxC,SAAO,IAAIN,IAAI,YAAYF,OAAAA,IAAW3E,QAAQM,EAAE,IAAIsE,OAAAA,EAASU,SAAQ;AACvE;AAEA,IAAM5B,kBAAkB,CAAC5D,SAAuBF,WAA2BI,YAAAA;AAGzE,QAAMuF,UAAUvF,QAAQwF,YAAY,GAAGxF,QAAQwF,UAAUC,MAAM,GAAG,EAAA,CAAA;AAClE,QAAMC,iBAAiB9F,UAAU+F,KAAK,CAACC,OAAO,cAAcA,GAAGC,IAAI,OAAO7F,QAAQwF,QAAQ;AAC1F,MAAI,CAACE,gBAAgB;AACnB,WAAOH;EACT;AACA,SAAOzF,QAAQ6F,KAAK,CAACG,MAAMJ,eAAeK,QAAQC,QAAQ1F,OAAOwF,EAAExF,EAAE,GAAGuF,QAAQN;AAClF;;;ACjKA,IAAA,0BAAeU;",
|
|
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
|
+
}
|
|
@@ -9,48 +9,7 @@ import { ScriptType } from "@dxos/functions";
|
|
|
9
9
|
import { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from "@dxos/plugin-deck/types";
|
|
10
10
|
import { createExtension } from "@dxos/plugin-graph";
|
|
11
11
|
import { SCRIPT_PLUGIN } from "@dxos/plugin-script/types";
|
|
12
|
-
import { SPACE_PLUGIN } from "@dxos/plugin-space";
|
|
13
12
|
var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
|
|
14
|
-
createExtension({
|
|
15
|
-
id: `${meta.id}/space-settings-automation`,
|
|
16
|
-
filter: (node) => node.type === `${SPACE_PLUGIN}/settings`,
|
|
17
|
-
connector: ({ node }) => [
|
|
18
|
-
{
|
|
19
|
-
id: `automation-${node.id}`,
|
|
20
|
-
type: `${meta.id}/space-settings-automation`,
|
|
21
|
-
data: `${meta.id}/space-settings-automation`,
|
|
22
|
-
properties: {
|
|
23
|
-
label: [
|
|
24
|
-
"automation panel label",
|
|
25
|
-
{
|
|
26
|
-
ns: meta.id
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
icon: "ph--lightning--regular"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}),
|
|
34
|
-
createExtension({
|
|
35
|
-
id: `${meta.id}/space-settings-functions`,
|
|
36
|
-
filter: (node) => node.type === `${SPACE_PLUGIN}/settings`,
|
|
37
|
-
connector: ({ node }) => [
|
|
38
|
-
{
|
|
39
|
-
id: `functions-${node.id}`,
|
|
40
|
-
type: `${meta.id}/space-settings-functions`,
|
|
41
|
-
data: `${meta.id}/space-settings-functions`,
|
|
42
|
-
properties: {
|
|
43
|
-
label: [
|
|
44
|
-
"functions panel label",
|
|
45
|
-
{
|
|
46
|
-
ns: meta.id
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
icon: "ph--function--regular"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
}),
|
|
54
13
|
createExtension({
|
|
55
14
|
id: `${SCRIPT_PLUGIN}/script-companion`,
|
|
56
15
|
filter: (node) => isInstanceOf(ScriptType, node.data),
|
|
@@ -78,4 +37,4 @@ var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBu
|
|
|
78
37
|
export {
|
|
79
38
|
app_graph_builder_default as default
|
|
80
39
|
};
|
|
81
|
-
//# sourceMappingURL=app-graph-builder-
|
|
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,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport * from './TriggerEditor';\n\nexport const AutomationPanel = lazy(() => import('./AutomationPanel'));\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,YAAY;AAId,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,gCAAA,CAAA;",
|
|
6
|
+
"names": ["lazy", "AutomationPanel", "lazy"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
FunctionsContainer,
|
|
5
|
-
FunctionsPanel
|
|
6
|
-
} from "./chunk-QJPKWYTL.mjs";
|
|
2
|
+
AutomationPanel
|
|
3
|
+
} from "./chunk-MT3FZH4V.mjs";
|
|
7
4
|
import {
|
|
8
5
|
TriggerEditor
|
|
9
6
|
} from "./chunk-FALBBJNO.mjs";
|
|
@@ -16,12 +13,12 @@ import {
|
|
|
16
13
|
import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
|
|
17
14
|
import { FunctionType, FunctionTrigger } from "@dxos/functions/types";
|
|
18
15
|
import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
|
|
16
|
+
import { SpaceCapabilities, SpaceEvents } from "@dxos/plugin-space";
|
|
19
17
|
|
|
20
18
|
// packages/plugins/plugin-automation/src/capabilities/index.ts
|
|
21
19
|
import { lazy } from "@dxos/app-framework";
|
|
22
|
-
var AppGraphBuilder = lazy(() => import("./app-graph-builder-
|
|
23
|
-
var
|
|
24
|
-
var ReactSurface = lazy(() => import("./react-surface-L22QIANU.mjs"));
|
|
20
|
+
var AppGraphBuilder = lazy(() => import("./app-graph-builder-K3BIQFWW.mjs"));
|
|
21
|
+
var ReactSurface = lazy(() => import("./react-surface-4QQSJR4A.mjs"));
|
|
25
22
|
|
|
26
23
|
// packages/plugins/plugin-automation/src/translations.ts
|
|
27
24
|
var translations_default = [
|
|
@@ -31,15 +28,7 @@ var translations_default = [
|
|
|
31
28
|
"plugin name": "Automation",
|
|
32
29
|
"automation panel label": "Automations",
|
|
33
30
|
"script automation label": "Automation",
|
|
34
|
-
"
|
|
35
|
-
"automation description": "You can manage all the triggers which automate your space here.",
|
|
36
|
-
"functions panel label": "Functions",
|
|
37
|
-
"functions verbose label": "Manage deployed functions",
|
|
38
|
-
"functions description": "You can manage all the functions deployed from your space on EDGE here.",
|
|
39
|
-
"function copy id": "Copy Function ID",
|
|
40
|
-
"no functions found": "No functions found",
|
|
41
|
-
"go to function source button label": "Show function source",
|
|
42
|
-
"trigger editor title": "Configure Trigger",
|
|
31
|
+
"trigger editor title": "New Trigger",
|
|
43
32
|
"new trigger label": "Add Trigger",
|
|
44
33
|
"trigger type timer": "Timer",
|
|
45
34
|
"trigger type webhook": "Webhook",
|
|
@@ -78,9 +67,17 @@ var AutomationPlugin = () => definePlugin(meta, [
|
|
|
78
67
|
activate: AppGraphBuilder
|
|
79
68
|
}),
|
|
80
69
|
defineModule({
|
|
81
|
-
id: `${meta.id}/module/
|
|
82
|
-
activatesOn:
|
|
83
|
-
activate:
|
|
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
|
+
})
|
|
84
81
|
}),
|
|
85
82
|
defineModule({
|
|
86
83
|
id: `${meta.id}/module/react-surface`,
|
|
@@ -90,11 +87,8 @@ var AutomationPlugin = () => definePlugin(meta, [
|
|
|
90
87
|
]);
|
|
91
88
|
export {
|
|
92
89
|
AUTOMATION_PLUGIN,
|
|
93
|
-
AutomationContainer,
|
|
94
90
|
AutomationPanel,
|
|
95
91
|
AutomationPlugin,
|
|
96
|
-
FunctionsContainer,
|
|
97
|
-
FunctionsPanel,
|
|
98
92
|
TriggerEditor,
|
|
99
93
|
meta
|
|
100
94
|
};
|
|
@@ -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';\n\nimport { AppGraphBuilder,
|
|
5
|
-
"mappings": "
|
|
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/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":21076,"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-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":849,"imports":[{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx","kind":"import-statement","original":"./AutomationPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytes":3556,"imports":[{"path":"react","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-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"import-statement","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytes":11688,"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","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-theme","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/FunctionsPanel/index.ts":{"bytes":832,"imports":[{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx","kind":"import-statement","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytes":3536,"imports":[{"path":"react","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-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"import-statement","original":"./FunctionsPanel"},{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/components/index.ts":{"bytes":1736,"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/AutomationContainer.tsx","kind":"dynamic-import","original":"./AutomationContainer"},{"path":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","kind":"dynamic-import","original":"./AutomationPanel"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","kind":"dynamic-import","original":"./FunctionsContainer"},{"path":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","kind":"dynamic-import","original":"./FunctionsPanel"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/app-graph-builder.ts":{"bytes":8950,"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":"@dxos/plugin-space","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/types.ts":{"bytes":4192,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","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/intent-resolver.ts":{"bytes":9614,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/functions","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-automation/src/capabilities/react-surface.tsx":{"bytes":7999,"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":1353,"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/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"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":4657,"imports":[{"path":"packages/plugins/plugin-automation/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-automation/src/AutomationPlugin.tsx":{"bytes":5502,"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":"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/react-surface-L22QIANU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3903},"packages/plugins/plugin-automation/dist/lib/browser/react-surface-L22QIANU.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-QJPKWYTL.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":1848}},"bytes":2202},"packages/plugins/plugin-automation/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5194},"packages/plugins/plugin-automation/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-QJPKWYTL.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/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-ND64CHOM.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/intent-resolver-SNIAQ7V5.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/react-surface-L22QIANU.mjs","kind":"dynamic-import"}],"exports":["AUTOMATION_PLUGIN","AutomationContainer","AutomationPanel","AutomationPlugin","FunctionsContainer","FunctionsPanel","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":1115},"packages/plugins/plugin-automation/src/capabilities/index.ts":{"bytesInOutput":268},"packages/plugins/plugin-automation/src/translations.ts":{"bytesInOutput":1380}},"bytes":3454},"packages/plugins/plugin-automation/dist/lib/browser/chunk-QJPKWYTL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":836},"packages/plugins/plugin-automation/dist/lib/browser/chunk-QJPKWYTL.mjs":{"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-automation/dist/lib/browser/AutomationContainer-KEQ5RNIW.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/FunctionsPanel-JJPLIAJW.mjs","kind":"dynamic-import"}],"exports":["AutomationContainer","AutomationPanel","FunctionsContainer","FunctionsPanel"],"inputs":{"packages/plugins/plugin-automation/src/components/index.ts":{"bytesInOutput":346}},"bytes":546},"packages/plugins/plugin-automation/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-FCLWFVFX.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"}],"exports":["AutomationAction"],"entryPoint":"packages/plugins/plugin-automation/src/types.ts","inputs":{},"bytes":156},"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/browser/AutomationPanel-G3OB6ELR.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-NGG4ICAQ.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"}],"exports":["AutomationPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts","inputs":{},"bytes":269},"packages/plugins/plugin-automation/dist/lib/browser/AutomationContainer-KEQ5RNIW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1800},"packages/plugins/plugin-automation/dist/lib/browser/AutomationContainer-KEQ5RNIW.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-NGG4ICAQ.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/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["AutomationContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/AutomationContainer.tsx":{"bytesInOutput":805}},"bytes":1166},"packages/plugins/plugin-automation/dist/lib/browser/chunk-NGG4ICAQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":11749},"packages/plugins/plugin-automation/dist/lib/browser/chunk-NGG4ICAQ.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-theme","kind":"import-statement","external":true}],"exports":["AutomationPanel","AutomationPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/AutomationPanel/AutomationPanel.tsx":{"bytesInOutput":4996},"packages/plugins/plugin-automation/src/components/AutomationPanel/index.ts":{"bytesInOutput":47}},"bytes":5430},"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/FunctionsPanel-JJPLIAJW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsPanel-JJPLIAJW.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-65VL4EYS.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"}],"exports":["FunctionsPanel","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts","inputs":{},"bytes":233},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1786},"packages/plugins/plugin-automation/dist/lib/browser/FunctionsContainer-STXBW4CX.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-65VL4EYS.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/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["FunctionsContainer","default"],"entryPoint":"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx","inputs":{"packages/plugins/plugin-automation/src/components/FunctionsContainer.tsx":{"bytesInOutput":799}},"bytes":1124},"packages/plugins/plugin-automation/dist/lib/browser/chunk-65VL4EYS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6527},"packages/plugins/plugin-automation/dist/lib/browser/chunk-65VL4EYS.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/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","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-theme","kind":"import-statement","external":true}],"exports":["FunctionsPanel","FunctionsPanel_default"],"inputs":{"packages/plugins/plugin-automation/src/components/FunctionsPanel/FunctionsPanel.tsx":{"bytesInOutput":2911},"packages/plugins/plugin-automation/src/components/FunctionsPanel/index.ts":{"bytesInOutput":45}},"bytes":3282},"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-ND64CHOM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3935},"packages/plugins/plugin-automation/dist/lib/browser/app-graph-builder-ND64CHOM.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},{"path":"@dxos/plugin-space","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":2112}},"bytes":2343},"packages/plugins/plugin-automation/dist/lib/browser/intent-resolver-SNIAQ7V5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4579},"packages/plugins/plugin-automation/dist/lib/browser/intent-resolver-SNIAQ7V5.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-FCLWFVFX.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","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/plugin-deck/types","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-automation/src/capabilities/intent-resolver.ts":{"bytesInOutput":2087}},"bytes":2355},"packages/plugins/plugin-automation/dist/lib/browser/chunk-FCLWFVFX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2101},"packages/plugins/plugin-automation/dist/lib/browser/chunk-FCLWFVFX.mjs":{"imports":[{"path":"packages/plugins/plugin-automation/dist/lib/browser/chunk-WKKQV4PC.mjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["AutomationAction"],"inputs":{"packages/plugins/plugin-automation/src/types.ts":{"bytesInOutput":943}},"bytes":1131},"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}}}
|
|
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}}}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AutomationPanel
|
|
3
|
+
} from "./chunk-MT3FZH4V.mjs";
|
|
4
|
+
import "./chunk-FALBBJNO.mjs";
|
|
5
|
+
import {
|
|
6
|
+
meta
|
|
7
|
+
} from "./chunk-WKKQV4PC.mjs";
|
|
8
|
+
|
|
9
|
+
// packages/plugins/plugin-automation/src/capabilities/react-surface.tsx
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
|
|
12
|
+
import { isInstanceOf } from "@dxos/echo-schema";
|
|
13
|
+
import { ScriptType } from "@dxos/functions/types";
|
|
14
|
+
import { getSpace, isSpace } from "@dxos/react-client/echo";
|
|
15
|
+
import { StackItem } from "@dxos/react-ui-stack";
|
|
16
|
+
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
17
|
+
createSurface({
|
|
18
|
+
id: `${meta.id}/automation`,
|
|
19
|
+
role: "space-settings--automation",
|
|
20
|
+
filter: (data) => isSpace(data.subject),
|
|
21
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(AutomationPanel, {
|
|
22
|
+
space: data.subject
|
|
23
|
+
})
|
|
24
|
+
}),
|
|
25
|
+
createSurface({
|
|
26
|
+
id: `${meta.id}/companion/automation`,
|
|
27
|
+
role: "article",
|
|
28
|
+
filter: (data) => isInstanceOf(ScriptType, data.companionTo) && data.subject === "automation",
|
|
29
|
+
component: ({ data, role }) => {
|
|
30
|
+
return /* @__PURE__ */ React.createElement(StackItem.Content, {
|
|
31
|
+
role
|
|
32
|
+
}, /* @__PURE__ */ React.createElement(AutomationPanel, {
|
|
33
|
+
space: getSpace(data.companionTo),
|
|
34
|
+
object: data.companionTo
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
]);
|
|
39
|
+
export {
|
|
40
|
+
react_surface_default as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=react-surface-4QQSJR4A.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { isInstanceOf } from '@dxos/echo-schema';\nimport { ScriptType } from '@dxos/functions/types';\nimport { getSpace, isSpace, type Space } from '@dxos/react-client/echo';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationPanel } from '../components';\nimport { meta } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${meta.id}/automation`,\n role: 'space-settings--automation',\n filter: (data): data is { subject: Space } => isSpace(data.subject),\n component: ({ data }) => <AutomationPanel space={data.subject} />,\n }),\n createSurface({\n id: `${meta.id}/companion/automation`,\n role: 'article',\n filter: (data): data is { companionTo: ScriptType; subject: 'automation' } =>\n isInstanceOf(ScriptType, data.companionTo) && data.subject === 'automation',\n component: ({ data, role }) => {\n return (\n <StackItem.Content role={role}>\n <AutomationPanel space={getSpace(data.companionTo)!} object={data.companionTo} />\n </StackItem.Content>\n );\n },\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,oBAAoB;AAC7B,SAASC,kBAAkB;AAC3B,SAASC,UAAUC,eAA2B;AAC9C,SAASC,iBAAiB;AAK1B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SAAqCC,QAAQD,KAAKE,OAAO;IAClEC,WAAW,CAAC,EAAEH,KAAI,MAAO,sBAAA,cAACI,iBAAAA;MAAgBC,OAAOL,KAAKE;;EACxD,CAAA;EACAP,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SACPM,aAAaC,YAAYP,KAAKQ,WAAW,KAAKR,KAAKE,YAAY;IACjEC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAE;AACxB,aACE,sBAAA,cAACW,UAAUC,SAAO;QAACZ;SACjB,sBAAA,cAACM,iBAAAA;QAAgBC,OAAOM,SAASX,KAAKQ,WAAW;QAAII,QAAQZ,KAAKQ;;IAGxE;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "Capabilities", "contributes", "createSurface", "isInstanceOf", "ScriptType", "getSpace", "isSpace", "StackItem", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "isSpace", "subject", "component", "AutomationPanel", "space", "isInstanceOf", "ScriptType", "companionTo", "StackItem", "Content", "getSpace", "object"]
|
|
7
|
+
}
|
|
@@ -26,12 +26,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
|
|
32
|
-
AutomationPanel_default: () => AutomationPanel_default
|
|
29
|
+
var AutomationPanel_ZKAMIU6O_exports = {};
|
|
30
|
+
__export(AutomationPanel_ZKAMIU6O_exports, {
|
|
31
|
+
default: () => AutomationPanel_default
|
|
33
32
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(AutomationPanel_ZKAMIU6O_exports);
|
|
35
34
|
var import_chunk_FTEDH5Q6 = require("./chunk-FTEDH5Q6.cjs");
|
|
36
35
|
var import_chunk_7GXNXMSM = require("./chunk-7GXNXMSM.cjs");
|
|
37
36
|
var import_react = __toESM(require("react"));
|
|
@@ -42,15 +41,16 @@ var import_echo = require("@dxos/react-client/echo");
|
|
|
42
41
|
var import_react_ui = require("@dxos/react-ui");
|
|
43
42
|
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
44
43
|
var import_react_ui_list = require("@dxos/react-ui-list");
|
|
44
|
+
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
45
45
|
var import_react_ui_theme = require("@dxos/react-ui-theme");
|
|
46
46
|
var grid = "grid grid-cols-[40px_1fr_32px] min-bs-[2.5rem]";
|
|
47
|
-
var AutomationPanel = ({ space, object
|
|
47
|
+
var AutomationPanel = ({ space, object }) => {
|
|
48
48
|
const { t } = (0, import_react_ui.useTranslation)(import_chunk_7GXNXMSM.AUTOMATION_PLUGIN);
|
|
49
49
|
const client = (0, import_react_client.useClient)();
|
|
50
50
|
const triggers = (0, import_echo.useQuery)(space, import_echo.Filter.schema(import_types.FunctionTrigger));
|
|
51
51
|
const functions = (0, import_echo.useQuery)(space, import_echo.Filter.schema(import_types.FunctionType));
|
|
52
52
|
const scripts = (0, import_echo.useQuery)(space, import_echo.Filter.schema(import_types.ScriptType));
|
|
53
|
-
const [trigger, setTrigger] = (0, import_react.useState)(
|
|
53
|
+
const [trigger, setTrigger] = (0, import_react.useState)();
|
|
54
54
|
const [selected, setSelected] = (0, import_react.useState)();
|
|
55
55
|
const handleSelect = (trigger2) => {
|
|
56
56
|
const { id: _, ...values } = trigger2;
|
|
@@ -58,7 +58,7 @@ var AutomationPanel = ({ space, object, initialTrigger, onDone }) => {
|
|
|
58
58
|
setSelected(trigger2);
|
|
59
59
|
};
|
|
60
60
|
const handleAdd = () => {
|
|
61
|
-
setTrigger((0, import_echo.
|
|
61
|
+
setTrigger((0, import_echo.create)(import_types.FunctionTriggerSchema, {}));
|
|
62
62
|
setSelected(void 0);
|
|
63
63
|
};
|
|
64
64
|
const handleDelete = (trigger2) => {
|
|
@@ -70,17 +70,17 @@ var AutomationPanel = ({ space, object, initialTrigger, onDone }) => {
|
|
|
70
70
|
if (selected) {
|
|
71
71
|
Object.assign(selected, trigger2);
|
|
72
72
|
} else {
|
|
73
|
-
space.db.add((0, import_echo.
|
|
73
|
+
space.db.add((0, import_echo.create)(import_types.FunctionTrigger, trigger2));
|
|
74
74
|
}
|
|
75
75
|
setTrigger(void 0);
|
|
76
76
|
setSelected(void 0);
|
|
77
|
-
onDone?.();
|
|
78
77
|
};
|
|
79
78
|
const handleCancel = () => {
|
|
80
79
|
setTrigger(void 0);
|
|
81
|
-
onDone?.();
|
|
82
80
|
};
|
|
83
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_ui.Clipboard.Provider, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
|
|
82
|
+
classNames: "block overflow-y-auto"
|
|
83
|
+
}, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
84
84
|
className: "flex flex-col w-full"
|
|
85
85
|
}, trigger ? /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlItem, {
|
|
86
86
|
title: t("trigger editor title")
|
|
@@ -125,7 +125,7 @@ var AutomationPanel = ({ space, object, initialTrigger, onDone }) => {
|
|
|
125
125
|
icon: "ph--plus--regular",
|
|
126
126
|
label: t("new trigger label"),
|
|
127
127
|
onClick: handleAdd
|
|
128
|
-
})));
|
|
128
|
+
})))));
|
|
129
129
|
};
|
|
130
130
|
var getCopyAction = (client, trigger) => {
|
|
131
131
|
if (trigger?.spec?.type === import_types.TriggerKind.Email) {
|
|
@@ -158,9 +158,4 @@ var getFunctionName = (scripts, functions, trigger) => {
|
|
|
158
158
|
return scripts.find((s) => functionObject.source?.target?.id === s.id)?.name ?? shortId;
|
|
159
159
|
};
|
|
160
160
|
var AutomationPanel_default = AutomationPanel;
|
|
161
|
-
|
|
162
|
-
0 && (module.exports = {
|
|
163
|
-
AutomationPanel,
|
|
164
|
-
AutomationPanel_default
|
|
165
|
-
});
|
|
166
|
-
//# sourceMappingURL=chunk-SRXHHBDE.cjs.map
|
|
161
|
+
//# sourceMappingURL=AutomationPanel-ZKAMIU6O.cjs.map
|