@copilotkit/react-textarea 0.33.0 → 0.34.0-mme-fix-esm-error.2
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/.turbo/turbo-build.log +53 -53
- package/CHANGELOG.md +48 -0
- package/dist/{chunk-QLRPU7CE.mjs → chunk-22TYLEZZ.mjs} +8 -3
- package/dist/{chunk-QLRPU7CE.mjs.map → chunk-22TYLEZZ.mjs.map} +1 -1
- package/dist/{chunk-P4QVFRLY.mjs → chunk-CF5GISTC.mjs} +8 -8
- package/dist/chunk-CF5GISTC.mjs.map +1 -0
- package/dist/{chunk-F4ZGXQBM.mjs → chunk-COQISBP2.mjs} +2 -2
- package/dist/{chunk-6GJ732U4.mjs → chunk-DMLXXOXD.mjs} +4 -4
- package/dist/chunk-DMLXXOXD.mjs.map +1 -0
- package/dist/{chunk-SN7BEUGH.mjs → chunk-OGLVRSCO.mjs} +3 -5
- package/dist/chunk-OGLVRSCO.mjs.map +1 -0
- package/dist/{chunk-TH4DT752.mjs → chunk-SP5HFO3H.mjs} +2 -2
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js +16 -13
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js.map +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +5 -5
- package/dist/components/copilot-textarea/copilot-textarea.js +16 -13
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +6 -6
- package/dist/components/hovering-toolbar/hovering-toolbar-components.js +7 -7
- 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 +10 -12
- 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 +2 -4
- 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 +2 -4
- 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 +2 -4
- 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 +16 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -6
- package/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +7 -7
- package/src/components/base-copilot-textarea/base-copilot-textarea.tsx +5 -0
- package/src/components/hovering-toolbar/hovering-toolbar-components.tsx +20 -18
- package/src/components/hovering-toolbar/hovering-toolbar.tsx +1 -1
- package/src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.tsx +1 -7
- package/dist/chunk-6GJ732U4.mjs.map +0 -1
- package/dist/chunk-P4QVFRLY.mjs.map +0 -1
- package/dist/chunk-SN7BEUGH.mjs.map +0 -1
- /package/dist/{chunk-F4ZGXQBM.mjs.map → chunk-COQISBP2.mjs.map} +0 -0
- /package/dist/{chunk-TH4DT752.mjs.map → chunk-SP5HFO3H.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseCopilotTextarea
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-22TYLEZZ.mjs";
|
|
4
4
|
import "../../chunk-DRV2FOHZ.mjs";
|
|
5
5
|
import "../../chunk-4NHVQZ67.mjs";
|
|
6
6
|
import "../../chunk-VPEH6V7T.mjs";
|
|
@@ -11,16 +11,16 @@ import "../../chunk-QKS2IOUH.mjs";
|
|
|
11
11
|
import "../../chunk-JJLQVT7S.mjs";
|
|
12
12
|
import "../../chunk-LQ2OWQU7.mjs";
|
|
13
13
|
import "../../chunk-7LSRNPNI.mjs";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-DMLXXOXD.mjs";
|
|
15
15
|
import "../../chunk-L7VVZH4Q.mjs";
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-COQISBP2.mjs";
|
|
17
|
+
import "../../chunk-OGLVRSCO.mjs";
|
|
18
18
|
import "../../chunk-YNXNMCDX.mjs";
|
|
19
19
|
import "../../chunk-3PQ7GSFE.mjs";
|
|
20
20
|
import "../../chunk-WFTAAA7R.mjs";
|
|
21
21
|
import "../../chunk-YFK5BFEI.mjs";
|
|
22
22
|
import "../../chunk-LYB4B6MK.mjs";
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-CF5GISTC.mjs";
|
|
24
24
|
import "../../chunk-4OZR65UB.mjs";
|
|
25
25
|
import "../../chunk-FFSICDS5.mjs";
|
|
26
26
|
import "../../chunk-4HBKWUCT.mjs";
|
|
@@ -1308,10 +1308,8 @@ var HoveringInsertionPromptBoxCore = ({
|
|
|
1308
1308
|
use_autosize_textarea_default(suggestionTextAreaRef, editSuggestion || "");
|
|
1309
1309
|
use_autosize_textarea_default(adjustmentTextAreaRef, adjustmentPrompt || "");
|
|
1310
1310
|
(0, import_react8.useEffect)(() => {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
(_a = adjustmentTextAreaRef.current) == null ? void 0 : _a.focus();
|
|
1314
|
-
}, 0);
|
|
1311
|
+
var _a;
|
|
1312
|
+
(_a = adjustmentTextAreaRef.current) == null ? void 0 : _a.focus();
|
|
1315
1313
|
}, []);
|
|
1316
1314
|
(0, import_react8.useEffect)(() => {
|
|
1317
1315
|
if (!generatingSuggestion) {
|
|
@@ -1563,14 +1561,14 @@ var Menu = import_react9.default.forwardRef(
|
|
|
1563
1561
|
className: (0, import_css.cx)(
|
|
1564
1562
|
className,
|
|
1565
1563
|
import_css.css`
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1564
|
+
& > * {
|
|
1565
|
+
display: inline-block;
|
|
1566
|
+
}
|
|
1569
1567
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1568
|
+
& > * + * {
|
|
1569
|
+
margin-left: 15px;
|
|
1570
|
+
}
|
|
1571
|
+
`
|
|
1574
1572
|
)
|
|
1575
1573
|
})
|
|
1576
1574
|
);
|
|
@@ -1623,7 +1621,7 @@ var HoveringToolbar = (props) => {
|
|
|
1623
1621
|
return;
|
|
1624
1622
|
}
|
|
1625
1623
|
const domSelection = window.getSelection();
|
|
1626
|
-
if (!domSelection) {
|
|
1624
|
+
if (!domSelection || domSelection.rangeCount === 0) {
|
|
1627
1625
|
return;
|
|
1628
1626
|
}
|
|
1629
1627
|
const domRange = domSelection.getRangeAt(0);
|
|
@@ -2061,7 +2059,12 @@ var BaseCopilotTextareaWithHoveringContext = import_react13.default.forwardRef(
|
|
|
2061
2059
|
onKeyDownHandlerForAutocomplete(event);
|
|
2062
2060
|
(_a2 = props.onKeyDown) == null ? void 0 : _a2.call(props, event);
|
|
2063
2061
|
},
|
|
2064
|
-
className: moddedClassName
|
|
2062
|
+
className: moddedClassName,
|
|
2063
|
+
onBlur: (ev) => {
|
|
2064
|
+
var _a2;
|
|
2065
|
+
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, ev);
|
|
2066
|
+
clearAutocompletionsFromEditor(editor);
|
|
2067
|
+
}
|
|
2065
2068
|
}, propsToForward)
|
|
2066
2069
|
)
|
|
2067
2070
|
]
|