@dxos/plugin-automation 0.8.3 → 0.8.4-main.28f8d3d
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/{AutomationContainer-OGNK3HD5.mjs → AutomationContainer-5UYKI7EG.mjs} +6 -6
- package/dist/lib/browser/AutomationContainer-5UYKI7EG.mjs.map +7 -0
- package/dist/lib/browser/AutomationPanel-YYERBNYJ.mjs +11 -0
- package/dist/lib/browser/{FunctionsContainer-JY7V7PLF.mjs → FunctionsContainer-VOGKIPHA.mjs} +4 -4
- package/dist/lib/browser/{FunctionsContainer-JY7V7PLF.mjs.map → FunctionsContainer-VOGKIPHA.mjs.map} +2 -2
- package/dist/lib/browser/{FunctionsPanel-LY4IFKR7.mjs → FunctionsPanel-I443Y6KB.mjs} +3 -3
- package/dist/lib/browser/{app-graph-builder-T34RV5UA.mjs → app-graph-builder-4OFKIRAI.mjs} +4 -4
- package/dist/lib/{node-esm/app-graph-builder-DYWAKQM3.mjs.map → browser/app-graph-builder-4OFKIRAI.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-N5VLW7UZ.mjs → chunk-7EE4SA6M.mjs} +7 -7
- package/dist/lib/{node-esm/chunk-UFHDB2OA.mjs.map → browser/chunk-7EE4SA6M.mjs.map} +3 -3
- package/dist/lib/browser/chunk-CHENFUQ6.mjs +14 -0
- package/dist/lib/browser/{chunk-IHAKPP5A.mjs → chunk-GW5U2DGT.mjs} +2 -2
- package/dist/lib/browser/{chunk-4E2KPMLB.mjs → chunk-HN7OHFCB.mjs} +5 -6
- package/dist/lib/browser/chunk-HN7OHFCB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-C5VOC5EE.mjs → chunk-OX6OW6XP.mjs} +7 -7
- package/dist/lib/browser/{chunk-C5VOC5EE.mjs.map → chunk-OX6OW6XP.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-RHSCK7AU.mjs → chunk-Z5DT4MHW.mjs} +5 -5
- package/dist/lib/{node-esm/chunk-2IH4VB3R.mjs.map → browser/chunk-Z5DT4MHW.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +15 -15
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-AX46HSU7.mjs → intent-resolver-YZP6RKTR.mjs} +5 -5
- package/dist/lib/{node-esm/intent-resolver-WXHFNJJI.mjs.map → browser/intent-resolver-YZP6RKTR.mjs.map} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-Z7A272CA.mjs → react-surface-WNOIIT4O.mjs} +5 -5
- package/dist/lib/browser/types/index.mjs +8 -0
- package/dist/lib/node-esm/{AutomationContainer-ANCUYDDA.mjs → AutomationContainer-EZMY6DTD.mjs} +6 -6
- package/dist/lib/node-esm/AutomationContainer-EZMY6DTD.mjs.map +7 -0
- package/dist/lib/node-esm/{AutomationPanel-Y3ODAHH7.mjs → AutomationPanel-5EQQF5S2.mjs} +4 -4
- package/dist/lib/node-esm/{FunctionsContainer-25M5VT3J.mjs → FunctionsContainer-IHLMLXHH.mjs} +4 -4
- package/dist/lib/node-esm/{FunctionsContainer-25M5VT3J.mjs.map → FunctionsContainer-IHLMLXHH.mjs.map} +2 -2
- package/dist/lib/node-esm/{FunctionsPanel-HVGF5AJP.mjs → FunctionsPanel-ELINCXPW.mjs} +3 -3
- package/dist/lib/node-esm/{app-graph-builder-DYWAKQM3.mjs → app-graph-builder-555IHYOB.mjs} +4 -4
- package/dist/lib/{browser/app-graph-builder-T34RV5UA.mjs.map → node-esm/app-graph-builder-555IHYOB.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-2IH4VB3R.mjs → chunk-CX2AILIS.mjs} +5 -5
- package/dist/lib/{browser/chunk-RHSCK7AU.mjs.map → node-esm/chunk-CX2AILIS.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-WJHKFPX2.mjs → chunk-D4VWZD53.mjs} +6 -6
- package/dist/lib/node-esm/{chunk-2T2OZC3A.mjs → chunk-GHRG4NQV.mjs} +7 -7
- package/dist/lib/node-esm/{chunk-2T2OZC3A.mjs.map → chunk-GHRG4NQV.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-HCCLRNMJ.mjs → chunk-NK5N3QKD.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-6JOJ2NN4.mjs → chunk-OEZNHUL2.mjs} +5 -6
- package/dist/lib/node-esm/chunk-OEZNHUL2.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UFHDB2OA.mjs → chunk-YPUO4IVX.mjs} +7 -7
- package/dist/lib/{browser/chunk-N5VLW7UZ.mjs.map → node-esm/chunk-YPUO4IVX.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +15 -15
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-WXHFNJJI.mjs → intent-resolver-TSLQE27W.mjs} +5 -5
- package/dist/lib/{browser/intent-resolver-AX46HSU7.mjs.map → node-esm/intent-resolver-TSLQE27W.mjs.map} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-TP6IYSR4.mjs → react-surface-K6MQFIAS.mjs} +5 -5
- package/dist/lib/node-esm/{types.mjs → types/index.mjs} +3 -3
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/components/AutomationContainer.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts +1 -1
- package/dist/types/src/components/AutomationPanel/AutomationPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsContainer.d.ts.map +1 -1
- package/dist/types/src/components/FunctionsPanel/FunctionsPanel.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/SpecSelector.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.d.ts.map +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts +1 -1
- package/dist/types/src/components/TriggerEditor/TriggerEditor.stories.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +29 -29
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/{types.d.ts → types/schema.d.ts} +3 -3
- package/dist/types/src/types/schema.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +34 -32
- package/src/AutomationPlugin.tsx +3 -3
- package/src/capabilities/app-graph-builder.ts +2 -2
- package/src/capabilities/intent-resolver.ts +3 -3
- package/src/components/AutomationContainer.tsx +3 -2
- package/src/components/AutomationPanel/AutomationPanel.stories.tsx +5 -4
- package/src/components/AutomationPanel/AutomationPanel.tsx +2 -2
- package/src/components/FunctionsContainer.tsx +2 -1
- package/src/components/FunctionsPanel/FunctionsPanel.tsx +2 -2
- package/src/components/TriggerEditor/SpecSelector.tsx +1 -1
- package/src/components/TriggerEditor/TriggerEditor.stories.tsx +5 -4
- package/src/components/TriggerEditor/TriggerEditor.tsx +3 -3
- package/src/translations.ts +6 -4
- package/src/types/index.ts +5 -0
- package/src/{types.ts → types/schema.ts} +2 -4
- package/dist/lib/browser/AutomationContainer-OGNK3HD5.mjs.map +0 -7
- package/dist/lib/browser/AutomationPanel-PRIIAXD5.mjs +0 -11
- package/dist/lib/browser/chunk-4E2KPMLB.mjs.map +0 -7
- package/dist/lib/browser/chunk-VQWJ5UYA.mjs +0 -14
- package/dist/lib/browser/types.mjs +0 -8
- package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs +0 -66
- package/dist/lib/node/AutomationContainer-B7PSJFIS.cjs.map +0 -7
- package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs +0 -32
- package/dist/lib/node/AutomationPanel-XYLZU4MI.cjs.map +0 -7
- package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs +0 -67
- package/dist/lib/node/FunctionsContainer-4FGOQW5X.cjs.map +0 -7
- package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs +0 -31
- package/dist/lib/node/FunctionsPanel-EWWAZK3W.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs +0 -96
- package/dist/lib/node/app-graph-builder-5XRIIV7E.cjs.map +0 -7
- package/dist/lib/node/chunk-3EF7MLFX.cjs +0 -38
- package/dist/lib/node/chunk-3EF7MLFX.cjs.map +0 -7
- package/dist/lib/node/chunk-6X3XJ4VI.cjs +0 -122
- package/dist/lib/node/chunk-6X3XJ4VI.cjs.map +0 -7
- package/dist/lib/node/chunk-GIIVTK4O.cjs +0 -58
- package/dist/lib/node/chunk-GIIVTK4O.cjs.map +0 -7
- package/dist/lib/node/chunk-IXUCZ3YY.cjs +0 -173
- package/dist/lib/node/chunk-IXUCZ3YY.cjs.map +0 -7
- package/dist/lib/node/chunk-LQ6XK4N5.cjs +0 -253
- package/dist/lib/node/chunk-LQ6XK4N5.cjs.map +0 -7
- package/dist/lib/node/chunk-TH4XDKAY.cjs +0 -49
- package/dist/lib/node/chunk-TH4XDKAY.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -124
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-EAREQZFE.cjs +0 -92
- package/dist/lib/node/intent-resolver-EAREQZFE.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-surface-OI6CDHEI.cjs +0 -87
- package/dist/lib/node/react-surface-OI6CDHEI.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-ANCUYDDA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6JOJ2NN4.mjs.map +0 -7
- package/dist/types/src/types.d.ts.map +0 -1
- /package/dist/lib/browser/{AutomationPanel-PRIIAXD5.mjs.map → AutomationPanel-YYERBNYJ.mjs.map} +0 -0
- /package/dist/lib/browser/{FunctionsPanel-LY4IFKR7.mjs.map → FunctionsPanel-I443Y6KB.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-VQWJ5UYA.mjs.map → chunk-CHENFUQ6.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-IHAKPP5A.mjs.map → chunk-GW5U2DGT.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-Z7A272CA.mjs.map → react-surface-WNOIIT4O.mjs.map} +0 -0
- /package/dist/lib/browser/{types.mjs.map → types/index.mjs.map} +0 -0
- /package/dist/lib/node-esm/{AutomationPanel-Y3ODAHH7.mjs.map → AutomationPanel-5EQQF5S2.mjs.map} +0 -0
- /package/dist/lib/node-esm/{FunctionsPanel-HVGF5AJP.mjs.map → FunctionsPanel-ELINCXPW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-WJHKFPX2.mjs.map → chunk-D4VWZD53.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-HCCLRNMJ.mjs.map → chunk-NK5N3QKD.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-TP6IYSR4.mjs.map → react-surface-K6MQFIAS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{types.mjs.map → types/index.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-automation",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-main.28f8d3d",
|
|
4
4
|
"description": "Prompt chain plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,14 +10,16 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
16
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
17
|
},
|
|
17
18
|
"./types": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"source": "./src/types/index.ts",
|
|
20
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
21
|
+
"browser": "./dist/lib/browser/types/index.mjs",
|
|
22
|
+
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
21
23
|
}
|
|
22
24
|
},
|
|
23
25
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -32,47 +34,47 @@
|
|
|
32
34
|
"dependencies": {
|
|
33
35
|
"@preact-signals/safe-react": "^0.9.0",
|
|
34
36
|
"@preact/signals-core": "^1.9.0",
|
|
35
|
-
"@dxos/app-framework": "0.8.
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/echo
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/live-object": "0.8.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/plugin-client": "0.8.
|
|
45
|
-
"@dxos/plugin-
|
|
46
|
-
"@dxos/plugin-
|
|
47
|
-
"@dxos/random": "0.8.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-
|
|
50
|
-
"@dxos/react-ui-
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
37
|
+
"@dxos/app-framework": "0.8.4-main.28f8d3d",
|
|
38
|
+
"@dxos/async": "0.8.4-main.28f8d3d",
|
|
39
|
+
"@dxos/conductor": "0.8.4-main.28f8d3d",
|
|
40
|
+
"@dxos/echo": "0.8.4-main.28f8d3d",
|
|
41
|
+
"@dxos/echo-schema": "0.8.4-main.28f8d3d",
|
|
42
|
+
"@dxos/functions": "0.8.4-main.28f8d3d",
|
|
43
|
+
"@dxos/live-object": "0.8.4-main.28f8d3d",
|
|
44
|
+
"@dxos/invariant": "0.8.4-main.28f8d3d",
|
|
45
|
+
"@dxos/log": "0.8.4-main.28f8d3d",
|
|
46
|
+
"@dxos/plugin-client": "0.8.4-main.28f8d3d",
|
|
47
|
+
"@dxos/plugin-deck": "0.8.4-main.28f8d3d",
|
|
48
|
+
"@dxos/plugin-graph": "0.8.4-main.28f8d3d",
|
|
49
|
+
"@dxos/random": "0.8.4-main.28f8d3d",
|
|
50
|
+
"@dxos/plugin-space": "0.8.4-main.28f8d3d",
|
|
51
|
+
"@dxos/react-client": "0.8.4-main.28f8d3d",
|
|
52
|
+
"@dxos/react-ui-form": "0.8.4-main.28f8d3d",
|
|
53
|
+
"@dxos/react-ui-list": "0.8.4-main.28f8d3d",
|
|
54
|
+
"@dxos/react-ui-stack": "0.8.4-main.28f8d3d",
|
|
55
|
+
"@dxos/util": "0.8.4-main.28f8d3d"
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
|
-
"@effect-rx/rx-react": "
|
|
57
|
-
"@effect/platform": "0.
|
|
58
|
+
"@effect-rx/rx-react": "0.38.0",
|
|
59
|
+
"@effect/platform": "0.90.2",
|
|
58
60
|
"@types/react": "~18.2.0",
|
|
59
61
|
"@types/react-dom": "~18.2.0",
|
|
60
|
-
"effect": "3.
|
|
62
|
+
"effect": "3.17.7",
|
|
61
63
|
"react": "~18.2.0",
|
|
62
64
|
"react-dom": "~18.2.0",
|
|
63
65
|
"vite": "5.4.7",
|
|
64
|
-
"@dxos/react-ui
|
|
65
|
-
"@dxos/react-ui": "0.8.
|
|
66
|
-
"@dxos/storybook-utils": "0.8.
|
|
66
|
+
"@dxos/react-ui": "0.8.4-main.28f8d3d",
|
|
67
|
+
"@dxos/react-ui-theme": "0.8.4-main.28f8d3d",
|
|
68
|
+
"@dxos/storybook-utils": "0.8.4-main.28f8d3d"
|
|
67
69
|
},
|
|
68
70
|
"peerDependencies": {
|
|
69
71
|
"@effect-rx/rx-react": "^0.34.1",
|
|
70
|
-
"@effect/platform": "0.80.12",
|
|
72
|
+
"@effect/platform": "^0.80.12",
|
|
71
73
|
"effect": "^3.13.3",
|
|
72
74
|
"react": "~18.2.0",
|
|
73
75
|
"react-dom": "~18.2.0",
|
|
74
|
-
"@dxos/react-ui": "0.8.
|
|
75
|
-
"@dxos/react-ui-theme": "0.8.
|
|
76
|
+
"@dxos/react-ui": "0.8.4-main.28f8d3d",
|
|
77
|
+
"@dxos/react-ui-theme": "0.8.4-main.28f8d3d"
|
|
76
78
|
},
|
|
77
79
|
"publishConfig": {
|
|
78
80
|
"access": "public"
|
package/src/AutomationPlugin.tsx
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, defineModule, definePlugin
|
|
6
|
-
import {
|
|
5
|
+
import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
|
|
6
|
+
import { FunctionTrigger, FunctionType } from '@dxos/functions';
|
|
7
7
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
8
8
|
|
|
9
9
|
import { AppGraphBuilder, IntentResolver, ReactSurface } from './capabilities';
|
|
10
10
|
import { meta } from './meta';
|
|
11
|
-
import translations from './translations';
|
|
11
|
+
import { translations } from './translations';
|
|
12
12
|
|
|
13
13
|
export const AutomationPlugin = () =>
|
|
14
14
|
definePlugin(meta, [
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { Rx } from '@effect-rx/rx-react';
|
|
6
6
|
import { Option, pipe } from 'effect';
|
|
7
7
|
|
|
8
|
-
import { Capabilities,
|
|
8
|
+
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
9
9
|
import { Obj } from '@dxos/echo';
|
|
10
10
|
import { ScriptType } from '@dxos/functions';
|
|
11
|
-
import {
|
|
11
|
+
import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
12
12
|
import { createExtension } from '@dxos/plugin-graph';
|
|
13
13
|
import { SPACE_PLUGIN } from '@dxos/plugin-space';
|
|
14
14
|
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
contributes,
|
|
7
6
|
Capabilities,
|
|
8
|
-
|
|
7
|
+
LayoutAction,
|
|
9
8
|
type PluginContext,
|
|
9
|
+
contributes,
|
|
10
10
|
createIntent,
|
|
11
|
-
|
|
11
|
+
createResolver,
|
|
12
12
|
} from '@dxos/app-framework';
|
|
13
13
|
import { Obj, Ref } from '@dxos/echo';
|
|
14
14
|
import { FunctionTrigger, FunctionType, ScriptType, TriggerKind } from '@dxos/functions';
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { useTranslation } from '@dxos/react-ui';
|
|
8
|
-
import {
|
|
8
|
+
import { ControlPage, ControlSection } from '@dxos/react-ui-form';
|
|
9
9
|
import { StackItem } from '@dxos/react-ui-stack';
|
|
10
10
|
|
|
11
|
-
import { AutomationPanel, type AutomationPanelProps } from './AutomationPanel';
|
|
12
11
|
import { AUTOMATION_PLUGIN } from '../meta';
|
|
13
12
|
|
|
13
|
+
import { AutomationPanel, type AutomationPanelProps } from './AutomationPanel';
|
|
14
|
+
|
|
14
15
|
export const AutomationContainer = (props: AutomationPanelProps) => {
|
|
15
16
|
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
16
17
|
return (
|
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
10
|
import { Obj } from '@dxos/echo';
|
|
11
|
-
import {
|
|
11
|
+
import { FunctionTrigger, FunctionType } from '@dxos/functions';
|
|
12
12
|
import { useSpaces } from '@dxos/react-client/echo';
|
|
13
13
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
14
14
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
15
15
|
|
|
16
|
-
import { AutomationPanel } from './AutomationPanel';
|
|
17
16
|
import { functions } from '../../testing';
|
|
18
|
-
import translations from '../../translations';
|
|
17
|
+
import { translations } from '../../translations';
|
|
18
|
+
|
|
19
|
+
import { AutomationPanel } from './AutomationPanel';
|
|
19
20
|
|
|
20
21
|
const DefaultStory = () => {
|
|
21
22
|
const spaces = useSpaces();
|
|
@@ -7,15 +7,15 @@ import React, { useState } from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { Filter, Obj } from '@dxos/echo';
|
|
9
9
|
import {
|
|
10
|
-
FunctionType,
|
|
11
10
|
FunctionTrigger,
|
|
12
11
|
FunctionTriggerSchema,
|
|
13
12
|
type FunctionTriggerType,
|
|
13
|
+
FunctionType,
|
|
14
14
|
ScriptType,
|
|
15
15
|
TriggerKind,
|
|
16
16
|
} from '@dxos/functions';
|
|
17
17
|
import { type Client, useClient } from '@dxos/react-client';
|
|
18
|
-
import {
|
|
18
|
+
import { type Space, getSpace, useQuery } from '@dxos/react-client/echo';
|
|
19
19
|
import { Clipboard, IconButton, Input, Separator, useTranslation } from '@dxos/react-ui';
|
|
20
20
|
import { ControlItem, controlItemClasses } from '@dxos/react-ui-form';
|
|
21
21
|
import { List } from '@dxos/react-ui-list';
|
|
@@ -9,9 +9,10 @@ import { useTranslation } from '@dxos/react-ui';
|
|
|
9
9
|
import { ControlPage, ControlSection } from '@dxos/react-ui-form';
|
|
10
10
|
import { StackItem } from '@dxos/react-ui-stack';
|
|
11
11
|
|
|
12
|
-
import { FunctionsPanel } from './FunctionsPanel';
|
|
13
12
|
import { AUTOMATION_PLUGIN } from '../meta';
|
|
14
13
|
|
|
14
|
+
import { FunctionsPanel } from './FunctionsPanel';
|
|
15
|
+
|
|
15
16
|
export const FunctionsContainer = ({ space }: { space: Space }) => {
|
|
16
17
|
const { t } = useTranslation(AUTOMATION_PLUGIN);
|
|
17
18
|
return (
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { Schema } from 'effect';
|
|
6
6
|
import React, { useCallback, useMemo } from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { LayoutAction, createIntent, useIntentDispatcher } from '@dxos/app-framework';
|
|
9
9
|
import { FunctionType, ScriptType } from '@dxos/functions';
|
|
10
|
-
import { Filter, fullyQualifiedId, useQuery
|
|
10
|
+
import { Filter, type Space, fullyQualifiedId, useQuery } from '@dxos/react-client/echo';
|
|
11
11
|
import { Button, useTranslation } from '@dxos/react-ui';
|
|
12
12
|
import { controlItemClasses } from '@dxos/react-ui-form';
|
|
13
13
|
import { List } from '@dxos/react-ui-list';
|
|
@@ -6,7 +6,7 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
6
6
|
|
|
7
7
|
import { type FunctionTriggerType, TriggerKind, type TriggerType } from '@dxos/functions';
|
|
8
8
|
import { useTranslation } from '@dxos/react-ui';
|
|
9
|
-
import {
|
|
9
|
+
import { type InputProps, SelectInput, useInputProps } from '@dxos/react-ui-form';
|
|
10
10
|
|
|
11
11
|
import { AUTOMATION_PLUGIN } from '../../meta';
|
|
12
12
|
|
|
@@ -4,19 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
9
9
|
|
|
10
10
|
import { Obj } from '@dxos/echo';
|
|
11
|
-
import {
|
|
11
|
+
import { FunctionTrigger, FunctionType, TriggerKind } from '@dxos/functions';
|
|
12
12
|
import { faker } from '@dxos/random';
|
|
13
13
|
import { useSpaces } from '@dxos/react-client/echo';
|
|
14
14
|
import { ContactType, withClientProvider } from '@dxos/react-client/testing';
|
|
15
15
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
16
16
|
|
|
17
|
-
import { TriggerEditor } from './TriggerEditor';
|
|
18
17
|
import { functions } from '../../testing';
|
|
19
|
-
import translations from '../../translations';
|
|
18
|
+
import { translations } from '../../translations';
|
|
19
|
+
|
|
20
|
+
import { TriggerEditor } from './TriggerEditor';
|
|
20
21
|
|
|
21
22
|
const DefaultStory = () => {
|
|
22
23
|
const spaces = useSpaces();
|
|
@@ -7,13 +7,13 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
7
7
|
import { ComputeGraph } from '@dxos/conductor';
|
|
8
8
|
import { Type } from '@dxos/echo';
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
type FunctionTrigger,
|
|
11
11
|
FunctionTriggerSchema,
|
|
12
12
|
type FunctionTriggerType,
|
|
13
|
-
|
|
13
|
+
FunctionType,
|
|
14
14
|
ScriptType,
|
|
15
15
|
} from '@dxos/functions';
|
|
16
|
-
import { Filter, Ref,
|
|
16
|
+
import { Filter, Ref, type Space, useQuery } from '@dxos/react-client/echo';
|
|
17
17
|
import { type CustomInputMap, Form, SelectInput, useRefQueryLookupHandler } from '@dxos/react-ui-form';
|
|
18
18
|
|
|
19
19
|
import { FunctionInputEditor, type FunctionInputEditorProps } from './FunctionInputEditor';
|
package/src/translations.ts
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const translations = [
|
|
8
10
|
{
|
|
9
11
|
'en-US': {
|
|
10
|
-
[
|
|
12
|
+
[meta.id]: {
|
|
11
13
|
'plugin name': 'Automation',
|
|
12
14
|
'automation panel label': 'Automations',
|
|
13
15
|
'script automation label': 'Automation',
|
|
@@ -39,4 +41,4 @@ export default [
|
|
|
39
41
|
},
|
|
40
42
|
},
|
|
41
43
|
},
|
|
42
|
-
];
|
|
44
|
+
] as const satisfies Resource[];
|
|
@@ -6,7 +6,7 @@ import { Schema } from 'effect';
|
|
|
6
6
|
|
|
7
7
|
import { SpaceSchema } from '@dxos/react-client/echo';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { meta } from '../meta';
|
|
10
10
|
|
|
11
11
|
const TriggerTemplate = Schema.Union(
|
|
12
12
|
Schema.Struct({ type: Schema.Literal('timer'), cron: Schema.String }),
|
|
@@ -14,10 +14,8 @@ const TriggerTemplate = Schema.Union(
|
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
export namespace AutomationAction {
|
|
17
|
-
const AUTOMATION_ACTION = `${AUTOMATION_PLUGIN}/action`;
|
|
18
|
-
|
|
19
17
|
export class CreateTriggerFromTemplate extends Schema.TaggedClass<CreateTriggerFromTemplate>()(
|
|
20
|
-
`${
|
|
18
|
+
`${meta.id}/action/create-trigger-from-template`,
|
|
21
19
|
{
|
|
22
20
|
input: Schema.Struct({
|
|
23
21
|
space: SpaceSchema,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/AutomationContainer.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlSection, ControlPage } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationPanel, type AutomationPanelProps } from './AutomationPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const AutomationContainer = (props: AutomationPanelProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('automation verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('automation description', { ns: AUTOMATION_PLUGIN })}\n >\n <AutomationPanel {...props} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default AutomationContainer;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgBC,mBAAmB;AAC5C,SAASC,iBAAiB;AAKnB,IAAMC,sBAAsB,CAACC,UAAAA;;;AAClC,UAAM,EAAEC,EAAC,IAAKC,eAAeC,iBAAAA;AAC7B,WACE,sBAAA,cAACC,UAAUC,SAAO;MAACC,YAAW;OAC5B,sBAAA,cAACC,aAAAA,MACC,sBAAA,cAACC,gBAAAA;MACCC,OAAOR,EAAE,4BAA4B;QAAES,IAAIP;MAAkB,CAAA;MAC7DQ,aAAaV,EAAE,0BAA0B;QAAES,IAAIP;MAAkB,CAAA;OAEjE,sBAAA,cAACS,iBAAoBZ,KAAAA,CAAAA,CAAAA,CAAAA;;;;AAK/B;AAEA,IAAA,8BAAeD;",
|
|
6
|
-
"names": ["React", "useTranslation", "ControlSection", "ControlPage", "StackItem", "AutomationContainer", "props", "t", "useTranslation", "AUTOMATION_PLUGIN", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "AutomationPanel"]
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AutomationPanel,
|
|
3
|
-
AutomationPanel_default
|
|
4
|
-
} from "./chunk-C5VOC5EE.mjs";
|
|
5
|
-
import "./chunk-N5VLW7UZ.mjs";
|
|
6
|
-
import "./chunk-IHAKPP5A.mjs";
|
|
7
|
-
export {
|
|
8
|
-
AutomationPanel,
|
|
9
|
-
AutomationPanel_default as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=AutomationPanel-PRIIAXD5.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { SpaceSchema } from '@dxos/react-client/echo';\n\nimport { AUTOMATION_PLUGIN } from './meta';\n\nconst TriggerTemplate = Schema.Union(\n Schema.Struct({ type: Schema.Literal('timer'), cron: Schema.String }),\n Schema.Struct({ type: Schema.Literal('queue'), queueDXN: Schema.Any }),\n);\n\nexport namespace AutomationAction {\n const AUTOMATION_ACTION = `${AUTOMATION_PLUGIN}/action`;\n\n export class CreateTriggerFromTemplate extends Schema.TaggedClass<CreateTriggerFromTemplate>()(\n `${AUTOMATION_ACTION}/create-trigger-from-template`,\n {\n input: Schema.Struct({\n space: SpaceSchema,\n template: TriggerTemplate,\n enabled: Schema.optional(Schema.Boolean),\n // TODO(wittjosiah): Improve how this lookup is done.\n scriptName: Schema.optional(Schema.String),\n input: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n output: Schema.Void,\n },\n ) {}\n}\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,mBAAmB;AAI5B,IAAMC,kBAAkBC,OAAOC,MAC7BD,OAAOE,OAAO;EAAEC,MAAMH,OAAOI,QAAQ,OAAA;EAAUC,MAAML,OAAOM;AAAO,CAAA,GACnEN,OAAOE,OAAO;EAAEC,MAAMH,OAAOI,QAAQ,OAAA;EAAUG,UAAUP,OAAOQ;AAAI,CAAA,CAAA;UAGrDC,mBAAAA;AACf,QAAMC,oBAAoB,GAAGC,iBAAAA;EAEtB,MAAMC,kCAAkCZ,OAAOa,YAAW,EAC/D,GAAGH,iBAAAA,iCACH;IACEI,OAAOd,OAAOE,OAAO;MACnBa,OAAOC;MACPC,UAAUlB;MACVmB,SAASlB,OAAOmB,SAASnB,OAAOoB,OAAO;;MAEvCC,YAAYrB,OAAOmB,SAASnB,OAAOM,MAAM;MACzCQ,OAAOd,OAAOmB,SAASnB,OAAOsB,OAAO;QAAEC,KAAKvB,OAAOM;QAAQkB,OAAOxB,OAAOQ;MAAI,CAAA,CAAA;IAC/E,CAAA;IACAiB,QAAQzB,OAAO0B;EACjB,CAAA,EAAA;EACC;oBAbUd,4BAAAA;AAcf,GAjBiBH,qBAAAA,mBAAAA,CAAAA,EAAAA;;",
|
|
6
|
-
"names": ["Schema", "SpaceSchema", "TriggerTemplate", "Schema", "Union", "Struct", "type", "Literal", "cron", "String", "queueDXN", "Any", "AutomationAction", "AUTOMATION_ACTION", "AUTOMATION_PLUGIN", "CreateTriggerFromTemplate", "TaggedClass", "input", "space", "SpaceSchema", "template", "enabled", "optional", "Boolean", "scriptName", "Record", "key", "value", "output", "Void"]
|
|
7
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// packages/plugins/plugin-automation/src/components/index.ts
|
|
2
|
-
import { lazy } from "react";
|
|
3
|
-
var AutomationContainer = lazy(() => import("./AutomationContainer-OGNK3HD5.mjs"));
|
|
4
|
-
var AutomationPanel = lazy(() => import("./AutomationPanel-PRIIAXD5.mjs"));
|
|
5
|
-
var FunctionsContainer = lazy(() => import("./FunctionsContainer-JY7V7PLF.mjs"));
|
|
6
|
-
var FunctionsPanel = lazy(() => import("./FunctionsPanel-LY4IFKR7.mjs"));
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
AutomationContainer,
|
|
10
|
-
AutomationPanel,
|
|
11
|
-
FunctionsContainer,
|
|
12
|
-
FunctionsPanel
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=chunk-VQWJ5UYA.mjs.map
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var AutomationContainer_B7PSJFIS_exports = {};
|
|
30
|
-
__export(AutomationContainer_B7PSJFIS_exports, {
|
|
31
|
-
AutomationContainer: () => AutomationContainer,
|
|
32
|
-
default: () => AutomationContainer_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(AutomationContainer_B7PSJFIS_exports);
|
|
35
|
-
var import_chunk_IXUCZ3YY = require("./chunk-IXUCZ3YY.cjs");
|
|
36
|
-
var import_chunk_LQ6XK4N5 = require("./chunk-LQ6XK4N5.cjs");
|
|
37
|
-
var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
|
|
38
|
-
var import_tracking = require("@preact-signals/safe-react/tracking");
|
|
39
|
-
var import_react = __toESM(require("react"));
|
|
40
|
-
var import_react_ui = require("@dxos/react-ui");
|
|
41
|
-
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
42
|
-
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
43
|
-
var AutomationContainer = (props) => {
|
|
44
|
-
var _effect = (0, import_tracking.useSignals)();
|
|
45
|
-
try {
|
|
46
|
-
const { t } = (0, import_react_ui.useTranslation)(import_chunk_3EF7MLFX.AUTOMATION_PLUGIN);
|
|
47
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
|
|
48
|
-
classNames: "block overflow-y-auto"
|
|
49
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlPage, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlSection, {
|
|
50
|
-
title: t("automation verbose label", {
|
|
51
|
-
ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
|
|
52
|
-
}),
|
|
53
|
-
description: t("automation description", {
|
|
54
|
-
ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
|
|
55
|
-
})
|
|
56
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_chunk_IXUCZ3YY.AutomationPanel, props))));
|
|
57
|
-
} finally {
|
|
58
|
-
_effect.f();
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
var AutomationContainer_default = AutomationContainer;
|
|
62
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
-
0 && (module.exports = {
|
|
64
|
-
AutomationContainer
|
|
65
|
-
});
|
|
66
|
-
//# sourceMappingURL=AutomationContainer-B7PSJFIS.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/AutomationContainer.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlSection, ControlPage } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { AutomationPanel, type AutomationPanelProps } from './AutomationPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const AutomationContainer = (props: AutomationPanelProps) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('automation verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('automation description', { ns: AUTOMATION_PLUGIN })}\n >\n <AutomationPanel {...props} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default AutomationContainer;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAElB,sBAA+B;AAC/B,2BAA4C;AAC5C,4BAA0B;AAKnB,IAAMA,sBAAsB,CAACC,UAAAA;;;AAClC,UAAM,EAAEC,EAAC,QAAKC,gCAAeC,uCAAAA;AAC7B,WACE,6BAAAC,QAAA,cAACC,gCAAUC,SAAO;MAACC,YAAW;OAC5B,6BAAAH,QAAA,cAACI,kCAAAA,MACC,6BAAAJ,QAAA,cAACK,qCAAAA;MACCC,OAAOT,EAAE,4BAA4B;QAAEU,IAAIR;MAAkB,CAAA;MAC7DS,aAAaX,EAAE,0BAA0B;QAAEU,IAAIR;MAAkB,CAAA;OAEjE,6BAAAC,QAAA,cAACS,uCAAoBb,KAAAA,CAAAA,CAAAA,CAAAA;;;;AAK/B;AAEA,IAAA,8BAAeD;",
|
|
6
|
-
"names": ["AutomationContainer", "props", "t", "useTranslation", "AUTOMATION_PLUGIN", "React", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "AutomationPanel"]
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var AutomationPanel_XYLZU4MI_exports = {};
|
|
20
|
-
__export(AutomationPanel_XYLZU4MI_exports, {
|
|
21
|
-
AutomationPanel: () => import_chunk_IXUCZ3YY.AutomationPanel,
|
|
22
|
-
default: () => import_chunk_IXUCZ3YY.AutomationPanel_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(AutomationPanel_XYLZU4MI_exports);
|
|
25
|
-
var import_chunk_IXUCZ3YY = require("./chunk-IXUCZ3YY.cjs");
|
|
26
|
-
var import_chunk_LQ6XK4N5 = require("./chunk-LQ6XK4N5.cjs");
|
|
27
|
-
var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
|
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
-
0 && (module.exports = {
|
|
30
|
-
AutomationPanel
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=AutomationPanel-XYLZU4MI.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["AutomationPanel-XYLZU4MI.cjs"],
|
|
4
|
-
"sourcesContent": ["import {\n AutomationPanel,\n AutomationPanel_default\n} from \"./chunk-IXUCZ3YY.cjs\";\nimport \"./chunk-LQ6XK4N5.cjs\";\nimport \"./chunk-3EF7MLFX.cjs\";\nexport {\n AutomationPanel,\n AutomationPanel_default as default\n};\n//# sourceMappingURL=AutomationPanel-XYLZU4MI.cjs.map\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;AACP,4BAAO;AACP,4BAAO;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var FunctionsContainer_4FGOQW5X_exports = {};
|
|
30
|
-
__export(FunctionsContainer_4FGOQW5X_exports, {
|
|
31
|
-
FunctionsContainer: () => FunctionsContainer,
|
|
32
|
-
default: () => FunctionsContainer_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(FunctionsContainer_4FGOQW5X_exports);
|
|
35
|
-
var import_chunk_6X3XJ4VI = require("./chunk-6X3XJ4VI.cjs");
|
|
36
|
-
var import_chunk_3EF7MLFX = require("./chunk-3EF7MLFX.cjs");
|
|
37
|
-
var import_tracking = require("@preact-signals/safe-react/tracking");
|
|
38
|
-
var import_react = __toESM(require("react"));
|
|
39
|
-
var import_react_ui = require("@dxos/react-ui");
|
|
40
|
-
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
41
|
-
var import_react_ui_stack = require("@dxos/react-ui-stack");
|
|
42
|
-
var FunctionsContainer = ({ space }) => {
|
|
43
|
-
var _effect = (0, import_tracking.useSignals)();
|
|
44
|
-
try {
|
|
45
|
-
const { t } = (0, import_react_ui.useTranslation)(import_chunk_3EF7MLFX.AUTOMATION_PLUGIN);
|
|
46
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react_ui_stack.StackItem.Content, {
|
|
47
|
-
classNames: "block overflow-y-auto"
|
|
48
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlPage, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.ControlSection, {
|
|
49
|
-
title: t("functions verbose label", {
|
|
50
|
-
ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
|
|
51
|
-
}),
|
|
52
|
-
description: t("functions description", {
|
|
53
|
-
ns: import_chunk_3EF7MLFX.AUTOMATION_PLUGIN
|
|
54
|
-
})
|
|
55
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_chunk_6X3XJ4VI.FunctionsPanel, {
|
|
56
|
-
space
|
|
57
|
-
}))));
|
|
58
|
-
} finally {
|
|
59
|
-
_effect.f();
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var FunctionsContainer_default = FunctionsContainer;
|
|
63
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
64
|
-
0 && (module.exports = {
|
|
65
|
-
FunctionsContainer
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=FunctionsContainer-4FGOQW5X.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/FunctionsContainer.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Space } from '@dxos/react-client/echo';\nimport { useTranslation } from '@dxos/react-ui';\nimport { ControlPage, ControlSection } from '@dxos/react-ui-form';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nimport { FunctionsPanel } from './FunctionsPanel';\nimport { AUTOMATION_PLUGIN } from '../meta';\n\nexport const FunctionsContainer = ({ space }: { space: Space }) => {\n const { t } = useTranslation(AUTOMATION_PLUGIN);\n return (\n <StackItem.Content classNames='block overflow-y-auto'>\n <ControlPage>\n <ControlSection\n title={t('functions verbose label', { ns: AUTOMATION_PLUGIN })}\n description={t('functions description', { ns: AUTOMATION_PLUGIN })}\n >\n <FunctionsPanel space={space} />\n </ControlSection>\n </ControlPage>\n </StackItem.Content>\n );\n};\n\nexport default FunctionsContainer;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAkB;AAGlB,sBAA+B;AAC/B,2BAA4C;AAC5C,4BAA0B;AAKnB,IAAMA,qBAAqB,CAAC,EAAEC,MAAK,MAAoB;;;AAC5D,UAAM,EAAEC,EAAC,QAAKC,gCAAeC,uCAAAA;AAC7B,WACE,6BAAAC,QAAA,cAACC,gCAAUC,SAAO;MAACC,YAAW;OAC5B,6BAAAH,QAAA,cAACI,kCAAAA,MACC,6BAAAJ,QAAA,cAACK,qCAAAA;MACCC,OAAOT,EAAE,2BAA2B;QAAEU,IAAIR;MAAkB,CAAA;MAC5DS,aAAaX,EAAE,yBAAyB;QAAEU,IAAIR;MAAkB,CAAA;OAEhE,6BAAAC,QAAA,cAACS,sCAAAA;MAAeb;;;;;AAK1B;AAEA,IAAA,6BAAeD;",
|
|
6
|
-
"names": ["FunctionsContainer", "space", "t", "useTranslation", "AUTOMATION_PLUGIN", "React", "StackItem", "Content", "classNames", "ControlPage", "ControlSection", "title", "ns", "description", "FunctionsPanel"]
|
|
7
|
-
}
|