@tari-project/tari-extension-query-builder 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/README.md +1 -0
- package/components.json +21 -0
- package/dist/App.d.ts +3 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/codegen/BuilderCodegen.d.ts +20 -0
- package/dist/codegen/BuilderCodegen.d.ts.map +1 -0
- package/dist/codegen/sample.d.ts +3 -0
- package/dist/codegen/sample.d.ts.map +1 -0
- package/dist/components/query-builder/edges/button-edge.d.ts +3 -0
- package/dist/components/query-builder/edges/button-edge.d.ts.map +1 -0
- package/dist/components/query-builder/input/call-input-checkbox.d.ts +11 -0
- package/dist/components/query-builder/input/call-input-checkbox.d.ts.map +1 -0
- package/dist/components/query-builder/input/call-input-select.d.ts +14 -0
- package/dist/components/query-builder/input/call-input-select.d.ts.map +1 -0
- package/dist/components/query-builder/input/call-input-text.d.ts +18 -0
- package/dist/components/query-builder/input/call-input-text.d.ts.map +1 -0
- package/dist/components/query-builder/input/call-input.d.ts +13 -0
- package/dist/components/query-builder/input/call-input.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/call-node.types.d.ts +4 -0
- package/dist/components/query-builder/nodes/call-node.types.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/constants.d.ts +5 -0
- package/dist/components/query-builder/nodes/constants.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/enter-connection.d.ts +3 -0
- package/dist/components/query-builder/nodes/enter-connection.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/exit-connection.d.ts +3 -0
- package/dist/components/query-builder/nodes/exit-connection.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/generic/generic-node.d.ts +5 -0
- package/dist/components/query-builder/nodes/generic/generic-node.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/generic/node-icon.d.ts +8 -0
- package/dist/components/query-builder/nodes/generic/node-icon.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/generic-node.types.d.ts +6 -0
- package/dist/components/query-builder/nodes/generic-node.types.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/input/constants.d.ts +2 -0
- package/dist/components/query-builder/nodes/input/constants.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/input/editable-label.d.ts +9 -0
- package/dist/components/query-builder/nodes/input/editable-label.d.ts.map +1 -0
- package/dist/components/query-builder/nodes/input/input-params-node.d.ts +5 -0
- package/dist/components/query-builder/nodes/input/input-params-node.d.ts.map +1 -0
- package/dist/components/query-builder/query-builder.d.ts +13 -0
- package/dist/components/query-builder/query-builder.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/loading-spinner.d.ts +7 -0
- package/dist/components/ui/loading-spinner.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/execute/AmbiguousOrderError.d.ts +6 -0
- package/dist/execute/AmbiguousOrderError.d.ts.map +1 -0
- package/dist/execute/CycleDetectedError.d.ts +4 -0
- package/dist/execute/CycleDetectedError.d.ts.map +1 -0
- package/dist/execute/ExecutionPlanner.d.ts +30 -0
- package/dist/execute/ExecutionPlanner.d.ts.map +1 -0
- package/dist/execute/ExecutionPlanner.spec.d.ts +2 -0
- package/dist/execute/ExecutionPlanner.spec.d.ts.map +1 -0
- package/dist/execute/MissingDataError.d.ts +5 -0
- package/dist/execute/MissingDataError.d.ts.map +1 -0
- package/dist/execute/types.d.ts +65 -0
- package/dist/execute/types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/get-next-available.d.ts +2 -0
- package/dist/lib/get-next-available.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/query-builder/tari-type.d.ts +29 -0
- package/dist/query-builder/tari-type.d.ts.map +1 -0
- package/dist/query-builder/template-reader.d.ts +13 -0
- package/dist/query-builder/template-reader.d.ts.map +1 -0
- package/dist/store/persistence/handlers.d.ts +12 -0
- package/dist/store/persistence/handlers.d.ts.map +1 -0
- package/dist/store/persistence/types.d.ts +18 -0
- package/dist/store/persistence/types.d.ts.map +1 -0
- package/dist/store/persistence/v1_0.d.ts +5 -0
- package/dist/store/persistence/v1_0.d.ts.map +1 -0
- package/dist/store/store.d.ts +4 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/types.d.ts +97 -0
- package/dist/store/types.d.ts.map +1 -0
- package/dist/tari-extension-query-builder.css +1 -0
- package/dist/tari-extension-query-builder.es.js +183368 -0
- package/dist/tari-extension-query-builder.umd.js +620 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -0
- package/eslint.config.js +34 -0
- package/index.html +12 -0
- package/moon.yml +43 -0
- package/package.json +84 -0
- package/src/App.tsx +114 -0
- package/src/assets/react.svg +1 -0
- package/src/codegen/BuilderCodegen.ts +516 -0
- package/src/codegen/sample.ts +58 -0
- package/src/components/query-builder/edges/button-edge.tsx +50 -0
- package/src/components/query-builder/input/call-input-checkbox.tsx +54 -0
- package/src/components/query-builder/input/call-input-select.tsx +87 -0
- package/src/components/query-builder/input/call-input-text.tsx +98 -0
- package/src/components/query-builder/input/call-input.tsx +51 -0
- package/src/components/query-builder/nodes/call-node.types.ts +3 -0
- package/src/components/query-builder/nodes/constants.ts +4 -0
- package/src/components/query-builder/nodes/enter-connection.tsx +16 -0
- package/src/components/query-builder/nodes/exit-connection.tsx +16 -0
- package/src/components/query-builder/nodes/generic/generic-node.tsx +252 -0
- package/src/components/query-builder/nodes/generic/node-icon.tsx +37 -0
- package/src/components/query-builder/nodes/generic-node.types.ts +5 -0
- package/src/components/query-builder/nodes/input/constants.ts +1 -0
- package/src/components/query-builder/nodes/input/editable-label.tsx +142 -0
- package/src/components/query-builder/nodes/input/input-params-node.tsx +190 -0
- package/src/components/query-builder/query-builder.tsx +577 -0
- package/src/components/ui/alert-dialog.tsx +111 -0
- package/src/components/ui/badge.tsx +37 -0
- package/src/components/ui/button.tsx +50 -0
- package/src/components/ui/checkbox.tsx +27 -0
- package/src/components/ui/dropdown-menu.tsx +217 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/loading-spinner.tsx +46 -0
- package/src/components/ui/popover.tsx +40 -0
- package/src/components/ui/select.tsx +158 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sonner.tsx +23 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/tooltip.tsx +46 -0
- package/src/execute/AmbiguousOrderError.ts +13 -0
- package/src/execute/CycleDetectedError.ts +7 -0
- package/src/execute/ExecutionPlanner.spec.ts +174 -0
- package/src/execute/ExecutionPlanner.ts +445 -0
- package/src/execute/MissingDataError.ts +10 -0
- package/src/execute/types.ts +87 -0
- package/src/index.css +124 -0
- package/src/index.ts +5 -0
- package/src/lib/get-next-available.ts +12 -0
- package/src/lib/utils.ts +6 -0
- package/src/main.tsx +13 -0
- package/src/query-builder/tari-type.ts +185 -0
- package/src/query-builder/template-reader.ts +69 -0
- package/src/root.css +4 -0
- package/src/store/persistence/handlers.ts +16 -0
- package/src/store/persistence/types.ts +14 -0
- package/src/store/persistence/v1_0.ts +35 -0
- package/src/store/store.ts +396 -0
- package/src/store/types.ts +115 -0
- package/src/stories/data/tari-swap-pool.json +317 -0
- package/src/stories/data/wallet-functions.json +580 -0
- package/src/types.ts +7 -0
- package/src/vite-env.d.ts +1 -0
- package/src/xy-theme.css +144 -0
- package/tsconfig.app.json +31 -0
- package/tsconfig.json +15 -0
- package/tsconfig.lib.json +13 -0
- package/tsconfig.node.json +24 -0
- package/vite.config.ts +35 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,WAAW,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import globals from "globals";
|
|
3
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
4
|
+
import reactRefresh from "eslint-plugin-react-refresh";
|
|
5
|
+
import react from "eslint-plugin-react";
|
|
6
|
+
import tseslint from "typescript-eslint";
|
|
7
|
+
|
|
8
|
+
export default tseslint.config(
|
|
9
|
+
{ ignores: ["dist"] },
|
|
10
|
+
{
|
|
11
|
+
extends: [js.configs.recommended, ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked],
|
|
12
|
+
files: ["**/*.{ts,tsx}"],
|
|
13
|
+
settings: { react: { version: "19.0" } },
|
|
14
|
+
languageOptions: {
|
|
15
|
+
ecmaVersion: 2020,
|
|
16
|
+
globals: globals.browser,
|
|
17
|
+
parserOptions: {
|
|
18
|
+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
|
|
19
|
+
tsconfigRootDir: import.meta.dirname,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
plugins: {
|
|
23
|
+
"react-hooks": reactHooks,
|
|
24
|
+
"react-refresh": reactRefresh,
|
|
25
|
+
react,
|
|
26
|
+
},
|
|
27
|
+
rules: {
|
|
28
|
+
...reactHooks.configs.recommended.rules,
|
|
29
|
+
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
|
|
30
|
+
...react.configs.recommended.rules,
|
|
31
|
+
...react.configs["jsx-runtime"].rules,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
);
|
package/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Query Builder</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"></div>
|
|
10
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
package/moon.yml
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
language: "typescript"
|
|
2
|
+
platform: "node"
|
|
3
|
+
type: "library"
|
|
4
|
+
|
|
5
|
+
fileGroups:
|
|
6
|
+
configs:
|
|
7
|
+
- "tsconfig.json"
|
|
8
|
+
- "package.json"
|
|
9
|
+
- "eslint.config.js"
|
|
10
|
+
- "tsconfig.app.json"
|
|
11
|
+
- "tsconfig.json"
|
|
12
|
+
- "tsconfig.node.json"
|
|
13
|
+
- "vite.config.ts"
|
|
14
|
+
- "components.json"
|
|
15
|
+
sources:
|
|
16
|
+
- "index.html"
|
|
17
|
+
- "src/**/*"
|
|
18
|
+
|
|
19
|
+
tasks:
|
|
20
|
+
build:
|
|
21
|
+
command: "pnpm run build"
|
|
22
|
+
inputs:
|
|
23
|
+
- "@files(sources)"
|
|
24
|
+
- "@files(configs)"
|
|
25
|
+
outputs:
|
|
26
|
+
- "dist"
|
|
27
|
+
deps:
|
|
28
|
+
- "tari-extension-common:build"
|
|
29
|
+
format:
|
|
30
|
+
command: "pnpm run format"
|
|
31
|
+
inputs:
|
|
32
|
+
- "@files(sources)"
|
|
33
|
+
- "@files(configs)"
|
|
34
|
+
lint:
|
|
35
|
+
command: "pnpm run lint"
|
|
36
|
+
inputs:
|
|
37
|
+
- "@files(sources)"
|
|
38
|
+
- "@files(configs)"
|
|
39
|
+
ladle:
|
|
40
|
+
command: "pnpm run ladle"
|
|
41
|
+
inputs:
|
|
42
|
+
- "@files(sources)"
|
|
43
|
+
- "@files(configs)"
|
package/package.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tari-project/tari-extension-query-builder",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.4",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/tari-extension-query-builder.umd.js",
|
|
7
|
+
"module": "dist/tari-extension-query-builder.es.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/tari-extension-query-builder.es.js",
|
|
13
|
+
"require": "./dist/tari-extension-query-builder.umd.js"
|
|
14
|
+
},
|
|
15
|
+
"./style": {
|
|
16
|
+
"style": "./dist/tari-extension-query-builder.css"
|
|
17
|
+
},
|
|
18
|
+
"./dist/tari-extension-query-builder.css": "./dist/tari-extension-query-builder.css"
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"./dist/tari-extension-query-builder.css"
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@ladle/react": "^5.0.1",
|
|
25
|
+
"@radix-ui/react-alert-dialog": "^1.1.6",
|
|
26
|
+
"@radix-ui/react-checkbox": "^1.1.4",
|
|
27
|
+
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
28
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
29
|
+
"@radix-ui/react-label": "^2.1.2",
|
|
30
|
+
"@radix-ui/react-popover": "^1.1.7",
|
|
31
|
+
"@radix-ui/react-select": "^2.1.6",
|
|
32
|
+
"@radix-ui/react-separator": "^1.1.2",
|
|
33
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
34
|
+
"@radix-ui/react-tooltip": "^1.1.8",
|
|
35
|
+
"@tailwindcss/vite": "^4.0.12",
|
|
36
|
+
"@tari-project/tarijs-all": "^0.6.0",
|
|
37
|
+
"@xyflow/react": "^12.4.4",
|
|
38
|
+
"autoprefixer": "^10.4.21",
|
|
39
|
+
"class-variance-authority": "^0.7.1",
|
|
40
|
+
"clsx": "^2.1.1",
|
|
41
|
+
"lucide-react": "^0.479.0",
|
|
42
|
+
"next-themes": "^0.4.6",
|
|
43
|
+
"postcss": "^8.5.3",
|
|
44
|
+
"react": "^19.0.0",
|
|
45
|
+
"react-dom": "^19.0.0",
|
|
46
|
+
"sonner": "^2.0.3",
|
|
47
|
+
"tailwind-merge": "^3.0.2",
|
|
48
|
+
"tailwindcss": "^4.0.12",
|
|
49
|
+
"tailwindcss-animate": "^1.0.7",
|
|
50
|
+
"uuid": "^11.1.0",
|
|
51
|
+
"zod": "^3.24.2",
|
|
52
|
+
"zustand": "^5.0.3",
|
|
53
|
+
"@tari-project/tari-extension-common": "^0.0.4"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@eslint/js": "^9.21.0",
|
|
57
|
+
"@tari-project/typescript-bindings": "^1.5.2",
|
|
58
|
+
"@types/node": "^22.13.5",
|
|
59
|
+
"@types/react": "^19.0.10",
|
|
60
|
+
"@types/react-dom": "^19.0.4",
|
|
61
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
62
|
+
"eslint": "^9.21.0",
|
|
63
|
+
"eslint-plugin-react": "^7.37.4",
|
|
64
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
65
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
66
|
+
"globals": "^15.15.0",
|
|
67
|
+
"prettier": "^3.5.2",
|
|
68
|
+
"typescript": "^5.7.3",
|
|
69
|
+
"typescript-eslint": "^8.25.0",
|
|
70
|
+
"vite": "^6.2.0",
|
|
71
|
+
"vite-plugin-dts": "^4.5.3",
|
|
72
|
+
"vitest": "^3.0.7"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"dev": "vite",
|
|
76
|
+
"build": "tsc --build tsconfig.lib.json && BUILD_LIB=true vite build",
|
|
77
|
+
"lint": "eslint .",
|
|
78
|
+
"format": "prettier --check .",
|
|
79
|
+
"format:fix": "prettier --write .",
|
|
80
|
+
"preview": "vite preview",
|
|
81
|
+
"ladle": "ladle serve",
|
|
82
|
+
"test": "vitest run src"
|
|
83
|
+
}
|
|
84
|
+
}
|
package/src/App.tsx
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import "./root.css";
|
|
2
|
+
import QueryBuilder from "./components/query-builder/query-builder";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
import tariSwapPoolFunctions from "./stories/data/tari-swap-pool.json";
|
|
5
|
+
import { TemplateDef } from "@tari-project/typescript-bindings";
|
|
6
|
+
import useStore from "./store/store";
|
|
7
|
+
import { TemplateReader } from "./query-builder/template-reader";
|
|
8
|
+
import { GenericNodeType, InputConnectionType, NodeType } from "./store/types";
|
|
9
|
+
|
|
10
|
+
function App() {
|
|
11
|
+
const added = useRef<boolean>(false);
|
|
12
|
+
const addNodeAt = useStore((store) => store.addNodeAt);
|
|
13
|
+
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (!added.current) {
|
|
16
|
+
addNodeAt({
|
|
17
|
+
type: NodeType.InputParamsNode,
|
|
18
|
+
data: {
|
|
19
|
+
title: "input1",
|
|
20
|
+
values: {},
|
|
21
|
+
inputs: [],
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
addNodeAt({
|
|
25
|
+
type: NodeType.InputParamsNode,
|
|
26
|
+
data: {
|
|
27
|
+
title: "input2",
|
|
28
|
+
values: {},
|
|
29
|
+
inputs: [],
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const tariSwapPoolReader = new TemplateReader(
|
|
34
|
+
tariSwapPoolFunctions as TemplateDef,
|
|
35
|
+
"d7032a35cac0a7c4c8dafa4dc0bd76c54b3ceb842540d16c77450f5b6fc5111f",
|
|
36
|
+
);
|
|
37
|
+
const nodeData = tariSwapPoolReader.getGenericNode("add_liquidity");
|
|
38
|
+
if (nodeData) {
|
|
39
|
+
addNodeAt(nodeData, { x: 400, y: 400 });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
addNodeAt({
|
|
43
|
+
type: NodeType.GenericNode,
|
|
44
|
+
data: {
|
|
45
|
+
type: GenericNodeType.CallNode,
|
|
46
|
+
hasEnterConnection: true,
|
|
47
|
+
hasExitConnection: true,
|
|
48
|
+
icon: "cube",
|
|
49
|
+
badge: "TariSwapPool",
|
|
50
|
+
title: "swap",
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
inputConnectionType: InputConnectionType.Parameter,
|
|
54
|
+
name: "fee",
|
|
55
|
+
label: "Fee",
|
|
56
|
+
type: "U16",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
inputConnectionType: InputConnectionType.Parameter,
|
|
60
|
+
name: "input_bucket",
|
|
61
|
+
label: "input_bucket",
|
|
62
|
+
type: {
|
|
63
|
+
Other: {
|
|
64
|
+
name: "Bucket",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
inputConnectionType: InputConnectionType.Parameter,
|
|
70
|
+
name: "is_valid",
|
|
71
|
+
label: "is_valid",
|
|
72
|
+
type: "Bool",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputConnectionType: InputConnectionType.Parameter,
|
|
76
|
+
name: "log_level",
|
|
77
|
+
label: "Log Level",
|
|
78
|
+
type: "String",
|
|
79
|
+
validValues: ["Error", "Warn", "Info", "Debug"],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputConnectionType: InputConnectionType.Parameter,
|
|
83
|
+
name: "output_resource",
|
|
84
|
+
label: "output_resource",
|
|
85
|
+
type: {
|
|
86
|
+
Other: {
|
|
87
|
+
name: "ResourceAddress",
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
output: {
|
|
93
|
+
name: "input_bucket",
|
|
94
|
+
label: "input_bucket",
|
|
95
|
+
type: {
|
|
96
|
+
Other: {
|
|
97
|
+
name: "Bucket",
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
added.current = true;
|
|
105
|
+
}
|
|
106
|
+
}, [addNodeAt]);
|
|
107
|
+
return (
|
|
108
|
+
<>
|
|
109
|
+
<QueryBuilder theme="dark" />
|
|
110
|
+
</>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export default App;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|