@uipath/apollo-react 7.5.0 → 7.6.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/NodeVariablesPanel/NodeVariablesPanel.cjs +70 -17
- 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 +70 -17
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.cjs +26 -1
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.d.ts +10 -2
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.d.ts.map +1 -1
- package/dist/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.js +9 -0
- package/dist/canvas/components/NodeVariablesPanel/index.d.ts +1 -1
- package/dist/canvas/components/NodeVariablesPanel/index.d.ts.map +1 -1
- package/dist/canvas/locales/en.cjs +1 -1
- package/dist/canvas/locales/en.d.ts.map +1 -1
- package/dist/canvas/locales/en.js +1 -1
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/headless/hooks/use-suggestions.cjs +2 -1
- package/dist/chat/headless/hooks/use-suggestions.d.ts.map +1 -1
- package/dist/chat/headless/hooks/use-suggestions.js +2 -1
- package/dist/chat/headless/providers/chat-scroll-provider.cjs +13 -0
- package/dist/chat/headless/providers/chat-scroll-provider.d.ts.map +1 -1
- package/dist/chat/headless/providers/chat-scroll-provider.js +13 -0
- package/dist/chat/headless/providers/chat-state-provider.cjs +15 -17
- package/dist/chat/headless/providers/chat-state-provider.d.ts +1 -2
- package/dist/chat/headless/providers/chat-state-provider.d.ts.map +1 -1
- package/dist/chat/headless/providers/chat-state-provider.js +16 -15
- package/dist/chat/headless/providers/chat-width-provider.cjs +10 -6
- package/dist/chat/headless/providers/chat-width-provider.d.ts.map +1 -1
- package/dist/chat/headless/providers/chat-width-provider.js +10 -6
- package/dist/chat/root/ChatRoot.cjs +16 -10
- package/dist/chat/root/ChatRoot.d.ts.map +1 -1
- package/dist/chat/root/ChatRoot.js +16 -10
- package/dist/chat/service/ChatService.cjs +30 -3
- package/dist/chat/service/ChatService.d.ts +5 -0
- package/dist/chat/service/ChatService.d.ts.map +1 -1
- package/dist/chat/service/ChatService.js +30 -3
- package/dist/chat/service/suggestions-state.cjs +44 -0
- package/dist/chat/service/suggestions-state.d.ts +9 -0
- package/dist/chat/service/suggestions-state.d.ts.map +1 -0
- package/dist/chat/service/suggestions-state.js +7 -0
- package/dist/chat/stories/chat-playground.d.ts.map +1 -1
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/dist/material/components/ap-model-picker/ModelTagChip.cjs +9 -3
- package/dist/material/components/ap-model-picker/ModelTagChip.d.ts +1 -0
- package/dist/material/components/ap-model-picker/ModelTagChip.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/ModelTagChip.js +5 -2
- package/dist/material/components/ap-model-picker/locales/de.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/de.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/de.js +1 -1
- package/dist/material/components/ap-model-picker/locales/en.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/en.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/en.js +1 -1
- package/dist/material/components/ap-model-picker/locales/es-MX.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/es-MX.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/es-MX.js +1 -1
- package/dist/material/components/ap-model-picker/locales/es.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/es.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/es.js +1 -1
- package/dist/material/components/ap-model-picker/locales/fr.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/fr.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/fr.js +1 -1
- package/dist/material/components/ap-model-picker/locales/ja.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/ja.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/ja.js +1 -1
- package/dist/material/components/ap-model-picker/locales/ko.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/ko.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/ko.js +1 -1
- package/dist/material/components/ap-model-picker/locales/pt-BR.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/pt-BR.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/pt-BR.js +1 -1
- package/dist/material/components/ap-model-picker/locales/pt.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/pt.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/pt.js +1 -1
- package/dist/material/components/ap-model-picker/locales/ro.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/ro.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/ro.js +1 -1
- package/dist/material/components/ap-model-picker/locales/ru.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/ru.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/ru.js +1 -1
- package/dist/material/components/ap-model-picker/locales/tr.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/tr.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/tr.js +1 -1
- package/dist/material/components/ap-model-picker/locales/zh-CN.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/zh-CN.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/zh-CN.js +1 -1
- package/dist/material/components/ap-model-picker/locales/zh-TW.cjs +1 -1
- package/dist/material/components/ap-model-picker/locales/zh-TW.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/locales/zh-TW.js +1 -1
- package/dist/material/components/ap-model-picker/primitives/ModelOptionRow.cjs +5 -20
- package/dist/material/components/ap-model-picker/primitives/ModelOptionRow.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/primitives/ModelOptionRow.js +5 -20
- package/dist/material/components/ap-model-picker/primitives/ModelTagStrip.cjs +152 -0
- package/dist/material/components/ap-model-picker/primitives/ModelTagStrip.d.ts +8 -0
- package/dist/material/components/ap-model-picker/primitives/ModelTagStrip.d.ts.map +1 -0
- package/dist/material/components/ap-model-picker/primitives/ModelTagStrip.js +108 -0
- package/dist/material/components/ap-model-picker/primitives/PickerTrigger.cjs +5 -10
- package/dist/material/components/ap-model-picker/primitives/PickerTrigger.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/primitives/PickerTrigger.js +5 -10
- package/dist/material/components/ap-model-picker/useVisibleCount.cjs +91 -0
- package/dist/material/components/ap-model-picker/useVisibleCount.d.ts +7 -0
- package/dist/material/components/ap-model-picker/useVisibleCount.d.ts.map +1 -0
- package/dist/material/components/ap-model-picker/useVisibleCount.js +57 -0
- package/package.json +3 -3
|
@@ -31,13 +31,16 @@ const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
|
31
31
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
33
|
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
|
|
34
|
+
const external_icons_index_cjs_namespaceObject = require("../../../icons/index.cjs");
|
|
34
35
|
const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
|
|
35
36
|
const external_JsonTree_index_cjs_namespaceObject = require("../JsonTree/index.cjs");
|
|
36
37
|
const external_NodeVariableEditDialog_cjs_namespaceObject = require("./NodeVariableEditDialog.cjs");
|
|
38
|
+
const external_NodeVariablesPanel_types_cjs_namespaceObject = require("./NodeVariablesPanel.types.cjs");
|
|
37
39
|
const SECTIONS = [
|
|
38
40
|
'inputs',
|
|
39
41
|
'outputs',
|
|
40
42
|
'variables',
|
|
43
|
+
'assets',
|
|
41
44
|
'nodes'
|
|
42
45
|
];
|
|
43
46
|
const isSourceSection = (section)=>'inputs' === section || 'nodes' === section;
|
|
@@ -54,6 +57,10 @@ const SECTION_ICONS = {
|
|
|
54
57
|
Icon: external_lucide_react_namespaceObject.Variable,
|
|
55
58
|
className: 'text-chart-purple'
|
|
56
59
|
},
|
|
60
|
+
assets: {
|
|
61
|
+
Icon: external_icons_index_cjs_namespaceObject.Asset,
|
|
62
|
+
className: 'text-chart-yellow/60'
|
|
63
|
+
},
|
|
57
64
|
nodes: {
|
|
58
65
|
Icon: external_lucide_react_namespaceObject.SquareStack,
|
|
59
66
|
className: 'text-chart-pink'
|
|
@@ -170,6 +177,7 @@ function rowFor(section, node) {
|
|
|
170
177
|
node
|
|
171
178
|
};
|
|
172
179
|
}
|
|
180
|
+
const isTopLevelAsset = ({ section, node })=>'assets' === section && 1 === node.segments.length && 'string' == typeof node.segments[0];
|
|
173
181
|
const isTopLevelVariable = ({ section, node })=>('outputs' === section || 'variables' === section) && 1 === node.segments.length && 'string' == typeof node.segments[0];
|
|
174
182
|
function siblingKeys(tree, targetPath) {
|
|
175
183
|
const keysOf = (nodes)=>new Set(nodes.map((node)=>node.key));
|
|
@@ -185,30 +193,53 @@ function siblingKeys(tree, targetPath) {
|
|
|
185
193
|
}
|
|
186
194
|
return new Set();
|
|
187
195
|
}
|
|
188
|
-
function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outputsBasePath, variablesBasePath, referencePrefix = '$vars', pathForCopy, defaultExpandedSections = [
|
|
196
|
+
function NodeVariablesPanel({ inputs = [], outputs, variables, assets, nodes = [], outputsBasePath, variablesBasePath, assetsBasePath, referencePrefix = '$vars', assetsReferencePrefix = '$assets', pathForCopy, defaultExpandedSections = [
|
|
189
197
|
'nodes'
|
|
190
198
|
], filters, activeFilterId: activeFilterIdProp, defaultActiveFilterId = null, onActiveFilterChange, onFocusNode, onAdd, isVariableRow = isTopLevelVariable, onEditVariable, onRequestEditVariable, onDeleteVariable, onCopy, leading, rowWrapper, deriveTypeIcon, children, className }) {
|
|
191
199
|
const { _ } = (0, index_cjs_namespaceObject.useSafeLingui)();
|
|
200
|
+
const basePaths = (0, external_react_namespaceObject.useMemo)(()=>new Map([
|
|
201
|
+
[
|
|
202
|
+
'outputs',
|
|
203
|
+
outputsBasePath
|
|
204
|
+
],
|
|
205
|
+
[
|
|
206
|
+
'variables',
|
|
207
|
+
variablesBasePath
|
|
208
|
+
],
|
|
209
|
+
[
|
|
210
|
+
'assets',
|
|
211
|
+
assetsBasePath
|
|
212
|
+
]
|
|
213
|
+
]), [
|
|
214
|
+
outputsBasePath,
|
|
215
|
+
variablesBasePath,
|
|
216
|
+
assetsBasePath
|
|
217
|
+
]);
|
|
192
218
|
const trees = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
193
219
|
inputs: buildSourceTree(inputs),
|
|
194
220
|
outputs: (0, external_JsonTree_index_cjs_namespaceObject.buildJsonTree)({
|
|
195
221
|
schema: outputs?.schema,
|
|
196
222
|
value: outputs?.value,
|
|
197
|
-
basePath:
|
|
223
|
+
basePath: basePaths.get('outputs')
|
|
198
224
|
}),
|
|
199
225
|
variables: (0, external_JsonTree_index_cjs_namespaceObject.buildJsonTree)({
|
|
200
226
|
schema: variables?.schema,
|
|
201
227
|
value: variables?.value,
|
|
202
|
-
basePath:
|
|
228
|
+
basePath: basePaths.get('variables')
|
|
229
|
+
}),
|
|
230
|
+
assets: (0, external_JsonTree_index_cjs_namespaceObject.buildJsonTree)({
|
|
231
|
+
schema: assets?.schema,
|
|
232
|
+
value: assets?.value,
|
|
233
|
+
basePath: basePaths.get('assets')
|
|
203
234
|
}),
|
|
204
235
|
nodes: buildSourceTree(nodes)
|
|
205
236
|
}), [
|
|
206
237
|
inputs,
|
|
207
238
|
outputs,
|
|
208
|
-
outputsBasePath,
|
|
209
239
|
variables,
|
|
210
|
-
|
|
211
|
-
nodes
|
|
240
|
+
assets,
|
|
241
|
+
nodes,
|
|
242
|
+
basePaths
|
|
212
243
|
]);
|
|
213
244
|
const sourcesById = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
214
245
|
inputs: new Map(inputs.map((source)=>[
|
|
@@ -228,6 +259,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
228
259
|
inputs: {},
|
|
229
260
|
outputs: {},
|
|
230
261
|
variables: {},
|
|
262
|
+
assets: {},
|
|
231
263
|
nodes: {}
|
|
232
264
|
});
|
|
233
265
|
const collapsed = (0, external_react_namespaceObject.useMemo)(()=>Object.fromEntries(SECTIONS.map((section)=>[
|
|
@@ -255,11 +287,13 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
255
287
|
onActiveFilterChange?.(id);
|
|
256
288
|
};
|
|
257
289
|
const [editing, setEditing] = (0, external_react_namespaceObject.useState)(null);
|
|
258
|
-
const referenceFor = (0, external_react_namespaceObject.useCallback)((path, segments)=>{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
290
|
+
const referenceFor = (0, external_react_namespaceObject.useCallback)((section)=>(path, segments)=>{
|
|
291
|
+
const prefix = 'assets' === section ? assetsReferencePrefix : referencePrefix;
|
|
292
|
+
const prefixed = prefix && path ? `${prefix}${path.startsWith('[') ? '' : '.'}${path}` : path || prefix;
|
|
293
|
+
return pathForCopy ? pathForCopy(prefixed, segments) : prefixed;
|
|
294
|
+
}, [
|
|
262
295
|
referencePrefix,
|
|
296
|
+
assetsReferencePrefix,
|
|
263
297
|
pathForCopy
|
|
264
298
|
]);
|
|
265
299
|
const search = query.trim();
|
|
@@ -344,6 +378,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
344
378
|
inputs: inputs.length,
|
|
345
379
|
outputs: countEntries(trees.outputs),
|
|
346
380
|
variables: countEntries(trees.variables),
|
|
381
|
+
assets: countEntries(trees.assets),
|
|
347
382
|
nodes: nodes.length
|
|
348
383
|
};
|
|
349
384
|
const sectionOpen = (section)=>narrowing || openSections.has(section);
|
|
@@ -441,7 +476,8 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
441
476
|
const actions = [
|
|
442
477
|
...ctx.defaultActions
|
|
443
478
|
];
|
|
444
|
-
|
|
479
|
+
const builtIn = Boolean(onEditVariable) && 'assets' !== row.section;
|
|
480
|
+
if (builtIn || onRequestEditVariable) actions.push({
|
|
445
481
|
id: 'edit-variable',
|
|
446
482
|
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Pencil, {}),
|
|
447
483
|
label: _({
|
|
@@ -451,7 +487,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
451
487
|
name: node.key
|
|
452
488
|
}
|
|
453
489
|
}),
|
|
454
|
-
onSelect: ()=>
|
|
490
|
+
onSelect: ()=>builtIn ? openEditDialog(row) : onRequestEditVariable?.(row)
|
|
455
491
|
});
|
|
456
492
|
if (onDeleteVariable) actions.push({
|
|
457
493
|
id: 'delete-variable',
|
|
@@ -471,16 +507,18 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
471
507
|
const actionsFor = (section)=>(node, ctx)=>{
|
|
472
508
|
if (isSourceSection(section) && 1 === node.segments.length) return sourceActions(section)(node, ctx);
|
|
473
509
|
const row = rowFor(section, node);
|
|
474
|
-
|
|
510
|
+
if (node.isArrayItemTemplate) return ctx.defaultActions;
|
|
511
|
+
if ('assets' === section) return isTopLevelAsset(row) ? variableActions(row, ctx) : ctx.defaultActions;
|
|
512
|
+
return isVariableRow(row) ? variableActions(row, ctx) : ctx.defaultActions;
|
|
475
513
|
};
|
|
476
514
|
const renamedReference = ({ section, node })=>(id)=>{
|
|
477
|
-
const basePath =
|
|
515
|
+
const basePath = basePaths.get(section) ?? '';
|
|
478
516
|
const parentSegments = node.segments.slice(0, -1);
|
|
479
517
|
const path = [
|
|
480
518
|
...parentSegments,
|
|
481
519
|
id
|
|
482
520
|
].reduce(external_JsonTree_index_cjs_namespaceObject.appendPathSegment, basePath);
|
|
483
|
-
return referenceFor(path, [
|
|
521
|
+
return referenceFor(section)(path, [
|
|
484
522
|
...parentSegments,
|
|
485
523
|
id
|
|
486
524
|
]);
|
|
@@ -498,6 +536,10 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
498
536
|
id: 'canvas.node_variables_panel.section_variables',
|
|
499
537
|
message: 'Variables'
|
|
500
538
|
}),
|
|
539
|
+
assets: _({
|
|
540
|
+
id: 'canvas.node_variables_panel.section_assets',
|
|
541
|
+
message: 'Assets'
|
|
542
|
+
}),
|
|
501
543
|
nodes: _({
|
|
502
544
|
id: 'canvas.node_variables_panel.section_nodes',
|
|
503
545
|
message: 'Nodes'
|
|
@@ -525,6 +567,13 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
525
567
|
count
|
|
526
568
|
}
|
|
527
569
|
}),
|
|
570
|
+
assets: _({
|
|
571
|
+
id: 'canvas.node_variables_panel.count_assets',
|
|
572
|
+
message: '{count, plural, one {# asset} other {# assets}}',
|
|
573
|
+
values: {
|
|
574
|
+
count
|
|
575
|
+
}
|
|
576
|
+
}),
|
|
528
577
|
nodes: _({
|
|
529
578
|
id: 'canvas.node_variables_panel.count_nodes',
|
|
530
579
|
message: '{count, plural, one {# node} other {# nodes}}',
|
|
@@ -541,6 +590,10 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
541
590
|
variables: _({
|
|
542
591
|
id: 'canvas.node_variables_panel.add_variables',
|
|
543
592
|
message: 'Add variables'
|
|
593
|
+
}),
|
|
594
|
+
assets: _({
|
|
595
|
+
id: 'canvas.node_variables_panel.add_assets',
|
|
596
|
+
message: 'Add asset'
|
|
544
597
|
})
|
|
545
598
|
})[section];
|
|
546
599
|
const renderTree = (section)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_JsonTree_index_cjs_namespaceObject.JsonTreeView, {
|
|
@@ -555,7 +608,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
555
608
|
rowWrapper: rowWrapper,
|
|
556
609
|
nodeActions: actionsFor(section),
|
|
557
610
|
maxInlineActions: 4,
|
|
558
|
-
pathForCopy: referenceFor,
|
|
611
|
+
pathForCopy: referenceFor(section),
|
|
559
612
|
onCopy: onCopy,
|
|
560
613
|
virtualized: virtualize[section],
|
|
561
614
|
scrollElement: virtualize[section] ? scroller : void 0,
|
|
@@ -567,7 +620,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
567
620
|
const name = sectionName[section];
|
|
568
621
|
const count = totalCount[section];
|
|
569
622
|
const { Icon, className: iconClassName } = SECTION_ICONS[section];
|
|
570
|
-
const addable = (
|
|
623
|
+
const addable = (0, external_NodeVariablesPanel_types_cjs_namespaceObject.isAddableSection)(section) && onAdd ? section : null;
|
|
571
624
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Collapsible, {
|
|
572
625
|
open: open,
|
|
573
626
|
onOpenChange: (next)=>setSectionOpen(section, next),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function NodeVariablesPanel({ inputs, outputs, variables, nodes, outputsBasePath, variablesBasePath, referencePrefix, pathForCopy, defaultExpandedSections, filters, activeFilterId: activeFilterIdProp, defaultActiveFilterId, onActiveFilterChange, onFocusNode, onAdd, isVariableRow, onEditVariable, onRequestEditVariable, onDeleteVariable, onCopy, leading, rowWrapper, deriveTypeIcon, children, className, }: NodeVariablesPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { type NodeVariablesPanelProps } from './NodeVariablesPanel.types';
|
|
2
|
+
export declare function NodeVariablesPanel({ inputs, outputs, variables, assets, nodes, outputsBasePath, variablesBasePath, assetsBasePath, referencePrefix, assetsReferencePrefix, pathForCopy, defaultExpandedSections, filters, activeFilterId: activeFilterIdProp, defaultActiveFilterId, onActiveFilterChange, onFocusNode, onAdd, isVariableRow, onEditVariable, onRequestEditVariable, onDeleteVariable, onCopy, leading, rowWrapper, deriveTypeIcon, children, className, }: NodeVariablesPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=NodeVariablesPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeVariablesPanel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/NodeVariablesPanel.tsx"],"names":[],"mappings":"AA4CA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"NodeVariablesPanel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/NodeVariablesPanel.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAIL,KAAK,uBAAuB,EAK7B,MAAM,4BAA4B,CAAC;AA8PpC,wBAAgB,kBAAkB,CAAC,EACjC,MAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EACN,KAAU,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,eAAyB,EACzB,qBAAiC,EACjC,WAAW,EACX,uBAAmC,EACnC,OAAO,EACP,cAAc,EAAE,kBAAkB,EAClC,qBAA4B,EAC5B,oBAAoB,EACpB,WAAW,EACX,KAAK,EACL,aAAkC,EAClC,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,UAAU,EACV,cAAc,EACd,QAAQ,EACR,SAAS,GACV,EAAE,uBAAuB,2CAgmBzB"}
|
|
@@ -3,13 +3,16 @@ import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger, cn } from
|
|
|
3
3
|
import { ArrowDown, ArrowUp, ChevronDown, MousePointerClick, Pencil, Plus, SquareStack, Trash2, Variable } from "lucide-react";
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { useSafeLingui } from "../../../i18n/index.js";
|
|
6
|
+
import { Asset } from "../../../icons/index.js";
|
|
6
7
|
import { CanvasTooltip } from "../CanvasTooltip.js";
|
|
7
8
|
import { JsonTreeToolbar, JsonTreeView, appendPathSegment, buildJsonTree, collectContainerPaths, flattenJsonTree, isArrayItemTemplateRoot, isPathCollapsed, schemaDisplayType } from "../JsonTree/index.js";
|
|
8
9
|
import { NodeVariableEditDialog } from "./NodeVariableEditDialog.js";
|
|
10
|
+
import { isAddableSection } from "./NodeVariablesPanel.types.js";
|
|
9
11
|
const SECTIONS = [
|
|
10
12
|
'inputs',
|
|
11
13
|
'outputs',
|
|
12
14
|
'variables',
|
|
15
|
+
'assets',
|
|
13
16
|
'nodes'
|
|
14
17
|
];
|
|
15
18
|
const isSourceSection = (section)=>'inputs' === section || 'nodes' === section;
|
|
@@ -26,6 +29,10 @@ const SECTION_ICONS = {
|
|
|
26
29
|
Icon: Variable,
|
|
27
30
|
className: 'text-chart-purple'
|
|
28
31
|
},
|
|
32
|
+
assets: {
|
|
33
|
+
Icon: Asset,
|
|
34
|
+
className: 'text-chart-yellow/60'
|
|
35
|
+
},
|
|
29
36
|
nodes: {
|
|
30
37
|
Icon: SquareStack,
|
|
31
38
|
className: 'text-chart-pink'
|
|
@@ -142,6 +149,7 @@ function rowFor(section, node) {
|
|
|
142
149
|
node
|
|
143
150
|
};
|
|
144
151
|
}
|
|
152
|
+
const isTopLevelAsset = ({ section, node })=>'assets' === section && 1 === node.segments.length && 'string' == typeof node.segments[0];
|
|
145
153
|
const isTopLevelVariable = ({ section, node })=>('outputs' === section || 'variables' === section) && 1 === node.segments.length && 'string' == typeof node.segments[0];
|
|
146
154
|
function siblingKeys(tree, targetPath) {
|
|
147
155
|
const keysOf = (nodes)=>new Set(nodes.map((node)=>node.key));
|
|
@@ -157,30 +165,53 @@ function siblingKeys(tree, targetPath) {
|
|
|
157
165
|
}
|
|
158
166
|
return new Set();
|
|
159
167
|
}
|
|
160
|
-
function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outputsBasePath, variablesBasePath, referencePrefix = '$vars', pathForCopy, defaultExpandedSections = [
|
|
168
|
+
function NodeVariablesPanel({ inputs = [], outputs, variables, assets, nodes = [], outputsBasePath, variablesBasePath, assetsBasePath, referencePrefix = '$vars', assetsReferencePrefix = '$assets', pathForCopy, defaultExpandedSections = [
|
|
161
169
|
'nodes'
|
|
162
170
|
], filters, activeFilterId: activeFilterIdProp, defaultActiveFilterId = null, onActiveFilterChange, onFocusNode, onAdd, isVariableRow = isTopLevelVariable, onEditVariable, onRequestEditVariable, onDeleteVariable, onCopy, leading, rowWrapper, deriveTypeIcon, children, className }) {
|
|
163
171
|
const { _ } = useSafeLingui();
|
|
172
|
+
const basePaths = useMemo(()=>new Map([
|
|
173
|
+
[
|
|
174
|
+
'outputs',
|
|
175
|
+
outputsBasePath
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
'variables',
|
|
179
|
+
variablesBasePath
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
'assets',
|
|
183
|
+
assetsBasePath
|
|
184
|
+
]
|
|
185
|
+
]), [
|
|
186
|
+
outputsBasePath,
|
|
187
|
+
variablesBasePath,
|
|
188
|
+
assetsBasePath
|
|
189
|
+
]);
|
|
164
190
|
const trees = useMemo(()=>({
|
|
165
191
|
inputs: buildSourceTree(inputs),
|
|
166
192
|
outputs: buildJsonTree({
|
|
167
193
|
schema: outputs?.schema,
|
|
168
194
|
value: outputs?.value,
|
|
169
|
-
basePath:
|
|
195
|
+
basePath: basePaths.get('outputs')
|
|
170
196
|
}),
|
|
171
197
|
variables: buildJsonTree({
|
|
172
198
|
schema: variables?.schema,
|
|
173
199
|
value: variables?.value,
|
|
174
|
-
basePath:
|
|
200
|
+
basePath: basePaths.get('variables')
|
|
201
|
+
}),
|
|
202
|
+
assets: buildJsonTree({
|
|
203
|
+
schema: assets?.schema,
|
|
204
|
+
value: assets?.value,
|
|
205
|
+
basePath: basePaths.get('assets')
|
|
175
206
|
}),
|
|
176
207
|
nodes: buildSourceTree(nodes)
|
|
177
208
|
}), [
|
|
178
209
|
inputs,
|
|
179
210
|
outputs,
|
|
180
|
-
outputsBasePath,
|
|
181
211
|
variables,
|
|
182
|
-
|
|
183
|
-
nodes
|
|
212
|
+
assets,
|
|
213
|
+
nodes,
|
|
214
|
+
basePaths
|
|
184
215
|
]);
|
|
185
216
|
const sourcesById = useMemo(()=>({
|
|
186
217
|
inputs: new Map(inputs.map((source)=>[
|
|
@@ -200,6 +231,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
200
231
|
inputs: {},
|
|
201
232
|
outputs: {},
|
|
202
233
|
variables: {},
|
|
234
|
+
assets: {},
|
|
203
235
|
nodes: {}
|
|
204
236
|
});
|
|
205
237
|
const collapsed = useMemo(()=>Object.fromEntries(SECTIONS.map((section)=>[
|
|
@@ -227,11 +259,13 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
227
259
|
onActiveFilterChange?.(id);
|
|
228
260
|
};
|
|
229
261
|
const [editing, setEditing] = useState(null);
|
|
230
|
-
const referenceFor = useCallback((path, segments)=>{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
262
|
+
const referenceFor = useCallback((section)=>(path, segments)=>{
|
|
263
|
+
const prefix = 'assets' === section ? assetsReferencePrefix : referencePrefix;
|
|
264
|
+
const prefixed = prefix && path ? `${prefix}${path.startsWith('[') ? '' : '.'}${path}` : path || prefix;
|
|
265
|
+
return pathForCopy ? pathForCopy(prefixed, segments) : prefixed;
|
|
266
|
+
}, [
|
|
234
267
|
referencePrefix,
|
|
268
|
+
assetsReferencePrefix,
|
|
235
269
|
pathForCopy
|
|
236
270
|
]);
|
|
237
271
|
const search = query.trim();
|
|
@@ -316,6 +350,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
316
350
|
inputs: inputs.length,
|
|
317
351
|
outputs: countEntries(trees.outputs),
|
|
318
352
|
variables: countEntries(trees.variables),
|
|
353
|
+
assets: countEntries(trees.assets),
|
|
319
354
|
nodes: nodes.length
|
|
320
355
|
};
|
|
321
356
|
const sectionOpen = (section)=>narrowing || openSections.has(section);
|
|
@@ -413,7 +448,8 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
413
448
|
const actions = [
|
|
414
449
|
...ctx.defaultActions
|
|
415
450
|
];
|
|
416
|
-
|
|
451
|
+
const builtIn = Boolean(onEditVariable) && 'assets' !== row.section;
|
|
452
|
+
if (builtIn || onRequestEditVariable) actions.push({
|
|
417
453
|
id: 'edit-variable',
|
|
418
454
|
icon: /*#__PURE__*/ jsx(Pencil, {}),
|
|
419
455
|
label: _({
|
|
@@ -423,7 +459,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
423
459
|
name: node.key
|
|
424
460
|
}
|
|
425
461
|
}),
|
|
426
|
-
onSelect: ()=>
|
|
462
|
+
onSelect: ()=>builtIn ? openEditDialog(row) : onRequestEditVariable?.(row)
|
|
427
463
|
});
|
|
428
464
|
if (onDeleteVariable) actions.push({
|
|
429
465
|
id: 'delete-variable',
|
|
@@ -443,16 +479,18 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
443
479
|
const actionsFor = (section)=>(node, ctx)=>{
|
|
444
480
|
if (isSourceSection(section) && 1 === node.segments.length) return sourceActions(section)(node, ctx);
|
|
445
481
|
const row = rowFor(section, node);
|
|
446
|
-
|
|
482
|
+
if (node.isArrayItemTemplate) return ctx.defaultActions;
|
|
483
|
+
if ('assets' === section) return isTopLevelAsset(row) ? variableActions(row, ctx) : ctx.defaultActions;
|
|
484
|
+
return isVariableRow(row) ? variableActions(row, ctx) : ctx.defaultActions;
|
|
447
485
|
};
|
|
448
486
|
const renamedReference = ({ section, node })=>(id)=>{
|
|
449
|
-
const basePath =
|
|
487
|
+
const basePath = basePaths.get(section) ?? '';
|
|
450
488
|
const parentSegments = node.segments.slice(0, -1);
|
|
451
489
|
const path = [
|
|
452
490
|
...parentSegments,
|
|
453
491
|
id
|
|
454
492
|
].reduce(appendPathSegment, basePath);
|
|
455
|
-
return referenceFor(path, [
|
|
493
|
+
return referenceFor(section)(path, [
|
|
456
494
|
...parentSegments,
|
|
457
495
|
id
|
|
458
496
|
]);
|
|
@@ -470,6 +508,10 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
470
508
|
id: 'canvas.node_variables_panel.section_variables',
|
|
471
509
|
message: 'Variables'
|
|
472
510
|
}),
|
|
511
|
+
assets: _({
|
|
512
|
+
id: 'canvas.node_variables_panel.section_assets',
|
|
513
|
+
message: 'Assets'
|
|
514
|
+
}),
|
|
473
515
|
nodes: _({
|
|
474
516
|
id: 'canvas.node_variables_panel.section_nodes',
|
|
475
517
|
message: 'Nodes'
|
|
@@ -497,6 +539,13 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
497
539
|
count
|
|
498
540
|
}
|
|
499
541
|
}),
|
|
542
|
+
assets: _({
|
|
543
|
+
id: 'canvas.node_variables_panel.count_assets',
|
|
544
|
+
message: '{count, plural, one {# asset} other {# assets}}',
|
|
545
|
+
values: {
|
|
546
|
+
count
|
|
547
|
+
}
|
|
548
|
+
}),
|
|
500
549
|
nodes: _({
|
|
501
550
|
id: 'canvas.node_variables_panel.count_nodes',
|
|
502
551
|
message: '{count, plural, one {# node} other {# nodes}}',
|
|
@@ -513,6 +562,10 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
513
562
|
variables: _({
|
|
514
563
|
id: 'canvas.node_variables_panel.add_variables',
|
|
515
564
|
message: 'Add variables'
|
|
565
|
+
}),
|
|
566
|
+
assets: _({
|
|
567
|
+
id: 'canvas.node_variables_panel.add_assets',
|
|
568
|
+
message: 'Add asset'
|
|
516
569
|
})
|
|
517
570
|
})[section];
|
|
518
571
|
const renderTree = (section)=>/*#__PURE__*/ jsx(JsonTreeView, {
|
|
@@ -527,7 +580,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
527
580
|
rowWrapper: rowWrapper,
|
|
528
581
|
nodeActions: actionsFor(section),
|
|
529
582
|
maxInlineActions: 4,
|
|
530
|
-
pathForCopy: referenceFor,
|
|
583
|
+
pathForCopy: referenceFor(section),
|
|
531
584
|
onCopy: onCopy,
|
|
532
585
|
virtualized: virtualize[section],
|
|
533
586
|
scrollElement: virtualize[section] ? scroller : void 0,
|
|
@@ -539,7 +592,7 @@ function NodeVariablesPanel({ inputs = [], outputs, variables, nodes = [], outpu
|
|
|
539
592
|
const name = sectionName[section];
|
|
540
593
|
const count = totalCount[section];
|
|
541
594
|
const { Icon, className: iconClassName } = SECTION_ICONS[section];
|
|
542
|
-
const addable = (
|
|
595
|
+
const addable = isAddableSection(section) && onAdd ? section : null;
|
|
543
596
|
return /*#__PURE__*/ jsx(Collapsible, {
|
|
544
597
|
open: open,
|
|
545
598
|
onOpenChange: (next)=>setSectionOpen(section, next),
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
})();
|
|
3
14
|
(()=>{
|
|
4
15
|
__webpack_require__.r = (exports1)=>{
|
|
5
16
|
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
@@ -12,7 +23,21 @@ var __webpack_require__ = {};
|
|
|
12
23
|
})();
|
|
13
24
|
var __webpack_exports__ = {};
|
|
14
25
|
__webpack_require__.r(__webpack_exports__);
|
|
15
|
-
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
isAddableSection: ()=>isAddableSection
|
|
28
|
+
});
|
|
29
|
+
const ADDABLE_SECTIONS = {
|
|
30
|
+
outputs: true,
|
|
31
|
+
variables: true,
|
|
32
|
+
assets: true
|
|
33
|
+
};
|
|
34
|
+
function isAddableSection(value) {
|
|
35
|
+
return Object.hasOwn(ADDABLE_SECTIONS, value);
|
|
36
|
+
}
|
|
37
|
+
exports.isAddableSection = __webpack_exports__.isAddableSection;
|
|
38
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
39
|
+
"isAddableSection"
|
|
40
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
16
41
|
Object.defineProperty(exports, '__esModule', {
|
|
17
42
|
value: true
|
|
18
43
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { CopyEvent, DeriveTypeIcon, JsonContainer, JsonObject, JsonSchema, JsonTreeNode, JsonTreeRowWrapper, JsonValue, PathForCopy } from '../JsonTree';
|
|
3
|
-
export type NodeVariablesSection = 'inputs' | 'outputs' | 'variables' | 'nodes';
|
|
4
|
-
export type NodeVariablesAddableSection = Extract<NodeVariablesSection, 'outputs' | 'variables'>;
|
|
3
|
+
export type NodeVariablesSection = 'inputs' | 'outputs' | 'variables' | 'assets' | 'nodes';
|
|
4
|
+
export type NodeVariablesAddableSection = Extract<NodeVariablesSection, 'outputs' | 'variables' | 'assets'>;
|
|
5
|
+
export declare function isAddableSection(value: string): value is NodeVariablesAddableSection;
|
|
5
6
|
export interface NodeVariablesRow {
|
|
6
7
|
section: NodeVariablesSection;
|
|
7
8
|
nodeId?: string;
|
|
@@ -28,6 +29,10 @@ export interface NodeVariablesVariables {
|
|
|
28
29
|
schema?: JsonSchema;
|
|
29
30
|
value?: JsonObject;
|
|
30
31
|
}
|
|
32
|
+
export interface NodeVariablesAssets {
|
|
33
|
+
schema?: JsonSchema;
|
|
34
|
+
value?: JsonObject;
|
|
35
|
+
}
|
|
31
36
|
export interface NodeVariablesSource extends NodeVariablesData {
|
|
32
37
|
id: string;
|
|
33
38
|
label: string;
|
|
@@ -39,10 +44,13 @@ export interface NodeVariablesPanelProps {
|
|
|
39
44
|
inputs?: NodeVariablesSource[];
|
|
40
45
|
outputs?: NodeVariablesData;
|
|
41
46
|
variables?: NodeVariablesVariables;
|
|
47
|
+
assets?: NodeVariablesAssets;
|
|
42
48
|
nodes?: NodeVariablesSource[];
|
|
43
49
|
outputsBasePath?: string;
|
|
44
50
|
variablesBasePath?: string;
|
|
51
|
+
assetsBasePath?: string;
|
|
45
52
|
referencePrefix?: string;
|
|
53
|
+
assetsReferencePrefix?: string;
|
|
46
54
|
pathForCopy?: PathForCopy;
|
|
47
55
|
defaultExpandedSections?: NodeVariablesSection[];
|
|
48
56
|
filters?: NodeVariablesFilter[];
|
|
@@ -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;AACvC,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,UAAU,EACV,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,WAAW,EACZ,MAAM,aAAa,CAAC;AAGrB,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NodeVariablesPanel.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeVariablesPanel/NodeVariablesPanel.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { NodeVariablesPanel } from './NodeVariablesPanel';
|
|
2
|
-
export type { NodeVariableDetails, NodeVariablesAddableSection, NodeVariablesData, NodeVariablesFilter, NodeVariablesPanelProps, NodeVariablesRow, NodeVariablesSection, NodeVariablesSource, NodeVariablesVariables, NodeVariableType, } from './NodeVariablesPanel.types';
|
|
2
|
+
export type { NodeVariableDetails, NodeVariablesAddableSection, NodeVariablesAssets, NodeVariablesData, NodeVariablesFilter, NodeVariablesPanelProps, NodeVariablesRow, NodeVariablesSection, NodeVariablesSource, NodeVariablesVariables, 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,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC"}
|
|
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,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC"}
|