@uipath/apollo-wind 2.49.0 → 2.50.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/components/ui/index.cjs +14 -14
- package/dist/components/ui/prompt-editor/components/EditorToolbar.cjs +21 -56
- package/dist/components/ui/prompt-editor/components/EditorToolbar.d.ts +2 -4
- package/dist/components/ui/prompt-editor/components/EditorToolbar.js +21 -56
- package/dist/components/ui/prompt-editor/prompt-editor-config.cjs +0 -1
- package/dist/components/ui/prompt-editor/prompt-editor-config.d.ts +0 -1
- package/dist/components/ui/prompt-editor/prompt-editor-config.js +0 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ var __webpack_modules__ = {
|
|
|
39
39
|
"@/components/ui/checkbox" (module) {
|
|
40
40
|
module.exports = require("./checkbox.cjs");
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"./collapsible" (module) {
|
|
43
43
|
module.exports = require("./collapsible.cjs");
|
|
44
44
|
},
|
|
45
45
|
"./combobox" (module) {
|
|
@@ -48,7 +48,7 @@ var __webpack_modules__ = {
|
|
|
48
48
|
"@/components/ui/command" (module) {
|
|
49
49
|
module.exports = require("./command.cjs");
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"./context-menu" (module) {
|
|
52
52
|
module.exports = require("./context-menu.cjs");
|
|
53
53
|
},
|
|
54
54
|
"./data-table" (module) {
|
|
@@ -60,13 +60,13 @@ var __webpack_modules__ = {
|
|
|
60
60
|
"./datetime-picker" (module) {
|
|
61
61
|
module.exports = require("./datetime-picker.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/dialog" (module) {
|
|
64
64
|
module.exports = require("./dialog.cjs");
|
|
65
65
|
},
|
|
66
66
|
"./drawer" (module) {
|
|
67
67
|
module.exports = require("./drawer.cjs");
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"./dropdown-menu" (module) {
|
|
70
70
|
module.exports = require("./dropdown-menu.cjs");
|
|
71
71
|
},
|
|
72
72
|
"@/components/ui/editable-cell" (module) {
|
|
@@ -81,7 +81,7 @@ var __webpack_modules__ = {
|
|
|
81
81
|
"./form-field" (module) {
|
|
82
82
|
module.exports = require("./form-field.cjs");
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"./hover-card" (module) {
|
|
85
85
|
module.exports = require("./hover-card.cjs");
|
|
86
86
|
},
|
|
87
87
|
"@/components/ui/input-group" (module) {
|
|
@@ -90,7 +90,7 @@ var __webpack_modules__ = {
|
|
|
90
90
|
"@/components/ui/input" (module) {
|
|
91
91
|
module.exports = require("./input.cjs");
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"@/components/ui/label" (module) {
|
|
94
94
|
module.exports = require("./label.cjs");
|
|
95
95
|
},
|
|
96
96
|
"./layout" (module) {
|
|
@@ -171,7 +171,7 @@ var __webpack_modules__ = {
|
|
|
171
171
|
"./toggle-group" (module) {
|
|
172
172
|
module.exports = require("./toggle-group.cjs");
|
|
173
173
|
},
|
|
174
|
-
"
|
|
174
|
+
"./toggle" (module) {
|
|
175
175
|
module.exports = require("./toggle.cjs");
|
|
176
176
|
},
|
|
177
177
|
"./tooltip" (module) {
|
|
@@ -321,7 +321,7 @@ var __webpack_exports__ = {};
|
|
|
321
321
|
"default"
|
|
322
322
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_12[__rspack_import_key];
|
|
323
323
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
324
|
-
var _collapsible__rspack_import_13 = __webpack_require__("
|
|
324
|
+
var _collapsible__rspack_import_13 = __webpack_require__("./collapsible");
|
|
325
325
|
var __rspack_reexport = {};
|
|
326
326
|
for(const __rspack_import_key in _collapsible__rspack_import_13)if ([
|
|
327
327
|
"TreeView",
|
|
@@ -342,7 +342,7 @@ var __webpack_exports__ = {};
|
|
|
342
342
|
"default"
|
|
343
343
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_15[__rspack_import_key];
|
|
344
344
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
345
|
-
var _context_menu__rspack_import_16 = __webpack_require__("
|
|
345
|
+
var _context_menu__rspack_import_16 = __webpack_require__("./context-menu");
|
|
346
346
|
var __rspack_reexport = {};
|
|
347
347
|
for(const __rspack_import_key in _context_menu__rspack_import_16)if ([
|
|
348
348
|
"TreeView",
|
|
@@ -370,7 +370,7 @@ var __webpack_exports__ = {};
|
|
|
370
370
|
"default"
|
|
371
371
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_19[__rspack_import_key];
|
|
372
372
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
373
|
-
var _dialog__rspack_import_20 = __webpack_require__("
|
|
373
|
+
var _dialog__rspack_import_20 = __webpack_require__("@/components/ui/dialog");
|
|
374
374
|
var __rspack_reexport = {};
|
|
375
375
|
for(const __rspack_import_key in _dialog__rspack_import_20)if ([
|
|
376
376
|
"TreeView",
|
|
@@ -384,7 +384,7 @@ var __webpack_exports__ = {};
|
|
|
384
384
|
"default"
|
|
385
385
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_drawer__rspack_import_21[__rspack_import_key];
|
|
386
386
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
387
|
-
var _dropdown_menu__rspack_import_22 = __webpack_require__("
|
|
387
|
+
var _dropdown_menu__rspack_import_22 = __webpack_require__("./dropdown-menu");
|
|
388
388
|
var __rspack_reexport = {};
|
|
389
389
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_22)if ([
|
|
390
390
|
"TreeView",
|
|
@@ -419,7 +419,7 @@ var __webpack_exports__ = {};
|
|
|
419
419
|
"default"
|
|
420
420
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_file_upload__rspack_import_26[__rspack_import_key];
|
|
421
421
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
422
|
-
var _hover_card__rspack_import_27 = __webpack_require__("
|
|
422
|
+
var _hover_card__rspack_import_27 = __webpack_require__("./hover-card");
|
|
423
423
|
var __rspack_reexport = {};
|
|
424
424
|
for(const __rspack_import_key in _hover_card__rspack_import_27)if ([
|
|
425
425
|
"TreeView",
|
|
@@ -440,7 +440,7 @@ var __webpack_exports__ = {};
|
|
|
440
440
|
"default"
|
|
441
441
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input_group__rspack_import_29[__rspack_import_key];
|
|
442
442
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
443
|
-
var _label__rspack_import_30 = __webpack_require__("
|
|
443
|
+
var _label__rspack_import_30 = __webpack_require__("@/components/ui/label");
|
|
444
444
|
var __rspack_reexport = {};
|
|
445
445
|
for(const __rspack_import_key in _label__rspack_import_30)if ([
|
|
446
446
|
"TreeView",
|
|
@@ -622,7 +622,7 @@ var __webpack_exports__ = {};
|
|
|
622
622
|
"default"
|
|
623
623
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_textarea__rspack_import_55[__rspack_import_key];
|
|
624
624
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
625
|
-
var _toggle__rspack_import_56 = __webpack_require__("
|
|
625
|
+
var _toggle__rspack_import_56 = __webpack_require__("./toggle");
|
|
626
626
|
var __rspack_reexport = {};
|
|
627
627
|
for(const __rspack_import_key in _toggle__rspack_import_56)if ([
|
|
628
628
|
"TreeView",
|
|
@@ -105,17 +105,6 @@ const EditorToolbar = ({ mode, onModeChange, disabled, error, actionsRef, onFull
|
|
|
105
105
|
label: strings.bulletedList,
|
|
106
106
|
disabled: disabled || !isEditMode,
|
|
107
107
|
onClick: handleFormat('formatBulletedList')
|
|
108
|
-
}),
|
|
109
|
-
onFullscreen && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
110
|
-
children: [
|
|
111
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToolbarSeparator, {}),
|
|
112
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToolbarButton, {
|
|
113
|
-
icon: external_lucide_react_namespaceObject.Maximize2,
|
|
114
|
-
label: strings.expand,
|
|
115
|
-
disabled: disabled,
|
|
116
|
-
onClick: onFullscreen
|
|
117
|
-
})
|
|
118
|
-
]
|
|
119
108
|
})
|
|
120
109
|
]
|
|
121
110
|
});
|
|
@@ -128,57 +117,33 @@ const EditorToolbar = ({ mode, onModeChange, disabled, error, actionsRef, onFull
|
|
|
128
117
|
"data-testid": "editor-toolbar-separator",
|
|
129
118
|
className: "pointer-events-none absolute bottom-0 left-0 h-px w-full bg-border/40"
|
|
130
119
|
}),
|
|
131
|
-
|
|
120
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
121
|
+
className: "flex items-center gap-0.5 overflow-hidden",
|
|
122
|
+
children: formattingCluster
|
|
123
|
+
}),
|
|
124
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
125
|
+
className: "flex shrink-0 items-center gap-0.5",
|
|
132
126
|
children: [
|
|
133
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
140
|
-
type: "button",
|
|
141
|
-
"aria-pressed": 'edit' === mode,
|
|
142
|
-
className: (0, index_cjs_namespaceObject.cn)('cursor-pointer rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'edit' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
143
|
-
disabled: disabled,
|
|
144
|
-
onClick: ()=>onModeChange('edit'),
|
|
145
|
-
children: strings.edit
|
|
146
|
-
}),
|
|
147
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
148
|
-
type: "button",
|
|
149
|
-
"aria-pressed": 'preview' === mode,
|
|
150
|
-
className: (0, index_cjs_namespaceObject.cn)('cursor-pointer rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'preview' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
151
|
-
disabled: disabled,
|
|
152
|
-
onClick: ()=>onModeChange('preview'),
|
|
153
|
-
children: strings.preview
|
|
154
|
-
})
|
|
155
|
-
]
|
|
156
|
-
})
|
|
127
|
+
showModeToggle && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
128
|
+
type: "button",
|
|
129
|
+
className: (0, index_cjs_namespaceObject.cn)('cursor-pointer rounded px-2 py-0.5 text-[11px] font-semibold text-foreground transition-colors', 'hover:bg-accent disabled:pointer-events-none disabled:opacity-50'),
|
|
130
|
+
disabled: disabled,
|
|
131
|
+
onClick: ()=>onModeChange('edit' === mode ? 'preview' : 'edit'),
|
|
132
|
+
children: 'edit' === mode ? strings.preview : strings.edit
|
|
157
133
|
}),
|
|
158
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
159
|
-
|
|
134
|
+
onFullscreen && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToolbarButton, {
|
|
135
|
+
icon: external_lucide_react_namespaceObject.Maximize2,
|
|
136
|
+
label: strings.expand,
|
|
137
|
+
disabled: disabled,
|
|
138
|
+
onClick: onFullscreen
|
|
139
|
+
}),
|
|
140
|
+
trailing && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
160
141
|
children: [
|
|
161
|
-
|
|
162
|
-
trailing
|
|
163
|
-
children: [
|
|
164
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToolbarSeparator, {}),
|
|
165
|
-
trailing
|
|
166
|
-
]
|
|
167
|
-
})
|
|
142
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToolbarSeparator, {}),
|
|
143
|
+
trailing
|
|
168
144
|
]
|
|
169
145
|
})
|
|
170
146
|
]
|
|
171
|
-
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
172
|
-
children: [
|
|
173
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
174
|
-
className: "flex items-center gap-0.5 overflow-hidden",
|
|
175
|
-
children: formattingCluster
|
|
176
|
-
}),
|
|
177
|
-
trailing && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
178
|
-
className: "flex items-center gap-0.5 shrink-0",
|
|
179
|
-
children: trailing
|
|
180
|
-
})
|
|
181
|
-
]
|
|
182
147
|
})
|
|
183
148
|
]
|
|
184
149
|
});
|
|
@@ -8,10 +8,8 @@ export interface EditorToolbarProps {
|
|
|
8
8
|
actionsRef?: React.RefObject<PromptEditorToolbarActionsRef | null>;
|
|
9
9
|
onFullscreen?: () => void;
|
|
10
10
|
/**
|
|
11
|
-
* Whether the Edit/Preview
|
|
12
|
-
*
|
|
13
|
-
* `trailing` right-aligns — the layout used by value-mode fields whose mode menu lives in
|
|
14
|
-
* `trailing`. Defaults to true.
|
|
11
|
+
* Whether the Edit/Preview toggle renders. When hidden there is no preview mode to guard, so the
|
|
12
|
+
* formatting buttons follow `disabled` alone. Defaults to true.
|
|
15
13
|
*/
|
|
16
14
|
showModeToggle?: boolean;
|
|
17
15
|
/** Consumer-supplied node rendered at the toolbar's right end (e.g. a value-mode menu). */
|
|
@@ -77,17 +77,6 @@ const EditorToolbar = ({ mode, onModeChange, disabled, error, actionsRef, onFull
|
|
|
77
77
|
label: strings.bulletedList,
|
|
78
78
|
disabled: disabled || !isEditMode,
|
|
79
79
|
onClick: handleFormat('formatBulletedList')
|
|
80
|
-
}),
|
|
81
|
-
onFullscreen && /*#__PURE__*/ jsxs(Fragment, {
|
|
82
|
-
children: [
|
|
83
|
-
/*#__PURE__*/ jsx(ToolbarSeparator, {}),
|
|
84
|
-
/*#__PURE__*/ jsx(ToolbarButton, {
|
|
85
|
-
icon: Maximize2,
|
|
86
|
-
label: strings.expand,
|
|
87
|
-
disabled: disabled,
|
|
88
|
-
onClick: onFullscreen
|
|
89
|
-
})
|
|
90
|
-
]
|
|
91
80
|
})
|
|
92
81
|
]
|
|
93
82
|
});
|
|
@@ -100,57 +89,33 @@ const EditorToolbar = ({ mode, onModeChange, disabled, error, actionsRef, onFull
|
|
|
100
89
|
"data-testid": "editor-toolbar-separator",
|
|
101
90
|
className: "pointer-events-none absolute bottom-0 left-0 h-px w-full bg-border/40"
|
|
102
91
|
}),
|
|
103
|
-
|
|
92
|
+
/*#__PURE__*/ jsx("div", {
|
|
93
|
+
className: "flex items-center gap-0.5 overflow-hidden",
|
|
94
|
+
children: formattingCluster
|
|
95
|
+
}),
|
|
96
|
+
/*#__PURE__*/ jsxs("div", {
|
|
97
|
+
className: "flex shrink-0 items-center gap-0.5",
|
|
104
98
|
children: [
|
|
105
|
-
/*#__PURE__*/ jsx("
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/*#__PURE__*/ jsx("button", {
|
|
112
|
-
type: "button",
|
|
113
|
-
"aria-pressed": 'edit' === mode,
|
|
114
|
-
className: cn('cursor-pointer rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'edit' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
115
|
-
disabled: disabled,
|
|
116
|
-
onClick: ()=>onModeChange('edit'),
|
|
117
|
-
children: strings.edit
|
|
118
|
-
}),
|
|
119
|
-
/*#__PURE__*/ jsx("button", {
|
|
120
|
-
type: "button",
|
|
121
|
-
"aria-pressed": 'preview' === mode,
|
|
122
|
-
className: cn('cursor-pointer rounded px-2 py-0.5 text-[11px] font-semibold transition-colors', 'preview' === mode ? 'bg-primary/20 text-primary' : 'text-foreground hover:bg-accent'),
|
|
123
|
-
disabled: disabled,
|
|
124
|
-
onClick: ()=>onModeChange('preview'),
|
|
125
|
-
children: strings.preview
|
|
126
|
-
})
|
|
127
|
-
]
|
|
128
|
-
})
|
|
99
|
+
showModeToggle && /*#__PURE__*/ jsx("button", {
|
|
100
|
+
type: "button",
|
|
101
|
+
className: cn('cursor-pointer rounded px-2 py-0.5 text-[11px] font-semibold text-foreground transition-colors', 'hover:bg-accent disabled:pointer-events-none disabled:opacity-50'),
|
|
102
|
+
disabled: disabled,
|
|
103
|
+
onClick: ()=>onModeChange('edit' === mode ? 'preview' : 'edit'),
|
|
104
|
+
children: 'edit' === mode ? strings.preview : strings.edit
|
|
129
105
|
}),
|
|
130
|
-
/*#__PURE__*/
|
|
131
|
-
|
|
106
|
+
onFullscreen && /*#__PURE__*/ jsx(ToolbarButton, {
|
|
107
|
+
icon: Maximize2,
|
|
108
|
+
label: strings.expand,
|
|
109
|
+
disabled: disabled,
|
|
110
|
+
onClick: onFullscreen
|
|
111
|
+
}),
|
|
112
|
+
trailing && /*#__PURE__*/ jsxs(Fragment, {
|
|
132
113
|
children: [
|
|
133
|
-
|
|
134
|
-
trailing
|
|
135
|
-
children: [
|
|
136
|
-
/*#__PURE__*/ jsx(ToolbarSeparator, {}),
|
|
137
|
-
trailing
|
|
138
|
-
]
|
|
139
|
-
})
|
|
114
|
+
/*#__PURE__*/ jsx(ToolbarSeparator, {}),
|
|
115
|
+
trailing
|
|
140
116
|
]
|
|
141
117
|
})
|
|
142
118
|
]
|
|
143
|
-
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
144
|
-
children: [
|
|
145
|
-
/*#__PURE__*/ jsx("div", {
|
|
146
|
-
className: "flex items-center gap-0.5 overflow-hidden",
|
|
147
|
-
children: formattingCluster
|
|
148
|
-
}),
|
|
149
|
-
trailing && /*#__PURE__*/ jsx("div", {
|
|
150
|
-
className: "flex items-center gap-0.5 shrink-0",
|
|
151
|
-
children: trailing
|
|
152
|
-
})
|
|
153
|
-
]
|
|
154
119
|
})
|
|
155
120
|
]
|
|
156
121
|
});
|