@uipath/apollo-react 7.15.4 → 7.16.0
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/canvas/components/JsonTree/index.cjs +4 -0
- package/dist/canvas/components/JsonTree/index.d.ts +2 -2
- package/dist/canvas/components/JsonTree/index.d.ts.map +1 -1
- package/dist/canvas/components/JsonTree/index.js +2 -2
- package/dist/canvas/components/NodeIOView/NodeIOView.cjs +2 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.d.ts +1 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.d.ts.map +1 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.js +2 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.types.d.ts +2 -1
- package/dist/canvas/components/NodeIOView/NodeIOView.types.d.ts.map +1 -1
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.cjs +503 -327
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.d.ts +2 -2
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.d.ts.map +1 -1
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.js +503 -327
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.strings.cjs +168 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.strings.d.ts +3 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.strings.d.ts.map +1 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.strings.js +134 -0
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.d.ts +58 -16
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.d.ts.map +1 -1
- package/dist/canvas/components/NodeVariablesPanel/index.d.ts +1 -1
- package/dist/canvas/components/NodeVariablesPanel/index.d.ts.map +1 -1
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/dist/decision-table/styles/tailwind.decision-table.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useNodeVariablesPanelStrings: ()=>useNodeVariablesPanelStrings
|
|
28
|
+
});
|
|
29
|
+
const external_react_namespaceObject = require("react");
|
|
30
|
+
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
|
|
31
|
+
function useNodeVariablesPanelStrings(overrides) {
|
|
32
|
+
const { _ } = (0, index_cjs_namespaceObject.useSafeLingui)();
|
|
33
|
+
return (0, external_react_namespaceObject.useMemo)(()=>({
|
|
34
|
+
sectionInputs: _({
|
|
35
|
+
id: 'canvas.node_variables_panel.section_inputs',
|
|
36
|
+
message: 'Inputs'
|
|
37
|
+
}),
|
|
38
|
+
sectionOutputs: _({
|
|
39
|
+
id: 'canvas.node_variables_panel.section_outputs',
|
|
40
|
+
message: 'Outputs'
|
|
41
|
+
}),
|
|
42
|
+
sectionVariables: _({
|
|
43
|
+
id: 'canvas.node_variables_panel.section_variables',
|
|
44
|
+
message: 'Variables'
|
|
45
|
+
}),
|
|
46
|
+
sectionAssets: _({
|
|
47
|
+
id: 'canvas.node_variables_panel.section_assets',
|
|
48
|
+
message: 'Assets'
|
|
49
|
+
}),
|
|
50
|
+
sectionNodes: _({
|
|
51
|
+
id: 'canvas.node_variables_panel.section_nodes',
|
|
52
|
+
message: 'Nodes'
|
|
53
|
+
}),
|
|
54
|
+
inputsCount: (count)=>_({
|
|
55
|
+
id: 'canvas.node_variables_panel.count_inputs',
|
|
56
|
+
message: 'Inputs: {count}',
|
|
57
|
+
values: {
|
|
58
|
+
count
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
outputsCount: (count)=>_({
|
|
62
|
+
id: 'canvas.node_variables_panel.count_outputs',
|
|
63
|
+
message: 'Outputs: {count}',
|
|
64
|
+
values: {
|
|
65
|
+
count
|
|
66
|
+
}
|
|
67
|
+
}),
|
|
68
|
+
variablesCount: (count)=>_({
|
|
69
|
+
id: 'canvas.node_variables_panel.count_variables',
|
|
70
|
+
message: 'Variables: {count}',
|
|
71
|
+
values: {
|
|
72
|
+
count
|
|
73
|
+
}
|
|
74
|
+
}),
|
|
75
|
+
assetsCount: (count)=>_({
|
|
76
|
+
id: 'canvas.node_variables_panel.count_assets',
|
|
77
|
+
message: 'Assets: {count}',
|
|
78
|
+
values: {
|
|
79
|
+
count
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
nodesCount: (count)=>_({
|
|
83
|
+
id: 'canvas.node_variables_panel.count_nodes',
|
|
84
|
+
message: 'Nodes: {count}',
|
|
85
|
+
values: {
|
|
86
|
+
count
|
|
87
|
+
}
|
|
88
|
+
}),
|
|
89
|
+
addOutputs: _({
|
|
90
|
+
id: 'canvas.node_variables_panel.add_outputs',
|
|
91
|
+
message: 'Add outputs'
|
|
92
|
+
}),
|
|
93
|
+
addVariables: _({
|
|
94
|
+
id: 'canvas.node_variables_panel.add_variables',
|
|
95
|
+
message: 'Add variables'
|
|
96
|
+
}),
|
|
97
|
+
addAssets: _({
|
|
98
|
+
id: 'canvas.node_variables_panel.add_assets',
|
|
99
|
+
message: 'Add asset'
|
|
100
|
+
}),
|
|
101
|
+
nodeOutputCount: (count)=>_({
|
|
102
|
+
id: 'canvas.node_variables_panel.node_output_count',
|
|
103
|
+
message: 'Outputs: {count}',
|
|
104
|
+
values: {
|
|
105
|
+
count
|
|
106
|
+
}
|
|
107
|
+
}),
|
|
108
|
+
addToNode: _({
|
|
109
|
+
id: 'canvas.node_variables_panel.add_to_node',
|
|
110
|
+
message: 'Add'
|
|
111
|
+
}),
|
|
112
|
+
addFromNode: (label)=>_({
|
|
113
|
+
id: 'canvas.node_variables_panel.add_to_node_label',
|
|
114
|
+
message: 'Add from {label}',
|
|
115
|
+
values: {
|
|
116
|
+
label
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
focusNode: _({
|
|
120
|
+
id: 'canvas.node_variables_panel.focus_node',
|
|
121
|
+
message: 'Focus on node'
|
|
122
|
+
}),
|
|
123
|
+
focusNodeLabel: (label)=>_({
|
|
124
|
+
id: 'canvas.node_variables_panel.focus_node_label',
|
|
125
|
+
message: 'Focus on {label}',
|
|
126
|
+
values: {
|
|
127
|
+
label
|
|
128
|
+
}
|
|
129
|
+
}),
|
|
130
|
+
editVariable: (name)=>_({
|
|
131
|
+
id: 'canvas.node_variables_panel.edit_variable',
|
|
132
|
+
message: 'Edit {name}',
|
|
133
|
+
values: {
|
|
134
|
+
name
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
deleteVariable: (name)=>_({
|
|
138
|
+
id: 'canvas.node_variables_panel.delete_variable',
|
|
139
|
+
message: 'Delete {name}',
|
|
140
|
+
values: {
|
|
141
|
+
name
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
searchPlaceholder: _({
|
|
145
|
+
id: 'canvas.node_variables_panel.search_placeholder',
|
|
146
|
+
message: 'Search variables'
|
|
147
|
+
}),
|
|
148
|
+
noMatches: _({
|
|
149
|
+
id: 'canvas.node_variables_panel.no_matches',
|
|
150
|
+
message: 'No variables match your search.'
|
|
151
|
+
}),
|
|
152
|
+
filterEmpty: _({
|
|
153
|
+
id: 'canvas.node_variables_panel.filter_empty',
|
|
154
|
+
message: 'No variables match this filter.'
|
|
155
|
+
}),
|
|
156
|
+
...Object.fromEntries(Object.entries(overrides ?? {}).filter(([, value])=>void 0 !== value))
|
|
157
|
+
}), [
|
|
158
|
+
_,
|
|
159
|
+
overrides
|
|
160
|
+
]);
|
|
161
|
+
}
|
|
162
|
+
exports.useNodeVariablesPanelStrings = __webpack_exports__.useNodeVariablesPanelStrings;
|
|
163
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
164
|
+
"useNodeVariablesPanelStrings"
|
|
165
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
166
|
+
Object.defineProperty(exports, '__esModule', {
|
|
167
|
+
value: true
|
|
168
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NodeVariablesPanelStrings } from './NodeVariablesPanel.types';
|
|
2
|
+
export declare function useNodeVariablesPanelStrings(overrides: Partial<NodeVariablesPanelStrings> | undefined): NodeVariablesPanelStrings;
|
|
3
|
+
//# sourceMappingURL=NodeVariablesPanel.strings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeVariablesPanel.strings.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/NodeVariablesPanel.strings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAM5E,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,SAAS,GACxD,yBAAyB,CAkG3B"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { useSafeLingui } from "../../../i18n/index.js";
|
|
3
|
+
function useNodeVariablesPanelStrings(overrides) {
|
|
4
|
+
const { _ } = useSafeLingui();
|
|
5
|
+
return useMemo(()=>({
|
|
6
|
+
sectionInputs: _({
|
|
7
|
+
id: 'canvas.node_variables_panel.section_inputs',
|
|
8
|
+
message: 'Inputs'
|
|
9
|
+
}),
|
|
10
|
+
sectionOutputs: _({
|
|
11
|
+
id: 'canvas.node_variables_panel.section_outputs',
|
|
12
|
+
message: 'Outputs'
|
|
13
|
+
}),
|
|
14
|
+
sectionVariables: _({
|
|
15
|
+
id: 'canvas.node_variables_panel.section_variables',
|
|
16
|
+
message: 'Variables'
|
|
17
|
+
}),
|
|
18
|
+
sectionAssets: _({
|
|
19
|
+
id: 'canvas.node_variables_panel.section_assets',
|
|
20
|
+
message: 'Assets'
|
|
21
|
+
}),
|
|
22
|
+
sectionNodes: _({
|
|
23
|
+
id: 'canvas.node_variables_panel.section_nodes',
|
|
24
|
+
message: 'Nodes'
|
|
25
|
+
}),
|
|
26
|
+
inputsCount: (count)=>_({
|
|
27
|
+
id: 'canvas.node_variables_panel.count_inputs',
|
|
28
|
+
message: 'Inputs: {count}',
|
|
29
|
+
values: {
|
|
30
|
+
count
|
|
31
|
+
}
|
|
32
|
+
}),
|
|
33
|
+
outputsCount: (count)=>_({
|
|
34
|
+
id: 'canvas.node_variables_panel.count_outputs',
|
|
35
|
+
message: 'Outputs: {count}',
|
|
36
|
+
values: {
|
|
37
|
+
count
|
|
38
|
+
}
|
|
39
|
+
}),
|
|
40
|
+
variablesCount: (count)=>_({
|
|
41
|
+
id: 'canvas.node_variables_panel.count_variables',
|
|
42
|
+
message: 'Variables: {count}',
|
|
43
|
+
values: {
|
|
44
|
+
count
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
assetsCount: (count)=>_({
|
|
48
|
+
id: 'canvas.node_variables_panel.count_assets',
|
|
49
|
+
message: 'Assets: {count}',
|
|
50
|
+
values: {
|
|
51
|
+
count
|
|
52
|
+
}
|
|
53
|
+
}),
|
|
54
|
+
nodesCount: (count)=>_({
|
|
55
|
+
id: 'canvas.node_variables_panel.count_nodes',
|
|
56
|
+
message: 'Nodes: {count}',
|
|
57
|
+
values: {
|
|
58
|
+
count
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
addOutputs: _({
|
|
62
|
+
id: 'canvas.node_variables_panel.add_outputs',
|
|
63
|
+
message: 'Add outputs'
|
|
64
|
+
}),
|
|
65
|
+
addVariables: _({
|
|
66
|
+
id: 'canvas.node_variables_panel.add_variables',
|
|
67
|
+
message: 'Add variables'
|
|
68
|
+
}),
|
|
69
|
+
addAssets: _({
|
|
70
|
+
id: 'canvas.node_variables_panel.add_assets',
|
|
71
|
+
message: 'Add asset'
|
|
72
|
+
}),
|
|
73
|
+
nodeOutputCount: (count)=>_({
|
|
74
|
+
id: 'canvas.node_variables_panel.node_output_count',
|
|
75
|
+
message: 'Outputs: {count}',
|
|
76
|
+
values: {
|
|
77
|
+
count
|
|
78
|
+
}
|
|
79
|
+
}),
|
|
80
|
+
addToNode: _({
|
|
81
|
+
id: 'canvas.node_variables_panel.add_to_node',
|
|
82
|
+
message: 'Add'
|
|
83
|
+
}),
|
|
84
|
+
addFromNode: (label)=>_({
|
|
85
|
+
id: 'canvas.node_variables_panel.add_to_node_label',
|
|
86
|
+
message: 'Add from {label}',
|
|
87
|
+
values: {
|
|
88
|
+
label
|
|
89
|
+
}
|
|
90
|
+
}),
|
|
91
|
+
focusNode: _({
|
|
92
|
+
id: 'canvas.node_variables_panel.focus_node',
|
|
93
|
+
message: 'Focus on node'
|
|
94
|
+
}),
|
|
95
|
+
focusNodeLabel: (label)=>_({
|
|
96
|
+
id: 'canvas.node_variables_panel.focus_node_label',
|
|
97
|
+
message: 'Focus on {label}',
|
|
98
|
+
values: {
|
|
99
|
+
label
|
|
100
|
+
}
|
|
101
|
+
}),
|
|
102
|
+
editVariable: (name)=>_({
|
|
103
|
+
id: 'canvas.node_variables_panel.edit_variable',
|
|
104
|
+
message: 'Edit {name}',
|
|
105
|
+
values: {
|
|
106
|
+
name
|
|
107
|
+
}
|
|
108
|
+
}),
|
|
109
|
+
deleteVariable: (name)=>_({
|
|
110
|
+
id: 'canvas.node_variables_panel.delete_variable',
|
|
111
|
+
message: 'Delete {name}',
|
|
112
|
+
values: {
|
|
113
|
+
name
|
|
114
|
+
}
|
|
115
|
+
}),
|
|
116
|
+
searchPlaceholder: _({
|
|
117
|
+
id: 'canvas.node_variables_panel.search_placeholder',
|
|
118
|
+
message: 'Search variables'
|
|
119
|
+
}),
|
|
120
|
+
noMatches: _({
|
|
121
|
+
id: 'canvas.node_variables_panel.no_matches',
|
|
122
|
+
message: 'No variables match your search.'
|
|
123
|
+
}),
|
|
124
|
+
filterEmpty: _({
|
|
125
|
+
id: 'canvas.node_variables_panel.filter_empty',
|
|
126
|
+
message: 'No variables match this filter.'
|
|
127
|
+
}),
|
|
128
|
+
...Object.fromEntries(Object.entries(overrides ?? {}).filter(([, value])=>void 0 !== value))
|
|
129
|
+
}), [
|
|
130
|
+
_,
|
|
131
|
+
overrides
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
export { useNodeVariablesPanelStrings };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { CopyEvent, DeriveTypeIcon,
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { CopyEvent, DeriveTypeIcon, DeriveTypeLabel, JsonObject, JsonSchema, JsonTreeNode, JsonTreeRowWrapperProps, JsonTreeViewStrings, JsonValue, NodeAction, NodeDecoration, PathForCopy } from '../JsonTree';
|
|
3
3
|
export type NodeVariablesSection = 'inputs' | 'outputs' | 'variables' | 'assets' | 'nodes';
|
|
4
4
|
export type NodeVariablesAddableSection = Extract<NodeVariablesSection, 'outputs' | 'variables' | 'assets'>;
|
|
5
5
|
export declare function isAddableSection(value: string): value is NodeVariablesAddableSection;
|
|
@@ -7,11 +7,12 @@ export interface NodeVariablesRow {
|
|
|
7
7
|
section: NodeVariablesSection;
|
|
8
8
|
nodeId?: string;
|
|
9
9
|
node: JsonTreeNode;
|
|
10
|
+
displayPath: string;
|
|
10
11
|
}
|
|
11
12
|
export interface NodeVariablesFilter {
|
|
12
13
|
id: string;
|
|
13
14
|
label: string;
|
|
14
|
-
predicate
|
|
15
|
+
predicate?: (row: NodeVariablesRow) => boolean;
|
|
15
16
|
emptyMessage?: string;
|
|
16
17
|
}
|
|
17
18
|
export type NodeVariableType = 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
@@ -22,14 +23,6 @@ export interface NodeVariableDetails {
|
|
|
22
23
|
defaultValue?: JsonValue;
|
|
23
24
|
}
|
|
24
25
|
export interface NodeVariablesData {
|
|
25
|
-
schema?: JsonSchema;
|
|
26
|
-
value?: JsonContainer;
|
|
27
|
-
}
|
|
28
|
-
export interface NodeVariablesVariables {
|
|
29
|
-
schema?: JsonSchema;
|
|
30
|
-
value?: JsonObject;
|
|
31
|
-
}
|
|
32
|
-
export interface NodeVariablesAssets {
|
|
33
26
|
schema?: JsonSchema;
|
|
34
27
|
value?: JsonObject;
|
|
35
28
|
}
|
|
@@ -40,11 +33,51 @@ export interface NodeVariablesSource extends NodeVariablesData {
|
|
|
40
33
|
outputCount?: number;
|
|
41
34
|
addable?: boolean;
|
|
42
35
|
}
|
|
36
|
+
export interface NodeVariablesAddState {
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
tooltip?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface NodeVariablesRowWrapperProps extends JsonTreeRowWrapperProps {
|
|
41
|
+
section: NodeVariablesSection;
|
|
42
|
+
nodeId?: string;
|
|
43
|
+
}
|
|
44
|
+
export type NodeVariablesRowWrapper = ComponentType<NodeVariablesRowWrapperProps>;
|
|
45
|
+
export interface NodeVariablesActionContext {
|
|
46
|
+
defaultActions: NodeAction[];
|
|
47
|
+
}
|
|
48
|
+
export interface NodeVariablesPanelStrings {
|
|
49
|
+
sectionInputs: string;
|
|
50
|
+
sectionOutputs: string;
|
|
51
|
+
sectionVariables: string;
|
|
52
|
+
sectionAssets: string;
|
|
53
|
+
sectionNodes: string;
|
|
54
|
+
inputsCount: (count: number) => string;
|
|
55
|
+
outputsCount: (count: number) => string;
|
|
56
|
+
variablesCount: (count: number) => string;
|
|
57
|
+
assetsCount: (count: number) => string;
|
|
58
|
+
nodesCount: (count: number) => string;
|
|
59
|
+
addOutputs: string;
|
|
60
|
+
addVariables: string;
|
|
61
|
+
addAssets: string;
|
|
62
|
+
nodeOutputCount: (count: number) => string;
|
|
63
|
+
addToNode: string;
|
|
64
|
+
addFromNode: (label: string) => string;
|
|
65
|
+
focusNode: string;
|
|
66
|
+
focusNodeLabel: (label: string) => string;
|
|
67
|
+
editVariable: (name: string) => string;
|
|
68
|
+
deleteVariable: (name: string) => string;
|
|
69
|
+
searchPlaceholder: string;
|
|
70
|
+
noMatches: string;
|
|
71
|
+
filterEmpty: string;
|
|
72
|
+
}
|
|
73
|
+
export interface NodeVariablesPanelHandle {
|
|
74
|
+
revealPath: (reference: string) => boolean;
|
|
75
|
+
}
|
|
43
76
|
export interface NodeVariablesPanelProps {
|
|
44
77
|
inputs?: NodeVariablesSource[];
|
|
45
78
|
outputs?: NodeVariablesData;
|
|
46
|
-
variables?:
|
|
47
|
-
assets?:
|
|
79
|
+
variables?: NodeVariablesData;
|
|
80
|
+
assets?: NodeVariablesData;
|
|
48
81
|
nodes?: NodeVariablesSource[];
|
|
49
82
|
outputsBasePath?: string;
|
|
50
83
|
variablesBasePath?: string;
|
|
@@ -52,21 +85,30 @@ export interface NodeVariablesPanelProps {
|
|
|
52
85
|
referencePrefix?: string;
|
|
53
86
|
assetsReferencePrefix?: string;
|
|
54
87
|
pathForCopy?: PathForCopy;
|
|
55
|
-
|
|
88
|
+
expandedSections?: NodeVariablesSection[];
|
|
89
|
+
onExpandedSectionsChange?: (sections: NodeVariablesSection[]) => void;
|
|
56
90
|
filters?: NodeVariablesFilter[];
|
|
57
91
|
activeFilterId?: string | null;
|
|
58
|
-
defaultActiveFilterId?: string | null;
|
|
59
92
|
onActiveFilterChange?: (id: string | null) => void;
|
|
60
93
|
onFocusNode?: (nodeId: string) => void;
|
|
61
94
|
onAdd?: (section: NodeVariablesSection, nodeId?: string) => void;
|
|
95
|
+
addState?: Partial<Record<NodeVariablesAddableSection, NodeVariablesAddState>>;
|
|
62
96
|
isVariableRow?: (row: NodeVariablesRow) => boolean;
|
|
97
|
+
canEdit?: (row: NodeVariablesRow) => boolean;
|
|
98
|
+
canDelete?: (row: NodeVariablesRow) => boolean;
|
|
99
|
+
canCopy?: (row: NodeVariablesRow) => boolean;
|
|
63
100
|
onEditVariable?: (row: NodeVariablesRow, next: NodeVariableDetails) => void;
|
|
64
101
|
onRequestEditVariable?: (row: NodeVariablesRow) => void;
|
|
65
102
|
onDeleteVariable?: (row: NodeVariablesRow) => void;
|
|
66
103
|
onCopy?: (event: CopyEvent) => void;
|
|
104
|
+
decorateNode?: (row: NodeVariablesRow) => NodeDecoration | undefined;
|
|
105
|
+
nodeActions?: (row: NodeVariablesRow, ctx: NodeVariablesActionContext) => NodeAction[] | undefined;
|
|
67
106
|
leading?: ReactNode;
|
|
68
|
-
rowWrapper?:
|
|
107
|
+
rowWrapper?: NodeVariablesRowWrapper;
|
|
69
108
|
deriveTypeIcon?: DeriveTypeIcon;
|
|
109
|
+
deriveTypeLabel?: DeriveTypeLabel;
|
|
110
|
+
strings?: Partial<NodeVariablesPanelStrings>;
|
|
111
|
+
treeStrings?: Partial<JsonTreeViewStrings>;
|
|
70
112
|
children?: ReactNode;
|
|
71
113
|
className?: string;
|
|
72
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeVariablesPanel.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NodeVariablesPanel.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,eAAe,EACf,UAAU,EACV,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,cAAc,EACd,WAAW,EACZ,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAG3F,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,oBAAoB,EACpB,SAAS,GAAG,WAAW,GAAG,QAAQ,CACnC,CAAC;AAaF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAEpF;AAGD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,oBAAoB,CAAC;IAE9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,YAAY,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,OAAO,CAAC;IAE/C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAGpF,MAAM,WAA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ACZ,GAAG,EAAE,gBAAgB,EACrB,GAAG,EAAE,0BAA0B,KAC5B,UAAU,EAAE,GAAG,SAAS,CAAC;IAK9B,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,UAAU,CAAC,EAAE,uBAAuB,CAAC;IAErC,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,eAAe,CAAC,EAAE,eAAe,CAAC;IAKlC,OAAO,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAE7C,WAAW,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { NodeVariablesPanel } from './NodeVariablesPanel';
|
|
2
|
-
export type { NodeVariableDetails, NodeVariablesAddableSection,
|
|
2
|
+
export type { NodeVariableDetails, NodeVariablesActionContext, NodeVariablesAddableSection, NodeVariablesAddState, NodeVariablesData, NodeVariablesFilter, NodeVariablesPanelHandle, NodeVariablesPanelProps, NodeVariablesPanelStrings, NodeVariablesRow, NodeVariablesRowWrapper, NodeVariablesRowWrapperProps, NodeVariablesSection, NodeVariablesSource, NodeVariableType, } from './NodeVariablesPanel.types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EACV,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC"}
|