@uipath/apollo-react 4.44.1 → 4.45.1
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/NodePropertiesPanel/NodePropertiesPanel.cjs +14 -13
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.js +12 -11
- package/dist/canvas/components/NodePropertiesPanel/fields/CheckboxField.cjs +14 -16
- package/dist/canvas/components/NodePropertiesPanel/fields/CheckboxField.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/fields/CheckboxField.js +14 -16
- package/dist/canvas/components/NodePropertiesPanel/fields/NumberField.cjs +18 -16
- package/dist/canvas/components/NodePropertiesPanel/fields/NumberField.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/fields/NumberField.js +18 -16
- package/dist/canvas/components/NodePropertiesPanel/fields/SelectField.cjs +40 -22
- package/dist/canvas/components/NodePropertiesPanel/fields/SelectField.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/fields/SelectField.js +40 -22
- package/dist/canvas/components/NodePropertiesPanel/fields/TextField.cjs +24 -20
- package/dist/canvas/components/NodePropertiesPanel/fields/TextField.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/fields/TextField.js +24 -20
- package/dist/canvas/components/NodePropertiesPanel/index.cjs +12 -55
- package/dist/canvas/components/NodePropertiesPanel/index.d.ts +0 -1
- package/dist/canvas/components/NodePropertiesPanel/index.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/index.js +0 -1
- package/dist/canvas/components/index.cjs +2 -2
- package/dist/canvas/controls/NodePropertyTrigger/NodePropertyTrigger.cjs +395 -0
- package/dist/canvas/controls/NodePropertyTrigger/NodePropertyTrigger.d.ts +57 -0
- package/dist/canvas/controls/NodePropertyTrigger/NodePropertyTrigger.d.ts.map +1 -0
- package/dist/canvas/controls/NodePropertyTrigger/NodePropertyTrigger.js +349 -0
- package/dist/canvas/controls/NodePropertyTrigger/index.cjs +48 -0
- package/dist/canvas/controls/NodePropertyTrigger/index.d.ts +3 -0
- package/dist/canvas/controls/NodePropertyTrigger/index.d.ts.map +1 -0
- package/dist/canvas/controls/NodePropertyTrigger/index.js +2 -0
- package/dist/canvas/controls/index.cjs +18 -2
- package/dist/canvas/controls/index.d.ts +2 -0
- package/dist/canvas/controls/index.d.ts.map +1 -1
- package/dist/canvas/controls/index.js +2 -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/package.json +1 -1
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.cjs +0 -284
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.d.ts +0 -69
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.d.ts.map +0 -1
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.styles.js +0 -195
|
@@ -27,9 +27,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
TextField: ()=>TextField_TextField
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
30
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
-
const
|
|
32
|
+
const inputBase = 'w-full px-3 py-2 text-[13px] font-mono border border-(--canvas-border) rounded bg-(--canvas-background) text-(--canvas-foreground) outline-none transition-colors placeholder:text-(--canvas-foreground-de-emp) focus:border-(--canvas-primary) disabled:opacity-50 disabled:cursor-not-allowed';
|
|
33
33
|
const TextField_TextField = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(function({ field, value, onChange, error }) {
|
|
34
34
|
const [localValue, setLocalValue] = (0, external_react_namespaceObject.useState)(value || '');
|
|
35
35
|
const debounceTimer = (0, external_react_namespaceObject.useRef)(null);
|
|
@@ -61,43 +61,47 @@ const TextField_TextField = /*#__PURE__*/ (0, external_react_namespaceObject.mem
|
|
|
61
61
|
field.debounce,
|
|
62
62
|
onChange
|
|
63
63
|
]);
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
const inputId = `field-${field.key}`;
|
|
65
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
66
|
+
className: "flex flex-col gap-1",
|
|
66
67
|
children: [
|
|
67
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
68
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("label", {
|
|
69
|
+
htmlFor: inputId,
|
|
70
|
+
className: "text-[13px] text-(--canvas-foreground-de-emp)",
|
|
68
71
|
children: field.label
|
|
69
72
|
}),
|
|
70
|
-
'textarea' === field.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
71
|
-
|
|
73
|
+
'textarea' === field.type ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
|
|
74
|
+
id: inputId,
|
|
75
|
+
className: (0, apollo_wind_namespaceObject.cn)('nodrag resize-y', inputBase, error && 'border-(--canvas-error)'),
|
|
72
76
|
value: localValue,
|
|
73
77
|
onChange: handleChange,
|
|
74
78
|
placeholder: field.placeholder,
|
|
75
79
|
disabled: field.disabled,
|
|
76
|
-
rows: field.rows || 3
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
rows: field.rows || 3
|
|
81
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
82
|
+
className: "flex items-center gap-2",
|
|
79
83
|
children: [
|
|
80
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
81
|
-
|
|
84
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
|
|
85
|
+
id: inputId,
|
|
86
|
+
className: (0, apollo_wind_namespaceObject.cn)('nodrag flex-1', inputBase, error && 'border-(--canvas-error)'),
|
|
82
87
|
type: "text",
|
|
83
88
|
value: localValue,
|
|
84
89
|
onChange: handleChange,
|
|
85
90
|
placeholder: field.placeholder,
|
|
86
|
-
disabled: field.disabled
|
|
87
|
-
hasError: !!error,
|
|
88
|
-
style: {
|
|
89
|
-
flex: 1
|
|
90
|
-
}
|
|
91
|
+
disabled: field.disabled
|
|
91
92
|
}),
|
|
92
|
-
field.suffix && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
93
|
+
field.suffix && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
94
|
+
className: "shrink-0 text-[13px] text-(--canvas-foreground-de-emp) whitespace-nowrap",
|
|
93
95
|
children: field.suffix
|
|
94
96
|
})
|
|
95
97
|
]
|
|
96
98
|
}),
|
|
97
|
-
field.helpText && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
99
|
+
field.helpText && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
100
|
+
className: "text-[12px] text-(--canvas-foreground-de-emp) block",
|
|
98
101
|
children: field.helpText
|
|
99
102
|
}),
|
|
100
|
-
error && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
103
|
+
error && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
104
|
+
className: "text-[12px] text-(--canvas-error-text) block",
|
|
101
105
|
children: error
|
|
102
106
|
})
|
|
103
107
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/TextField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/NodePropertiesPanel/fields/TextField.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,UAAU,cAAc;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD,eAAO,MAAM,SAAS,sDAwFpB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "@uipath/apollo-wind";
|
|
3
3
|
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
-
|
|
4
|
+
const inputBase = 'w-full px-3 py-2 text-[13px] font-mono border border-(--canvas-border) rounded bg-(--canvas-background) text-(--canvas-foreground) outline-none transition-colors placeholder:text-(--canvas-foreground-de-emp) focus:border-(--canvas-primary) disabled:opacity-50 disabled:cursor-not-allowed';
|
|
5
5
|
const TextField_TextField = /*#__PURE__*/ memo(function({ field, value, onChange, error }) {
|
|
6
6
|
const [localValue, setLocalValue] = useState(value || '');
|
|
7
7
|
const debounceTimer = useRef(null);
|
|
@@ -33,43 +33,47 @@ const TextField_TextField = /*#__PURE__*/ memo(function({ field, value, onChange
|
|
|
33
33
|
field.debounce,
|
|
34
34
|
onChange
|
|
35
35
|
]);
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const inputId = `field-${field.key}`;
|
|
37
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
38
|
+
className: "flex flex-col gap-1",
|
|
38
39
|
children: [
|
|
39
|
-
/*#__PURE__*/ jsx(
|
|
40
|
+
/*#__PURE__*/ jsx("label", {
|
|
41
|
+
htmlFor: inputId,
|
|
42
|
+
className: "text-[13px] text-(--canvas-foreground-de-emp)",
|
|
40
43
|
children: field.label
|
|
41
44
|
}),
|
|
42
|
-
'textarea' === field.type ? /*#__PURE__*/ jsx(
|
|
43
|
-
|
|
45
|
+
'textarea' === field.type ? /*#__PURE__*/ jsx("textarea", {
|
|
46
|
+
id: inputId,
|
|
47
|
+
className: cn('nodrag resize-y', inputBase, error && 'border-(--canvas-error)'),
|
|
44
48
|
value: localValue,
|
|
45
49
|
onChange: handleChange,
|
|
46
50
|
placeholder: field.placeholder,
|
|
47
51
|
disabled: field.disabled,
|
|
48
|
-
rows: field.rows || 3
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
rows: field.rows || 3
|
|
53
|
+
}) : /*#__PURE__*/ jsxs("div", {
|
|
54
|
+
className: "flex items-center gap-2",
|
|
51
55
|
children: [
|
|
52
|
-
/*#__PURE__*/ jsx(
|
|
53
|
-
|
|
56
|
+
/*#__PURE__*/ jsx("input", {
|
|
57
|
+
id: inputId,
|
|
58
|
+
className: cn('nodrag flex-1', inputBase, error && 'border-(--canvas-error)'),
|
|
54
59
|
type: "text",
|
|
55
60
|
value: localValue,
|
|
56
61
|
onChange: handleChange,
|
|
57
62
|
placeholder: field.placeholder,
|
|
58
|
-
disabled: field.disabled
|
|
59
|
-
hasError: !!error,
|
|
60
|
-
style: {
|
|
61
|
-
flex: 1
|
|
62
|
-
}
|
|
63
|
+
disabled: field.disabled
|
|
63
64
|
}),
|
|
64
|
-
field.suffix && /*#__PURE__*/ jsx(
|
|
65
|
+
field.suffix && /*#__PURE__*/ jsx("span", {
|
|
66
|
+
className: "shrink-0 text-[13px] text-(--canvas-foreground-de-emp) whitespace-nowrap",
|
|
65
67
|
children: field.suffix
|
|
66
68
|
})
|
|
67
69
|
]
|
|
68
70
|
}),
|
|
69
|
-
field.helpText && /*#__PURE__*/ jsx(
|
|
71
|
+
field.helpText && /*#__PURE__*/ jsx("span", {
|
|
72
|
+
className: "text-[12px] text-(--canvas-foreground-de-emp) block",
|
|
70
73
|
children: field.helpText
|
|
71
74
|
}),
|
|
72
|
-
error && /*#__PURE__*/ jsx(
|
|
75
|
+
error && /*#__PURE__*/ jsx("span", {
|
|
76
|
+
className: "text-[12px] text-(--canvas-error-text) block",
|
|
73
77
|
children: error
|
|
74
78
|
})
|
|
75
79
|
]
|
|
@@ -1,34 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
"./NodePropertiesPanel?2c94" (module) {
|
|
4
|
-
module.exports = require("./NodePropertiesPanel.cjs");
|
|
5
|
-
},
|
|
6
|
-
"./NodePropertiesPanel.styles" (module) {
|
|
7
|
-
module.exports = require("./NodePropertiesPanel.styles.cjs");
|
|
8
|
-
},
|
|
9
|
-
"./schemas" (module) {
|
|
10
|
-
module.exports = require("./schemas.cjs");
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
var __webpack_module_cache__ = {};
|
|
14
|
-
function __webpack_require__(moduleId) {
|
|
15
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
16
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
17
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
18
|
-
exports: {}
|
|
19
|
-
};
|
|
20
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
21
|
-
return module.exports;
|
|
22
|
-
}
|
|
23
|
-
(()=>{
|
|
24
|
-
__webpack_require__.n = (module)=>{
|
|
25
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
26
|
-
__webpack_require__.d(getter, {
|
|
27
|
-
a: getter
|
|
28
|
-
});
|
|
29
|
-
return getter;
|
|
30
|
-
};
|
|
31
|
-
})();
|
|
2
|
+
var __webpack_require__ = {};
|
|
32
3
|
(()=>{
|
|
33
4
|
__webpack_require__.d = (exports1, definition)=>{
|
|
34
5
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
@@ -51,31 +22,17 @@ function __webpack_require__(moduleId) {
|
|
|
51
22
|
};
|
|
52
23
|
})();
|
|
53
24
|
var __webpack_exports__ = {};
|
|
54
|
-
(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var _NodePropertiesPanel_styles__rspack_import_1 = __webpack_require__("./NodePropertiesPanel.styles");
|
|
66
|
-
var __rspack_reexport = {};
|
|
67
|
-
for(const __rspack_import_key in _NodePropertiesPanel_styles__rspack_import_1)if ([
|
|
68
|
-
"NodePropertiesPanel",
|
|
69
|
-
"agentNodeSchema",
|
|
70
|
-
"artifactNodeSchema",
|
|
71
|
-
"default",
|
|
72
|
-
"nodeSchemas",
|
|
73
|
-
"stageNodeSchema",
|
|
74
|
-
"defaultNodeSchema"
|
|
75
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_NodePropertiesPanel_styles__rspack_import_1[__rspack_import_key];
|
|
76
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
77
|
-
var _schemas__rspack_import_2 = __webpack_require__("./schemas");
|
|
78
|
-
})();
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
NodePropertiesPanel: ()=>external_NodePropertiesPanel_cjs_namespaceObject.NodePropertiesPanel,
|
|
28
|
+
agentNodeSchema: ()=>external_schemas_cjs_namespaceObject.agentNodeSchema,
|
|
29
|
+
artifactNodeSchema: ()=>external_schemas_cjs_namespaceObject.artifactNodeSchema,
|
|
30
|
+
nodeSchemas: ()=>external_schemas_cjs_namespaceObject.nodeSchemas,
|
|
31
|
+
stageNodeSchema: ()=>external_schemas_cjs_namespaceObject.stageNodeSchema,
|
|
32
|
+
defaultNodeSchema: ()=>external_schemas_cjs_namespaceObject.defaultNodeSchema
|
|
33
|
+
});
|
|
34
|
+
const external_NodePropertiesPanel_cjs_namespaceObject = require("./NodePropertiesPanel.cjs");
|
|
35
|
+
const external_schemas_cjs_namespaceObject = require("./schemas.cjs");
|
|
79
36
|
exports.NodePropertiesPanel = __webpack_exports__.NodePropertiesPanel;
|
|
80
37
|
exports.agentNodeSchema = __webpack_exports__.agentNodeSchema;
|
|
81
38
|
exports.artifactNodeSchema = __webpack_exports__.artifactNodeSchema;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { NodePropertiesPanel } from './NodePropertiesPanel';
|
|
2
|
-
export * from './NodePropertiesPanel.styles';
|
|
3
2
|
export type { AgentNodeConfig, ConfigField, ConfigSection, ConfigurableNode, FieldType, NodeConfigData, NodeConfigSchema, NodePropertiesPanelProps, SelectOption, StageNodeConfig, ValidationRule, } from './NodePropertiesPanel.types';
|
|
4
3
|
export { agentNodeSchema, artifactNodeSchema, defaultNodeSchema, nodeSchemas, stageNodeSchema, } from './schemas';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertiesPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertiesPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,eAAe,EACf,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,eAAe,GAChB,MAAM,WAAW,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { NodePropertiesPanel } from "./NodePropertiesPanel.js";
|
|
2
2
|
import { agentNodeSchema, artifactNodeSchema, defaultNodeSchema, nodeSchemas, stageNodeSchema } from "./schemas.js";
|
|
3
|
-
export * from "./NodePropertiesPanel.styles.js";
|
|
4
3
|
export { NodePropertiesPanel, agentNodeSchema, artifactNodeSchema, defaultNodeSchema, nodeSchemas, stageNodeSchema };
|
|
@@ -57,7 +57,7 @@ var __webpack_modules__ = {
|
|
|
57
57
|
"./NodeInspector" (module) {
|
|
58
58
|
module.exports = require("./NodeInspector.cjs");
|
|
59
59
|
},
|
|
60
|
-
"./NodePropertiesPanel
|
|
60
|
+
"./NodePropertiesPanel" (module) {
|
|
61
61
|
module.exports = require("./NodePropertiesPanel/index.cjs");
|
|
62
62
|
},
|
|
63
63
|
"./StageNode" (module) {
|
|
@@ -201,7 +201,7 @@ var __webpack_exports__ = {};
|
|
|
201
201
|
var __rspack_reexport = {};
|
|
202
202
|
for(const __rspack_import_key in _NodeInspector__rspack_import_18)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_NodeInspector__rspack_import_18[__rspack_import_key];
|
|
203
203
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
204
|
-
var _NodePropertiesPanel__rspack_import_19 = __webpack_require__("./NodePropertiesPanel
|
|
204
|
+
var _NodePropertiesPanel__rspack_import_19 = __webpack_require__("./NodePropertiesPanel");
|
|
205
205
|
var __rspack_reexport = {};
|
|
206
206
|
for(const __rspack_import_key in _NodePropertiesPanel__rspack_import_19)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_NodePropertiesPanel__rspack_import_19[__rspack_import_key];
|
|
207
207
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|