@copilotkit/react-textarea 1.3.14-fix-handle-execute-agent-error.0 → 1.3.15
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/CHANGELOG.md +15 -5
- package/dist/{chunk-UGEKMSRR.mjs → chunk-2VMZ5ZWT.mjs} +5 -1
- package/dist/chunk-2VMZ5ZWT.mjs.map +1 -0
- package/dist/{chunk-4AMCUMC7.mjs → chunk-4XXU5BSA.mjs} +4 -3
- package/dist/{chunk-4AMCUMC7.mjs.map → chunk-4XXU5BSA.mjs.map} +1 -1
- package/dist/{chunk-224UKA7C.mjs → chunk-7L6GIHDM.mjs} +2 -1
- package/dist/{chunk-224UKA7C.mjs.map → chunk-7L6GIHDM.mjs.map} +1 -1
- package/dist/{chunk-I3SPIGAI.mjs → chunk-ABYCGF77.mjs} +2 -2
- package/dist/{chunk-CF5GISTC.mjs → chunk-HDBI2WN5.mjs} +2 -2
- package/dist/chunk-HDBI2WN5.mjs.map +1 -0
- package/dist/{chunk-2FAXLWPD.mjs → chunk-OTBX4FPZ.mjs} +2 -2
- package/dist/{chunk-J62KUPFZ.mjs → chunk-PZYM7K4Y.mjs} +4 -3
- package/dist/{chunk-J62KUPFZ.mjs.map → chunk-PZYM7K4Y.mjs.map} +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js +8 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js.map +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +6 -6
- package/dist/components/base-copilot-textarea/render-element.js +1 -0
- package/dist/components/base-copilot-textarea/render-element.js.map +1 -1
- package/dist/components/base-copilot-textarea/render-element.mjs +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.js +8 -1
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +7 -7
- package/dist/components/hovering-toolbar/hovering-toolbar-components.js +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar-components.js.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar-components.mjs +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.js +6 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.js.map +1 -1
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +4 -4
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.js +4 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.js +4 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +2 -2
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.js +4 -0
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.js.map +1 -1
- package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +2 -2
- package/dist/components/index.js +8 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +7 -7
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/package.json +7 -7
- package/src/components/base-copilot-textarea/base-copilot-textarea.tsx +1 -0
- package/src/components/base-copilot-textarea/render-element.tsx +1 -0
- package/src/components/hovering-toolbar/hovering-toolbar-components.tsx +1 -1
- package/src/components/hovering-toolbar/hovering-toolbar.tsx +1 -0
- package/src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx +4 -0
- package/dist/chunk-CF5GISTC.mjs.map +0 -1
- package/dist/chunk-UGEKMSRR.mjs.map +0 -1
- /package/dist/{chunk-I3SPIGAI.mjs.map → chunk-ABYCGF77.mjs.map} +0 -0
- /package/dist/{chunk-2FAXLWPD.mjs.map → chunk-OTBX4FPZ.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-MMVDU6DF.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotTextarea
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OTBX4FPZ.mjs";
|
|
5
5
|
import "../chunk-VPGMB7K3.mjs";
|
|
6
6
|
import "../chunk-BG4GF6PP.mjs";
|
|
7
7
|
import "../chunk-RUV6NBIF.mjs";
|
|
@@ -11,7 +11,7 @@ import "../chunk-MCNXIA4Q.mjs";
|
|
|
11
11
|
import "../chunk-GUZIMGGZ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
BaseCopilotTextarea
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-PZYM7K4Y.mjs";
|
|
15
15
|
import "../chunk-2C7O2EVM.mjs";
|
|
16
16
|
import "../chunk-GQN2HYFJ.mjs";
|
|
17
17
|
import "../chunk-23Q6A46J.mjs";
|
|
@@ -22,16 +22,16 @@ import "../chunk-QJNFNPWH.mjs";
|
|
|
22
22
|
import "../chunk-5UNJXFUO.mjs";
|
|
23
23
|
import "../chunk-LQ2OWQU7.mjs";
|
|
24
24
|
import "../chunk-7LSRNPNI.mjs";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-4XXU5BSA.mjs";
|
|
26
26
|
import "../chunk-L7VVZH4Q.mjs";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-ABYCGF77.mjs";
|
|
28
|
+
import "../chunk-2VMZ5ZWT.mjs";
|
|
29
29
|
import "../chunk-KMVGEY7Q.mjs";
|
|
30
30
|
import "../chunk-3PQ7GSFE.mjs";
|
|
31
31
|
import "../chunk-4PDYALMP.mjs";
|
|
32
32
|
import "../chunk-D47EKHIF.mjs";
|
|
33
33
|
import "../chunk-LYB4B6MK.mjs";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-HDBI2WN5.mjs";
|
|
35
35
|
import "../chunk-WGWQRALG.mjs";
|
|
36
36
|
import "../chunk-VSVQZUPW.mjs";
|
|
37
37
|
import "../chunk-I72DKFHD.mjs";
|
|
@@ -39,7 +39,7 @@ import "../chunk-2QDCE7PD.mjs";
|
|
|
39
39
|
import "../chunk-YLFAIYRY.mjs";
|
|
40
40
|
import "../chunk-WJHSY5T6.mjs";
|
|
41
41
|
import "../chunk-4CVSOOJY.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-7L6GIHDM.mjs";
|
|
43
43
|
import "../chunk-XW3ICO4S.mjs";
|
|
44
44
|
import "../chunk-DFTV4TST.mjs";
|
|
45
45
|
import "../chunk-T6MTDQZ7.mjs";
|
package/dist/index.js
CHANGED
|
@@ -1083,6 +1083,7 @@ var HoveringInsertionPromptBoxCore = ({
|
|
|
1083
1083
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1084
1084
|
"textarea",
|
|
1085
1085
|
{
|
|
1086
|
+
"data-testid": "adjustment-prompt",
|
|
1086
1087
|
disabled: suggestionIsLoading,
|
|
1087
1088
|
ref: adjustmentTextAreaRef,
|
|
1088
1089
|
value: adjustmentPrompt,
|
|
@@ -1110,6 +1111,7 @@ var HoveringInsertionPromptBoxCore = ({
|
|
|
1110
1111
|
{
|
|
1111
1112
|
onClick: beginGeneratingAdjustment,
|
|
1112
1113
|
className: "absolute right-2 bg-blue-500 text-white w-8 h-8 rounded-full flex items-center justify-center",
|
|
1114
|
+
"data-testid": "generate-button",
|
|
1113
1115
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("i", { className: "material-icons", children: "arrow_forward" })
|
|
1114
1116
|
}
|
|
1115
1117
|
)
|
|
@@ -1130,6 +1132,7 @@ var HoveringInsertionPromptBoxCore = ({
|
|
|
1130
1132
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1131
1133
|
"textarea",
|
|
1132
1134
|
{
|
|
1135
|
+
"data-testid": "suggestion-result",
|
|
1133
1136
|
ref: suggestionTextAreaRef,
|
|
1134
1137
|
value: editSuggestion,
|
|
1135
1138
|
disabled: suggestionIsLoading,
|
|
@@ -1142,6 +1145,7 @@ var HoveringInsertionPromptBoxCore = ({
|
|
|
1142
1145
|
const SubmitComponent = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex w-full gap-4 justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1143
1146
|
Button,
|
|
1144
1147
|
{
|
|
1148
|
+
"data-testid": "insert-button",
|
|
1145
1149
|
className: " bg-green-700 text-white",
|
|
1146
1150
|
onClick: () => {
|
|
1147
1151
|
performInsertion(editSuggestion);
|
|
@@ -1254,7 +1258,7 @@ var Menu = import_react8.default.forwardRef(
|
|
|
1254
1258
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1255
1259
|
"div",
|
|
1256
1260
|
__spreadProps(__spreadValues({}, props), {
|
|
1257
|
-
"data-
|
|
1261
|
+
"data-testid": "menu",
|
|
1258
1262
|
ref,
|
|
1259
1263
|
className: (0, import_css.cx)(
|
|
1260
1264
|
className,
|
|
@@ -1366,6 +1370,7 @@ var HoveringToolbar = (props) => {
|
|
|
1366
1370
|
{
|
|
1367
1371
|
ref,
|
|
1368
1372
|
className: "copilot-kit-textarea-css-scope " + (props.hoverMenuClassname || "p-2 absolute z-10 top-[-10000px] left-[-10000px] mt-[-6px] opacity-0 transition-opacity duration-700"),
|
|
1373
|
+
"data-testid": "hovering-toolbar",
|
|
1369
1374
|
children: isDisplayed && selection && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1370
1375
|
HoveringInsertionPromptBox,
|
|
1371
1376
|
{
|
|
@@ -1419,6 +1424,7 @@ var SuggestionElement = (props) => {
|
|
|
1419
1424
|
"span",
|
|
1420
1425
|
__spreadProps(__spreadValues({}, props.attributes), {
|
|
1421
1426
|
style: __spreadValues({}, props.suggestionsStyle),
|
|
1427
|
+
"data-testid": "suggestion",
|
|
1422
1428
|
contentEditable: false,
|
|
1423
1429
|
children: [
|
|
1424
1430
|
props.children,
|
|
@@ -1762,6 +1768,7 @@ var BaseCopilotTextareaWithHoveringContext = import_react12.default.forwardRef(
|
|
|
1762
1768
|
onTouchStart: (event) => {
|
|
1763
1769
|
onTouchStartHandlerForAutocomplete(event);
|
|
1764
1770
|
},
|
|
1771
|
+
"data-testid": "copilot-textarea-editable",
|
|
1765
1772
|
className: moddedClassName,
|
|
1766
1773
|
onBlur: (ev) => {
|
|
1767
1774
|
var _a2;
|